2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
689 # maybe with a smaller string...
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 # Oops. We lost completely, so just stick with echo.
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 ac_default_prefix=/usr/local
740 ac_config_libobj_dir=.
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
755 ac_unique_file="l7vsd"
756 ac_unique_file="config.h.in"
757 # Factoring default headers for most tests.
758 ac_includes_default="\
760 #ifdef HAVE_SYS_TYPES_H
761 # include <sys/types.h>
763 #ifdef HAVE_SYS_STAT_H
764 # include <sys/stat.h>
770 # ifdef HAVE_STDLIB_H
775 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
780 #ifdef HAVE_STRINGS_H
781 # include <strings.h>
783 #ifdef HAVE_INTTYPES_H
784 # include <inttypes.h>
795 ac_subst_vars='LTLIBOBJS
796 ultramonkeyl7_version
854 INSTALL_STRIP_PROGRAM
895 program_transform_name
907 enable_option_checking
908 enable_dependency_tracking
918 with_l7vs_buffer_size
921 ac_precious_vars='build_alias
938 # Initialize some variables set by options.
940 ac_init_version=false
941 ac_unrecognized_opts=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
952 program_transform_name=s,x,x,
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE}'
977 infodir='${datarootdir}/info'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
990 # If the previous option needs an argument, assign it.
991 if test -n "$ac_prev"; then
992 eval $ac_prev=\$ac_option
998 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1004 case $ac_dashdash$ac_option in
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011 bindir=$ac_optarg ;;
1013 -build | --build | --buil | --bui | --bu)
1014 ac_prev=build_alias ;;
1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016 build_alias=$ac_optarg ;;
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023 cache_file=$ac_optarg ;;
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
1028 -datadir | --datadir | --datadi | --datad)
1030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031 datadir=$ac_optarg ;;
1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1040 -disable-* | --disable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1055 eval enable_$ac_useropt=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1246 -site=* | --site=* | --sit=*)
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1287 eval with_$ac_useropt=\$ac_optarg ;;
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1304 eval with_$ac_useropt=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1359 { (exit 1); exit 1; }; } ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1383 { (exit 1); exit 1; }; }
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1391 target=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1414 { (exit 1); exit 1; }; }
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1417 { (exit 1); exit 1; }; }
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1457 { (exit 1); exit 1; }; }
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1462 { (exit 1); exit 1; }; }
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 if test -n "$ac_init_help"; then
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579 --with-l7vs-moddir=DIR l7vs module is to be installed in DIR.
1581 --with-l7vsadm-sockdir=DIR l7vsadm sockfile PATH.
1582 default=/var/run/l7vs
1583 --with-l7vs-buffer-size=NUM l7vsd using heap buffer size.
1585 --with-l7vs-config-dir=DIR l7vs configfile PATH.
1586 default=/etc/l7vs/l7vs.cf
1588 Some influential environment variables:
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CC C compiler command
1597 CFLAGS C compiler flags
1599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1669 generated by GNU Autoconf 2.63
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1682 It was created by $as_me, which was
1683 generated by GNU Autoconf 2.63. Invocation command line was
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1708 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 $as_echo "PATH: $as_dir"
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1743 ac_must_keep_next=false
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
1761 ac_must_keep_next=false # Got value, back to normal.
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 -* ) ac_must_keep_next=true ;;
1775 ac_configure_args="$ac_configure_args '$ac_arg'"
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log. We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1799 # The following way of writing the cache mishandles newlines in values,
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1810 _ | IFS | as_nl) ;; #(
1811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1812 *) $as_unset $ac_var ;;
1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
1820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1837 for ac_var in $ac_subst_vars
1839 eval ac_val=\$$ac_var
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 $as_echo "$ac_var='\''$ac_val'\''"
1847 if test -n "$ac_subst_files"; then
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1854 for ac_var in $ac_subst_files
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 $as_echo "$ac_var='\''$ac_val'\''"
1865 if test -s confdefs.h; then
1875 test "$ac_signal" != 0 &&
1876 $as_echo "$as_me: caught signal $ac_signal"
1877 $as_echo "$as_me: exit $exit_status"
1879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1883 for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1891 # Predefined preprocessor variables.
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer an explicitly selected file to automatically selected ones.
1922 if test -n "$CONFIG_SITE"; then
1923 ac_site_file1=$CONFIG_SITE
1924 elif test "x$prefix" != xNONE; then
1925 ac_site_file1=$prefix/share/config.site
1926 ac_site_file2=$prefix/etc/config.site
1928 ac_site_file1=$ac_default_prefix/share/config.site
1929 ac_site_file2=$ac_default_prefix/etc/config.site
1931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1933 test "x$ac_site_file" = xNONE && continue
1934 if test -r "$ac_site_file"; then
1935 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1937 sed 's/^/| /' "$ac_site_file" >&5
1942 if test -r "$cache_file"; then
1943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 $as_echo "$as_me: loading cache $cache_file" >&6;}
1949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950 *) . "./$cache_file";;
1954 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 $as_echo "$as_me: creating cache $cache_file" >&6;}
1959 ac_header_list="$ac_header_list sys/time.h"
1960 ac_header_list="$ac_header_list unistd.h"
1961 ac_func_list="$ac_func_list alarm"
1962 # Check that the precious variables saved in the cache have kept the same
1964 ac_cache_corrupted=false
1965 for ac_var in $ac_precious_vars; do
1966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1967 eval ac_new_set=\$ac_env_${ac_var}_set
1968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1969 eval ac_new_val=\$ac_env_${ac_var}_value
1970 case $ac_old_set,$ac_new_set in
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1974 ac_cache_corrupted=: ;;
1976 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1978 ac_cache_corrupted=: ;;
1981 if test "x$ac_old_val" != "x$ac_new_val"; then
1982 # differences in whitespace do not lead to failure.
1983 ac_old_val_w=`echo x $ac_old_val`
1984 ac_new_val_w=`echo x $ac_new_val`
1985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1988 ac_cache_corrupted=:
1990 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1992 eval $ac_var=\$ac_old_val
1994 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1995 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1996 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2000 # Pass precious variables to config.status.
2001 if test "$ac_new_set" = set; then
2003 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 *) ac_arg=$ac_var=$ac_new_val ;;
2006 case " $ac_configure_args " in
2007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2008 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012 if $ac_cache_corrupted; then
2013 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2015 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 am__api_version="1.9"
2050 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2051 if test -f "$ac_dir/install-sh"; then
2053 ac_install_sh="$ac_aux_dir/install-sh -c"
2055 elif test -f "$ac_dir/install.sh"; then
2057 ac_install_sh="$ac_aux_dir/install.sh -c"
2059 elif test -f "$ac_dir/shtool"; then
2061 ac_install_sh="$ac_aux_dir/shtool install -c"
2065 if test -z "$ac_aux_dir"; then
2066 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2067 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2068 { (exit 1); exit 1; }; }
2071 # These three variables are undocumented and unsupported,
2072 # and are intended to be withdrawn in a future Autoconf release.
2073 # They can cause serious problems if a builder's source tree is in a directory
2074 # whose full name contains unusual characters.
2075 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2076 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2077 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2080 # Find a good install program. We prefer a C program (faster),
2081 # so one script is as good as another. But avoid the broken or
2082 # incompatible versions:
2083 # SysV /etc/install, /usr/sbin/install
2084 # SunOS /usr/etc/install
2085 # IRIX /sbin/install
2087 # AmigaOS /C/install, which installs bootblocks on floppy discs
2088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091 # OS/2's system install, which has a completely different semantic
2092 # ./install, which can be erroneously created by make from ./install.sh.
2093 # Reject install programs that cannot install multiple files.
2094 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2095 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2096 if test -z "$INSTALL"; then
2097 if test "${ac_cv_path_install+set}" = set; then
2098 $as_echo_n "(cached) " >&6
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 # Account for people who put trailing slashes in PATH elements.
2107 ./ | .// | /cC/* | \
2108 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2109 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2112 # OSF1 and SCO ODT 3.0 have their own names for install.
2113 # Don't use installbsd from OSF since it installs stuff as root
2115 for ac_prog in ginstall scoinst install; do
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2118 if test $ac_prog = install &&
2119 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2120 # AIX install. It has an incompatible calling convention.
2122 elif test $ac_prog = install &&
2123 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124 # program-specific install script used by HP pwplus--don't use.
2127 rm -rf conftest.one conftest.two conftest.dir
2128 echo one > conftest.one
2129 echo two > conftest.two
2131 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2132 test -s conftest.one && test -s conftest.two &&
2133 test -s conftest.dir/conftest.one &&
2134 test -s conftest.dir/conftest.two
2136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2149 rm -rf conftest.one conftest.two conftest.dir
2152 if test "${ac_cv_path_install+set}" = set; then
2153 INSTALL=$ac_cv_path_install
2155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for INSTALL within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 INSTALL=$ac_install_sh
2162 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2163 $as_echo "$INSTALL" >&6; }
2165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2166 # It thinks the first close brace ends the variable substitution.
2167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2173 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2174 $as_echo_n "checking whether build environment is sane... " >&6; }
2177 echo timestamp > conftest.file
2178 # Do `set' in a subshell so we don't clobber the current shell's
2179 # arguments. Must try -L first in case configure is actually a
2180 # symlink; some systems play weird games with the mod time of symlinks
2181 # (eg FreeBSD returns the mod time of the symlink's containing
2184 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2185 if test "$*" = "X"; then
2187 set X `ls -t $srcdir/configure conftest.file`
2190 if test "$*" != "X $srcdir/configure conftest.file" \
2191 && test "$*" != "X conftest.file $srcdir/configure"; then
2193 # If neither matched, then we have a broken ls. This can happen
2194 # if, for instance, CONFIG_SHELL is bash and it inherits a
2195 # broken ls alias from the environment. This has actually
2196 # happened. Such a system could not be considered "sane".
2197 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2198 alias in your environment" >&5
2199 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2200 alias in your environment" >&2;}
2201 { (exit 1); exit 1; }; }
2204 test "$2" = conftest.file
2210 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2211 Check your system clock" >&5
2212 $as_echo "$as_me: error: newly created file is older than distributed files!
2213 Check your system clock" >&2;}
2214 { (exit 1); exit 1; }; }
2216 { $as_echo "$as_me:$LINENO: result: yes" >&5
2217 $as_echo "yes" >&6; }
2218 test "$program_prefix" != NONE &&
2219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2220 # Use a double $ so make ignores it.
2221 test "$program_suffix" != NONE &&
2222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2223 # Double any \ or $.
2224 # By default was `s,x,x', remove it if useless.
2225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2228 # expand $ac_aux_dir to an absolute path
2229 am_aux_dir=`cd $ac_aux_dir && pwd`
2231 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2232 # Use eval to expand $SHELL
2233 if eval "$MISSING --run true"; then
2234 am_missing_run="$MISSING --run "
2237 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2238 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2241 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2242 # We used to keeping the `.' as first argument, in order to
2243 # allow $(mkdir_p) to be used without argument. As in
2244 # $(mkdir_p) $(somedir)
2245 # where $(somedir) is conditionally defined. However this is wrong
2247 # 1. if the package is installed by a user who cannot write `.'
2248 # make install will fail,
2249 # 2. the above comment should most certainly read
2250 # $(mkdir_p) $(DESTDIR)$(somedir)
2251 # so it does not work when $(somedir) is undefined and
2252 # $(DESTDIR) is not.
2253 # To support the latter case, we have to write
2254 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2255 # so the `.' trick is pointless.
2256 mkdir_p='mkdir -p --'
2258 # On NextStep and OpenStep, the `mkdir' command does not
2259 # recognize any option. It will interpret all options as
2260 # directories to create, and then abort because `.' already
2262 for d in ./-p ./--version;
2264 test -d $d && rmdir $d
2266 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2267 if test -f "$ac_aux_dir/mkinstalldirs"; then
2268 mkdir_p='$(mkinstalldirs)'
2270 mkdir_p='$(install_sh) -d'
2274 for ac_prog in gawk mawk nawk awk
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 $as_echo_n "checking for $ac_word... " >&6; }
2280 if test "${ac_cv_prog_AWK+set}" = set; then
2281 $as_echo_n "(cached) " >&6
2283 if test -n "$AWK"; then
2284 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_AWK="$ac_prog"
2294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test -n "$AWK"; then
2305 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2306 $as_echo "$AWK" >&6; }
2308 { $as_echo "$as_me:$LINENO: result: no" >&5
2309 $as_echo "no" >&6; }
2313 test -n "$AWK" && break
2316 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2317 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2319 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2320 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2321 $as_echo_n "(cached) " >&6
2323 cat >conftest.make <<\_ACEOF
2326 @echo '@@@%%%=$(MAKE)=@@@%%%'
2328 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2329 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2331 eval ac_cv_prog_make_${ac_make}_set=yes;;
2333 eval ac_cv_prog_make_${ac_make}_set=no;;
2337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2338 { $as_echo "$as_me:$LINENO: result: yes" >&5
2339 $as_echo "yes" >&6; }
2342 { $as_echo "$as_me:$LINENO: result: no" >&5
2343 $as_echo "no" >&6; }
2344 SET_MAKE="MAKE=${MAKE-make}"
2347 rm -rf .tst 2>/dev/null
2348 mkdir .tst 2>/dev/null
2349 if test -d .tst; then
2354 rmdir .tst 2>/dev/null
2356 # test to see if srcdir already configured
2357 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2358 test -f $srcdir/config.status; then
2359 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2360 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2361 { (exit 1); exit 1; }; }
2364 # test whether we have cygpath
2365 if test -z "$CYGPATH_W"; then
2366 if (cygpath --version) >/dev/null 2>/dev/null; then
2367 CYGPATH_W='cygpath -w'
2374 # Define the identity of the package.
2375 PACKAGE=$PACKAGENAME
2379 # Some tools Automake needs.
2381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2395 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2397 # Installed binaries are usually stripped using `strip' when the user
2398 # run `make install-strip'. However `strip' might not be the right
2399 # tool to use in cross-compilation environments, therefore Automake
2400 # will honor the `STRIP' environment variable to overrule this program.
2401 if test "$cross_compiling" != no; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}strip; ac_word=$2
2405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if test "${ac_cv_prog_STRIP+set}" = set; then
2408 $as_echo_n "(cached) " >&6
2410 if test -n "$STRIP"; then
2411 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 STRIP=$ac_cv_prog_STRIP
2431 if test -n "$STRIP"; then
2432 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2433 $as_echo "$STRIP" >&6; }
2435 { $as_echo "$as_me:$LINENO: result: no" >&5
2436 $as_echo "no" >&6; }
2441 if test -z "$ac_cv_prog_STRIP"; then
2443 # Extract the first word of "strip", so it can be a program name with args.
2444 set dummy strip; ac_word=$2
2445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2448 $as_echo_n "(cached) " >&6
2450 if test -n "$ac_ct_STRIP"; then
2451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_STRIP="strip"
2461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2471 if test -n "$ac_ct_STRIP"; then
2472 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2473 $as_echo "$ac_ct_STRIP" >&6; }
2475 { $as_echo "$as_me:$LINENO: result: no" >&5
2476 $as_echo "no" >&6; }
2479 if test "x$ac_ct_STRIP" = x; then
2482 case $cross_compiling:$ac_tool_warned in
2484 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486 ac_tool_warned=yes ;;
2491 STRIP="$ac_cv_prog_STRIP"
2495 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2497 # We need awk for the "check" target. The system "awk" is bad on
2499 # Always define AMTAR for backward compatibility.
2501 AMTAR=${AMTAR-"${am_missing_run}tar"}
2503 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2510 ac_config_headers="$ac_config_headers config.h"
2513 # Checks for programs.
2515 ac_cpp='$CXXCPP $CPPFLAGS'
2516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2519 if test -z "$CXX"; then
2520 if test -n "$CCC"; then
2523 if test -n "$ac_tool_prefix"; then
2524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if test "${ac_cv_prog_CXX+set}" = set; then
2531 $as_echo_n "(cached) " >&6
2533 if test -n "$CXX"; then
2534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test -n "$CXX"; then
2555 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2556 $as_echo "$CXX" >&6; }
2558 { $as_echo "$as_me:$LINENO: result: no" >&5
2559 $as_echo "no" >&6; }
2563 test -n "$CXX" && break
2566 if test -z "$CXX"; then
2568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2577 if test -n "$ac_ct_CXX"; then
2578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_CXX="$ac_prog"
2588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2598 if test -n "$ac_ct_CXX"; then
2599 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2600 $as_echo "$ac_ct_CXX" >&6; }
2602 { $as_echo "$as_me:$LINENO: result: no" >&5
2603 $as_echo "no" >&6; }
2607 test -n "$ac_ct_CXX" && break
2610 if test "x$ac_ct_CXX" = x; then
2613 case $cross_compiling:$ac_tool_warned in
2615 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617 ac_tool_warned=yes ;;
2625 # Provide some information about the compiler.
2626 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2629 { (ac_try="$ac_compiler --version >&5"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636 (eval "$ac_compiler --version >&5") 2>&5
2638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }
2640 { (ac_try="$ac_compiler -v >&5"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2646 $as_echo "$ac_try_echo") >&5
2647 (eval "$ac_compiler -v >&5") 2>&5
2649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657 $as_echo "$ac_try_echo") >&5
2658 (eval "$ac_compiler -V >&5") 2>&5
2660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2683 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2684 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2687 # The possible output files:
2688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2691 for ac_file in $ac_files
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2700 if { (ac_try="$ac_link_default"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2706 $as_echo "$ac_try_echo") >&5
2707 (eval "$ac_link_default") 2>&5
2709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; then
2711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2714 # so that the user can short-circuit this test for compilers unknown to
2716 for ac_file in $ac_files ''
2718 test -f "$ac_file" || continue
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2723 # We found the default executable, but exeext='' is most
2727 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2731 # We set ac_cv_exeext here because the later test for it is not
2732 # safe: cross compilers may not add the suffix if given an `-o'
2733 # argument, so we may need to know it at that point already.
2734 # Even if this section looks crufty: it has the advantage of
2741 test "$ac_cv_exeext" = no && ac_cv_exeext=
2747 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2748 $as_echo "$ac_file" >&6; }
2749 if test -z "$ac_file"; then
2750 $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2753 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2756 See \`config.log' for more details." >&5
2757 $as_echo "$as_me: error: C++ compiler cannot create executables
2758 See \`config.log' for more details." >&2;}
2759 { (exit 77); exit 77; }; }; }
2762 ac_exeext=$ac_cv_exeext
2764 # Check that the compiler produces executables we can run. If not, either
2765 # the compiler is broken, or we cross compile.
2766 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2767 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2768 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2769 # If not cross compiling, check that we can run a simple program.
2770 if test "$cross_compiling" != yes; then
2771 if { ac_try='./$ac_file'
2772 { (case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_try") 2>&5
2780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2784 if test "$cross_compiling" = maybe; then
2787 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \`config.log' for more details." >&5
2792 $as_echo "$as_me: error: cannot run C++ compiled programs.
2793 If you meant to cross compile, use \`--host'.
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }; }
2799 { $as_echo "$as_me:$LINENO: result: yes" >&5
2800 $as_echo "yes" >&6; }
2802 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 # Check that the compiler produces executables we can run. If not, either
2805 # the compiler is broken, or we cross compile.
2806 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2807 $as_echo_n "checking whether we are cross compiling... " >&6; }
2808 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2809 $as_echo "$cross_compiling" >&6; }
2811 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2812 $as_echo_n "checking for suffix of executables... " >&6; }
2813 if { (ac_try="$ac_link"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2819 $as_echo "$ac_try_echo") >&5
2820 (eval "$ac_link") 2>&5
2822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; then
2824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2826 # work properly (i.e., refer to `conftest.exe'), while it won't with
2828 for ac_file in conftest.exe conftest conftest.*; do
2829 test -f "$ac_file" || continue
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2838 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2841 See \`config.log' for more details." >&5
2842 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2843 See \`config.log' for more details." >&2;}
2844 { (exit 1); exit 1; }; }; }
2847 rm -f conftest$ac_cv_exeext
2848 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2849 $as_echo "$ac_cv_exeext" >&6; }
2851 rm -f conftest.$ac_ext
2852 EXEEXT=$ac_cv_exeext
2854 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2855 $as_echo_n "checking for suffix of object files... " >&6; }
2856 if test "${ac_cv_objext+set}" = set; then
2857 $as_echo_n "(cached) " >&6
2859 cat >conftest.$ac_ext <<_ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2874 rm -f conftest.o conftest.obj
2875 if { (ac_try="$ac_compile"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881 $as_echo "$ac_try_echo") >&5
2882 (eval "$ac_compile") 2>&5
2884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
2886 for ac_file in conftest.o conftest.obj conftest.*; do
2887 test -f "$ac_file" || continue;
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2895 $as_echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2901 See \`config.log' for more details." >&5
2902 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }; }
2907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2909 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2910 $as_echo "$ac_cv_objext" >&6; }
2911 OBJEXT=$ac_cv_objext
2913 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2915 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916 $as_echo_n "(cached) " >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_cxx_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.$ac_objext; then
2956 $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2966 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2967 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2968 if test $ac_compiler_gnu = yes; then
2973 ac_test_CXXFLAGS=${CXXFLAGS+set}
2974 ac_save_CXXFLAGS=$CXXFLAGS
2975 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2976 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2977 if test "${ac_cv_prog_cxx_g+set}" = set; then
2978 $as_echo_n "(cached) " >&6
2980 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2981 ac_cxx_werror_flag=yes
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_cxx_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3017 ac_cv_prog_cxx_g=yes
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_cxx_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3058 $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_cxx_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3096 ac_cv_prog_cxx_g=yes
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3113 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3114 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3115 if test "$ac_test_CXXFLAGS" = set; then
3116 CXXFLAGS=$ac_save_CXXFLAGS
3117 elif test $ac_cv_prog_cxx_g = yes; then
3118 if test "$GXX" = yes; then
3124 if test "$GXX" = yes; then
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 DEPDIR="${am__leading_dot}deps"
3137 ac_config_commands="$ac_config_commands depfiles"
3140 am_make=${MAKE-make}
3141 cat > confinc << 'END'
3146 # If we don't find an include directive, just comment out the code.
3147 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3148 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3152 # First try GNU make style include.
3153 echo "include confinc" > confmf
3154 # We grep out `Entering directory' and `Leaving directory'
3155 # messages which can occur if `w' ends up in MAKEFLAGS.
3156 # In particular we don't look at `^make:' because GNU make might
3157 # be invoked under some other name (usually "gmake"), in which
3158 # case it prints its new name instead of `make'.
3159 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3164 # Now try BSD make style include.
3165 if test "$am__include" = "#"; then
3166 echo '.include "confinc"' > confmf
3167 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3168 am__include=.include
3175 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3176 $as_echo "$_am_result" >&6; }
3177 rm -f confinc confmf
3179 # Check whether --enable-dependency-tracking was given.
3180 if test "${enable_dependency_tracking+set}" = set; then
3181 enableval=$enable_dependency_tracking;
3184 if test "x$enable_dependency_tracking" != xno; then
3185 am_depcomp="$ac_aux_dir/depcomp"
3190 if test "x$enable_dependency_tracking" != xno; then
3201 depcc="$CXX" am_compiler_list=
3203 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 $as_echo_n "checking dependency style of $depcc... " >&6; }
3205 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3206 $as_echo_n "(cached) " >&6
3208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209 # We make a subdir and do the tests there. Otherwise we can end up
3210 # making bogus files that we don't know about and never remove. For
3211 # instance it was reported that on HP-UX the gcc test will end up
3212 # making a dummy file named `D' -- because `-MD' means `put the output
3215 # Copy depcomp to subdir because otherwise we won't find it if we're
3216 # using a relative directory.
3217 cp "$am_depcomp" conftest.dir
3219 # We will build objects and dependencies in a subdirectory because
3220 # it helps to detect inapplicable dependency modes. For instance
3221 # both Tru64's cc and ICC support -MD to output dependencies as a
3222 # side effect of compilation, but ICC will put the dependencies in
3223 # the current directory while Tru64 will put them in the object
3227 am_cv_CXX_dependencies_compiler_type=none
3228 if test "$am_compiler_list" = ""; then
3229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3231 for depmode in $am_compiler_list; do
3232 # Setup a source with many dependencies, because some compilers
3233 # like to wrap large dependency lists on column 80 (with \), and
3234 # we should not choose a depcomp mode which is confused by this.
3236 # We need to recreate these files for each test, as the compiler may
3237 # overwrite some of them when testing with obscure command lines.
3238 # This happens at least with the AIX C compiler.
3240 for i in 1 2 3 4 5 6; do
3241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243 # Solaris 8's {/usr,}/bin/sh.
3244 touch sub/conftst$i.h
3246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3250 # after this tag, mechanisms are not by side-effect, so they'll
3251 # only be used when explicitly requested
3252 if test "x$enable_dependency_tracking" = xyes; then
3260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261 # mode. It turns out that the SunPro C++ compiler does not properly
3262 # handle `-M -o', and we need to detect this.
3263 if depmode=$depmode \
3264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267 >/dev/null 2>conftest.err &&
3268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271 # icc doesn't choke on unknown options, it will just issue warnings
3272 # or remarks (even with -Werror). So we grep stderr for any message
3273 # that says an option was ignored or not supported.
3274 # When given -MP, icc 7.0 and 7.1 complain thusly:
3275 # icc: Command line warning: ignoring option '-M'; no argument required
3276 # The diagnosis changed in icc 8.0:
3277 # icc: Command line remark: option '-MP' not supported
3278 if (grep 'ignoring option' conftest.err ||
3279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280 am_cv_CXX_dependencies_compiler_type=$depmode
3289 am_cv_CXX_dependencies_compiler_type=none
3293 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3294 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3295 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3300 test "x$enable_dependency_tracking" != xno \
3301 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3302 am__fastdepCXX_TRUE=
3303 am__fastdepCXX_FALSE='#'
3305 am__fastdepCXX_TRUE='#'
3306 am__fastdepCXX_FALSE=
3310 # Check whether --enable-shared was given.
3311 if test "${enable_shared+set}" = set; then
3312 enableval=$enable_shared; p=${PACKAGE-default}
3314 yes) enable_shared=yes ;;
3315 no) enable_shared=no ;;
3318 # Look at the argument we got. We use all the common list separators.
3319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3320 for pkg in $enableval; do
3322 if test "X$pkg" = "X$p"; then
3334 # Check whether --enable-static was given.
3335 if test "${enable_static+set}" = set; then
3336 enableval=$enable_static; p=${PACKAGE-default}
3338 yes) enable_static=yes ;;
3339 no) enable_static=no ;;
3342 # Look at the argument we got. We use all the common list separators.
3343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344 for pkg in $enableval; do
3346 if test "X$pkg" = "X$p"; then
3358 # Check whether --enable-fast-install was given.
3359 if test "${enable_fast_install+set}" = set; then
3360 enableval=$enable_fast_install; p=${PACKAGE-default}
3362 yes) enable_fast_install=yes ;;
3363 no) enable_fast_install=no ;;
3365 enable_fast_install=no
3366 # Look at the argument we got. We use all the common list separators.
3367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3368 for pkg in $enableval; do
3370 if test "X$pkg" = "X$p"; then
3371 enable_fast_install=yes
3378 enable_fast_install=yes
3382 # Make sure we can run config.sub.
3383 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3384 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3385 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3386 { (exit 1); exit 1; }; }
3388 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3389 $as_echo_n "checking build system type... " >&6; }
3390 if test "${ac_cv_build+set}" = set; then
3391 $as_echo_n "(cached) " >&6
3393 ac_build_alias=$build_alias
3394 test "x$ac_build_alias" = x &&
3395 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3396 test "x$ac_build_alias" = x &&
3397 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3398 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3399 { (exit 1); exit 1; }; }
3400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3401 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3402 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3403 { (exit 1); exit 1; }; }
3406 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3407 $as_echo "$ac_cv_build" >&6; }
3408 case $ac_cv_build in
3410 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3411 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3412 { (exit 1); exit 1; }; };;
3415 ac_save_IFS=$IFS; IFS='-'
3421 # Remember, the first character of IFS is used to create $*,
3422 # except with old shells:
3425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3428 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3429 $as_echo_n "checking host system type... " >&6; }
3430 if test "${ac_cv_host+set}" = set; then
3431 $as_echo_n "(cached) " >&6
3433 if test "x$host_alias" = x; then
3434 ac_cv_host=$ac_cv_build
3436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3437 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3438 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3439 { (exit 1); exit 1; }; }
3443 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3444 $as_echo "$ac_cv_host" >&6; }
3447 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3448 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3449 { (exit 1); exit 1; }; };;
3452 ac_save_IFS=$IFS; IFS='-'
3458 # Remember, the first character of IFS is used to create $*,
3459 # except with old shells:
3462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 if test -n "$CC"; then
3500 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3501 $as_echo "$CC" >&6; }
3503 { $as_echo "$as_me:$LINENO: result: no" >&5
3504 $as_echo "no" >&6; }
3509 if test -z "$ac_cv_prog_CC"; then
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512 set dummy gcc; ac_word=$2
3513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 $as_echo "$ac_ct_CC" >&6; }
3543 { $as_echo "$as_me:$LINENO: result: no" >&5
3544 $as_echo "no" >&6; }
3547 if test "x$ac_ct_CC" = x; then
3550 case $cross_compiling:$ac_tool_warned in
3552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3562 if test -z "$CC"; then
3563 if test -n "$ac_tool_prefix"; then
3564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3565 set dummy ${ac_tool_prefix}cc; ac_word=$2
3566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_CC+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_CC="${ac_tool_prefix}cc"
3582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 if test -n "$CC"; then
3593 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3594 $as_echo "$CC" >&6; }
3596 { $as_echo "$as_me:$LINENO: result: no" >&5
3597 $as_echo "no" >&6; }
3603 if test -z "$CC"; then
3604 # Extract the first word of "cc", so it can be a program name with args.
3605 set dummy cc; ac_word=$2
3606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if test "${ac_cv_prog_CC+set}" = set; then
3609 $as_echo_n "(cached) " >&6
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3623 ac_prog_rejected=yes
3627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 if test $ac_prog_rejected = yes; then
3635 # We found a bogon in the path, so make sure we never use it.
3636 set dummy $ac_cv_prog_CC
3638 if test $# != 0; then
3639 # We chose a different compiler from the bogus one.
3640 # However, it has the same basename, so the bogon will be chosen
3641 # first if we set CC to just the basename; use the full file name.
3643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3649 if test -n "$CC"; then
3650 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3651 $as_echo "$CC" >&6; }
3653 { $as_echo "$as_me:$LINENO: result: no" >&5
3654 $as_echo "no" >&6; }
3659 if test -z "$CC"; then
3660 if test -n "$ac_tool_prefix"; then
3661 for ac_prog in cl.exe
3663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if test "${ac_cv_prog_CC+set}" = set; then
3668 $as_echo_n "(cached) " >&6
3670 if test -n "$CC"; then
3671 ac_cv_prog_CC="$CC" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 if test -n "$CC"; then
3692 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3695 { $as_echo "$as_me:$LINENO: result: no" >&5
3696 $as_echo "no" >&6; }
3700 test -n "$CC" && break
3703 if test -z "$CC"; then
3705 for ac_prog in cl.exe
3707 # Extract the first word of "$ac_prog", so it can be a program name with args.
3708 set dummy $ac_prog; ac_word=$2
3709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$ac_ct_CC"; then
3715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_ac_ct_CC="$ac_prog"
3725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3735 if test -n "$ac_ct_CC"; then
3736 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3737 $as_echo "$ac_ct_CC" >&6; }
3739 { $as_echo "$as_me:$LINENO: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$ac_ct_CC" && break
3747 if test "x$ac_ct_CC" = x; then
3750 case $cross_compiling:$ac_tool_warned in
3752 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3754 ac_tool_warned=yes ;;
3763 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3766 See \`config.log' for more details." >&5
3767 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details." >&2;}
3769 { (exit 1); exit 1; }; }; }
3771 # Provide some information about the compiler.
3772 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3775 { (ac_try="$ac_compiler --version >&5"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3781 $as_echo "$ac_try_echo") >&5
3782 (eval "$ac_compiler --version >&5") 2>&5
3784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }
3786 { (ac_try="$ac_compiler -v >&5"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3792 $as_echo "$ac_try_echo") >&5
3793 (eval "$ac_compiler -v >&5") 2>&5
3795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }
3797 { (ac_try="$ac_compiler -V >&5"
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3803 $as_echo "$ac_try_echo") >&5
3804 (eval "$ac_compiler -V >&5") 2>&5
3806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
3809 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3810 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3811 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3812 $as_echo_n "(cached) " >&6
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3839 $as_echo "$ac_try_echo") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && {
3847 test -z "$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 } && test -s conftest.$ac_objext; then
3852 $as_echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if test "${ac_cv_prog_cc_g+set}" = set; then
3874 $as_echo_n "(cached) " >&6
3876 ac_save_c_werror_flag=$ac_c_werror_flag
3877 ac_c_werror_flag=yes
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3905 grep -v '^ *+' conftest.er1 >conftest.err
3907 cat conftest.err >&5
3908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3941 $as_echo "$ac_try_echo") >&5
3942 (eval "$ac_compile") 2>conftest.er1
3944 grep -v '^ *+' conftest.er1 >conftest.err
3946 cat conftest.err >&5
3947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && {
3949 test -z "$ac_c_werror_flag" ||
3950 test ! -s conftest.err
3951 } && test -s conftest.$ac_objext; then
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 ac_c_werror_flag=$ac_save_c_werror_flag
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3974 rm -f conftest.$ac_objext
3975 if { (ac_try="$ac_compile"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3981 $as_echo "$ac_try_echo") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3984 grep -v '^ *+' conftest.er1 >conftest.err
3986 cat conftest.err >&5
3987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && {
3989 test -z "$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 } && test -s conftest.$ac_objext; then
3994 $as_echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_c_werror_flag=$ac_save_c_werror_flag
4009 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4010 $as_echo "$ac_cv_prog_cc_g" >&6; }
4011 if test "$ac_test_CFLAGS" = set; then
4012 CFLAGS=$ac_save_CFLAGS
4013 elif test $ac_cv_prog_cc_g = yes; then
4014 if test "$GCC" = yes; then
4020 if test "$GCC" = yes; then
4026 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4027 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4028 if test "${ac_cv_prog_cc_c89+set}" = set; then
4029 $as_echo_n "(cached) " >&6
4031 ac_cv_prog_cc_c89=no
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4041 #include <sys/types.h>
4042 #include <sys/stat.h>
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4057 s = g (p, va_arg (v,int));
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4063 function prototypes and stuff, but not '\xHH' hex character constants.
4064 These don't provoke an error unfortunately, instead are silently treated
4065 as 'x'. The following induces an error, until -std is added to get
4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4067 array size at least. It's necessary to write '\x00'==0 to get something
4068 that's true only with -std. */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072 inside strings and character constants. */
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4093 CC="$ac_save_CC $ac_arg"
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4101 $as_echo "$ac_try_echo") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } && {
4109 test -z "$ac_c_werror_flag" ||
4110 test ! -s conftest.err
4111 } && test -s conftest.$ac_objext; then
4112 ac_cv_prog_cc_c89=$ac_arg
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 rm -f conftest.$ac_ext
4128 case "x$ac_cv_prog_cc_c89" in
4130 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4133 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c89"
4137 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 depcc="$CC" am_compiler_list=
4150 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4151 $as_echo_n "checking dependency style of $depcc... " >&6; }
4152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4153 $as_echo_n "(cached) " >&6
4155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156 # We make a subdir and do the tests there. Otherwise we can end up
4157 # making bogus files that we don't know about and never remove. For
4158 # instance it was reported that on HP-UX the gcc test will end up
4159 # making a dummy file named `D' -- because `-MD' means `put the output
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4178 for depmode in $am_compiler_list; do
4179 # Setup a source with many dependencies, because some compilers
4180 # like to wrap large dependency lists on column 80 (with \), and
4181 # we should not choose a depcomp mode which is confused by this.
4183 # We need to recreate these files for each test, as the compiler may
4184 # overwrite some of them when testing with obscure command lines.
4185 # This happens at least with the AIX C compiler.
4187 for i in 1 2 3 4 5 6; do
4188 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4189 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4190 # Solaris 8's {/usr,}/bin/sh.
4191 touch sub/conftst$i.h
4193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4197 # after this tag, mechanisms are not by side-effect, so they'll
4198 # only be used when explicitly requested
4199 if test "x$enable_dependency_tracking" = xyes; then
4207 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4208 # mode. It turns out that the SunPro C++ compiler does not properly
4209 # handle `-M -o', and we need to detect this.
4210 if depmode=$depmode \
4211 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4213 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4214 >/dev/null 2>conftest.err &&
4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218 # icc doesn't choke on unknown options, it will just issue warnings
4219 # or remarks (even with -Werror). So we grep stderr for any message
4220 # that says an option was ignored or not supported.
4221 # When given -MP, icc 7.0 and 7.1 complain thusly:
4222 # icc: Command line warning: ignoring option '-M'; no argument required
4223 # The diagnosis changed in icc 8.0:
4224 # icc: Command line remark: option '-MP' not supported
4225 if (grep 'ignoring option' conftest.err ||
4226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227 am_cv_CC_dependencies_compiler_type=$depmode
4236 am_cv_CC_dependencies_compiler_type=none
4240 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4242 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247 test "x$enable_dependency_tracking" != xno \
4248 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4250 am__fastdepCC_FALSE='#'
4252 am__fastdepCC_TRUE='#'
4253 am__fastdepCC_FALSE=
4257 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4258 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4259 if test "${lt_cv_path_SED+set}" = set; then
4260 $as_echo_n "(cached) " >&6
4262 # Loop through the user's path and test for sed and gsed.
4263 # Then use that list of sed's as ones to test for truncation.
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir=.
4269 for lt_ac_prog in sed gsed; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4272 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4280 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4281 # along with /bin/sed that truncates output.
4282 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4283 test ! -f $lt_ac_sed && continue
4284 cat /dev/null > conftest.in
4286 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4287 # Check for GNU sed and select it if it is found.
4288 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4289 lt_cv_path_SED=$lt_ac_sed
4293 cat conftest.in conftest.in >conftest.tmp
4294 mv conftest.tmp conftest.in
4295 cp conftest.in conftest.nl
4297 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4298 cmp -s conftest.out conftest.nl || break
4299 # 10000 chars as input seems more than enough
4300 test $lt_ac_count -gt 10 && break
4301 lt_ac_count=`expr $lt_ac_count + 1`
4302 if test $lt_ac_count -gt $lt_ac_max; then
4303 lt_ac_max=$lt_ac_count
4304 lt_cv_path_SED=$lt_ac_sed
4313 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4314 $as_echo "$SED" >&6; }
4316 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4317 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4318 if test "${ac_cv_path_GREP+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4321 if test -z "$GREP"; then
4322 ac_path_GREP_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328 test -z "$as_dir" && as_dir=.
4329 for ac_prog in grep ggrep; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4332 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4333 # Check for GNU ac_path_GREP and select it if it is found.
4334 # Check for GNU $ac_path_GREP
4335 case `"$ac_path_GREP" --version 2>&1` in
4337 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4340 $as_echo_n 0123456789 >"conftest.in"
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 $as_echo 'GREP' >> "conftest.nl"
4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 ac_count=`expr $ac_count + 1`
4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_GREP="$ac_path_GREP"
4353 ac_path_GREP_max=$ac_count
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 $ac_path_GREP_found && break 3
4366 if test -z "$ac_cv_path_GREP"; then
4367 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4368 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4369 { (exit 1); exit 1; }; }
4372 ac_cv_path_GREP=$GREP
4376 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4377 $as_echo "$ac_cv_path_GREP" >&6; }
4378 GREP="$ac_cv_path_GREP"
4381 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4382 $as_echo_n "checking for egrep... " >&6; }
4383 if test "${ac_cv_path_EGREP+set}" = set; then
4384 $as_echo_n "(cached) " >&6
4386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4387 then ac_cv_path_EGREP="$GREP -E"
4389 if test -z "$EGREP"; then
4390 ac_path_EGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in egrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4401 # Check for GNU ac_path_EGREP and select it if it is found.
4402 # Check for GNU $ac_path_EGREP
4403 case `"$ac_path_EGREP" --version 2>&1` in
4405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4408 $as_echo_n 0123456789 >"conftest.in"
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'EGREP' >> "conftest.nl"
4415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 ac_count=`expr $ac_count + 1`
4418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_EGREP="$ac_path_EGREP"
4421 ac_path_EGREP_max=$ac_count
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 $ac_path_EGREP_found && break 3
4434 if test -z "$ac_cv_path_EGREP"; then
4435 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4436 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4437 { (exit 1); exit 1; }; }
4440 ac_cv_path_EGREP=$EGREP
4445 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4446 $as_echo "$ac_cv_path_EGREP" >&6; }
4447 EGREP="$ac_cv_path_EGREP"
4451 # Check whether --with-gnu-ld was given.
4452 if test "${with_gnu_ld+set}" = set; then
4453 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4459 if test "$GCC" = yes; then
4460 # Check if gcc -print-prog-name=ld gives a path.
4461 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4462 $as_echo_n "checking for ld used by $CC... " >&6; }
4465 # gcc leaves a trailing carriage return which upsets mingw
4466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4471 # Accept absolute paths.
4473 re_direlt='/[^/][^/]*/\.\./'
4474 # Canonicalize the pathname of ld
4475 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4477 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4479 test -z "$LD" && LD="$ac_prog"
4482 # If it fails, then pretend we aren't using GCC.
4486 # If it is relative, then search for the first ld in PATH.
4490 elif test "$with_gnu_ld" = yes; then
4491 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4492 $as_echo_n "checking for GNU ld... " >&6; }
4494 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4495 $as_echo_n "checking for non-GNU ld... " >&6; }
4497 if test "${lt_cv_path_LD+set}" = set; then
4498 $as_echo_n "(cached) " >&6
4500 if test -z "$LD"; then
4501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4502 for ac_dir in $PATH; do
4504 test -z "$ac_dir" && ac_dir=.
4505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4506 lt_cv_path_LD="$ac_dir/$ac_prog"
4507 # Check to see if the program is GNU ld. I'd rather use --version,
4508 # but apparently some variants of GNU ld only accept -v.
4509 # Break only if it was the GNU/non-GNU ld that we prefer.
4510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4511 *GNU* | *'with BFD'*)
4512 test "$with_gnu_ld" != no && break
4515 test "$with_gnu_ld" != yes && break
4522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4527 if test -n "$LD"; then
4528 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4529 $as_echo "$LD" >&6; }
4531 { $as_echo "$as_me:$LINENO: result: no" >&5
4532 $as_echo "no" >&6; }
4534 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4535 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4536 { (exit 1); exit 1; }; }
4537 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4538 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4540 $as_echo_n "(cached) " >&6
4542 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4543 case `$LD -v 2>&1 </dev/null` in
4544 *GNU* | *'with BFD'*)
4545 lt_cv_prog_gnu_ld=yes
4548 lt_cv_prog_gnu_ld=no
4552 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4553 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4554 with_gnu_ld=$lt_cv_prog_gnu_ld
4557 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4559 if test "${lt_cv_ld_reload_flag+set}" = set; then
4560 $as_echo_n "(cached) " >&6
4562 lt_cv_ld_reload_flag='-r'
4564 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4566 reload_flag=$lt_cv_ld_reload_flag
4567 case $reload_flag in
4569 *) reload_flag=" $reload_flag" ;;
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4574 if test "$GCC" = yes; then
4575 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4582 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4583 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4584 if test "${lt_cv_path_NM+set}" = set; then
4585 $as_echo_n "(cached) " >&6
4587 if test -n "$NM"; then
4588 # Let the user override the test.
4591 lt_nm_to_check="${ac_tool_prefix}nm"
4592 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4593 lt_nm_to_check="$lt_nm_to_check nm"
4595 for lt_tmp_nm in $lt_nm_to_check; do
4596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4597 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4599 test -z "$ac_dir" && ac_dir=.
4600 tmp_nm="$ac_dir/$lt_tmp_nm"
4601 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4602 # Check to see if the nm accepts a BSD-compat flag.
4603 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4604 # nm: unknown option "B" ignored
4605 # Tru64's nm complains that /dev/null is an invalid object file
4606 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4607 */dev/null* | *'Invalid file or object type'*)
4608 lt_cv_path_NM="$tmp_nm -B"
4612 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4614 lt_cv_path_NM="$tmp_nm -p"
4618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4619 continue # so that we can try to find one that supports BSD flags
4628 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4631 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4632 $as_echo "$lt_cv_path_NM" >&6; }
4635 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4636 $as_echo_n "checking whether ln -s works... " >&6; }
4638 if test "$LN_S" = "ln -s"; then
4639 { $as_echo "$as_me:$LINENO: result: yes" >&5
4640 $as_echo "yes" >&6; }
4642 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4643 $as_echo "no, using $LN_S" >&6; }
4646 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4647 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4648 if test "${lt_cv_deplibs_check_method+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4651 lt_cv_file_magic_cmd='$MAGIC_CMD'
4652 lt_cv_file_magic_test_file=
4653 lt_cv_deplibs_check_method='unknown'
4654 # Need to set the preceding variable on all platforms that support
4655 # interlibrary dependencies.
4656 # 'none' -- dependencies not supported.
4657 # `unknown' -- same as none, but documents that we really don't know.
4658 # 'pass_all' -- all dependencies passed with no checks.
4659 # 'test_compile' -- check by making test program.
4660 # 'file_magic [[regex]]' -- check by looking for files in library path
4661 # which responds to the $file_magic_cmd with a given extended regex.
4662 # If you have `file' or equivalent on your system and you're not sure
4663 # whether `pass_all' will *always* work, you probably want this one.
4667 lt_cv_deplibs_check_method=pass_all
4671 lt_cv_deplibs_check_method=pass_all
4675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4676 lt_cv_file_magic_cmd='/usr/bin/file -L'
4677 lt_cv_file_magic_test_file=/shlib/libc.so
4681 # func_win32_libid is a shell function defined in ltmain.sh
4682 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4683 lt_cv_file_magic_cmd='func_win32_libid'
4687 # Base MSYS/MinGW do not provide the 'file' command needed by
4688 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4689 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4690 lt_cv_file_magic_cmd='$OBJDUMP -f'
4693 darwin* | rhapsody*)
4694 lt_cv_deplibs_check_method=pass_all
4697 freebsd* | kfreebsd*-gnu | dragonfly*)
4698 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4701 # Not sure whether the presence of OpenBSD here was a mistake.
4702 # Let's accept both of them until this is cleared up.
4703 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4704 lt_cv_file_magic_cmd=/usr/bin/file
4705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4709 lt_cv_deplibs_check_method=pass_all
4714 lt_cv_deplibs_check_method=pass_all
4717 hpux10.20* | hpux11*)
4718 lt_cv_file_magic_cmd=/usr/bin/file
4721 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4722 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4725 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]'
4726 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4730 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4736 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4740 irix5* | irix6* | nonstopux*)
4742 *-32|*"-32 ") libmagic=32-bit;;
4743 *-n32|*"-n32 ") libmagic=N32;;
4744 *-64|*"-64 ") libmagic=64-bit;;
4745 *) libmagic=never-match;;
4747 lt_cv_deplibs_check_method=pass_all
4750 # This must be Linux ELF.
4752 lt_cv_deplibs_check_method=pass_all
4756 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4764 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4765 lt_cv_file_magic_cmd=/usr/bin/file
4766 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4770 lt_cv_deplibs_check_method=unknown
4774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4781 osf3* | osf4* | osf5*)
4782 lt_cv_deplibs_check_method=pass_all
4786 lt_cv_deplibs_check_method=pass_all
4790 case $host_vendor in
4792 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]'
4793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4796 lt_cv_deplibs_check_method=pass_all
4799 lt_cv_file_magic_cmd='/bin/file'
4800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4803 lt_cv_file_magic_cmd='/bin/file'
4804 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4805 lt_cv_file_magic_test_file=/lib/libc.so
4808 lt_cv_deplibs_check_method=pass_all
4811 lt_cv_deplibs_check_method=pass_all
4816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4817 lt_cv_deplibs_check_method=pass_all
4822 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4823 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4824 file_magic_cmd=$lt_cv_file_magic_cmd
4825 deplibs_check_method=$lt_cv_deplibs_check_method
4826 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4831 # If no C compiler was specified, use CC.
4834 # If no C compiler flags were specified, use CFLAGS.
4835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4837 # Allow CC to be a program name with arguments.
4841 # Check whether --enable-libtool-lock was given.
4842 if test "${enable_libtool_lock+set}" = set; then
4843 enableval=$enable_libtool_lock;
4846 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4848 # Some flags need to be propagated to the compiler or linker for good
4852 # Find out which ABI we are using.
4853 echo 'int i;' > conftest.$ac_ext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; then
4859 case `/usr/bin/file conftest.$ac_objext` in
4871 # Find out which ABI we are using.
4872 echo '#line 4872 "configure"' > conftest.$ac_ext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; then
4878 if test "$lt_cv_prog_gnu_ld" = yes; then
4879 case `/usr/bin/file conftest.$ac_objext` in
4881 LD="${LD-ld} -melf32bsmip"
4884 LD="${LD-ld} -melf32bmipn32"
4887 LD="${LD-ld} -melf64bmip"
4891 case `/usr/bin/file conftest.$ac_objext` in
4907 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4908 # Find out which ABI we are using.
4909 echo 'int i;' > conftest.$ac_ext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; then
4915 case `/usr/bin/file conftest.o` in
4919 LD="${LD-ld} -m elf_i386"
4921 ppc64-*linux*|powerpc64-*linux*)
4922 LD="${LD-ld} -m elf32ppclinux"
4925 LD="${LD-ld} -m elf_s390"
4928 LD="${LD-ld} -m elf32_sparc"
4935 LD="${LD-ld} -m elf_x86_64"
4937 ppc*-*linux*|powerpc*-*linux*)
4938 LD="${LD-ld} -m elf64ppc"
4941 LD="${LD-ld} -m elf64_s390"
4944 LD="${LD-ld} -m elf64_sparc"
4954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4955 SAVE_CFLAGS="$CFLAGS"
4956 CFLAGS="$CFLAGS -belf"
4957 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4958 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4959 if test "${lt_cv_cc_needs_belf+set}" = set; then
4960 $as_echo_n "(cached) " >&6
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 cat >conftest.$ac_ext <<_ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4983 rm -f conftest.$ac_objext conftest$ac_exeext
4984 if { (ac_try="$ac_link"
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_link") 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest$ac_exeext && {
5001 test "$cross_compiling" = yes ||
5002 $as_test_x conftest$ac_exeext
5004 lt_cv_cc_needs_belf=yes
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 lt_cv_cc_needs_belf=no
5012 rm -rf conftest.dSYM
5013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5014 conftest$ac_exeext conftest.$ac_ext
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5023 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5024 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5025 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5026 CFLAGS="$SAVE_CFLAGS"
5030 # Find out which ABI we are using.
5031 echo 'int i;' > conftest.$ac_ext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; then
5037 case `/usr/bin/file conftest.o` in
5039 case $lt_cv_prog_gnu_ld in
5040 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5041 *) LD="${LD-ld} -64" ;;
5052 need_locks="$enable_libtool_lock"
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5061 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5062 # On Suns, sometimes $CPP names a directory.
5063 if test -n "$CPP" && test -d "$CPP"; then
5066 if test -z "$CPP"; then
5067 if test "${ac_cv_prog_CPP+set}" = set; then
5068 $as_echo_n "(cached) " >&6
5070 # Double quotes because CPP needs to be expanded
5071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5074 for ac_c_preproc_warn_flag in '' yes
5076 # Use a header file that comes with gcc, so configuring glibc
5077 # with a fresh cross-compiler works.
5078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079 # <limits.h> exists even on freestanding compilers.
5080 # On the NeXT, cc -E runs the code through the compiler's parser,
5081 # not just through cpp. "Syntax error" is here to catch this case.
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5089 # include <limits.h>
5091 # include <assert.h>
5095 if { (ac_try="$ac_cpp conftest.$ac_ext"
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5101 $as_echo "$ac_try_echo") >&5
5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Broken: fails on valid input.
5121 rm -f conftest.err conftest.$ac_ext
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat >conftest.$ac_ext <<_ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <ac_nonexistent.h>
5133 if { (ac_try="$ac_cpp conftest.$ac_ext"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139 $as_echo "$ac_try_echo") >&5
5140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null && {
5147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5150 # Broken: success on invalid input.
5153 $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 # Passes both tests.
5161 rm -f conftest.err conftest.$ac_ext
5164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5165 rm -f conftest.err conftest.$ac_ext
5166 if $ac_preproc_ok; then
5178 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5179 $as_echo "$CPP" >&6; }
5181 for ac_c_preproc_warn_flag in '' yes
5183 # Use a header file that comes with gcc, so configuring glibc
5184 # with a fresh cross-compiler works.
5185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5186 # <limits.h> exists even on freestanding compilers.
5187 # On the NeXT, cc -E runs the code through the compiler's parser,
5188 # not just through cpp. "Syntax error" is here to catch this case.
5189 cat >conftest.$ac_ext <<_ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5196 # include <limits.h>
5198 # include <assert.h>
5202 if { (ac_try="$ac_cpp conftest.$ac_ext"
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5211 grep -v '^ *+' conftest.er1 >conftest.err
5213 cat conftest.err >&5
5214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } >/dev/null && {
5216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 # Broken: fails on valid input.
5228 rm -f conftest.err conftest.$ac_ext
5230 # OK, works on sane cases. Now check whether nonexistent headers
5231 # can be detected and how.
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <ac_nonexistent.h>
5240 if { (ac_try="$ac_cpp conftest.$ac_ext"
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5246 $as_echo "$ac_try_echo") >&5
5247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev/null && {
5254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5255 test ! -s conftest.err
5257 # Broken: success on invalid input.
5260 $as_echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 # Passes both tests.
5268 rm -f conftest.err conftest.$ac_ext
5271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272 rm -f conftest.err conftest.$ac_ext
5273 if $ac_preproc_ok; then
5276 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5278 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5279 See \`config.log' for more details." >&5
5280 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5281 See \`config.log' for more details." >&2;}
5282 { (exit 1); exit 1; }; }; }
5286 ac_cpp='$CPP $CPPFLAGS'
5287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5293 $as_echo_n "checking for ANSI C header files... " >&6; }
5294 if test "${ac_cv_header_stdc+set}" = set; then
5295 $as_echo_n "(cached) " >&6
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5316 rm -f conftest.$ac_objext
5317 if { (ac_try="$ac_compile"
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324 (eval "$ac_compile") 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest.$ac_objext; then
5334 ac_cv_header_stdc=yes
5336 $as_echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 ac_cv_header_stdc=no
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 if test $ac_cv_header_stdc = yes; then
5345 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356 $EGREP "memchr" >/dev/null 2>&1; then
5359 ac_cv_header_stdc=no
5365 if test $ac_cv_header_stdc = yes; then
5366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "free" >/dev/null 2>&1; then
5380 ac_cv_header_stdc=no
5386 if test $ac_cv_header_stdc = yes; then
5387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388 if test "$cross_compiling" = yes; then
5391 cat >conftest.$ac_ext <<_ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5399 #if ((' ' & 0x0FF) == 0x020)
5400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 # define ISLOWER(c) \
5404 (('a' <= (c) && (c) <= 'i') \
5405 || ('j' <= (c) && (c) <= 'r') \
5406 || ('s' <= (c) && (c) <= 'z'))
5407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5415 for (i = 0; i < 256; i++)
5416 if (XOR (islower (i), ISLOWER (i))
5417 || toupper (i) != TOUPPER (i))
5422 rm -f conftest$ac_exeext
5423 if { (ac_try="$ac_link"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429 $as_echo "$ac_try_echo") >&5
5430 (eval "$ac_link") 2>&5
5432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5434 { (case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5439 $as_echo "$ac_try_echo") >&5
5440 (eval "$ac_try") 2>&5
5442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5446 $as_echo "$as_me: program exited with status $ac_status" >&5
5447 $as_echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5451 ac_cv_header_stdc=no
5453 rm -rf conftest.dSYM
5454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5461 $as_echo "$ac_cv_header_stdc" >&6; }
5462 if test $ac_cv_header_stdc = yes; then
5464 cat >>confdefs.h <<\_ACEOF
5465 #define STDC_HEADERS 1
5470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5481 inttypes.h stdint.h unistd.h
5483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 $as_echo_n "checking for $ac_header... " >&6; }
5486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487 $as_echo_n "(cached) " >&6
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 $ac_includes_default
5497 #include <$ac_header>
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5506 $as_echo "$ac_try_echo") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 eval "$as_ac_Header=yes"
5519 $as_echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 eval "$as_ac_Header=no"
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 ac_res=`eval 'as_val=${'$as_ac_Header'}
5528 $as_echo "$as_val"'`
5529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5530 $as_echo "$ac_res" >&6; }
5531 as_val=`eval 'as_val=${'$as_ac_Header'}
5532 $as_echo "$as_val"'`
5533 if test "x$as_val" = x""yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5544 for ac_header in dlfcn.h
5546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 $as_echo_n "checking for $ac_header... " >&6; }
5550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5551 $as_echo_n "(cached) " >&6
5553 ac_res=`eval 'as_val=${'$as_ac_Header'}
5554 $as_echo "$as_val"'`
5555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5556 $as_echo "$ac_res" >&6; }
5558 # Is the header compilable?
5559 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5560 $as_echo_n "checking $ac_header usability... " >&6; }
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 #include <$ac_header>
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5577 $as_echo "$ac_try_echo") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5580 grep -v '^ *+' conftest.er1 >conftest.err
5582 cat conftest.err >&5
5583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
5588 ac_header_compiler=yes
5590 $as_echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_header_compiler=no
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5598 $as_echo "$ac_header_compiler" >&6; }
5600 # Is the header present?
5601 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5602 $as_echo_n "checking $ac_header presence... " >&6; }
5603 cat >conftest.$ac_ext <<_ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include <$ac_header>
5611 if { (ac_try="$ac_cpp conftest.$ac_ext"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617 $as_echo "$ac_try_echo") >&5
5618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } >/dev/null && {
5625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5628 ac_header_preproc=yes
5630 $as_echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_header_preproc=no
5636 rm -f conftest.err conftest.$ac_ext
5637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5638 $as_echo "$ac_header_preproc" >&6; }
5640 # So? What about this header?
5641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5644 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5647 ac_header_preproc=yes
5650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5651 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5653 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5655 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5657 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5661 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5666 $as_echo_n "checking for $ac_header... " >&6; }
5667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5668 $as_echo_n "(cached) " >&6
5670 eval "$as_ac_Header=\$ac_header_preproc"
5672 ac_res=`eval 'as_val=${'$as_ac_Header'}
5673 $as_echo "$as_val"'`
5674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5675 $as_echo "$ac_res" >&6; }
5678 as_val=`eval 'as_val=${'$as_ac_Header'}
5679 $as_echo "$as_val"'`
5680 if test "x$as_val" = x""yes; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5691 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5692 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5693 (test "X$CXX" != "Xg++"))) ; then
5695 ac_cpp='$CXXCPP $CPPFLAGS'
5696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5699 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5700 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5701 if test -z "$CXXCPP"; then
5702 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5703 $as_echo_n "(cached) " >&6
5705 # Double quotes because CXXCPP needs to be expanded
5706 for CXXCPP in "$CXX -E" "/lib/cpp"
5709 for ac_cxx_preproc_warn_flag in '' yes
5711 # Use a header file that comes with gcc, so configuring glibc
5712 # with a fresh cross-compiler works.
5713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5714 # <limits.h> exists even on freestanding compilers.
5715 # On the NeXT, cc -E runs the code through the compiler's parser,
5716 # not just through cpp. "Syntax error" is here to catch this case.
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5724 # include <limits.h>
5726 # include <assert.h>
5730 if { (ac_try="$ac_cpp conftest.$ac_ext"
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5736 $as_echo "$ac_try_echo") >&5
5737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } >/dev/null && {
5744 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5745 test ! -s conftest.err
5749 $as_echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 # Broken: fails on valid input.
5756 rm -f conftest.err conftest.$ac_ext
5758 # OK, works on sane cases. Now check whether nonexistent headers
5759 # can be detected and how.
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <ac_nonexistent.h>
5768 if { (ac_try="$ac_cpp conftest.$ac_ext"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5777 grep -v '^ *+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } >/dev/null && {
5782 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5783 test ! -s conftest.err
5785 # Broken: success on invalid input.
5788 $as_echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 # Passes both tests.
5796 rm -f conftest.err conftest.$ac_ext
5799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5800 rm -f conftest.err conftest.$ac_ext
5801 if $ac_preproc_ok; then
5806 ac_cv_prog_CXXCPP=$CXXCPP
5809 CXXCPP=$ac_cv_prog_CXXCPP
5811 ac_cv_prog_CXXCPP=$CXXCPP
5813 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5814 $as_echo "$CXXCPP" >&6; }
5816 for ac_cxx_preproc_warn_flag in '' yes
5818 # Use a header file that comes with gcc, so configuring glibc
5819 # with a fresh cross-compiler works.
5820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821 # <limits.h> exists even on freestanding compilers.
5822 # On the NeXT, cc -E runs the code through the compiler's parser,
5823 # not just through cpp. "Syntax error" is here to catch this case.
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5831 # include <limits.h>
5833 # include <assert.h>
5837 if { (ac_try="$ac_cpp conftest.$ac_ext"
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5843 $as_echo "$ac_try_echo") >&5
5844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5846 grep -v '^ *+' conftest.er1 >conftest.err
5848 cat conftest.err >&5
5849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } >/dev/null && {
5851 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5852 test ! -s conftest.err
5856 $as_echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 # Broken: fails on valid input.
5863 rm -f conftest.err conftest.$ac_ext
5865 # OK, works on sane cases. Now check whether nonexistent headers
5866 # can be detected and how.
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 #include <ac_nonexistent.h>
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5881 $as_echo "$ac_try_echo") >&5
5882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5884 grep -v '^ *+' conftest.er1 >conftest.err
5886 cat conftest.err >&5
5887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } >/dev/null && {
5889 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5890 test ! -s conftest.err
5892 # Broken: success on invalid input.
5895 $as_echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 # Passes both tests.
5903 rm -f conftest.err conftest.$ac_ext
5906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5907 rm -f conftest.err conftest.$ac_ext
5908 if $ac_preproc_ok; then
5911 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5913 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5914 See \`config.log' for more details." >&5
5915 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5916 See \`config.log' for more details." >&2;}
5917 { (exit 1); exit 1; }; }; }
5921 ac_cpp='$CXXCPP $CPPFLAGS'
5922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5930 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5931 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5933 if test -n "$ac_tool_prefix"; then
5934 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
5936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if test "${ac_cv_prog_F77+set}" = set; then
5941 $as_echo_n "(cached) " >&6
5943 if test -n "$F77"; then
5944 ac_cv_prog_F77="$F77" # Let the user override the test.
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 if test -n "$F77"; then
5965 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5966 $as_echo "$F77" >&6; }
5968 { $as_echo "$as_me:$LINENO: result: no" >&5
5969 $as_echo "no" >&6; }
5973 test -n "$F77" && break
5976 if test -z "$F77"; then
5978 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
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5985 $as_echo_n "(cached) " >&6
5987 if test -n "$ac_ct_F77"; then
5988 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_ac_ct_F77="$ac_prog"
5998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6008 if test -n "$ac_ct_F77"; then
6009 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6010 $as_echo "$ac_ct_F77" >&6; }
6012 { $as_echo "$as_me:$LINENO: result: no" >&5
6013 $as_echo "no" >&6; }
6017 test -n "$ac_ct_F77" && break
6020 if test "x$ac_ct_F77" = x; then
6023 case $cross_compiling:$ac_tool_warned in
6025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027 ac_tool_warned=yes ;;
6034 # Provide some information about the compiler.
6035 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6038 { (ac_try="$ac_compiler --version >&5"
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044 $as_echo "$ac_try_echo") >&5
6045 (eval "$ac_compiler --version >&5") 2>&5
6047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }
6049 { (ac_try="$ac_compiler -v >&5"
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6055 $as_echo "$ac_try_echo") >&5
6056 (eval "$ac_compiler -v >&5") 2>&5
6058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }
6060 { (ac_try="$ac_compiler -V >&5"
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6066 $as_echo "$ac_try_echo") >&5
6067 (eval "$ac_compiler -V >&5") 2>&5
6069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
6073 # If we don't use `.F' as extension, the preprocessor is not run on the
6074 # input file. (Note that this only needs to work for GNU compilers.)
6077 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6078 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6079 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6080 $as_echo_n "(cached) " >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_f77_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest.$ac_objext; then
6110 $as_echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6120 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6121 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6123 ac_test_FFLAGS=${FFLAGS+set}
6124 ac_save_FFLAGS=$FFLAGS
6126 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6127 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6128 if test "${ac_cv_prog_f77_g+set}" = set; then
6129 $as_echo_n "(cached) " >&6
6132 cat >conftest.$ac_ext <<_ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (ac_try="$ac_compile"
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6144 $as_echo "$ac_try_echo") >&5
6145 (eval "$ac_compile") 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && {
6152 test -z "$ac_f77_werror_flag" ||
6153 test ! -s conftest.err
6154 } && test -s conftest.$ac_objext; then
6155 ac_cv_prog_f77_g=yes
6157 $as_echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6167 $as_echo "$ac_cv_prog_f77_g" >&6; }
6168 if test "$ac_test_FFLAGS" = set; then
6169 FFLAGS=$ac_save_FFLAGS
6170 elif test $ac_cv_prog_f77_g = yes; then
6171 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6177 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6184 if test $ac_compiler_gnu = yes; then
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6199 # find the maximum length of command line arguments
6200 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6201 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6210 # On DJGPP, this test can blow up pretty badly due to problems in libc
6211 # (any single argument exceeding 2000 bytes causes a buffer overrun
6212 # during glob expansion). Even if it were fixed, the result of this
6213 # check would be larger than it should be.
6214 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6218 # Under GNU Hurd, this test is not required because there is
6219 # no limit to the length of command line arguments.
6220 # Libtool will interpret -1 as no limit whatsoever
6221 lt_cv_sys_max_cmd_len=-1;
6225 # On Win9x/ME, this test blows up -- it succeeds, but takes
6226 # about 5 minutes as the teststring grows exponentially.
6227 # Worse, since 9x/ME are not pre-emptively multitasking,
6228 # you end up with a "frozen" computer, even though with patience
6229 # the test eventually succeeds (with a max line length of 256k).
6230 # Instead, let's just punt: use the minimum linelength reported by
6231 # all of the supported platforms: 8192 (on NT/2K/XP).
6232 lt_cv_sys_max_cmd_len=8192;
6236 # On AmigaOS with pdksh, this test takes hours, literally.
6237 # So we just punt and use a minimum line length of 8192.
6238 lt_cv_sys_max_cmd_len=8192;
6241 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6242 # This has been around since 386BSD, at least. Likely further.
6243 if test -x /sbin/sysctl; then
6244 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6245 elif test -x /usr/sbin/sysctl; then
6246 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6248 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6250 # And add a safety zone
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6256 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6257 lt_cv_sys_max_cmd_len=196608
6261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6263 # nice to cause kernel panics so lets avoid the loop below.
6264 # First set a reasonable default.
6265 lt_cv_sys_max_cmd_len=16384
6267 if test -x /sbin/sysconfig; then
6268 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6269 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6274 lt_cv_sys_max_cmd_len=102400
6276 sysv5* | sco5v6* | sysv4.2uw2*)
6277 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6278 if test -n "$kargmax"; then
6279 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6281 lt_cv_sys_max_cmd_len=32768
6285 # If test is not a shell built-in, we'll probably end up computing a
6286 # maximum length that is only half of the actual maximum length, but
6288 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6289 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6290 = "XX$teststring") >/dev/null 2>&1 &&
6291 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6292 lt_cv_sys_max_cmd_len=$new_result &&
6293 test $i != 17 # 1/2 MB should be enough
6296 teststring=$teststring$teststring
6299 # Add a significant safety factor because C++ compilers can tack on massive
6300 # amounts of additional arguments before passing them to the linker.
6301 # It appears as though 1/2 is a usable value.
6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6308 if test -n $lt_cv_sys_max_cmd_len ; then
6309 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6310 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6312 { $as_echo "$as_me:$LINENO: result: none" >&5
6313 $as_echo "none" >&6; }
6319 # Check for command to grab the raw symbol name followed by C symbol from nm.
6320 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6321 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6322 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6323 $as_echo_n "(cached) " >&6
6326 # These are sane defaults that work on at least a few old systems.
6327 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6329 # Character class describing NM global symbol codes.
6330 symcode='[BCDEGRST]'
6332 # Regexp to match symbols that can be accessed directly from C.
6333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6335 # Transform an extracted symbol line into a proper C declaration
6336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6338 # Transform an extracted symbol line into symbol name and symbol address
6339 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'"
6341 # Define system-specific variables.
6346 cygwin* | mingw* | pw32*)
6347 symcode='[ABCDGISTW]'
6349 hpux*) # Its linker distinguishes data from code symbols
6350 if test "$host_cpu" = ia64; then
6351 symcode='[ABCDEGRST]'
6353 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6354 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'"
6357 if test "$host_cpu" = ia64; then
6358 symcode='[ABCDGIRSTW]'
6359 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6360 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'"
6364 symcode='[BCDEGRST]'
6367 symcode='[BCDEGQRST]'
6378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6386 # Handle CRLF in mingw tool chain
6390 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6394 # If we're using GNU nm, then use its standard symbol codes.
6395 case `$NM -V 2>&1` in
6396 *GNU* | *'with BFD'*)
6397 symcode='[ABCDGIRSTW]' ;;
6400 # Try without a prefix undercore, then with it.
6401 for ac_symprfx in "" "_"; do
6403 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6404 symxfrm="\\1 $ac_symprfx\\2 \\2"
6406 # Write the raw and C identifiers.
6407 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6409 # Check to see that the pipe works correctly.
6413 cat > conftest.$ac_ext <<EOF
6418 void nm_test_func(){}
6422 int main(){nm_test_var='a';nm_test_func();return(0);}
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>&5
6428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; then
6430 # Now try to grab the symbols.
6432 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6433 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && test -s "$nlist"; then
6437 # Try sorting and uniquifying the output.
6438 if sort "$nlist" | uniq > "$nlist"T; then
6439 mv -f "$nlist"T "$nlist"
6444 # Make sure that we snagged all the symbols we need.
6445 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6446 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6447 cat <<EOF > conftest.$ac_ext
6453 # Now generate the symbol file.
6454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6456 cat <<EOF >> conftest.$ac_ext
6457 #if defined (__STDC__) && __STDC__
6458 # define lt_ptr_t void *
6460 # define lt_ptr_t char *
6464 /* The mapping between symbol names and symbols. */
6469 lt_preloaded_symbols[] =
6472 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6473 cat <<\EOF >> conftest.$ac_ext
6481 # Now try linking the two files.
6482 mv conftest.$ac_objext conftstm.$ac_objext
6483 lt_save_LIBS="$LIBS"
6484 lt_save_CFLAGS="$CFLAGS"
6485 LIBS="conftstm.$ac_objext"
6486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6494 LIBS="$lt_save_LIBS"
6495 CFLAGS="$lt_save_CFLAGS"
6497 echo "cannot find nm_test_func in $nlist" >&5
6500 echo "cannot find nm_test_var in $nlist" >&5
6503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6506 echo "$progname: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6509 rm -f conftest* conftst*
6511 # Do not use the global_symbol_pipe unless it works.
6512 if test "$pipe_works" = yes; then
6515 lt_cv_sys_global_symbol_pipe=
6521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6522 lt_cv_sys_global_symbol_to_cdecl=
6524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6525 { $as_echo "$as_me:$LINENO: result: failed" >&5
6526 $as_echo "failed" >&6; }
6528 { $as_echo "$as_me:$LINENO: result: ok" >&5
6529 $as_echo "ok" >&6; }
6532 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6533 $as_echo_n "checking for objdir... " >&6; }
6534 if test "${lt_cv_objdir+set}" = set; then
6535 $as_echo_n "(cached) " >&6
6537 rm -f .libs 2>/dev/null
6538 mkdir .libs 2>/dev/null
6539 if test -d .libs; then
6542 # MS-DOS does not allow filenames that begin with a dot.
6545 rmdir .libs 2>/dev/null
6547 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6548 $as_echo "$lt_cv_objdir" >&6; }
6549 objdir=$lt_cv_objdir
6557 # AIX sometimes has problems with the GCC collect2 program. For some
6558 # reason, if we set the COLLECT_NAMES environment variable, the problems
6559 # vanish in a puff of smoke.
6560 if test "X${COLLECT_NAMES+set}" != Xset; then
6562 export COLLECT_NAMES
6567 # Sed substitution that helps us do robust quoting. It backslashifies
6568 # metacharacters that are still active within double-quoted strings.
6569 Xsed='sed -e 1s/^X//'
6570 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6572 # Same as above, but do not quote variable references.
6573 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6575 # Sed substitution to delay expansion of an escaped shell variable in a
6576 # double_quote_subst'ed string.
6577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6579 # Sed substitution to avoid accidental globbing in evaled expressions
6580 no_glob_subst='s/\*/\\\*/g'
6586 default_ofile=libtool
6587 can_build_shared=yes
6589 # All known linkers require a `.a' archive for static linking (except MSVC,
6590 # which needs '.lib').
6592 ltmain="$ac_aux_dir/ltmain.sh"
6593 ofile="$default_ofile"
6594 with_gnu_ld="$lt_cv_prog_gnu_ld"
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}ar; ac_word=$2
6599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_AR+set}" = set; then
6602 $as_echo_n "(cached) " >&6
6604 if test -n "$AR"; then
6605 ac_cv_prog_AR="$AR" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_AR="${ac_tool_prefix}ar"
6615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 if test -n "$AR"; then
6626 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6627 $as_echo "$AR" >&6; }
6629 { $as_echo "$as_me:$LINENO: result: no" >&5
6630 $as_echo "no" >&6; }
6635 if test -z "$ac_cv_prog_AR"; then
6637 # Extract the first word of "ar", so it can be a program name with args.
6638 set dummy ar; ac_word=$2
6639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6642 $as_echo_n "(cached) " >&6
6644 if test -n "$ac_ct_AR"; then
6645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_ac_ct_AR="ar"
6655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6665 if test -n "$ac_ct_AR"; then
6666 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6667 $as_echo "$ac_ct_AR" >&6; }
6669 { $as_echo "$as_me:$LINENO: result: no" >&5
6670 $as_echo "no" >&6; }
6673 if test "x$ac_ct_AR" = x; then
6676 case $cross_compiling:$ac_tool_warned in
6678 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_RANLIB+set}" = set; then
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$RANLIB"; then
6697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 RANLIB=$ac_cv_prog_RANLIB
6717 if test -n "$RANLIB"; then
6718 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6719 $as_echo "$RANLIB" >&6; }
6721 { $as_echo "$as_me:$LINENO: result: no" >&5
6722 $as_echo "no" >&6; }
6727 if test -z "$ac_cv_prog_RANLIB"; then
6728 ac_ct_RANLIB=$RANLIB
6729 # Extract the first word of "ranlib", so it can be a program name with args.
6730 set dummy ranlib; ac_word=$2
6731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6734 $as_echo_n "(cached) " >&6
6736 if test -n "$ac_ct_RANLIB"; then
6737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_prog_ac_ct_RANLIB="ranlib"
6747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6757 if test -n "$ac_ct_RANLIB"; then
6758 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6759 $as_echo "$ac_ct_RANLIB" >&6; }
6761 { $as_echo "$as_me:$LINENO: result: no" >&5
6762 $as_echo "no" >&6; }
6765 if test "x$ac_ct_RANLIB" = x; then
6768 case $cross_compiling:$ac_tool_warned in
6770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6774 RANLIB=$ac_ct_RANLIB
6777 RANLIB="$ac_cv_prog_RANLIB"
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}strip; ac_word=$2
6783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_STRIP+set}" = set; then
6786 $as_echo_n "(cached) " >&6
6788 if test -n "$STRIP"; then
6789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 STRIP=$ac_cv_prog_STRIP
6809 if test -n "$STRIP"; then
6810 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6811 $as_echo "$STRIP" >&6; }
6813 { $as_echo "$as_me:$LINENO: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_STRIP"; then
6821 # Extract the first word of "strip", so it can be a program name with args.
6822 set dummy strip; ac_word=$2
6823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$ac_ct_STRIP"; then
6829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_STRIP="strip"
6839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6849 if test -n "$ac_ct_STRIP"; then
6850 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6851 $as_echo "$ac_ct_STRIP" >&6; }
6853 { $as_echo "$as_me:$LINENO: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_STRIP" = x; then
6860 case $cross_compiling:$ac_tool_warned in
6862 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6869 STRIP="$ac_cv_prog_STRIP"
6874 old_CFLAGS="$CFLAGS"
6876 # Set sane defaults for various variables
6877 test -z "$AR" && AR=ar
6878 test -z "$AR_FLAGS" && AR_FLAGS=cru
6879 test -z "$AS" && AS=as
6880 test -z "$CC" && CC=cc
6881 test -z "$LTCC" && LTCC=$CC
6882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6883 test -z "$DLLTOOL" && DLLTOOL=dlltool
6884 test -z "$LD" && LD=ld
6885 test -z "$LN_S" && LN_S="ln -s"
6886 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6887 test -z "$NM" && NM=nm
6888 test -z "$SED" && SED=sed
6889 test -z "$OBJDUMP" && OBJDUMP=objdump
6890 test -z "$RANLIB" && RANLIB=:
6891 test -z "$STRIP" && STRIP=:
6892 test -z "$ac_objext" && ac_objext=o
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6899 if test -n "$RANLIB"; then
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6911 for cc_temp in $compiler""; do
6913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6922 # Only perform the check for file, if the check method requires it
6923 case $deplibs_check_method in
6925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6926 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6927 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6929 $as_echo_n "(cached) " >&6
6933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6936 lt_save_MAGIC_CMD="$MAGIC_CMD"
6937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6939 for ac_dir in $ac_dummy; do
6941 test -z "$ac_dir" && ac_dir=.
6942 if test -f $ac_dir/${ac_tool_prefix}file; then
6943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6944 if test -n "$file_magic_test_file"; then
6945 case $deplibs_check_method in
6947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6950 $EGREP "$file_magic_regex" > /dev/null; then
6955 *** Warning: the command libtool uses to detect shared libraries,
6956 *** $file_magic_cmd, produces output that libtool cannot recognize.
6957 *** The result is that libtool may fail to recognize shared libraries
6958 *** as such. This will affect the creation of libtool libraries that
6959 *** depend on shared libraries, but programs linked with such libtool
6960 *** libraries will work regardless of this problem. Nevertheless, you
6961 *** may want to report the problem to your system manager and/or to
6962 *** bug-libtool@gnu.org
6972 MAGIC_CMD="$lt_save_MAGIC_CMD"
6977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6978 if test -n "$MAGIC_CMD"; then
6979 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6980 $as_echo "$MAGIC_CMD" >&6; }
6982 { $as_echo "$as_me:$LINENO: result: no" >&5
6983 $as_echo "no" >&6; }
6986 if test -z "$lt_cv_path_MAGIC_CMD"; then
6987 if test -n "$ac_tool_prefix"; then
6988 { $as_echo "$as_me:$LINENO: checking for file" >&5
6989 $as_echo_n "checking for file... " >&6; }
6990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6995 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6998 lt_save_MAGIC_CMD="$MAGIC_CMD"
6999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7001 for ac_dir in $ac_dummy; do
7003 test -z "$ac_dir" && ac_dir=.
7004 if test -f $ac_dir/file; then
7005 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7006 if test -n "$file_magic_test_file"; then
7007 case $deplibs_check_method in
7009 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7012 $EGREP "$file_magic_regex" > /dev/null; then
7017 *** Warning: the command libtool uses to detect shared libraries,
7018 *** $file_magic_cmd, produces output that libtool cannot recognize.
7019 *** The result is that libtool may fail to recognize shared libraries
7020 *** as such. This will affect the creation of libtool libraries that
7021 *** depend on shared libraries, but programs linked with such libtool
7022 *** libraries will work regardless of this problem. Nevertheless, you
7023 *** may want to report the problem to your system manager and/or to
7024 *** bug-libtool@gnu.org
7034 MAGIC_CMD="$lt_save_MAGIC_CMD"
7039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7040 if test -n "$MAGIC_CMD"; then
7041 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7042 $as_echo "$MAGIC_CMD" >&6; }
7044 { $as_echo "$as_me:$LINENO: result: no" >&5
7045 $as_echo "no" >&6; }
7060 # Check whether --enable-libtool-lock was given.
7061 if test "${enable_libtool_lock+set}" = set; then
7062 enableval=$enable_libtool_lock;
7065 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7068 # Check whether --with-pic was given.
7069 if test "${with_pic+set}" = set; then
7070 withval=$with_pic; pic_mode="$withval"
7075 test -z "$pic_mode" && pic_mode=default
7077 # Use C for the default configuration in the libtool script
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7087 # Source file extension for C test sources.
7090 # Object file extension for compiled C test sources.
7094 # Code to be used in simple compile tests
7095 lt_simple_compile_test_code="int some_variable = 0;\n"
7097 # Code to be used in simple link tests
7098 lt_simple_link_test_code='int main(){return(0);}\n'
7101 # If no C compiler was specified, use CC.
7104 # If no C compiler flags were specified, use CFLAGS.
7105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7107 # Allow CC to be a program name with arguments.
7111 # save warnings/boilerplate of simple test code
7112 ac_outfile=conftest.$ac_objext
7113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7115 _lt_compiler_boilerplate=`cat conftest.err`
7118 ac_outfile=conftest.$ac_objext
7119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7121 _lt_linker_boilerplate=`cat conftest.err`
7126 lt_prog_compiler_no_builtin_flag=
7128 if test "$GCC" = yes; then
7129 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7132 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7133 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7134 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7135 $as_echo_n "(cached) " >&6
7137 lt_cv_prog_compiler_rtti_exceptions=no
7138 ac_outfile=conftest.$ac_objext
7139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7140 lt_compiler_flag="-fno-rtti -fno-exceptions"
7141 # Insert the option either (1) after the last *FLAGS variable, or
7142 # (2) before a word containing "conftest.", or (3) at the end.
7143 # Note that $ac_compile itself does not contain backslashes and begins
7144 # with a dollar sign (not a hyphen), so the echo should work correctly.
7145 # The option is referenced via a variable to avoid confusing sed.
7146 lt_compile=`echo "$ac_compile" | $SED \
7147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7149 -e 's:$: $lt_compiler_flag:'`
7150 (eval echo "\"\$as_me:7150: $lt_compile\"" >&5)
7151 (eval "$lt_compile" 2>conftest.err)
7153 cat conftest.err >&5
7154 echo "$as_me:7154: \$? = $ac_status" >&5
7155 if (exit $ac_status) && test -s "$ac_outfile"; then
7156 # The compiler can only warn and ignore the option if not recognized
7157 # So say no if there are warnings other than the usual output.
7158 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7161 lt_cv_prog_compiler_rtti_exceptions=yes
7167 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7168 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7170 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7171 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7178 lt_prog_compiler_wl=
7179 lt_prog_compiler_pic=
7180 lt_prog_compiler_static=
7182 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7183 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7185 if test "$GCC" = yes; then
7186 lt_prog_compiler_wl='-Wl,'
7187 lt_prog_compiler_static='-static'
7191 # All AIX code is PIC.
7192 if test "$host_cpu" = ia64; then
7193 # AIX 5 now supports IA64 processor
7194 lt_prog_compiler_static='-Bstatic'
7199 # FIXME: we need at least 68020 code to build shared libraries, but
7200 # adding the `-m68020' flag to GCC prevents building anything better,
7202 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7205 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7206 # PIC is the default for these OSes.
7209 mingw* | pw32* | os2*)
7210 # This hack is so that the source file can tell whether it is being
7211 # built for inclusion in a dll (and should export symbols for example).
7212 lt_prog_compiler_pic='-DDLL_EXPORT'
7215 darwin* | rhapsody*)
7216 # PIC is the default on this platform
7217 # Common symbols not allowed in MH_DYLIB files
7218 lt_prog_compiler_pic='-fno-common'
7222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7223 # Instead, we relocate shared libraries at runtime.
7227 # Just because we use GCC doesn't mean we suddenly get shared libraries
7228 # on systems that don't support them.
7229 lt_prog_compiler_can_build_shared=no
7234 if test -d /usr/nec; then
7235 lt_prog_compiler_pic=-Kconform_pic
7240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7247 lt_prog_compiler_pic='-fPIC'
7253 lt_prog_compiler_pic='-fPIC'
7257 # PORTME Check for flag to pass linker flags through the system compiler.
7260 lt_prog_compiler_wl='-Wl,'
7261 if test "$host_cpu" = ia64; then
7262 # AIX 5 now supports IA64 processor
7263 lt_prog_compiler_static='-Bstatic'
7265 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7269 # PIC is the default on this platform
7270 # Common symbols not allowed in MH_DYLIB files
7271 case $cc_basename in
7273 lt_prog_compiler_pic='-qnocommon'
7274 lt_prog_compiler_wl='-Wl,'
7279 mingw* | pw32* | os2*)
7280 # This hack is so that the source file can tell whether it is being
7281 # built for inclusion in a dll (and should export symbols for example).
7282 lt_prog_compiler_pic='-DDLL_EXPORT'
7285 hpux9* | hpux10* | hpux11*)
7286 lt_prog_compiler_wl='-Wl,'
7287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7294 lt_prog_compiler_pic='+Z'
7297 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7298 lt_prog_compiler_static='${wl}-a ${wl}archive'
7301 irix5* | irix6* | nonstopux*)
7302 lt_prog_compiler_wl='-Wl,'
7303 # PIC (with -KPIC) is the default.
7304 lt_prog_compiler_static='-non_shared'
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7313 case $cc_basename in
7315 lt_prog_compiler_wl='-Wl,'
7316 lt_prog_compiler_pic='-KPIC'
7317 lt_prog_compiler_static='-static'
7319 pgcc* | pgf77* | pgf90* | pgf95*)
7320 # Portland Group compilers (*not* the Pentium gcc compiler,
7321 # which looks to be a dead project)
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_pic='-fpic'
7324 lt_prog_compiler_static='-Bstatic'
7327 lt_prog_compiler_wl='-Wl,'
7328 # All Alpha code is PIC.
7329 lt_prog_compiler_static='-non_shared'
7334 osf3* | osf4* | osf5*)
7335 lt_prog_compiler_wl='-Wl,'
7336 # All OSF/1 code is PIC.
7337 lt_prog_compiler_static='-non_shared'
7341 lt_prog_compiler_pic='-KPIC'
7342 lt_prog_compiler_static='-Bstatic'
7343 case $cc_basename in
7345 lt_prog_compiler_wl='-Qoption ld ';;
7347 lt_prog_compiler_wl='-Wl,';;
7352 lt_prog_compiler_wl='-Qoption ld '
7353 lt_prog_compiler_pic='-PIC'
7354 lt_prog_compiler_static='-Bstatic'
7357 sysv4 | sysv4.2uw2* | sysv4.3*)
7358 lt_prog_compiler_wl='-Wl,'
7359 lt_prog_compiler_pic='-KPIC'
7360 lt_prog_compiler_static='-Bstatic'
7364 if test -d /usr/nec ;then
7365 lt_prog_compiler_pic='-Kconform_pic'
7366 lt_prog_compiler_static='-Bstatic'
7370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7371 lt_prog_compiler_wl='-Wl,'
7372 lt_prog_compiler_pic='-KPIC'
7373 lt_prog_compiler_static='-Bstatic'
7377 lt_prog_compiler_wl='-Wl,'
7378 lt_prog_compiler_can_build_shared=no
7382 lt_prog_compiler_pic='-pic'
7383 lt_prog_compiler_static='-Bstatic'
7387 lt_prog_compiler_can_build_shared=no
7392 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7393 $as_echo "$lt_prog_compiler_pic" >&6; }
7396 # Check to make sure the PIC flag actually works.
7398 if test -n "$lt_prog_compiler_pic"; then
7400 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7401 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7402 if test "${lt_prog_compiler_pic_works+set}" = set; then
7403 $as_echo_n "(cached) " >&6
7405 lt_prog_compiler_pic_works=no
7406 ac_outfile=conftest.$ac_objext
7407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7408 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7409 # Insert the option either (1) after the last *FLAGS variable, or
7410 # (2) before a word containing "conftest.", or (3) at the end.
7411 # Note that $ac_compile itself does not contain backslashes and begins
7412 # with a dollar sign (not a hyphen), so the echo should work correctly.
7413 # The option is referenced via a variable to avoid confusing sed.
7414 lt_compile=`echo "$ac_compile" | $SED \
7415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7417 -e 's:$: $lt_compiler_flag:'`
7418 (eval echo "\"\$as_me:7418: $lt_compile\"" >&5)
7419 (eval "$lt_compile" 2>conftest.err)
7421 cat conftest.err >&5
7422 echo "$as_me:7422: \$? = $ac_status" >&5
7423 if (exit $ac_status) && test -s "$ac_outfile"; then
7424 # The compiler can only warn and ignore the option if not recognized
7425 # So say no if there are warnings other than the usual output.
7426 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7429 lt_prog_compiler_pic_works=yes
7435 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7436 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7438 if test x"$lt_prog_compiler_pic_works" = xyes; then
7439 case $lt_prog_compiler_pic in
7441 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7444 lt_prog_compiler_pic=
7445 lt_prog_compiler_can_build_shared=no
7450 # For platforms which do not support PIC, -DPIC is meaningless:
7452 lt_prog_compiler_pic=
7455 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7460 # Check to make sure the static flag actually works.
7462 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7463 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7464 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7465 if test "${lt_prog_compiler_static_works+set}" = set; then
7466 $as_echo_n "(cached) " >&6
7468 lt_prog_compiler_static_works=no
7469 save_LDFLAGS="$LDFLAGS"
7470 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7471 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7472 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7473 # The linker can only warn and ignore the option if not recognized
7474 # So say no if there are warnings
7475 if test -s conftest.err; then
7476 # Append any errors to the config.log.
7477 cat conftest.err 1>&5
7478 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7480 if diff conftest.exp conftest.er2 >/dev/null; then
7481 lt_prog_compiler_static_works=yes
7484 lt_prog_compiler_static_works=yes
7488 LDFLAGS="$save_LDFLAGS"
7491 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7492 $as_echo "$lt_prog_compiler_static_works" >&6; }
7494 if test x"$lt_prog_compiler_static_works" = xyes; then
7497 lt_prog_compiler_static=
7501 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7503 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7504 $as_echo_n "(cached) " >&6
7506 lt_cv_prog_compiler_c_o=no
7507 $rm -r conftest 2>/dev/null
7511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7513 lt_compiler_flag="-o out/conftest2.$ac_objext"
7514 # Insert the option either (1) after the last *FLAGS variable, or
7515 # (2) before a word containing "conftest.", or (3) at the end.
7516 # Note that $ac_compile itself does not contain backslashes and begins
7517 # with a dollar sign (not a hyphen), so the echo should work correctly.
7518 lt_compile=`echo "$ac_compile" | $SED \
7519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7521 -e 's:$: $lt_compiler_flag:'`
7522 (eval echo "\"\$as_me:7522: $lt_compile\"" >&5)
7523 (eval "$lt_compile" 2>out/conftest.err)
7525 cat out/conftest.err >&5
7526 echo "$as_me:7526: \$? = $ac_status" >&5
7527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7529 # The compiler can only warn and ignore the option if not recognized
7530 # So say no if there are warnings
7531 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7534 lt_cv_prog_compiler_c_o=yes
7539 # SGI C++ compiler will create directory out/ii_files/ for
7540 # template instantiation
7541 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7542 $rm out/* && rmdir out
7548 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7552 hard_links="nottested"
7553 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7554 # do not overwrite the value of need_locks provided by the user
7555 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7556 $as_echo_n "checking if we can lock with hard links... " >&6; }
7559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7561 ln conftest.a conftest.b 2>&5 || hard_links=no
7562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7563 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7564 $as_echo "$hard_links" >&6; }
7565 if test "$hard_links" = no; then
7566 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7567 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7574 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7578 allow_undefined_flag=
7579 enable_shared_with_static_runtimes=no
7581 archive_expsym_cmds=
7582 old_archive_From_new_cmds=
7583 old_archive_from_expsyms_cmds=
7584 export_dynamic_flag_spec=
7585 whole_archive_flag_spec=
7586 thread_safe_flag_spec=
7587 hardcode_libdir_flag_spec=
7588 hardcode_libdir_flag_spec_ld=
7589 hardcode_libdir_separator=
7592 hardcode_shlibpath_var=unsupported
7593 link_all_deplibs=unknown
7594 hardcode_automatic=no
7597 always_export_symbols=no
7598 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7599 # include_expsyms should be a list of space-separated symbols to be *always*
7600 # included in the symbol list
7602 # exclude_expsyms can be an extended regexp of symbols to exclude
7603 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7604 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7605 # as well as any symbol that contains `d'.
7606 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7607 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7608 # platforms (ab)use it in PIC code, but their linkers get confused if
7609 # the symbol is explicitly referenced. Since portable code cannot
7610 # rely on this symbol name, it's probably fine to never include it in
7611 # preloaded symbol tables.
7612 extract_expsyms_cmds=
7613 # Just being paranoid about ensuring that cc_basename is set.
7614 for cc_temp in $compiler""; do
7616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7625 cygwin* | mingw* | pw32*)
7626 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7627 # When not using gcc, we currently assume that we are using
7628 # Microsoft Visual C++.
7629 if test "$GCC" != yes; then
7634 # we just hope/assume this is gcc and not c89 (= MSVC++)
7643 if test "$with_gnu_ld" = yes; then
7644 # If archive_cmds runs LD, not CC, wlarc should be empty
7647 # Set some defaults for GNU ld with shared library support. These
7648 # are reset later if shared libraries are not supported. Putting them
7649 # here allows them to be overridden if necessary.
7650 runpath_var=LD_RUN_PATH
7651 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7652 export_dynamic_flag_spec='${wl}--export-dynamic'
7653 # ancient GNU ld didn't support --whole-archive et. al.
7654 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7655 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7657 whole_archive_flag_spec=
7659 supports_anon_versioning=no
7660 case `$LD -v 2>/dev/null` in
7661 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7662 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7663 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7664 *\ 2.11.*) ;; # other 2.11 versions
7665 *) supports_anon_versioning=yes ;;
7668 # See if GNU ld supports shared libraries.
7670 aix3* | aix4* | aix5*)
7671 # On AIX/PPC, the GNU linker is very broken
7672 if test "$host_cpu" != ia64; then
7676 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7677 *** to be unable to reliably create shared libraries on AIX.
7678 *** Therefore, libtool is disabling shared libraries support. If you
7679 *** really care for shared libraries, you may want to modify your PATH
7680 *** so that a non-GNU linker is found, and then restart.
7687 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)'
7688 hardcode_libdir_flag_spec='-L$libdir'
7689 hardcode_minus_L=yes
7691 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7692 # that the semantics of dynamic libraries on AmigaOS, at least up
7693 # to version 4, is to share data among multiple programs linked
7694 # with the same dynamic library. Since this doesn't match the
7695 # behavior of shared libraries on other platforms, we can't use
7701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702 allow_undefined_flag=unsupported
7703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7704 # support --undefined. This deserves some investigation. FIXME
7705 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711 cygwin* | mingw* | pw32*)
7712 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7713 # as there is no search path for DLLs.
7714 hardcode_libdir_flag_spec='-L$libdir'
7715 allow_undefined_flag=unsupported
7716 always_export_symbols=no
7717 enable_shared_with_static_runtimes=yes
7718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7720 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7722 # If the export-symbols file already is a .def file (1st line
7723 # is EXPORTS), use it as is; otherwise, prepend...
7724 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7725 cp $export_symbols $output_objdir/$soname.def;
7727 echo EXPORTS > $output_objdir/$soname.def;
7728 cat $export_symbols >> $output_objdir/$soname.def;
7730 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7738 hardcode_shlibpath_var=no
7739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7740 export_dynamic_flag_spec='${wl}-E'
7741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7742 # Instead, shared libraries are loaded at an image base (0x10000000 by
7743 # default) and relocated if they conflict, which is a slow very memory
7744 # consuming and fragmenting process. To avoid this, we pick a random,
7745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7748 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'
7752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7754 case $cc_basename,$host_cpu in
7755 pgcc*) # Portland Group C compiler
7756 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'
7757 tmp_addflag=' $pic_flag'
7759 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7760 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'
7761 tmp_addflag=' $pic_flag -Mnomain' ;;
7762 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7763 tmp_addflag=' -i_dynamic' ;;
7764 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7765 tmp_addflag=' -i_dynamic -nofor_main' ;;
7766 ifc* | ifort*) # Intel Fortran compiler
7767 tmp_addflag=' -nofor_main' ;;
7769 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7771 if test $supports_anon_versioning = yes; then
7772 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7774 $echo "local: *; };" >> $output_objdir/$libname.ver~
7775 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7784 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7793 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7798 *** create shared libraries on Solaris systems. Therefore, libtool
7799 *** is disabling shared libraries support. We urge you to upgrade GNU
7800 *** binutils to release 2.9.1 or newer. Another option is to modify
7801 *** your PATH or compiler configuration so that the native linker is
7802 *** used, and then restart.
7805 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7814 case `$LD -v 2>&1` in
7815 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7819 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7820 *** reliably create shared libraries on SCO systems. Therefore, libtool
7821 *** is disabling shared libraries support. We urge you to upgrade GNU
7822 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7823 *** your PATH or compiler configuration so that the native linker is
7824 *** used, and then restart.
7829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7830 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7841 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7844 hardcode_shlibpath_var=no
7848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7857 if test "$ld_shlibs" = no; then
7859 hardcode_libdir_flag_spec=
7860 export_dynamic_flag_spec=
7861 whole_archive_flag_spec=
7864 # PORTME fill in a description of your system's linker (not GNU ld)
7867 allow_undefined_flag=unsupported
7868 always_export_symbols=yes
7869 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'
7870 # Note: this linker hardcodes the directories in LIBPATH if there
7871 # are no directories specified by -L.
7872 hardcode_minus_L=yes
7873 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7874 # Neither direct hardcoding nor static linking is supported with a
7876 hardcode_direct=unsupported
7881 if test "$host_cpu" = ia64; then
7882 # On IA64, the linker does run time linking by default, so we don't
7883 # have to do anything special.
7884 aix_use_runtimelinking=no
7885 exp_sym_flag='-Bexport'
7888 # If we're using GNU nm, then we don't want the "-C" option.
7889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7890 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7891 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'
7893 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'
7895 aix_use_runtimelinking=no
7897 # Test if we are trying to use run time linking or normal
7898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7899 # need to do runtime linking.
7900 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7901 for ld_flag in $LDFLAGS; do
7902 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7903 aix_use_runtimelinking=yes
7910 exp_sym_flag='-bexport'
7911 no_entry_flag='-bnoentry'
7914 # When large executables or shared objects are built, AIX ld can
7915 # have problems creating the table of contents. If linking a library
7916 # or program results in "error TOC overflow" add -mminimal-toc to
7917 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7918 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7922 hardcode_libdir_separator=':'
7923 link_all_deplibs=yes
7925 if test "$GCC" = yes; then
7926 case $host_os in aix4.[012]|aix4.[012].*)
7927 # We only want to do this on AIX 4.2 and lower, the check
7928 # below for broken collect2 doesn't work under 4.3+
7929 collect2name=`${CC} -print-prog-name=collect2`
7930 if test -f "$collect2name" && \
7931 strings "$collect2name" | grep resolve_lib_name >/dev/null
7933 # We have reworked collect2
7936 # We have old collect2
7937 hardcode_direct=unsupported
7938 # It fails to find uninstalled libraries when the uninstalled
7939 # path is not listed in the libpath. Setting hardcode_minus_L
7940 # to unsupported forces relinking
7941 hardcode_minus_L=yes
7942 hardcode_libdir_flag_spec='-L$libdir'
7943 hardcode_libdir_separator=
7947 shared_flag='-shared'
7948 if test "$aix_use_runtimelinking" = yes; then
7949 shared_flag="$shared_flag "'${wl}-G'
7953 if test "$host_cpu" = ia64; then
7954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7955 # chokes on -Wl,-G. The following line is correct:
7958 if test "$aix_use_runtimelinking" = yes; then
7959 shared_flag='${wl}-G'
7961 shared_flag='${wl}-bM:SRE'
7966 # It seems that -bexpall does not export symbols beginning with
7967 # underscore (_), so it is better to generate a list of symbols to export.
7968 always_export_symbols=yes
7969 if test "$aix_use_runtimelinking" = yes; then
7970 # Warning - without using the other runtime loading flags (-brtl),
7971 # -berok will link without error, but may produce a broken library.
7972 allow_undefined_flag='-berok'
7973 # Determine the default libpath from the value encoded in an empty executable.
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (ac_try="$ac_link"
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7996 $as_echo "$ac_try_echo") >&5
7997 (eval "$ac_link") 2>conftest.er1
7999 grep -v '^ *+' conftest.er1 >conftest.err
8001 cat conftest.err >&5
8002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && {
8004 test -z "$ac_c_werror_flag" ||
8005 test ! -s conftest.err
8006 } && test -s conftest$ac_exeext && {
8007 test "$cross_compiling" = yes ||
8008 $as_test_x conftest$ac_exeext
8011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8013 # Check for a 64-bit object if we didn't find anything.
8014 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; }
8017 $as_echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8023 rm -rf conftest.dSYM
8024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8025 conftest$ac_exeext conftest.$ac_ext
8026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8029 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"
8031 if test "$host_cpu" = ia64; then
8032 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8033 allow_undefined_flag="-z nodefs"
8034 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"
8036 # Determine the default libpath from the value encoded in an empty executable.
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (ac_try="$ac_link"
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8059 $as_echo "$ac_try_echo") >&5
8060 (eval "$ac_link") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest$ac_exeext && {
8070 test "$cross_compiling" = yes ||
8071 $as_test_x conftest$ac_exeext
8074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8076 # Check for a 64-bit object if we didn't find anything.
8077 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; }
8080 $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8086 rm -rf conftest.dSYM
8087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8088 conftest$ac_exeext conftest.$ac_ext
8089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8091 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8092 # Warning - without using the other run time loading flags,
8093 # -berok will link without error, but may produce a broken library.
8094 no_undefined_flag=' ${wl}-bernotok'
8095 allow_undefined_flag=' ${wl}-berok'
8096 # Exported symbols can be pulled into shared objects from archives
8097 whole_archive_flag_spec='$convenience'
8098 archive_cmds_need_lc=yes
8099 # This is similar to how AIX traditionally builds its shared libraries.
8100 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'
8106 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)'
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_minus_L=yes
8109 # see comment about different semantics on the GNU ld section
8114 export_dynamic_flag_spec=-rdynamic
8117 cygwin* | mingw* | pw32*)
8118 # When not using gcc, we currently assume that we are using
8119 # Microsoft Visual C++.
8120 # hardcode_libdir_flag_spec is actually meaningless, as there is
8121 # no search path for DLLs.
8122 hardcode_libdir_flag_spec=' '
8123 allow_undefined_flag=unsupported
8124 # Tell ltmain to make .lib files, not .a files.
8126 # Tell ltmain to make .dll files, not .so files.
8128 # FIXME: Setting linknames here is a bad hack.
8129 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8130 # The linker will automatically build a .lib file if we build a DLL.
8131 old_archive_From_new_cmds='true'
8132 # FIXME: Should let the user specify the lib program.
8133 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8134 fix_srcfile_path='`cygpath -w "$srcfile"`'
8135 enable_shared_with_static_runtimes=yes
8138 darwin* | rhapsody*)
8140 rhapsody* | darwin1.[012])
8141 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8144 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8145 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8147 case ${MACOSX_DEPLOYMENT_TARGET} in
8149 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8152 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8158 archive_cmds_need_lc=no
8160 hardcode_automatic=yes
8161 hardcode_shlibpath_var=unsupported
8162 whole_archive_flag_spec=''
8163 link_all_deplibs=yes
8164 if test "$GCC" = yes ; then
8165 output_verbose_link_cmd='echo'
8166 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8167 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8169 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}'
8170 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}'
8172 case $cc_basename in
8174 output_verbose_link_cmd='echo'
8175 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8176 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8178 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}'
8179 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}'
8189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_shlibpath_var=no
8198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8199 # support. Future versions do this automatically, but an explicit c++rt0.o
8200 # does not break anything, and helps significantly (at the cost of a little
8203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8204 hardcode_libdir_flag_spec='-R$libdir'
8206 hardcode_shlibpath_var=no
8209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8213 hardcode_minus_L=yes
8214 hardcode_shlibpath_var=no
8217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8218 freebsd* | kfreebsd*-gnu | dragonfly*)
8219 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8220 hardcode_libdir_flag_spec='-R$libdir'
8222 hardcode_shlibpath_var=no
8226 if test "$GCC" = yes; then
8227 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'
8229 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'
8231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8232 hardcode_libdir_separator=:
8235 # hardcode_minus_L: Not really in the search PATH,
8236 # but as the default location of the library.
8237 hardcode_minus_L=yes
8238 export_dynamic_flag_spec='${wl}-E'
8242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8247 if test "$with_gnu_ld" = no; then
8248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249 hardcode_libdir_separator=:
8252 export_dynamic_flag_spec='${wl}-E'
8254 # hardcode_minus_L: Not really in the search PATH,
8255 # but as the default location of the library.
8256 hardcode_minus_L=yes
8261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8270 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8286 if test "$with_gnu_ld" = no; then
8287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8288 hardcode_libdir_separator=:
8292 hardcode_libdir_flag_spec_ld='+b $libdir'
8294 hardcode_shlibpath_var=no
8298 export_dynamic_flag_spec='${wl}-E'
8300 # hardcode_minus_L: Not really in the search PATH,
8301 # but as the default location of the library.
8302 hardcode_minus_L=yes
8308 irix5* | irix6* | nonstopux*)
8309 if test "$GCC" = yes; then
8310 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'
8312 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'
8313 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316 hardcode_libdir_separator=:
8317 link_all_deplibs=yes
8321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8324 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8326 hardcode_libdir_flag_spec='-R$libdir'
8328 hardcode_shlibpath_var=no
8332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335 hardcode_libdir_separator=:
8336 hardcode_shlibpath_var=no
8341 hardcode_shlibpath_var=no
8342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8346 export_dynamic_flag_spec='${wl}-E'
8349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_libdir_flag_spec='-R$libdir'
8354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8362 hardcode_libdir_flag_spec='-L$libdir'
8363 hardcode_minus_L=yes
8364 allow_undefined_flag=unsupported
8365 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'
8366 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8370 if test "$GCC" = yes; then
8371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8372 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'
8374 allow_undefined_flag=' -expect_unresolved \*'
8375 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'
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378 hardcode_libdir_separator=:
8381 osf4* | osf5*) # as osf3* with the addition of -msym flag
8382 if test "$GCC" = yes; then
8383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8384 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'
8385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 allow_undefined_flag=' -expect_unresolved \*'
8388 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'
8389 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8390 $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'
8392 # Both c and cxx compiler support -rpath directly
8393 hardcode_libdir_flag_spec='-rpath $libdir'
8395 hardcode_libdir_separator=:
8399 no_undefined_flag=' -z text'
8400 if test "$GCC" = yes; then
8402 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8404 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8407 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8409 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8411 hardcode_libdir_flag_spec='-R$libdir'
8412 hardcode_shlibpath_var=no
8414 solaris2.[0-5] | solaris2.[0-5].*) ;;
8416 # The compiler driver will combine linker options so we
8417 # cannot just pass the convience library names through
8418 # without $wl, iff we do not link with $LD.
8419 # Luckily, gcc supports the same syntax we need for Sun Studio.
8420 # Supported since Solaris 2.6 (maybe 2.5.1?)
8423 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8425 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' ;;
8428 link_all_deplibs=yes
8432 if test "x$host_vendor" = xsequent; then
8433 # Use $CC to link under sequent, because it throws in some extra .o
8434 # files that make .init and .fini sections work.
8435 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8437 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8439 hardcode_libdir_flag_spec='-L$libdir'
8441 hardcode_minus_L=yes
8442 hardcode_shlibpath_var=no
8446 case $host_vendor in
8448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449 hardcode_direct=yes # is this really true???
8452 ## LD is ld it makes a PLAMLIB
8453 ## CC just makes a GrossModule.
8454 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8455 reload_cmds='$CC -r -o $output$reload_objs'
8459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8463 runpath_var='LD_RUN_PATH'
8464 hardcode_shlibpath_var=no
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_shlibpath_var=no
8470 export_dynamic_flag_spec='-Bexport'
8474 if test -d /usr/nec; then
8475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8476 hardcode_shlibpath_var=no
8477 runpath_var=LD_RUN_PATH
8478 hardcode_runpath_var=yes
8483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8484 no_undefined_flag='${wl}-z,text'
8485 archive_cmds_need_lc=no
8486 hardcode_shlibpath_var=no
8487 runpath_var='LD_RUN_PATH'
8489 if test "$GCC" = yes; then
8490 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8491 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8493 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8498 sysv5* | sco3.2v5* | sco5v6*)
8499 # Note: We can NOT use -z defs as we might desire, because we do not
8500 # link with -lc, and that would cause any symbols used from libc to
8501 # always be unresolved, which means just about no library would
8502 # ever link correctly. If we're not using GNU ld we use -z text
8503 # though, which does catch some bad symbols but isn't as heavy-handed
8505 no_undefined_flag='${wl}-z,text'
8506 allow_undefined_flag='${wl}-z,nodefs'
8507 archive_cmds_need_lc=no
8508 hardcode_shlibpath_var=no
8509 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8510 hardcode_libdir_separator=':'
8511 link_all_deplibs=yes
8512 export_dynamic_flag_spec='${wl}-Bexport'
8513 runpath_var='LD_RUN_PATH'
8515 if test "$GCC" = yes; then
8516 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8519 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_shlibpath_var=no
8536 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8537 $as_echo "$ld_shlibs" >&6; }
8538 test "$ld_shlibs" = no && can_build_shared=no
8541 # Do we need to explicitly link libc?
8543 case "x$archive_cmds_need_lc" in
8545 # Assume -lc should be added
8546 archive_cmds_need_lc=yes
8548 if test "$enable_shared" = yes && test "$GCC" = yes; then
8549 case $archive_cmds in
8551 # FIXME: we may have to deal with multi-command sequences.
8554 # Test whether the compiler implicitly links with -lc since on some
8555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8556 # to ld, don't add -lc before -lgcc.
8557 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563 (eval $ac_compile) 2>&5
8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } 2>conftest.err; then
8569 libobjs=conftest.$ac_objext
8571 wl=$lt_prog_compiler_wl
8572 pic_flag=$lt_prog_compiler_pic
8578 lt_save_allow_undefined_flag=$allow_undefined_flag
8579 allow_undefined_flag=
8580 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8581 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }
8586 archive_cmds_need_lc=no
8588 archive_cmds_need_lc=yes
8590 allow_undefined_flag=$lt_save_allow_undefined_flag
8592 cat conftest.err 1>&5
8595 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8596 $as_echo "$archive_cmds_need_lc" >&6; }
8603 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8604 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8606 libname_spec='lib$name'
8614 shlibpath_overrides_runpath=unknown
8616 dynamic_linker="$host_os ld.so"
8617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8618 if test "$GCC" = yes; then
8619 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8620 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8621 # if the path contains ";" then we assume it to be the separator
8622 # otherwise default to the standard path separator (i.e. ":") - it is
8623 # assumed that no part of a normal pathname contains ";" but that should
8624 # okay in the real world where ";" in dirpaths is itself problematic.
8625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8630 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8632 need_lib_prefix=unknown
8633 hardcode_into_libs=no
8635 # when you set need_version to no, make sure it does not cause -set_version
8636 # flags to be left without arguments
8637 need_version=unknown
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8643 shlibpath_var=LIBPATH
8645 # AIX 3 has no versioning support, so we append a major version to the name.
8646 soname_spec='${libname}${release}${shared_ext}$major'
8653 hardcode_into_libs=yes
8654 if test "$host_cpu" = ia64; then
8655 # AIX 5 supports IA64
8656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8657 shlibpath_var=LD_LIBRARY_PATH
8659 # With GCC up to 2.95.x, collect2 would create an import file
8660 # for dependence libraries. The import file would start with
8661 # the line `#! .'. This would cause the generated library to
8662 # depend on `.', always an invalid library. This was fixed in
8663 # development snapshots of GCC prior to 3.0.
8665 aix4 | aix4.[01] | aix4.[01].*)
8666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8668 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8676 # soname into executable. Probably we can add versioning support to
8677 # collect2, so additional links can be useful in future.
8678 if test "$aix_use_runtimelinking" = yes; then
8679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8680 # instead of lib<name>.a to let people know that these are not
8681 # typical AIX shared libraries.
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684 # We preserve .a as extension for shared libraries through AIX4.2
8685 # and later when we are not doing run time linking.
8686 library_names_spec='${libname}${release}.a $libname.a'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8689 shlibpath_var=LIBPATH
8694 library_names_spec='$libname.ixlibrary $libname.a'
8695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696 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'
8700 library_names_spec='${libname}${shared_ext}'
8701 dynamic_linker="$host_os ld.so"
8702 shlibpath_var=LIBRARY_PATH
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711 shlibpath_var=LD_LIBRARY_PATH
8712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714 # the default ld.so.conf also contains /usr/contrib/lib and
8715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716 # libtool to hard-code these into programs
8719 cygwin* | mingw* | pw32*)
8720 version_type=windows
8725 case $GCC,$host_os in
8726 yes,cygwin* | yes,mingw* | yes,pw32*)
8727 library_names_spec='$libname.dll.a'
8728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729 postinstall_cmds='base_file=`basename \${file}`~
8730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8731 dldir=$destdir/`dirname \$dlpath`~
8732 test -d \$dldir || mkdir -p \$dldir~
8733 $install_prog $dir/$dlname \$dldir/$dlname~
8734 chmod a+x \$dldir/$dlname'
8735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8736 dlpath=$dir/\$dldll~
8738 shlibpath_overrides_runpath=yes
8742 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8747 # MinGW DLLs use traditional 'lib' prefix
8748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8750 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8751 # It is most probably a Windows format PATH printed by
8752 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8753 # path with ; separators, and with drive letters. We can handle the
8754 # drive letters (cygwin fileutils understands them), so leave them,
8755 # especially as we might pass files found there to a mingw objdump,
8756 # which wouldn't understand a cygwinified path. Ahh.
8757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8763 # pw32 DLLs use 'pw' prefix rather than 'lib'
8764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8773 dynamic_linker='Win32 ld.exe'
8774 # FIXME: first we should search . and the directory the executable is in
8778 darwin* | rhapsody*)
8779 dynamic_linker="$host_os dyld"
8783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8784 soname_spec='${libname}${release}${major}$shared_ext'
8785 shlibpath_overrides_runpath=yes
8786 shlibpath_var=DYLD_LIBRARY_PATH
8787 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8788 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8789 if test "$GCC" = yes; then
8790 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"`
8792 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8794 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 shlibpath_overrides_runpath=no
8818 hardcode_into_libs=yes
8819 dynamic_linker='GNU ld.so'
8822 freebsd* | dragonfly*)
8823 # DragonFly does not have aout. When/if they implement a new
8824 # versioning mechanism, adjust this.
8825 if test -x /usr/bin/objformat; then
8826 objformat=`/usr/bin/objformat`
8829 freebsd[123]*) objformat=aout ;;
8833 version_type=freebsd-$objformat
8834 case $version_type in
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8845 shlibpath_var=LD_LIBRARY_PATH
8848 shlibpath_overrides_runpath=yes
8850 freebsd3.[01]* | freebsdelf3.[01]*)
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856 shlibpath_overrides_runpath=no
8857 hardcode_into_libs=yes
8859 freebsd*) # from 4.6 on
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 hardcode_into_libs=yes
8876 hpux9* | hpux10* | hpux11*)
8877 # Give a soname corresponding to the major version so that dld.sl refuses to
8878 # link against other versions.
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.so"
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
8892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8900 hardcode_into_libs=yes
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=SHLIB_PATH
8913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8918 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919 postinstall_cmds='chmod 555 $lib'
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8934 irix5* | irix6* | nonstopux*)
8936 nonstopux*) version_type=nonstopux ;;
8938 if test "$lt_cv_prog_gnu_ld" = yes; then
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8949 irix5* | nonstopux*)
8953 case $LD in # libtool.m4 will add one of these switches to LD
8954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955 libsuff= shlibsuff= libmagic=32-bit;;
8956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957 libsuff=32 shlibsuff=N32 libmagic=N32;;
8958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960 *) libsuff= shlibsuff= libmagic=never-match;;
8964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965 shlibpath_overrides_runpath=no
8966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968 hardcode_into_libs=yes
8971 # No shared lib support for Linux oldld, aout, or coff.
8972 linux*oldld* | linux*aout* | linux*coff*)
8976 # This must be Linux ELF.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 # This implies no fast_install, which is unacceptable.
8987 # Some rework will be needed to allow for fast_install
8988 # before this can be enabled.
8989 hardcode_into_libs=yes
8991 # find out which ABI we are using
8994 x86_64*|s390x*|powerpc64*)
8995 echo '#line 8995 "configure"' > conftest.$ac_ext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997 (eval $ac_compile) 2>&5
8999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; then
9001 case `/usr/bin/file conftest.$ac_objext` in
9004 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9012 # Append ld.so.conf contents to the search path
9013 if test -f /etc/ld.so.conf; then
9014 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9015 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9018 # We used to test for /lib/ld.so.1 and disable shared libraries on
9019 # powerpc, because MkLinux only supported shared libraries with the
9020 # GNU dynamic linker. Since this was broken with cross compilers,
9021 # most powerpc-linux boxes support dynamic linking these days and
9022 # people can always --disable-shared, the test was removed, and we
9023 # assume the GNU/Linux dynamic linker is in use.
9024 dynamic_linker='GNU/Linux ld.so'
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9036 dynamic_linker='GNU ld.so'
9043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046 dynamic_linker='NetBSD (a.out) ld.so'
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 dynamic_linker='NetBSD ld.elf_so'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9076 sys_lib_dlsearch_path_spec="/usr/lib"
9078 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9080 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9081 *) need_version=no ;;
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9088 openbsd2.[89] | openbsd2.[89].*)
9089 shlibpath_overrides_runpath=no
9092 shlibpath_overrides_runpath=yes
9096 shlibpath_overrides_runpath=yes
9101 libname_spec='$name'
9104 library_names_spec='$libname${shared_ext} $libname.a'
9105 dynamic_linker='OS/2 ld.exe'
9106 shlibpath_var=LIBPATH
9109 osf3* | osf4* | osf5*)
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 hardcode_into_libs=yes
9129 # ldd complains unless libraries are executable
9130 postinstall_cmds='chmod +x $lib'
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 if test "$with_gnu_ld" = yes; then
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 case $host_vendor in
9152 shlibpath_overrides_runpath=no
9154 export_dynamic_flag_spec='${wl}-Blargedynsym'
9155 runpath_var=LD_RUN_PATH
9163 shlibpath_overrides_runpath=no
9164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9170 if test -d /usr/nec ;then
9172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9173 soname_spec='$libname${shared_ext}.$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9179 version_type=freebsd-elf
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 hardcode_into_libs=yes
9186 if test "$with_gnu_ld" = yes; then
9187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9188 shlibpath_overrides_runpath=no
9190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9191 shlibpath_overrides_runpath=yes
9194 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9198 sys_lib_dlsearch_path_spec='/usr/lib'
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9212 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9213 $as_echo "$dynamic_linker" >&6; }
9214 test "$dynamic_linker" = no && can_build_shared=no
9216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9217 if test "$GCC" = yes; then
9218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9221 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9224 if test -n "$hardcode_libdir_flag_spec" || \
9225 test -n "$runpath_var" || \
9226 test "X$hardcode_automatic" = "Xyes" ; then
9228 # We can hardcode non-existant directories.
9229 if test "$hardcode_direct" != no &&
9230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9231 # have to relink, otherwise we might link with an installed library
9232 # when we should be linking with a yet-to-be-installed one
9233 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9234 test "$hardcode_minus_L" != no; then
9235 # Linking always hardcodes the temporary library directory.
9236 hardcode_action=relink
9238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9239 hardcode_action=immediate
9242 # We cannot hardcode anything, or else we can only hardcode existing
9244 hardcode_action=unsupported
9246 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9247 $as_echo "$hardcode_action" >&6; }
9249 if test "$hardcode_action" = relink; then
9250 # Fast installation is not supported
9251 enable_fast_install=no
9252 elif test "$shlibpath_overrides_runpath" = yes ||
9253 test "$enable_shared" = no; then
9254 # Fast installation is not necessary
9255 enable_fast_install=needless
9260 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9261 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9262 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9263 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9264 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9265 { $as_echo "$as_me:$LINENO: result: yes" >&5
9266 $as_echo "yes" >&6; }
9268 # FIXME - insert some real tests, host_os isn't really good enough
9271 if test -n "$STRIP" ; then
9272 striplib="$STRIP -x"
9273 { $as_echo "$as_me:$LINENO: result: yes" >&5
9274 $as_echo "yes" >&6; }
9276 { $as_echo "$as_me:$LINENO: result: no" >&5
9277 $as_echo "no" >&6; }
9281 { $as_echo "$as_me:$LINENO: result: no" >&5
9282 $as_echo "no" >&6; }
9287 if test "x$enable_dlopen" != xyes; then
9288 enable_dlopen=unknown
9289 enable_dlopen_self=unknown
9290 enable_dlopen_self_static=unknown
9297 lt_cv_dlopen="load_add_on"
9299 lt_cv_dlopen_self=yes
9303 lt_cv_dlopen="LoadLibrary"
9308 lt_cv_dlopen="dlopen"
9313 # if libdl is installed we need to link against it
9314 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9317 $as_echo_n "(cached) " >&6
9319 ac_check_lib_save_LIBS=$LIBS
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351 (eval "$ac_link") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest$ac_exeext && {
9361 test "$cross_compiling" = yes ||
9362 $as_test_x conftest$ac_exeext
9364 ac_cv_lib_dl_dlopen=yes
9366 $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_cv_lib_dl_dlopen=no
9372 rm -rf conftest.dSYM
9373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9379 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9385 lt_cv_dlopen_self=yes
9392 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9393 $as_echo_n "checking for shl_load... " >&6; }
9394 if test "${ac_cv_func_shl_load+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9397 cat >conftest.$ac_ext <<_ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9405 #define shl_load innocuous_shl_load
9407 /* System header to define __stub macros and hopefully few prototypes,
9408 which can conflict with char shl_load (); below.
9409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9410 <limits.h> exists even on freestanding compilers. */
9413 # include <limits.h>
9415 # include <assert.h>
9420 /* Override any GCC internal prototype to avoid an error.
9421 Use char because int might match the return type of a GCC
9422 builtin and then its argument prototype would still apply. */
9427 /* The GNU C library defines this for functions which it implements
9428 to always fail with ENOSYS. Some functions are actually named
9429 something starting with __ and the normal name is an alias. */
9430 #if defined __stub_shl_load || defined __stub___shl_load
9442 rm -f conftest.$ac_objext conftest$ac_exeext
9443 if { (ac_try="$ac_link"
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9449 $as_echo "$ac_try_echo") >&5
9450 (eval "$ac_link") 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest$ac_exeext && {
9460 test "$cross_compiling" = yes ||
9461 $as_test_x conftest$ac_exeext
9463 ac_cv_func_shl_load=yes
9465 $as_echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_cv_func_shl_load=no
9471 rm -rf conftest.dSYM
9472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9473 conftest$ac_exeext conftest.$ac_ext
9475 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9476 $as_echo "$ac_cv_func_shl_load" >&6; }
9477 if test "x$ac_cv_func_shl_load" = x""yes; then
9478 lt_cv_dlopen="shl_load"
9480 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9481 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9482 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9483 $as_echo_n "(cached) " >&6
9485 ac_check_lib_save_LIBS=$LIBS
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9494 /* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (ac_try="$ac_link"
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9516 $as_echo "$ac_try_echo") >&5
9517 (eval "$ac_link") 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } && {
9524 test -z "$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9526 } && test -s conftest$ac_exeext && {
9527 test "$cross_compiling" = yes ||
9528 $as_test_x conftest$ac_exeext
9530 ac_cv_lib_dld_shl_load=yes
9532 $as_echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 ac_cv_lib_dld_shl_load=no
9538 rm -rf conftest.dSYM
9539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9540 conftest$ac_exeext conftest.$ac_ext
9541 LIBS=$ac_check_lib_save_LIBS
9543 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9545 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9546 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9548 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9549 $as_echo_n "checking for dlopen... " >&6; }
9550 if test "${ac_cv_func_dlopen+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561 #define dlopen innocuous_dlopen
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char dlopen (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9569 # include <limits.h>
9571 # include <assert.h>
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9583 /* The GNU C library defines this for functions which it implements
9584 to always fail with ENOSYS. Some functions are actually named
9585 something starting with __ and the normal name is an alias. */
9586 #if defined __stub_dlopen || defined __stub___dlopen
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9605 $as_echo "$ac_try_echo") >&5
9606 (eval "$ac_link") 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && {
9613 test -z "$ac_c_werror_flag" ||
9614 test ! -s conftest.err
9615 } && test -s conftest$ac_exeext && {
9616 test "$cross_compiling" = yes ||
9617 $as_test_x conftest$ac_exeext
9619 ac_cv_func_dlopen=yes
9621 $as_echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ac_cv_func_dlopen=no
9627 rm -rf conftest.dSYM
9628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9629 conftest$ac_exeext conftest.$ac_ext
9631 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9632 $as_echo "$ac_cv_func_dlopen" >&6; }
9633 if test "x$ac_cv_func_dlopen" = x""yes; then
9634 lt_cv_dlopen="dlopen"
9636 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9639 $as_echo_n "(cached) " >&6
9641 ac_check_lib_save_LIBS=$LIBS
9643 cat >conftest.$ac_ext <<_ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9672 $as_echo "$ac_try_echo") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext && {
9683 test "$cross_compiling" = yes ||
9684 $as_test_x conftest$ac_exeext
9686 ac_cv_lib_dl_dlopen=yes
9688 $as_echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_cv_lib_dl_dlopen=no
9694 rm -rf conftest.dSYM
9695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9701 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9704 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9705 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9706 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9707 $as_echo_n "(cached) " >&6
9709 ac_check_lib_save_LIBS=$LIBS
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9718 /* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9740 $as_echo "$ac_try_echo") >&5
9741 (eval "$ac_link") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext && {
9751 test "$cross_compiling" = yes ||
9752 $as_test_x conftest$ac_exeext
9754 ac_cv_lib_svld_dlopen=yes
9756 $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_cv_lib_svld_dlopen=no
9762 rm -rf conftest.dSYM
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9768 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9769 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9772 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9773 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9774 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9775 $as_echo_n "(cached) " >&6
9777 ac_check_lib_save_LIBS=$LIBS
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809 (eval "$ac_link") 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && {
9816 test -z "$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 } && test -s conftest$ac_exeext && {
9819 test "$cross_compiling" = yes ||
9820 $as_test_x conftest$ac_exeext
9822 ac_cv_lib_dld_dld_link=yes
9824 $as_echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_cv_lib_dld_dld_link=no
9830 rm -rf conftest.dSYM
9831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9836 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9837 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9838 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9859 if test "x$lt_cv_dlopen" != xno; then
9865 case $lt_cv_dlopen in
9867 save_CPPFLAGS="$CPPFLAGS"
9868 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9870 save_LDFLAGS="$LDFLAGS"
9871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9874 LIBS="$lt_cv_dlopen_libs $LIBS"
9876 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9877 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9878 if test "${lt_cv_dlopen_self+set}" = set; then
9879 $as_echo_n "(cached) " >&6
9881 if test "$cross_compiling" = yes; then :
9882 lt_cv_dlopen_self=cross
9884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9885 lt_status=$lt_dlunknown
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9887 "configure"
9888 #include "confdefs.h"
9897 # define LT_DLGLOBAL RTLD_GLOBAL
9900 # define LT_DLGLOBAL DL_GLOBAL
9902 # define LT_DLGLOBAL 0
9906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9907 find out it does not work in some platform. */
9908 #ifndef LT_DLLAZY_OR_NOW
9910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9913 # define LT_DLLAZY_OR_NOW DL_LAZY
9916 # define LT_DLLAZY_OR_NOW RTLD_NOW
9919 # define LT_DLLAZY_OR_NOW DL_NOW
9921 # define LT_DLLAZY_OR_NOW 0
9929 extern "C" void exit (int);
9932 void fnord() { int i=42;}
9935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9936 int status = $lt_dlunknown;
9940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9941 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9942 /* dlclose (self); */
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>&5
9953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9955 (./conftest; exit; ) >&5 2>/dev/null
9958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9960 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9963 # compilation failed
9964 lt_cv_dlopen_self=no
9971 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9972 $as_echo "$lt_cv_dlopen_self" >&6; }
9974 if test "x$lt_cv_dlopen_self" = xyes; then
9975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9976 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9977 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9978 if test "${lt_cv_dlopen_self_static+set}" = set; then
9979 $as_echo_n "(cached) " >&6
9981 if test "$cross_compiling" = yes; then :
9982 lt_cv_dlopen_self_static=cross
9984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9985 lt_status=$lt_dlunknown
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9987 "configure"
9988 #include "confdefs.h"
9997 # define LT_DLGLOBAL RTLD_GLOBAL
10000 # define LT_DLGLOBAL DL_GLOBAL
10002 # define LT_DLGLOBAL 0
10006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10007 find out it does not work in some platform. */
10008 #ifndef LT_DLLAZY_OR_NOW
10010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10013 # define LT_DLLAZY_OR_NOW DL_LAZY
10016 # define LT_DLLAZY_OR_NOW RTLD_NOW
10019 # define LT_DLLAZY_OR_NOW DL_NOW
10021 # define LT_DLLAZY_OR_NOW 0
10029 extern "C" void exit (int);
10032 void fnord() { int i=42;}
10035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10036 int status = $lt_dlunknown;
10040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10042 /* dlclose (self); */
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>&5
10053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10055 (./conftest; exit; ) >&5 2>/dev/null
10057 case x$lt_status in
10058 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10059 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10060 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10063 # compilation failed
10064 lt_cv_dlopen_self_static=no
10071 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10072 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10075 CPPFLAGS="$save_CPPFLAGS"
10076 LDFLAGS="$save_LDFLAGS"
10081 case $lt_cv_dlopen_self in
10082 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10083 *) enable_dlopen_self=unknown ;;
10086 case $lt_cv_dlopen_self_static in
10087 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10088 *) enable_dlopen_self_static=unknown ;;
10093 # Report which library types will actually be built
10094 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10095 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10096 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10097 $as_echo "$can_build_shared" >&6; }
10099 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10100 $as_echo_n "checking whether to build shared libraries... " >&6; }
10101 test "$can_build_shared" = "no" && enable_shared=no
10103 # On AIX, shared libraries and static libraries use the same namespace, and
10104 # are all built from PIC.
10107 test "$enable_shared" = yes && enable_static=no
10108 if test -n "$RANLIB"; then
10109 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10110 postinstall_cmds='$RANLIB $lib'
10115 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10116 test "$enable_shared" = yes && enable_static=no
10120 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10121 $as_echo "$enable_shared" >&6; }
10123 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10124 $as_echo_n "checking whether to build static libraries... " >&6; }
10125 # Make sure either enable_shared or enable_static is yes.
10126 test "$enable_shared" = yes || enable_static=yes
10127 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10128 $as_echo "$enable_static" >&6; }
10130 # The else clause should only fire when bootstrapping the
10131 # libtool distribution, otherwise you forgot to ship ltmain.sh
10132 # with your package, and you will get complaints that there are
10133 # no rules to generate ltmain.sh.
10134 if test -f "$ltmain"; then
10135 # See if we are running on zsh, and set the options which allow our commands through
10136 # without removal of \ escapes.
10137 if test -n "${ZSH_VERSION+set}" ; then
10138 setopt NO_GLOB_SUBST
10140 # Now quote all the things that may contain metacharacters while being
10141 # careful not to overquote the AC_SUBSTed values. We take copies of the
10142 # variables and quote the copies for generation of the libtool script.
10143 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10145 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10146 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10147 deplibs_check_method reload_flag reload_cmds need_locks \
10148 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10149 lt_cv_sys_global_symbol_to_c_name_address \
10150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10151 old_postinstall_cmds old_postuninstall_cmds \
10155 lt_prog_compiler_wl \
10156 lt_prog_compiler_pic \
10157 lt_prog_compiler_static \
10158 lt_prog_compiler_no_builtin_flag \
10159 export_dynamic_flag_spec \
10160 thread_safe_flag_spec \
10161 whole_archive_flag_spec \
10162 enable_shared_with_static_runtimes \
10164 old_archive_from_new_cmds \
10169 compiler_lib_search_path \
10171 archive_expsym_cmds \
10173 postuninstall_cmds \
10174 old_archive_from_expsyms_cmds \
10175 allow_undefined_flag \
10176 no_undefined_flag \
10177 export_symbols_cmds \
10178 hardcode_libdir_flag_spec \
10179 hardcode_libdir_flag_spec_ld \
10180 hardcode_libdir_separator \
10181 hardcode_automatic \
10183 module_expsym_cmds \
10184 lt_cv_prog_compiler_c_o \
10186 include_expsyms; do
10189 old_archive_cmds | \
10190 old_archive_from_new_cmds | \
10192 archive_expsym_cmds | \
10194 module_expsym_cmds | \
10195 old_archive_from_expsyms_cmds | \
10196 export_symbols_cmds | \
10197 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10198 postinstall_cmds | postuninstall_cmds | \
10199 old_postinstall_cmds | old_postuninstall_cmds | \
10200 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10201 # Double-quote double-evaled strings.
10202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10211 *'\$0 --fallback-echo"')
10212 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10216 cfgfile="${ofile}T"
10217 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10219 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10220 $as_echo "$as_me: creating $ofile" >&6;}
10222 cat <<__EOF__ >> "$cfgfile"
10225 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10226 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10227 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10229 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10230 # Free Software Foundation, Inc.
10232 # This file is part of GNU Libtool:
10233 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10235 # This program is free software; you can redistribute it and/or modify
10236 # it under the terms of the GNU General Public License as published by
10237 # the Free Software Foundation; either version 2 of the License, or
10238 # (at your option) any later version.
10240 # This program is distributed in the hope that it will be useful, but
10241 # WITHOUT ANY WARRANTY; without even the implied warranty of
10242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10243 # General Public License for more details.
10245 # You should have received a copy of the GNU General Public License
10246 # along with this program; if not, write to the Free Software
10247 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10249 # As a special exception to the GNU General Public License, if you
10250 # distribute this file as part of a program that contains a
10251 # configuration script generated by Autoconf, you may include it under
10252 # the same distribution terms that you use for the rest of that program.
10254 # A sed program that does not truncate output.
10257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10258 Xsed="$SED -e 1s/^X//"
10260 # The HP-UX ksh and POSIX shell print the target directory to stdout
10261 # if CDPATH is set.
10262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10264 # The names of the tagged configurations supported by this script.
10267 # ### BEGIN LIBTOOL CONFIG
10269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10271 # Shell to use when invoking shell scripts.
10274 # Whether or not to build shared libraries.
10275 build_libtool_libs=$enable_shared
10277 # Whether or not to build static libraries.
10278 build_old_libs=$enable_static
10280 # Whether or not to add -lc for building shared libraries.
10281 build_libtool_need_lc=$archive_cmds_need_lc
10283 # Whether or not to disallow shared libs when runtime libs are static
10284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10286 # Whether or not to optimize for fast installation.
10287 fast_install=$enable_fast_install
10290 host_alias=$host_alias
10294 # The build system.
10295 build_alias=$build_alias
10299 # An echo program that does not interpret backslashes.
10304 AR_FLAGS=$lt_AR_FLAGS
10309 # LTCC compiler flags.
10310 LTCFLAGS=$lt_LTCFLAGS
10312 # A language-specific compiler.
10315 # Is the compiler the GNU C compiler?
10318 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10319 gcc_ver=\`gcc -dumpversion\`
10324 # The linker used to build libraries.
10327 # Whether we need hard or soft links.
10330 # A BSD-compatible nm program.
10333 # A symbol stripping program
10336 # Used to examine libraries when file_magic_cmd begins "file"
10337 MAGIC_CMD=$MAGIC_CMD
10339 # Used on cygwin: DLL creation program.
10342 # Used on cygwin: object dumper.
10345 # Used on cygwin: assembler.
10348 # The name of the directory that contains temporary libtool files.
10351 # How to create reloadable object files.
10352 reload_flag=$lt_reload_flag
10353 reload_cmds=$lt_reload_cmds
10355 # How to pass a linker flag through the compiler.
10356 wl=$lt_lt_prog_compiler_wl
10358 # Object file suffix (normally "o").
10359 objext="$ac_objext"
10361 # Old archive suffix (normally "a").
10364 # Shared library suffix (normally ".so").
10365 shrext_cmds='$shrext_cmds'
10367 # Executable file suffix (normally "").
10370 # Additional compiler flags for building library objects.
10371 pic_flag=$lt_lt_prog_compiler_pic
10374 # What is the maximum length of a command?
10375 max_cmd_len=$lt_cv_sys_max_cmd_len
10377 # Does compiler simultaneously support -c and -o options?
10378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10380 # Must we lock files when doing compilation?
10381 need_locks=$lt_need_locks
10383 # Do we need the lib prefix for modules?
10384 need_lib_prefix=$need_lib_prefix
10386 # Do we need a version for libraries?
10387 need_version=$need_version
10389 # Whether dlopen is supported.
10390 dlopen_support=$enable_dlopen
10392 # Whether dlopen of programs is supported.
10393 dlopen_self=$enable_dlopen_self
10395 # Whether dlopen of statically linked programs is supported.
10396 dlopen_self_static=$enable_dlopen_self_static
10398 # Compiler flag to prevent dynamic linking.
10399 link_static_flag=$lt_lt_prog_compiler_static
10401 # Compiler flag to turn off builtin functions.
10402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10404 # Compiler flag to allow reflexive dlopens.
10405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10407 # Compiler flag to generate shared objects directly from archives.
10408 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10410 # Compiler flag to generate thread-safe objects.
10411 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10413 # Library versioning type.
10414 version_type=$version_type
10416 # Format of library name prefix.
10417 libname_spec=$lt_libname_spec
10419 # List of archive names. First name is the real one, the rest are links.
10420 # The last name is the one that the linker finds with -lNAME.
10421 library_names_spec=$lt_library_names_spec
10423 # The coded name of the library, if different from the real name.
10424 soname_spec=$lt_soname_spec
10426 # Commands used to build and install an old-style archive.
10428 old_archive_cmds=$lt_old_archive_cmds
10429 old_postinstall_cmds=$lt_old_postinstall_cmds
10430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10432 # Create an old-style archive from a shared archive.
10433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10435 # Create a temporary old-style archive to link instead of a shared archive.
10436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10438 # Commands used to build and install a shared archive.
10439 archive_cmds=$lt_archive_cmds
10440 archive_expsym_cmds=$lt_archive_expsym_cmds
10441 postinstall_cmds=$lt_postinstall_cmds
10442 postuninstall_cmds=$lt_postuninstall_cmds
10444 # Commands used to build a loadable module (assumed same as above if empty)
10445 module_cmds=$lt_module_cmds
10446 module_expsym_cmds=$lt_module_expsym_cmds
10448 # Commands to strip libraries.
10449 old_striplib=$lt_old_striplib
10450 striplib=$lt_striplib
10452 # Dependencies to place before the objects being linked to create a
10454 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10456 # Dependencies to place after the objects being linked to create a
10458 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10460 # Dependencies to place before the objects being linked to create a
10462 predeps=$lt_predeps
10464 # Dependencies to place after the objects being linked to create a
10466 postdeps=$lt_postdeps
10468 # The library search path used internally by the compiler when linking
10469 # a shared library.
10470 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10472 # Method to check whether dependent libraries are shared objects.
10473 deplibs_check_method=$lt_deplibs_check_method
10475 # Command to use when deplibs_check_method == file_magic.
10476 file_magic_cmd=$lt_file_magic_cmd
10478 # Flag that allows shared libraries with undefined symbols to be built.
10479 allow_undefined_flag=$lt_allow_undefined_flag
10481 # Flag that forces no undefined symbols.
10482 no_undefined_flag=$lt_no_undefined_flag
10484 # Commands used to finish a libtool library installation in a directory.
10485 finish_cmds=$lt_finish_cmds
10487 # Same as above, but a single script fragment to be evaled but not shown.
10488 finish_eval=$lt_finish_eval
10490 # Take the output of nm and produce a listing of raw symbols and C names.
10491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10493 # Transform the output of nm in a proper C declaration
10494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10496 # Transform the output of nm in a C name address pair
10497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10499 # This is the shared library runtime path variable.
10500 runpath_var=$runpath_var
10502 # This is the shared library path variable.
10503 shlibpath_var=$shlibpath_var
10505 # Is shlibpath searched before the hard-coded library search path?
10506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10508 # How to hardcode a shared library path into an executable.
10509 hardcode_action=$hardcode_action
10511 # Whether we should hardcode library paths into libraries.
10512 hardcode_into_libs=$hardcode_into_libs
10514 # Flag to hardcode \$libdir into a binary during linking.
10515 # This must work even if \$libdir does not exist.
10516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10518 # If ld is used when linking, flag to hardcode \$libdir into
10519 # a binary during linking. This must work even if \$libdir does
10521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10523 # Whether we need a single -rpath flag with a separated argument.
10524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10527 # resulting binary.
10528 hardcode_direct=$hardcode_direct
10530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10531 # resulting binary.
10532 hardcode_minus_L=$hardcode_minus_L
10534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10535 # the resulting binary.
10536 hardcode_shlibpath_var=$hardcode_shlibpath_var
10538 # Set to yes if building a shared library automatically hardcodes DIR into the library
10539 # and all subsequent libraries and executables linked against it.
10540 hardcode_automatic=$hardcode_automatic
10542 # Variables whose values should be saved in libtool wrapper scripts and
10543 # restored at relink time.
10544 variables_saved_for_relink="$variables_saved_for_relink"
10546 # Whether libtool must link a program against all its dependency libraries.
10547 link_all_deplibs=$link_all_deplibs
10549 # Compile-time system search path for libraries
10550 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"\`
10552 # Run-time system search path for libraries
10553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10555 # Fix the shell variable \$srcfile for the compiler.
10556 fix_srcfile_path="$fix_srcfile_path"
10558 # Set to yes if exported symbols are required.
10559 always_export_symbols=$always_export_symbols
10561 # The commands to list exported symbols.
10562 export_symbols_cmds=$lt_export_symbols_cmds
10564 # The commands to extract the exported symbol list from a shared archive.
10565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10567 # Symbols that should not be listed in the preloaded symbols.
10568 exclude_expsyms=$lt_exclude_expsyms
10570 # Symbols that must always be exported.
10571 include_expsyms=$lt_include_expsyms
10573 # ### END LIBTOOL CONFIG
10580 cat <<\EOF >> "$cfgfile"
10582 # AIX sometimes has problems with the GCC collect2 program. For some
10583 # reason, if we set the COLLECT_NAMES environment variable, the problems
10584 # vanish in a puff of smoke.
10585 if test "X${COLLECT_NAMES+set}" != Xset; then
10587 export COLLECT_NAMES
10593 # We use sed instead of cat because bash on DJGPP gets confused if
10594 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10595 # text mode, it properly converts lines to CR/LF. This bash problem
10596 # is reportedly fixed, but why not run on old versions too?
10597 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10599 mv -f "$cfgfile" "$ofile" || \
10600 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10604 # If there is no Makefile yet, we rely on a make rule to execute
10605 # `config.status --recheck' to rerun these tests and create the
10606 # libtool script then.
10607 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10608 if test -f "$ltmain_in"; then
10609 test -f Makefile && make "$ltmain"
10615 ac_cpp='$CPP $CPPFLAGS'
10616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10623 # Check whether --with-tags was given.
10624 if test "${with_tags+set}" = set; then
10625 withval=$with_tags; tagnames="$withval"
10629 if test -f "$ltmain" && test -n "$tagnames"; then
10630 if test ! -f "${ofile}"; then
10631 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10632 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10635 if test -z "$LTCC"; then
10636 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10637 if test -z "$LTCC"; then
10638 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10639 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10642 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10645 if test -z "$LTCFLAGS"; then
10646 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10649 # Extract list of available tagged configurations in $ofile.
10650 # Note that this assumes the entire list is on one line.
10651 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10654 for tagname in $tagnames; do
10656 # Check whether tagname contains only valid characters
10657 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10659 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10660 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10661 { (exit 1); exit 1; }; }
10665 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10667 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10668 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10669 { (exit 1); exit 1; }; }
10672 # Update the list of available tags.
10673 if test -n "$tagname"; then
10674 echo appending configuration tag \"$tagname\" to $ofile
10678 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10679 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10680 (test "X$CXX" != "Xg++"))) ; then
10682 ac_cpp='$CXXCPP $CPPFLAGS'
10683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10690 archive_cmds_need_lc_CXX=no
10691 allow_undefined_flag_CXX=
10692 always_export_symbols_CXX=no
10693 archive_expsym_cmds_CXX=
10694 export_dynamic_flag_spec_CXX=
10695 hardcode_direct_CXX=no
10696 hardcode_libdir_flag_spec_CXX=
10697 hardcode_libdir_flag_spec_ld_CXX=
10698 hardcode_libdir_separator_CXX=
10699 hardcode_minus_L_CXX=no
10700 hardcode_shlibpath_var_CXX=unsupported
10701 hardcode_automatic_CXX=no
10703 module_expsym_cmds_CXX=
10704 link_all_deplibs_CXX=unknown
10705 old_archive_cmds_CXX=$old_archive_cmds
10706 no_undefined_flag_CXX=
10707 whole_archive_flag_spec_CXX=
10708 enable_shared_with_static_runtimes_CXX=no
10710 # Dependencies to place before and after the object being linked:
10711 predep_objects_CXX=
10712 postdep_objects_CXX=
10715 compiler_lib_search_path_CXX=
10717 # Source file extension for C++ test sources.
10720 # Object file extension for compiled C++ test sources.
10724 # Code to be used in simple compile tests
10725 lt_simple_compile_test_code="int some_variable = 0;\n"
10727 # Code to be used in simple link tests
10728 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10732 # If no C compiler was specified, use CC.
10735 # If no C compiler flags were specified, use CFLAGS.
10736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10738 # Allow CC to be a program name with arguments.
10742 # save warnings/boilerplate of simple test code
10743 ac_outfile=conftest.$ac_objext
10744 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10746 _lt_compiler_boilerplate=`cat conftest.err`
10749 ac_outfile=conftest.$ac_objext
10750 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10752 _lt_linker_boilerplate=`cat conftest.err`
10756 # Allow CC to be a program name with arguments.
10761 lt_save_with_gnu_ld=$with_gnu_ld
10762 lt_save_path_LD=$lt_cv_path_LD
10763 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10764 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10766 $as_unset lt_cv_prog_gnu_ld
10768 if test -n "${lt_cv_path_LDCXX+set}"; then
10769 lt_cv_path_LD=$lt_cv_path_LDCXX
10771 $as_unset lt_cv_path_LD
10773 test -z "${LDCXX+set}" || LD=$LDCXX
10777 for cc_temp in $compiler""; do
10779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10785 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10788 # We don't want -fno-exception wen compiling C++ code, so set the
10789 # no_builtin_flag separately
10790 if test "$GXX" = yes; then
10791 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10793 lt_prog_compiler_no_builtin_flag_CXX=
10796 if test "$GXX" = yes; then
10797 # Set up default GNU C++ configuration
10800 # Check whether --with-gnu-ld was given.
10801 if test "${with_gnu_ld+set}" = set; then
10802 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10808 if test "$GCC" = yes; then
10809 # Check if gcc -print-prog-name=ld gives a path.
10810 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10811 $as_echo_n "checking for ld used by $CC... " >&6; }
10814 # gcc leaves a trailing carriage return which upsets mingw
10815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10820 # Accept absolute paths.
10822 re_direlt='/[^/][^/]*/\.\./'
10823 # Canonicalize the pathname of ld
10824 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10826 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10828 test -z "$LD" && LD="$ac_prog"
10831 # If it fails, then pretend we aren't using GCC.
10835 # If it is relative, then search for the first ld in PATH.
10836 with_gnu_ld=unknown
10839 elif test "$with_gnu_ld" = yes; then
10840 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10841 $as_echo_n "checking for GNU ld... " >&6; }
10843 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10844 $as_echo_n "checking for non-GNU ld... " >&6; }
10846 if test "${lt_cv_path_LD+set}" = set; then
10847 $as_echo_n "(cached) " >&6
10849 if test -z "$LD"; then
10850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10851 for ac_dir in $PATH; do
10853 test -z "$ac_dir" && ac_dir=.
10854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10855 lt_cv_path_LD="$ac_dir/$ac_prog"
10856 # Check to see if the program is GNU ld. I'd rather use --version,
10857 # but apparently some variants of GNU ld only accept -v.
10858 # Break only if it was the GNU/non-GNU ld that we prefer.
10859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10860 *GNU* | *'with BFD'*)
10861 test "$with_gnu_ld" != no && break
10864 test "$with_gnu_ld" != yes && break
10871 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10875 LD="$lt_cv_path_LD"
10876 if test -n "$LD"; then
10877 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10878 $as_echo "$LD" >&6; }
10880 { $as_echo "$as_me:$LINENO: result: no" >&5
10881 $as_echo "no" >&6; }
10883 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10884 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10885 { (exit 1); exit 1; }; }
10886 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10888 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10889 $as_echo_n "(cached) " >&6
10891 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10892 case `$LD -v 2>&1 </dev/null` in
10893 *GNU* | *'with BFD'*)
10894 lt_cv_prog_gnu_ld=yes
10897 lt_cv_prog_gnu_ld=no
10901 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10902 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10903 with_gnu_ld=$lt_cv_prog_gnu_ld
10907 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10908 # archiving commands below assume that GNU ld is being used.
10909 if test "$with_gnu_ld" = yes; then
10910 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10911 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'
10913 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10914 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10916 # If archive_cmds runs LD, not CC, wlarc should be empty
10917 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10918 # investigate it a little bit more. (MM)
10921 # ancient GNU ld didn't support --whole-archive et. al.
10922 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10923 grep 'no-whole-archive' > /dev/null; then
10924 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10926 whole_archive_flag_spec_CXX=
10932 # A generic and very simple default shared library creation
10933 # command for GNU C++ for the case where it uses the native
10934 # linker, instead of GNU ld. If possible, this setting should
10935 # overridden to take advantage of the native linker features on
10936 # the platform it is being used on.
10937 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10940 # Commands to make compiler produce verbose output that lists
10941 # what "hidden" libraries, object files and flags are used when
10942 # linking a shared library.
10943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10951 # PORTME: fill in a description of your system's C++ link characteristics
10952 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10957 # FIXME: insert proper C++ library support
10961 if test "$host_cpu" = ia64; then
10962 # On IA64, the linker does run time linking by default, so we don't
10963 # have to do anything special.
10964 aix_use_runtimelinking=no
10965 exp_sym_flag='-Bexport'
10968 aix_use_runtimelinking=no
10970 # Test if we are trying to use run time linking or normal
10971 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10972 # need to do runtime linking.
10973 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10974 for ld_flag in $LDFLAGS; do
10977 aix_use_runtimelinking=yes
10985 exp_sym_flag='-bexport'
10986 no_entry_flag='-bnoentry'
10989 # When large executables or shared objects are built, AIX ld can
10990 # have problems creating the table of contents. If linking a library
10991 # or program results in "error TOC overflow" add -mminimal-toc to
10992 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10993 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10995 archive_cmds_CXX=''
10996 hardcode_direct_CXX=yes
10997 hardcode_libdir_separator_CXX=':'
10998 link_all_deplibs_CXX=yes
11000 if test "$GXX" = yes; then
11001 case $host_os in aix4.[012]|aix4.[012].*)
11002 # We only want to do this on AIX 4.2 and lower, the check
11003 # below for broken collect2 doesn't work under 4.3+
11004 collect2name=`${CC} -print-prog-name=collect2`
11005 if test -f "$collect2name" && \
11006 strings "$collect2name" | grep resolve_lib_name >/dev/null
11008 # We have reworked collect2
11009 hardcode_direct_CXX=yes
11011 # We have old collect2
11012 hardcode_direct_CXX=unsupported
11013 # It fails to find uninstalled libraries when the uninstalled
11014 # path is not listed in the libpath. Setting hardcode_minus_L
11015 # to unsupported forces relinking
11016 hardcode_minus_L_CXX=yes
11017 hardcode_libdir_flag_spec_CXX='-L$libdir'
11018 hardcode_libdir_separator_CXX=
11022 shared_flag='-shared'
11023 if test "$aix_use_runtimelinking" = yes; then
11024 shared_flag="$shared_flag "'${wl}-G'
11028 if test "$host_cpu" = ia64; then
11029 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11030 # chokes on -Wl,-G. The following line is correct:
11033 if test "$aix_use_runtimelinking" = yes; then
11034 shared_flag='${wl}-G'
11036 shared_flag='${wl}-bM:SRE'
11041 # It seems that -bexpall does not export symbols beginning with
11042 # underscore (_), so it is better to generate a list of symbols to export.
11043 always_export_symbols_CXX=yes
11044 if test "$aix_use_runtimelinking" = yes; then
11045 # Warning - without using the other runtime loading flags (-brtl),
11046 # -berok will link without error, but may produce a broken library.
11047 allow_undefined_flag_CXX='-berok'
11048 # Determine the default libpath from the value encoded in an empty executable.
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (ac_try="$ac_link"
11066 case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11071 $as_echo "$ac_try_echo") >&5
11072 (eval "$ac_link") 2>conftest.er1
11074 grep -v '^ *+' conftest.er1 >conftest.err
11076 cat conftest.err >&5
11077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && {
11079 test -z "$ac_cxx_werror_flag" ||
11080 test ! -s conftest.err
11081 } && test -s conftest$ac_exeext && {
11082 test "$cross_compiling" = yes ||
11083 $as_test_x conftest$ac_exeext
11086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11088 # Check for a 64-bit object if we didn't find anything.
11089 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; }
11092 $as_echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11098 rm -rf conftest.dSYM
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11103 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11105 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"
11107 if test "$host_cpu" = ia64; then
11108 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11109 allow_undefined_flag_CXX="-z nodefs"
11110 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"
11112 # Determine the default libpath from the value encoded in an empty executable.
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_cxx_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext && {
11146 test "$cross_compiling" = yes ||
11147 $as_test_x conftest$ac_exeext
11150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11152 # Check for a 64-bit object if we didn't find anything.
11153 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; }
11156 $as_echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11162 rm -rf conftest.dSYM
11163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11164 conftest$ac_exeext conftest.$ac_ext
11165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11167 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11168 # Warning - without using the other run time loading flags,
11169 # -berok will link without error, but may produce a broken library.
11170 no_undefined_flag_CXX=' ${wl}-bernotok'
11171 allow_undefined_flag_CXX=' ${wl}-berok'
11172 # Exported symbols can be pulled into shared objects from archives
11173 whole_archive_flag_spec_CXX='$convenience'
11174 archive_cmds_need_lc_CXX=yes
11175 # This is similar to how AIX traditionally builds its shared libraries.
11176 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'
11182 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11183 allow_undefined_flag_CXX=unsupported
11184 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11185 # support --undefined. This deserves some investigation. FIXME
11186 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11193 case $cc_basename in
11195 # FIXME: insert proper C++ library support
11201 cygwin* | mingw* | pw32*)
11202 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11203 # as there is no search path for DLLs.
11204 hardcode_libdir_flag_spec_CXX='-L$libdir'
11205 allow_undefined_flag_CXX=unsupported
11206 always_export_symbols_CXX=no
11207 enable_shared_with_static_runtimes_CXX=yes
11209 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11210 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'
11211 # If the export-symbols file already is a .def file (1st line
11212 # is EXPORTS), use it as is; otherwise, prepend...
11213 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11214 cp $export_symbols $output_objdir/$soname.def;
11216 echo EXPORTS > $output_objdir/$soname.def;
11217 cat $export_symbols >> $output_objdir/$soname.def;
11219 $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'
11224 darwin* | rhapsody*)
11226 rhapsody* | darwin1.[012])
11227 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11231 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11233 case ${MACOSX_DEPLOYMENT_TARGET} in
11235 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11238 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11244 archive_cmds_need_lc_CXX=no
11245 hardcode_direct_CXX=no
11246 hardcode_automatic_CXX=yes
11247 hardcode_shlibpath_var_CXX=unsupported
11248 whole_archive_flag_spec_CXX=''
11249 link_all_deplibs_CXX=yes
11251 if test "$GXX" = yes ; then
11252 lt_int_apple_cc_single_mod=no
11253 output_verbose_link_cmd='echo'
11254 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11255 lt_int_apple_cc_single_mod=yes
11257 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11258 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11260 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'
11262 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11264 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11265 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}'
11267 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}'
11269 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}'
11271 case $cc_basename in
11273 output_verbose_link_cmd='echo'
11274 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'
11275 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11276 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11277 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}'
11278 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}'
11288 case $cc_basename in
11290 # FIXME: insert proper C++ library support
11294 # Green Hills C++ Compiler
11295 # FIXME: insert proper C++ library support
11299 # FIXME: insert proper C++ library support
11305 # C++ shared libraries reported to be fairly broken before switch to ELF
11309 archive_cmds_need_lc_CXX=no
11311 freebsd* | kfreebsd*-gnu | dragonfly*)
11312 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11319 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11320 hardcode_libdir_separator_CXX=:
11321 export_dynamic_flag_spec_CXX='${wl}-E'
11322 hardcode_direct_CXX=yes
11323 hardcode_minus_L_CXX=yes # Not in the search PATH,
11324 # but as the default
11325 # location of the library.
11327 case $cc_basename in
11329 # FIXME: insert proper C++ library support
11333 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'
11334 # Commands to make compiler produce verbose output that lists
11335 # what "hidden" libraries, object files and flags are used when
11336 # linking a shared library.
11338 # There doesn't appear to be a way to prevent this compiler from
11339 # explicitly linking system object files so we need to strip them
11340 # from the output so that they don't get included in the library
11342 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'
11345 if test "$GXX" = yes; then
11346 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'
11348 # FIXME: insert proper C++ library support
11355 if test $with_gnu_ld = no; then
11356 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11357 hardcode_libdir_separator_CXX=:
11361 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11364 export_dynamic_flag_spec_CXX='${wl}-E'
11370 hardcode_direct_CXX=no
11371 hardcode_shlibpath_var_CXX=no
11374 hardcode_direct_CXX=yes
11375 hardcode_minus_L_CXX=yes # Not in the search PATH,
11376 # but as the default
11377 # location of the library.
11381 case $cc_basename in
11383 # FIXME: insert proper C++ library support
11389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11398 # Commands to make compiler produce verbose output that lists
11399 # what "hidden" libraries, object files and flags are used when
11400 # linking a shared library.
11402 # There doesn't appear to be a way to prevent this compiler from
11403 # explicitly linking system object files so we need to strip them
11404 # from the output so that they don't get included in the library
11406 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'
11409 if test "$GXX" = yes; then
11410 if test $with_gnu_ld = no; then
11413 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11416 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11419 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'
11424 # FIXME: insert proper C++ library support
11431 hardcode_direct_CXX=no
11432 hardcode_shlibpath_var_CXX=no
11433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11434 export_dynamic_flag_spec_CXX='${wl}-E'
11435 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11436 # Instead, shared libraries are loaded at an image base (0x10000000 by
11437 # default) and relocated if they conflict, which is a slow very memory
11438 # consuming and fragmenting process. To avoid this, we pick a random,
11439 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11440 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11441 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'
11442 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'
11445 case $cc_basename in
11448 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'
11450 # Archives containing C++ object files must be created using
11451 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11452 # necessary to make sure instantiated templates are included
11454 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11457 if test "$GXX" = yes; then
11458 if test "$with_gnu_ld" = no; then
11459 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'
11461 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'
11464 link_all_deplibs_CXX=yes
11467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11468 hardcode_libdir_separator_CXX=:
11471 case $cc_basename in
11473 # Kuck and Associates, Inc. (KAI) C++ Compiler
11475 # KCC will only create a shared library if the output file
11476 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11477 # to its proper name (with version) after linking.
11478 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'
11479 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'
11480 # Commands to make compiler produce verbose output that lists
11481 # what "hidden" libraries, object files and flags are used when
11482 # linking a shared library.
11484 # There doesn't appear to be a way to prevent this compiler from
11485 # explicitly linking system object files so we need to strip them
11486 # from the output so that they don't get included in the library
11488 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'
11490 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11493 # Archives containing C++ object files must be created using
11494 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11495 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11500 # version 8.0 and above of icpc choke on multiply defined symbols
11501 # if we add $predep_objects and $postdep_objects, however 7.1 and
11502 # earlier do not add the objects themselves.
11503 case `$CC -V 2>&1` in
11505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11506 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'
11508 *) # Version 8.0 or newer
11511 ia64*) tmp_idyn=' -i_dynamic';;
11513 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11514 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'
11517 archive_cmds_need_lc_CXX=no
11518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11520 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11523 # Portland Group C++ compiler
11524 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11525 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'
11527 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11529 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'
11533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11534 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'
11536 runpath_var=LD_RUN_PATH
11537 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11538 hardcode_libdir_separator_CXX=:
11540 # Commands to make compiler produce verbose output that lists
11541 # what "hidden" libraries, object files and flags are used when
11542 # linking a shared library.
11544 # There doesn't appear to be a way to prevent this compiler from
11545 # explicitly linking system object files so we need to strip them
11546 # from the output so that they don't get included in the library
11548 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'
11553 # FIXME: insert proper C++ library support
11557 # FIXME: insert proper C++ library support
11561 case $cc_basename in
11563 # FIXME: insert proper C++ library support
11567 # FIXME: insert proper C++ library support
11573 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11574 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11576 hardcode_libdir_flag_spec_CXX='-R$libdir'
11577 hardcode_direct_CXX=yes
11578 hardcode_shlibpath_var_CXX=no
11580 # Workaround some broken pre-1.5 toolchains
11581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11584 # C++ shared libraries are fairly broken
11588 hardcode_direct_CXX=yes
11589 hardcode_shlibpath_var_CXX=no
11590 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11593 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11594 export_dynamic_flag_spec_CXX='${wl}-E'
11595 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11597 output_verbose_link_cmd='echo'
11600 case $cc_basename in
11602 # Kuck and Associates, Inc. (KAI) C++ Compiler
11604 # KCC will only create a shared library if the output file
11605 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11606 # to its proper name (with version) after linking.
11607 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'
11609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11610 hardcode_libdir_separator_CXX=:
11612 # Archives containing C++ object files must be created using
11613 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11614 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11618 # Rational C++ 2.4.1
11619 # FIXME: insert proper C++ library support
11623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11624 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'
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11627 hardcode_libdir_separator_CXX=:
11629 # Commands to make compiler produce verbose output that lists
11630 # what "hidden" libraries, object files and flags are used when
11631 # linking a shared library.
11633 # There doesn't appear to be a way to prevent this compiler from
11634 # explicitly linking system object files so we need to strip them
11635 # from the output so that they don't get included in the library
11637 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'
11640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11642 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'
11644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11645 hardcode_libdir_separator_CXX=:
11647 # Commands to make compiler produce verbose output that lists
11648 # what "hidden" libraries, object files and flags are used when
11649 # linking a shared library.
11650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11653 # FIXME: insert proper C++ library support
11660 case $cc_basename in
11662 # Kuck and Associates, Inc. (KAI) C++ Compiler
11664 # KCC will only create a shared library if the output file
11665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11666 # to its proper name (with version) after linking.
11667 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'
11669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11670 hardcode_libdir_separator_CXX=:
11672 # Archives containing C++ object files must be created using
11673 # the KAI C++ compiler.
11674 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11677 # Rational C++ 2.4.1
11678 # FIXME: insert proper C++ library support
11682 allow_undefined_flag_CXX=' -expect_unresolved \*'
11683 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'
11684 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11685 echo "-hidden">> $lib.exp~
11686 $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~
11689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11690 hardcode_libdir_separator_CXX=:
11692 # Commands to make compiler produce verbose output that lists
11693 # what "hidden" libraries, object files and flags are used when
11694 # linking a shared library.
11696 # There doesn't appear to be a way to prevent this compiler from
11697 # explicitly linking system object files so we need to strip them
11698 # from the output so that they don't get included in the library
11700 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'
11703 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11704 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11705 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'
11707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11708 hardcode_libdir_separator_CXX=:
11710 # Commands to make compiler produce verbose output that lists
11711 # what "hidden" libraries, object files and flags are used when
11712 # linking a shared library.
11713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11716 # FIXME: insert proper C++ library support
11723 # FIXME: insert proper C++ library support
11727 case $cc_basename in
11730 # FIXME: insert proper C++ library support
11735 # FIXME: insert proper C++ library support
11739 # FIXME: insert proper C++ library support
11745 case $cc_basename in
11747 # Sun C++ 4.2, 5.x and Centerline C++
11748 archive_cmds_need_lc_CXX=yes
11749 no_undefined_flag_CXX=' -zdefs'
11750 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11751 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11752 $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'
11754 hardcode_libdir_flag_spec_CXX='-R$libdir'
11755 hardcode_shlibpath_var_CXX=no
11757 solaris2.[0-5] | solaris2.[0-5].*) ;;
11759 # The C++ compiler is used as linker so we must use $wl
11760 # flag to pass the commands to the underlying system
11761 # linker. We must also pass each convience library through
11762 # to the system linker between allextract/defaultextract.
11763 # The C++ compiler will combine linker options so we
11764 # cannot just pass the convience library names through
11766 # Supported since Solaris 2.6 (maybe 2.5.1?)
11767 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'
11770 link_all_deplibs_CXX=yes
11772 output_verbose_link_cmd='echo'
11774 # Archives containing C++ object files must be created using
11775 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11776 # necessary to make sure instantiated templates are included
11778 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11781 # Green Hills C++ Compiler
11782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11784 # The C++ compiler must be used to create the archive.
11785 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11788 # GNU C++ compiler with Solaris linker
11789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11790 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11791 if $CC --version | grep -v '^2\.7' > /dev/null; then
11792 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11794 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11796 # Commands to make compiler produce verbose output that lists
11797 # what "hidden" libraries, object files and flags are used when
11798 # linking a shared library.
11799 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11801 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11803 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11804 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11805 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11810 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11813 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11818 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11819 no_undefined_flag_CXX='${wl}-z,text'
11820 archive_cmds_need_lc_CXX=no
11821 hardcode_shlibpath_var_CXX=no
11822 runpath_var='LD_RUN_PATH'
11824 case $cc_basename in
11826 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11827 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 sysv5* | sco3.2v5* | sco5v6*)
11836 # Note: We can NOT use -z defs as we might desire, because we do not
11837 # link with -lc, and that would cause any symbols used from libc to
11838 # always be unresolved, which means just about no library would
11839 # ever link correctly. If we're not using GNU ld we use -z text
11840 # though, which does catch some bad symbols but isn't as heavy-handed
11842 # For security reasons, it is highly recommended that you always
11843 # use absolute paths for naming shared libraries, and exclude the
11844 # DT_RUNPATH tag from executables and libraries. But doing so
11845 # requires that you compile everything twice, which is a pain.
11846 # So that behaviour is only enabled if SCOABSPATH is set to a
11847 # non-empty value in the environment. Most likely only useful for
11848 # creating official distributions of packages.
11849 # This is a hack until libtool officially supports absolute path
11850 # names for shared libraries.
11851 no_undefined_flag_CXX='${wl}-z,text'
11852 allow_undefined_flag_CXX='${wl}-z,nodefs'
11853 archive_cmds_need_lc_CXX=no
11854 hardcode_shlibpath_var_CXX=no
11855 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11856 hardcode_libdir_separator_CXX=':'
11857 link_all_deplibs_CXX=yes
11858 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11859 runpath_var='LD_RUN_PATH'
11861 case $cc_basename in
11863 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11864 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11867 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11873 case $cc_basename in
11875 # NonStop-UX NCC 3.20
11876 # FIXME: insert proper C++ library support
11880 # FIXME: insert proper C++ library support
11886 # FIXME: insert proper C++ library support
11890 # FIXME: insert proper C++ library support
11894 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11895 $as_echo "$ld_shlibs_CXX" >&6; }
11896 test "$ld_shlibs_CXX" = no && can_build_shared=no
11902 cat > conftest.$ac_ext <<EOF
11906 Foo (void) { a = 0; }
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913 (eval $ac_compile) 2>&5
11915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; then
11917 # Parse the compiler output and extract the necessary
11918 # objects, libraries and library flags.
11920 # Sentinel used to keep track of whether or not we are before
11921 # the conftest object file.
11922 pre_test_object_deps_done=no
11924 # The `*' in the case matches for architectures that use `case' in
11925 # $output_verbose_cmd can trigger glob expansion during the loop
11926 # eval without this substitution.
11927 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11929 for p in `eval $output_verbose_link_cmd`; do
11933 # Some compilers place space between "-{L,R}" and the path.
11934 # Remove the space.
11935 if test $p = "-L" \
11936 || test $p = "-R"; then
11943 if test "$pre_test_object_deps_done" = no; then
11946 # Internal compiler library paths should come after those
11947 # provided the user. The postdeps already come after the
11948 # user supplied libs so there is no need to process them.
11949 if test -z "$compiler_lib_search_path_CXX"; then
11950 compiler_lib_search_path_CXX="${prev}${p}"
11952 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11955 # The "-l" case would never come before the object being
11956 # linked, so don't bother handling this case.
11959 if test -z "$postdeps_CXX"; then
11960 postdeps_CXX="${prev}${p}"
11962 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11968 # This assumes that the test object file only shows up
11969 # once in the compiler output.
11970 if test "$p" = "conftest.$objext"; then
11971 pre_test_object_deps_done=yes
11975 if test "$pre_test_object_deps_done" = no; then
11976 if test -z "$predep_objects_CXX"; then
11977 predep_objects_CXX="$p"
11979 predep_objects_CXX="$predep_objects_CXX $p"
11982 if test -z "$postdep_objects_CXX"; then
11983 postdep_objects_CXX="$p"
11985 postdep_objects_CXX="$postdep_objects_CXX $p"
11990 *) ;; # Ignore the rest.
11998 echo "libtool.m4: error: problem compiling CXX test program"
12001 $rm -f confest.$objext
12003 # PORTME: override above test on systems where it is broken
12006 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12007 # hack all around it, let's just trust "g++" to DTRT.
12008 predep_objects_CXX=
12009 postdep_objects_CXX=
12014 case $cc_basename in
12016 # Adding this requires a known-good setup of shared libraries for
12017 # Sun compiler versions before 5.6, else PIC objects from an old
12018 # archive will be linked into the output, leading to subtle bugs.
12019 postdeps_CXX='-lCstd -lCrun'
12026 case " $postdeps_CXX " in
12027 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12030 lt_prog_compiler_wl_CXX=
12031 lt_prog_compiler_pic_CXX=
12032 lt_prog_compiler_static_CXX=
12034 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12035 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12037 # C++ specific cases for pic, static, wl, etc.
12038 if test "$GXX" = yes; then
12039 lt_prog_compiler_wl_CXX='-Wl,'
12040 lt_prog_compiler_static_CXX='-static'
12044 # All AIX code is PIC.
12045 if test "$host_cpu" = ia64; then
12046 # AIX 5 now supports IA64 processor
12047 lt_prog_compiler_static_CXX='-Bstatic'
12051 # FIXME: we need at least 68020 code to build shared libraries, but
12052 # adding the `-m68020' flag to GCC prevents building anything better,
12054 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12057 # PIC is the default for these OSes.
12059 mingw* | os2* | pw32*)
12060 # This hack is so that the source file can tell whether it is being
12061 # built for inclusion in a dll (and should export symbols for example).
12062 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12064 darwin* | rhapsody*)
12065 # PIC is the default on this platform
12066 # Common symbols not allowed in MH_DYLIB files
12067 lt_prog_compiler_pic_CXX='-fno-common'
12070 # DJGPP does not support shared libraries at all
12071 lt_prog_compiler_pic_CXX=
12074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12075 # Instead, we relocate shared libraries at runtime.
12078 if test -d /usr/nec; then
12079 lt_prog_compiler_pic_CXX=-Kconform_pic
12083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12084 # not for PA HP-UX.
12089 lt_prog_compiler_pic_CXX='-fPIC'
12094 lt_prog_compiler_pic_CXX='-fPIC'
12100 # All AIX code is PIC.
12101 if test "$host_cpu" = ia64; then
12102 # AIX 5 now supports IA64 processor
12103 lt_prog_compiler_static_CXX='-Bstatic'
12105 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12109 case $cc_basename in
12111 # Green Hills C++ Compiler
12112 # _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"
12117 # PIC is the default on this platform
12118 # Common symbols not allowed in MH_DYLIB files
12119 case $cc_basename in
12121 lt_prog_compiler_pic_CXX='-qnocommon'
12122 lt_prog_compiler_wl_CXX='-Wl,'
12127 case $cc_basename in
12129 lt_prog_compiler_pic_CXX='-KPIC'
12132 # Green Hills C++ Compiler
12133 lt_prog_compiler_pic_CXX='-pic'
12139 freebsd* | kfreebsd*-gnu | dragonfly*)
12140 # FreeBSD uses GNU C++
12142 hpux9* | hpux10* | hpux11*)
12143 case $cc_basename in
12145 lt_prog_compiler_wl_CXX='-Wl,'
12146 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12147 if test "$host_cpu" != ia64; then
12148 lt_prog_compiler_pic_CXX='+Z'
12152 lt_prog_compiler_wl_CXX='-Wl,'
12153 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12159 lt_prog_compiler_pic_CXX='+Z'
12168 # This is c89, which is MS Visual C++ (no shared libs)
12169 # Anyone wants to do a port?
12171 irix5* | irix6* | nonstopux*)
12172 case $cc_basename in
12174 lt_prog_compiler_wl_CXX='-Wl,'
12175 lt_prog_compiler_static_CXX='-non_shared'
12176 # CC pic flag -KPIC is the default.
12183 case $cc_basename in
12186 lt_prog_compiler_wl_CXX='--backend -Wl,'
12187 lt_prog_compiler_pic_CXX='-fPIC'
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_pic_CXX='-KPIC'
12193 lt_prog_compiler_static_CXX='-static'
12196 # Portland Group C++ compiler.
12197 lt_prog_compiler_wl_CXX='-Wl,'
12198 lt_prog_compiler_pic_CXX='-fpic'
12199 lt_prog_compiler_static_CXX='-Bstatic'
12203 # Make sure the PIC flag is empty. It appears that all Alpha
12204 # Linux and Compaq Tru64 Unix objects are PIC.
12205 lt_prog_compiler_pic_CXX=
12206 lt_prog_compiler_static_CXX='-non_shared'
12217 case $cc_basename in
12219 lt_prog_compiler_pic_CXX='-W c,exportall'
12227 osf3* | osf4* | osf5*)
12228 case $cc_basename in
12230 lt_prog_compiler_wl_CXX='--backend -Wl,'
12233 # Rational C++ 2.4.1
12234 lt_prog_compiler_pic_CXX='-pic'
12237 # Digital/Compaq C++
12238 lt_prog_compiler_wl_CXX='-Wl,'
12239 # Make sure the PIC flag is empty. It appears that all Alpha
12240 # Linux and Compaq Tru64 Unix objects are PIC.
12241 lt_prog_compiler_pic_CXX=
12242 lt_prog_compiler_static_CXX='-non_shared'
12251 case $cc_basename in
12253 # Sun C++ 4.2, 5.x and Centerline C++
12254 lt_prog_compiler_pic_CXX='-KPIC'
12255 lt_prog_compiler_static_CXX='-Bstatic'
12256 lt_prog_compiler_wl_CXX='-Qoption ld '
12259 # Green Hills C++ Compiler
12260 lt_prog_compiler_pic_CXX='-PIC'
12267 case $cc_basename in
12270 lt_prog_compiler_pic_CXX='-pic'
12271 lt_prog_compiler_static_CXX='-Bstatic'
12275 lt_prog_compiler_pic_CXX='-pic'
12282 case $cc_basename in
12284 # NonStop-UX NCC 3.20
12285 lt_prog_compiler_pic_CXX='-KPIC'
12291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12292 case $cc_basename in
12294 lt_prog_compiler_wl_CXX='-Wl,'
12295 lt_prog_compiler_pic_CXX='-KPIC'
12296 lt_prog_compiler_static_CXX='-Bstatic'
12303 lt_prog_compiler_can_build_shared_CXX=no
12308 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12309 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12312 # Check to make sure the PIC flag actually works.
12314 if test -n "$lt_prog_compiler_pic_CXX"; then
12316 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12317 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12318 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12319 $as_echo_n "(cached) " >&6
12321 lt_prog_compiler_pic_works_CXX=no
12322 ac_outfile=conftest.$ac_objext
12323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12324 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12325 # Insert the option either (1) after the last *FLAGS variable, or
12326 # (2) before a word containing "conftest.", or (3) at the end.
12327 # Note that $ac_compile itself does not contain backslashes and begins
12328 # with a dollar sign (not a hyphen), so the echo should work correctly.
12329 # The option is referenced via a variable to avoid confusing sed.
12330 lt_compile=`echo "$ac_compile" | $SED \
12331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333 -e 's:$: $lt_compiler_flag:'`
12334 (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
12335 (eval "$lt_compile" 2>conftest.err)
12337 cat conftest.err >&5
12338 echo "$as_me:12338: \$? = $ac_status" >&5
12339 if (exit $ac_status) && test -s "$ac_outfile"; then
12340 # The compiler can only warn and ignore the option if not recognized
12341 # So say no if there are warnings other than the usual output.
12342 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12345 lt_prog_compiler_pic_works_CXX=yes
12351 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12352 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12354 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12355 case $lt_prog_compiler_pic_CXX in
12357 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12360 lt_prog_compiler_pic_CXX=
12361 lt_prog_compiler_can_build_shared_CXX=no
12366 # For platforms which do not support PIC, -DPIC is meaningless:
12368 lt_prog_compiler_pic_CXX=
12371 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12376 # Check to make sure the static flag actually works.
12378 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12379 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12380 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12381 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12382 $as_echo_n "(cached) " >&6
12384 lt_prog_compiler_static_works_CXX=no
12385 save_LDFLAGS="$LDFLAGS"
12386 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12387 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12389 # The linker can only warn and ignore the option if not recognized
12390 # So say no if there are warnings
12391 if test -s conftest.err; then
12392 # Append any errors to the config.log.
12393 cat conftest.err 1>&5
12394 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12396 if diff conftest.exp conftest.er2 >/dev/null; then
12397 lt_prog_compiler_static_works_CXX=yes
12400 lt_prog_compiler_static_works_CXX=yes
12404 LDFLAGS="$save_LDFLAGS"
12407 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12408 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12410 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12413 lt_prog_compiler_static_CXX=
12417 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12418 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12419 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12420 $as_echo_n "(cached) " >&6
12422 lt_cv_prog_compiler_c_o_CXX=no
12423 $rm -r conftest 2>/dev/null
12427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12429 lt_compiler_flag="-o out/conftest2.$ac_objext"
12430 # Insert the option either (1) after the last *FLAGS variable, or
12431 # (2) before a word containing "conftest.", or (3) at the end.
12432 # Note that $ac_compile itself does not contain backslashes and begins
12433 # with a dollar sign (not a hyphen), so the echo should work correctly.
12434 lt_compile=`echo "$ac_compile" | $SED \
12435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12437 -e 's:$: $lt_compiler_flag:'`
12438 (eval echo "\"\$as_me:12438: $lt_compile\"" >&5)
12439 (eval "$lt_compile" 2>out/conftest.err)
12441 cat out/conftest.err >&5
12442 echo "$as_me:12442: \$? = $ac_status" >&5
12443 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12445 # The compiler can only warn and ignore the option if not recognized
12446 # So say no if there are warnings
12447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12448 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12449 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12450 lt_cv_prog_compiler_c_o_CXX=yes
12455 # SGI C++ compiler will create directory out/ii_files/ for
12456 # template instantiation
12457 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12458 $rm out/* && rmdir out
12464 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12465 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12468 hard_links="nottested"
12469 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12470 # do not overwrite the value of need_locks provided by the user
12471 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12472 $as_echo_n "checking if we can lock with hard links... " >&6; }
12475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12477 ln conftest.a conftest.b 2>&5 || hard_links=no
12478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12479 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12480 $as_echo "$hard_links" >&6; }
12481 if test "$hard_links" = no; then
12482 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12483 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12490 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12493 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12496 # If we're using GNU nm, then we don't want the "-C" option.
12497 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12498 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12499 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'
12501 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'
12505 export_symbols_cmds_CXX="$ltdll_cmds"
12508 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'
12511 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12515 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12516 $as_echo "$ld_shlibs_CXX" >&6; }
12517 test "$ld_shlibs_CXX" = no && can_build_shared=no
12520 # Do we need to explicitly link libc?
12522 case "x$archive_cmds_need_lc_CXX" in
12524 # Assume -lc should be added
12525 archive_cmds_need_lc_CXX=yes
12527 if test "$enable_shared" = yes && test "$GCC" = yes; then
12528 case $archive_cmds_CXX in
12530 # FIXME: we may have to deal with multi-command sequences.
12533 # Test whether the compiler implicitly links with -lc since on some
12534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12535 # to ld, don't add -lc before -lgcc.
12536 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>&5
12544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } 2>conftest.err; then
12548 libobjs=conftest.$ac_objext
12550 wl=$lt_prog_compiler_wl_CXX
12551 pic_flag=$lt_prog_compiler_pic_CXX
12557 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12558 allow_undefined_flag_CXX=
12559 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12560 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }
12565 archive_cmds_need_lc_CXX=no
12567 archive_cmds_need_lc_CXX=yes
12569 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12571 cat conftest.err 1>&5
12574 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12575 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12582 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12583 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12584 library_names_spec=
12585 libname_spec='lib$name'
12589 postuninstall_cmds=
12593 shlibpath_overrides_runpath=unknown
12595 dynamic_linker="$host_os ld.so"
12596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12597 if test "$GCC" = yes; then
12598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12599 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12600 # if the path contains ";" then we assume it to be the separator
12601 # otherwise default to the standard path separator (i.e. ":") - it is
12602 # assumed that no part of a normal pathname contains ";" but that should
12603 # okay in the real world where ";" in dirpaths is itself problematic.
12604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12611 need_lib_prefix=unknown
12612 hardcode_into_libs=no
12614 # when you set need_version to no, make sure it does not cause -set_version
12615 # flags to be left without arguments
12616 need_version=unknown
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12622 shlibpath_var=LIBPATH
12624 # AIX 3 has no versioning support, so we append a major version to the name.
12625 soname_spec='${libname}${release}${shared_ext}$major'
12632 hardcode_into_libs=yes
12633 if test "$host_cpu" = ia64; then
12634 # AIX 5 supports IA64
12635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12636 shlibpath_var=LD_LIBRARY_PATH
12638 # With GCC up to 2.95.x, collect2 would create an import file
12639 # for dependence libraries. The import file would start with
12640 # the line `#! .'. This would cause the generated library to
12641 # depend on `.', always an invalid library. This was fixed in
12642 # development snapshots of GCC prior to 3.0.
12644 aix4 | aix4.[01] | aix4.[01].*)
12645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12647 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12650 can_build_shared=no
12654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12655 # soname into executable. Probably we can add versioning support to
12656 # collect2, so additional links can be useful in future.
12657 if test "$aix_use_runtimelinking" = yes; then
12658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12659 # instead of lib<name>.a to let people know that these are not
12660 # typical AIX shared libraries.
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12663 # We preserve .a as extension for shared libraries through AIX4.2
12664 # and later when we are not doing run time linking.
12665 library_names_spec='${libname}${release}.a $libname.a'
12666 soname_spec='${libname}${release}${shared_ext}$major'
12668 shlibpath_var=LIBPATH
12673 library_names_spec='$libname.ixlibrary $libname.a'
12674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12675 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'
12679 library_names_spec='${libname}${shared_ext}'
12680 dynamic_linker="$host_os ld.so"
12681 shlibpath_var=LIBRARY_PATH
12687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12688 soname_spec='${libname}${release}${shared_ext}$major'
12689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12690 shlibpath_var=LD_LIBRARY_PATH
12691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12693 # the default ld.so.conf also contains /usr/contrib/lib and
12694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12695 # libtool to hard-code these into programs
12698 cygwin* | mingw* | pw32*)
12699 version_type=windows
12704 case $GCC,$host_os in
12705 yes,cygwin* | yes,mingw* | yes,pw32*)
12706 library_names_spec='$libname.dll.a'
12707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12708 postinstall_cmds='base_file=`basename \${file}`~
12709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12710 dldir=$destdir/`dirname \$dlpath`~
12711 test -d \$dldir || mkdir -p \$dldir~
12712 $install_prog $dir/$dlname \$dldir/$dlname~
12713 chmod a+x \$dldir/$dlname'
12714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12715 dlpath=$dir/\$dldll~
12717 shlibpath_overrides_runpath=yes
12721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12726 # MinGW DLLs use traditional 'lib' prefix
12727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12730 # It is most probably a Windows format PATH printed by
12731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12732 # path with ; separators, and with drive letters. We can handle the
12733 # drive letters (cygwin fileutils understands them), so leave them,
12734 # especially as we might pass files found there to a mingw objdump,
12735 # which wouldn't understand a cygwinified path. Ahh.
12736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12742 # pw32 DLLs use 'pw' prefix rather than 'lib'
12743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12752 dynamic_linker='Win32 ld.exe'
12753 # FIXME: first we should search . and the directory the executable is in
12757 darwin* | rhapsody*)
12758 dynamic_linker="$host_os dyld"
12759 version_type=darwin
12762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12763 soname_spec='${libname}${release}${major}$shared_ext'
12764 shlibpath_overrides_runpath=yes
12765 shlibpath_var=DYLD_LIBRARY_PATH
12766 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12767 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12768 if test "$GCC" = yes; then
12769 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"`
12771 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 shlibpath_var=LD_LIBRARY_PATH
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=no
12797 hardcode_into_libs=yes
12798 dynamic_linker='GNU ld.so'
12801 freebsd* | dragonfly*)
12802 # DragonFly does not have aout. When/if they implement a new
12803 # versioning mechanism, adjust this.
12804 if test -x /usr/bin/objformat; then
12805 objformat=`/usr/bin/objformat`
12808 freebsd[123]*) objformat=aout ;;
12809 *) objformat=elf ;;
12812 version_type=freebsd-$objformat
12813 case $version_type in
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12824 shlibpath_var=LD_LIBRARY_PATH
12827 shlibpath_overrides_runpath=yes
12829 freebsd3.[01]* | freebsdelf3.[01]*)
12830 shlibpath_overrides_runpath=yes
12831 hardcode_into_libs=yes
12833 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12834 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12835 shlibpath_overrides_runpath=no
12836 hardcode_into_libs=yes
12838 freebsd*) # from 4.6 on
12839 shlibpath_overrides_runpath=yes
12840 hardcode_into_libs=yes
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12850 soname_spec='${libname}${release}${shared_ext}$major'
12851 shlibpath_var=LD_LIBRARY_PATH
12852 hardcode_into_libs=yes
12855 hpux9* | hpux10* | hpux11*)
12856 # Give a soname corresponding to the major version so that dld.sl refuses to
12857 # link against other versions.
12864 hardcode_into_libs=yes
12865 dynamic_linker="$host_os dld.so"
12866 shlibpath_var=LD_LIBRARY_PATH
12867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869 soname_spec='${libname}${release}${shared_ext}$major'
12870 if test "X$HPUX_IA64_MODE" = X32; then
12871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12879 hardcode_into_libs=yes
12880 dynamic_linker="$host_os dld.sl"
12881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12890 dynamic_linker="$host_os dld.sl"
12891 shlibpath_var=SHLIB_PATH
12892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12894 soname_spec='${libname}${release}${shared_ext}$major'
12897 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12898 postinstall_cmds='chmod 555 $lib'
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906 soname_spec='${libname}${release}${shared_ext}$major'
12907 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12908 shlibpath_var=LD_LIBRARY_PATH
12909 shlibpath_overrides_runpath=no
12910 hardcode_into_libs=yes
12913 irix5* | irix6* | nonstopux*)
12915 nonstopux*) version_type=nonstopux ;;
12917 if test "$lt_cv_prog_gnu_ld" = yes; then
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12928 irix5* | nonstopux*)
12929 libsuff= shlibsuff=
12932 case $LD in # libtool.m4 will add one of these switches to LD
12933 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12934 libsuff= shlibsuff= libmagic=32-bit;;
12935 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12936 libsuff=32 shlibsuff=N32 libmagic=N32;;
12937 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12938 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12939 *) libsuff= shlibsuff= libmagic=never-match;;
12943 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12944 shlibpath_overrides_runpath=no
12945 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12946 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12947 hardcode_into_libs=yes
12950 # No shared lib support for Linux oldld, aout, or coff.
12951 linux*oldld* | linux*aout* | linux*coff*)
12955 # This must be Linux ELF.
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 shlibpath_overrides_runpath=no
12965 # This implies no fast_install, which is unacceptable.
12966 # Some rework will be needed to allow for fast_install
12967 # before this can be enabled.
12968 hardcode_into_libs=yes
12970 # find out which ABI we are using
12972 case "$host_cpu" in
12973 x86_64*|s390x*|powerpc64*)
12974 echo '#line 12974 "configure"' > conftest.$ac_ext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; then
12980 case `/usr/bin/file conftest.$ac_objext` in
12983 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12991 # Append ld.so.conf contents to the search path
12992 if test -f /etc/ld.so.conf; then
12993 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12994 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12997 # We used to test for /lib/ld.so.1 and disable shared libraries on
12998 # powerpc, because MkLinux only supported shared libraries with the
12999 # GNU dynamic linker. Since this was broken with cross compilers,
13000 # most powerpc-linux boxes support dynamic linking these days and
13001 # people can always --disable-shared, the test was removed, and we
13002 # assume the GNU/Linux dynamic linker is in use.
13003 dynamic_linker='GNU/Linux ld.so'
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13011 soname_spec='${libname}${release}${shared_ext}$major'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 shlibpath_overrides_runpath=no
13014 hardcode_into_libs=yes
13015 dynamic_linker='GNU ld.so'
13022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13025 dynamic_linker='NetBSD (a.out) ld.so'
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 dynamic_linker='NetBSD ld.elf_so'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 shlibpath_overrides_runpath=yes
13033 hardcode_into_libs=yes
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 shlibpath_var=LD_LIBRARY_PATH
13040 shlibpath_overrides_runpath=yes
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 shlibpath_overrides_runpath=yes
13055 sys_lib_dlsearch_path_spec="/usr/lib"
13057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13060 *) need_version=no ;;
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13067 openbsd2.[89] | openbsd2.[89].*)
13068 shlibpath_overrides_runpath=no
13071 shlibpath_overrides_runpath=yes
13075 shlibpath_overrides_runpath=yes
13080 libname_spec='$name'
13083 library_names_spec='$libname${shared_ext} $libname.a'
13084 dynamic_linker='OS/2 ld.exe'
13085 shlibpath_var=LIBPATH
13088 osf3* | osf4* | osf5*)
13092 soname_spec='${libname}${release}${shared_ext}$major'
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 # ldd complains unless libraries are executable
13109 postinstall_cmds='chmod +x $lib'
13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13116 shlibpath_var=LD_LIBRARY_PATH
13117 shlibpath_overrides_runpath=yes
13118 if test "$with_gnu_ld" = yes; then
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 case $host_vendor in
13131 shlibpath_overrides_runpath=no
13133 export_dynamic_flag_spec='${wl}-Blargedynsym'
13134 runpath_var=LD_RUN_PATH
13142 shlibpath_overrides_runpath=no
13143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13149 if test -d /usr/nec ;then
13151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13152 soname_spec='$libname${shared_ext}.$major'
13153 shlibpath_var=LD_LIBRARY_PATH
13157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13158 version_type=freebsd-elf
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 shlibpath_var=LD_LIBRARY_PATH
13164 hardcode_into_libs=yes
13165 if test "$with_gnu_ld" = yes; then
13166 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13167 shlibpath_overrides_runpath=no
13169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13170 shlibpath_overrides_runpath=yes
13173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13177 sys_lib_dlsearch_path_spec='/usr/lib'
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 shlibpath_var=LD_LIBRARY_PATH
13191 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13192 $as_echo "$dynamic_linker" >&6; }
13193 test "$dynamic_linker" = no && can_build_shared=no
13195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13196 if test "$GCC" = yes; then
13197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13200 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13201 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13202 hardcode_action_CXX=
13203 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13204 test -n "$runpath_var_CXX" || \
13205 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13207 # We can hardcode non-existant directories.
13208 if test "$hardcode_direct_CXX" != no &&
13209 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13210 # have to relink, otherwise we might link with an installed library
13211 # when we should be linking with a yet-to-be-installed one
13212 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13213 test "$hardcode_minus_L_CXX" != no; then
13214 # Linking always hardcodes the temporary library directory.
13215 hardcode_action_CXX=relink
13217 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13218 hardcode_action_CXX=immediate
13221 # We cannot hardcode anything, or else we can only hardcode existing
13223 hardcode_action_CXX=unsupported
13225 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13226 $as_echo "$hardcode_action_CXX" >&6; }
13228 if test "$hardcode_action_CXX" = relink; then
13229 # Fast installation is not supported
13230 enable_fast_install=no
13231 elif test "$shlibpath_overrides_runpath" = yes ||
13232 test "$enable_shared" = no; then
13233 # Fast installation is not necessary
13234 enable_fast_install=needless
13238 # The else clause should only fire when bootstrapping the
13239 # libtool distribution, otherwise you forgot to ship ltmain.sh
13240 # with your package, and you will get complaints that there are
13241 # no rules to generate ltmain.sh.
13242 if test -f "$ltmain"; then
13243 # See if we are running on zsh, and set the options which allow our commands through
13244 # without removal of \ escapes.
13245 if test -n "${ZSH_VERSION+set}" ; then
13246 setopt NO_GLOB_SUBST
13248 # Now quote all the things that may contain metacharacters while being
13249 # careful not to overquote the AC_SUBSTed values. We take copies of the
13250 # variables and quote the copies for generation of the libtool script.
13251 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13253 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13254 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13255 deplibs_check_method reload_flag reload_cmds need_locks \
13256 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13257 lt_cv_sys_global_symbol_to_c_name_address \
13258 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13259 old_postinstall_cmds old_postuninstall_cmds \
13263 lt_prog_compiler_wl_CXX \
13264 lt_prog_compiler_pic_CXX \
13265 lt_prog_compiler_static_CXX \
13266 lt_prog_compiler_no_builtin_flag_CXX \
13267 export_dynamic_flag_spec_CXX \
13268 thread_safe_flag_spec_CXX \
13269 whole_archive_flag_spec_CXX \
13270 enable_shared_with_static_runtimes_CXX \
13271 old_archive_cmds_CXX \
13272 old_archive_from_new_cmds_CXX \
13273 predep_objects_CXX \
13274 postdep_objects_CXX \
13277 compiler_lib_search_path_CXX \
13279 archive_expsym_cmds_CXX \
13280 postinstall_cmds_CXX \
13281 postuninstall_cmds_CXX \
13282 old_archive_from_expsyms_cmds_CXX \
13283 allow_undefined_flag_CXX \
13284 no_undefined_flag_CXX \
13285 export_symbols_cmds_CXX \
13286 hardcode_libdir_flag_spec_CXX \
13287 hardcode_libdir_flag_spec_ld_CXX \
13288 hardcode_libdir_separator_CXX \
13289 hardcode_automatic_CXX \
13291 module_expsym_cmds_CXX \
13292 lt_cv_prog_compiler_c_o_CXX \
13293 exclude_expsyms_CXX \
13294 include_expsyms_CXX; do
13297 old_archive_cmds_CXX | \
13298 old_archive_from_new_cmds_CXX | \
13299 archive_cmds_CXX | \
13300 archive_expsym_cmds_CXX | \
13301 module_cmds_CXX | \
13302 module_expsym_cmds_CXX | \
13303 old_archive_from_expsyms_cmds_CXX | \
13304 export_symbols_cmds_CXX | \
13305 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13306 postinstall_cmds | postuninstall_cmds | \
13307 old_postinstall_cmds | old_postuninstall_cmds | \
13308 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13309 # Double-quote double-evaled strings.
13310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13319 *'\$0 --fallback-echo"')
13320 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13326 cat <<__EOF__ >> "$cfgfile"
13327 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13331 # Shell to use when invoking shell scripts.
13334 # Whether or not to build shared libraries.
13335 build_libtool_libs=$enable_shared
13337 # Whether or not to build static libraries.
13338 build_old_libs=$enable_static
13340 # Whether or not to add -lc for building shared libraries.
13341 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13343 # Whether or not to disallow shared libs when runtime libs are static
13344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13346 # Whether or not to optimize for fast installation.
13347 fast_install=$enable_fast_install
13350 host_alias=$host_alias
13354 # The build system.
13355 build_alias=$build_alias
13359 # An echo program that does not interpret backslashes.
13364 AR_FLAGS=$lt_AR_FLAGS
13369 # LTCC compiler flags.
13370 LTCFLAGS=$lt_LTCFLAGS
13372 # A language-specific compiler.
13373 CC=$lt_compiler_CXX
13375 # Is the compiler the GNU C compiler?
13378 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13379 gcc_ver=\`gcc -dumpversion\`
13384 # The linker used to build libraries.
13387 # Whether we need hard or soft links.
13390 # A BSD-compatible nm program.
13393 # A symbol stripping program
13396 # Used to examine libraries when file_magic_cmd begins "file"
13397 MAGIC_CMD=$MAGIC_CMD
13399 # Used on cygwin: DLL creation program.
13402 # Used on cygwin: object dumper.
13405 # Used on cygwin: assembler.
13408 # The name of the directory that contains temporary libtool files.
13411 # How to create reloadable object files.
13412 reload_flag=$lt_reload_flag
13413 reload_cmds=$lt_reload_cmds
13415 # How to pass a linker flag through the compiler.
13416 wl=$lt_lt_prog_compiler_wl_CXX
13418 # Object file suffix (normally "o").
13419 objext="$ac_objext"
13421 # Old archive suffix (normally "a").
13424 # Shared library suffix (normally ".so").
13425 shrext_cmds='$shrext_cmds'
13427 # Executable file suffix (normally "").
13430 # Additional compiler flags for building library objects.
13431 pic_flag=$lt_lt_prog_compiler_pic_CXX
13434 # What is the maximum length of a command?
13435 max_cmd_len=$lt_cv_sys_max_cmd_len
13437 # Does compiler simultaneously support -c and -o options?
13438 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13440 # Must we lock files when doing compilation?
13441 need_locks=$lt_need_locks
13443 # Do we need the lib prefix for modules?
13444 need_lib_prefix=$need_lib_prefix
13446 # Do we need a version for libraries?
13447 need_version=$need_version
13449 # Whether dlopen is supported.
13450 dlopen_support=$enable_dlopen
13452 # Whether dlopen of programs is supported.
13453 dlopen_self=$enable_dlopen_self
13455 # Whether dlopen of statically linked programs is supported.
13456 dlopen_self_static=$enable_dlopen_self_static
13458 # Compiler flag to prevent dynamic linking.
13459 link_static_flag=$lt_lt_prog_compiler_static_CXX
13461 # Compiler flag to turn off builtin functions.
13462 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13464 # Compiler flag to allow reflexive dlopens.
13465 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13467 # Compiler flag to generate shared objects directly from archives.
13468 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13470 # Compiler flag to generate thread-safe objects.
13471 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13473 # Library versioning type.
13474 version_type=$version_type
13476 # Format of library name prefix.
13477 libname_spec=$lt_libname_spec
13479 # List of archive names. First name is the real one, the rest are links.
13480 # The last name is the one that the linker finds with -lNAME.
13481 library_names_spec=$lt_library_names_spec
13483 # The coded name of the library, if different from the real name.
13484 soname_spec=$lt_soname_spec
13486 # Commands used to build and install an old-style archive.
13488 old_archive_cmds=$lt_old_archive_cmds_CXX
13489 old_postinstall_cmds=$lt_old_postinstall_cmds
13490 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13492 # Create an old-style archive from a shared archive.
13493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13495 # Create a temporary old-style archive to link instead of a shared archive.
13496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13498 # Commands used to build and install a shared archive.
13499 archive_cmds=$lt_archive_cmds_CXX
13500 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13501 postinstall_cmds=$lt_postinstall_cmds
13502 postuninstall_cmds=$lt_postuninstall_cmds
13504 # Commands used to build a loadable module (assumed same as above if empty)
13505 module_cmds=$lt_module_cmds_CXX
13506 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13508 # Commands to strip libraries.
13509 old_striplib=$lt_old_striplib
13510 striplib=$lt_striplib
13512 # Dependencies to place before the objects being linked to create a
13514 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13516 # Dependencies to place after the objects being linked to create a
13518 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13520 # Dependencies to place before the objects being linked to create a
13522 predeps=$lt_predeps_CXX
13524 # Dependencies to place after the objects being linked to create a
13526 postdeps=$lt_postdeps_CXX
13528 # The library search path used internally by the compiler when linking
13529 # a shared library.
13530 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"\`
13532 # Method to check whether dependent libraries are shared objects.
13533 deplibs_check_method=$lt_deplibs_check_method
13535 # Command to use when deplibs_check_method == file_magic.
13536 file_magic_cmd=$lt_file_magic_cmd
13538 # Flag that allows shared libraries with undefined symbols to be built.
13539 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13541 # Flag that forces no undefined symbols.
13542 no_undefined_flag=$lt_no_undefined_flag_CXX
13544 # Commands used to finish a libtool library installation in a directory.
13545 finish_cmds=$lt_finish_cmds
13547 # Same as above, but a single script fragment to be evaled but not shown.
13548 finish_eval=$lt_finish_eval
13550 # Take the output of nm and produce a listing of raw symbols and C names.
13551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13553 # Transform the output of nm in a proper C declaration
13554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13556 # Transform the output of nm in a C name address pair
13557 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13559 # This is the shared library runtime path variable.
13560 runpath_var=$runpath_var
13562 # This is the shared library path variable.
13563 shlibpath_var=$shlibpath_var
13565 # Is shlibpath searched before the hard-coded library search path?
13566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13568 # How to hardcode a shared library path into an executable.
13569 hardcode_action=$hardcode_action_CXX
13571 # Whether we should hardcode library paths into libraries.
13572 hardcode_into_libs=$hardcode_into_libs
13574 # Flag to hardcode \$libdir into a binary during linking.
13575 # This must work even if \$libdir does not exist.
13576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13578 # If ld is used when linking, flag to hardcode \$libdir into
13579 # a binary during linking. This must work even if \$libdir does
13581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13583 # Whether we need a single -rpath flag with a separated argument.
13584 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13586 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13587 # resulting binary.
13588 hardcode_direct=$hardcode_direct_CXX
13590 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13591 # resulting binary.
13592 hardcode_minus_L=$hardcode_minus_L_CXX
13594 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13595 # the resulting binary.
13596 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13598 # Set to yes if building a shared library automatically hardcodes DIR into the library
13599 # and all subsequent libraries and executables linked against it.
13600 hardcode_automatic=$hardcode_automatic_CXX
13602 # Variables whose values should be saved in libtool wrapper scripts and
13603 # restored at relink time.
13604 variables_saved_for_relink="$variables_saved_for_relink"
13606 # Whether libtool must link a program against all its dependency libraries.
13607 link_all_deplibs=$link_all_deplibs_CXX
13609 # Compile-time system search path for libraries
13610 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"\`
13612 # Run-time system search path for libraries
13613 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13615 # Fix the shell variable \$srcfile for the compiler.
13616 fix_srcfile_path="$fix_srcfile_path_CXX"
13618 # Set to yes if exported symbols are required.
13619 always_export_symbols=$always_export_symbols_CXX
13621 # The commands to list exported symbols.
13622 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13624 # The commands to extract the exported symbol list from a shared archive.
13625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13627 # Symbols that should not be listed in the preloaded symbols.
13628 exclude_expsyms=$lt_exclude_expsyms_CXX
13630 # Symbols that must always be exported.
13631 include_expsyms=$lt_include_expsyms_CXX
13633 # ### END LIBTOOL TAG CONFIG: $tagname
13639 # If there is no Makefile yet, we rely on a make rule to execute
13640 # `config.status --recheck' to rerun these tests and create the
13641 # libtool script then.
13642 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13643 if test -f "$ltmain_in"; then
13644 test -f Makefile && make "$ltmain"
13650 ac_cpp='$CPP $CPPFLAGS'
13651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13659 with_gnu_ldcxx=$with_gnu_ld
13660 with_gnu_ld=$lt_save_with_gnu_ld
13661 lt_cv_path_LDCXX=$lt_cv_path_LD
13662 lt_cv_path_LD=$lt_save_path_LD
13663 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13664 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13672 if test -n "$F77" && test "X$F77" != "Xno"; then
13675 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13676 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13680 archive_cmds_need_lc_F77=no
13681 allow_undefined_flag_F77=
13682 always_export_symbols_F77=no
13683 archive_expsym_cmds_F77=
13684 export_dynamic_flag_spec_F77=
13685 hardcode_direct_F77=no
13686 hardcode_libdir_flag_spec_F77=
13687 hardcode_libdir_flag_spec_ld_F77=
13688 hardcode_libdir_separator_F77=
13689 hardcode_minus_L_F77=no
13690 hardcode_automatic_F77=no
13692 module_expsym_cmds_F77=
13693 link_all_deplibs_F77=unknown
13694 old_archive_cmds_F77=$old_archive_cmds
13695 no_undefined_flag_F77=
13696 whole_archive_flag_spec_F77=
13697 enable_shared_with_static_runtimes_F77=no
13699 # Source file extension for f77 test sources.
13702 # Object file extension for compiled f77 test sources.
13706 # Code to be used in simple compile tests
13707 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13709 # Code to be used in simple link tests
13710 lt_simple_link_test_code=" program t\n end\n"
13712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13714 # If no C compiler was specified, use CC.
13717 # If no C compiler flags were specified, use CFLAGS.
13718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13720 # Allow CC to be a program name with arguments.
13724 # save warnings/boilerplate of simple test code
13725 ac_outfile=conftest.$ac_objext
13726 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13728 _lt_compiler_boilerplate=`cat conftest.err`
13731 ac_outfile=conftest.$ac_objext
13732 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13734 _lt_linker_boilerplate=`cat conftest.err`
13738 # Allow CC to be a program name with arguments.
13743 for cc_temp in $compiler""; do
13745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13754 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13756 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13757 $as_echo "$can_build_shared" >&6; }
13759 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13760 $as_echo_n "checking whether to build shared libraries... " >&6; }
13761 test "$can_build_shared" = "no" && enable_shared=no
13763 # On AIX, shared libraries and static libraries use the same namespace, and
13764 # are all built from PIC.
13767 test "$enable_shared" = yes && enable_static=no
13768 if test -n "$RANLIB"; then
13769 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13770 postinstall_cmds='$RANLIB $lib'
13774 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13775 test "$enable_shared" = yes && enable_static=no
13779 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13780 $as_echo "$enable_shared" >&6; }
13782 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13783 $as_echo_n "checking whether to build static libraries... " >&6; }
13784 # Make sure either enable_shared or enable_static is yes.
13785 test "$enable_shared" = yes || enable_static=yes
13786 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13787 $as_echo "$enable_static" >&6; }
13792 lt_prog_compiler_wl_F77=
13793 lt_prog_compiler_pic_F77=
13794 lt_prog_compiler_static_F77=
13796 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13797 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13799 if test "$GCC" = yes; then
13800 lt_prog_compiler_wl_F77='-Wl,'
13801 lt_prog_compiler_static_F77='-static'
13805 # All AIX code is PIC.
13806 if test "$host_cpu" = ia64; then
13807 # AIX 5 now supports IA64 processor
13808 lt_prog_compiler_static_F77='-Bstatic'
13813 # FIXME: we need at least 68020 code to build shared libraries, but
13814 # adding the `-m68020' flag to GCC prevents building anything better,
13816 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13819 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13820 # PIC is the default for these OSes.
13823 mingw* | pw32* | os2*)
13824 # This hack is so that the source file can tell whether it is being
13825 # built for inclusion in a dll (and should export symbols for example).
13826 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13829 darwin* | rhapsody*)
13830 # PIC is the default on this platform
13831 # Common symbols not allowed in MH_DYLIB files
13832 lt_prog_compiler_pic_F77='-fno-common'
13836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13837 # Instead, we relocate shared libraries at runtime.
13841 # Just because we use GCC doesn't mean we suddenly get shared libraries
13842 # on systems that don't support them.
13843 lt_prog_compiler_can_build_shared_F77=no
13848 if test -d /usr/nec; then
13849 lt_prog_compiler_pic_F77=-Kconform_pic
13854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13855 # not for PA HP-UX.
13861 lt_prog_compiler_pic_F77='-fPIC'
13867 lt_prog_compiler_pic_F77='-fPIC'
13871 # PORTME Check for flag to pass linker flags through the system compiler.
13874 lt_prog_compiler_wl_F77='-Wl,'
13875 if test "$host_cpu" = ia64; then
13876 # AIX 5 now supports IA64 processor
13877 lt_prog_compiler_static_F77='-Bstatic'
13879 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13883 # PIC is the default on this platform
13884 # Common symbols not allowed in MH_DYLIB files
13885 case $cc_basename in
13887 lt_prog_compiler_pic_F77='-qnocommon'
13888 lt_prog_compiler_wl_F77='-Wl,'
13893 mingw* | pw32* | os2*)
13894 # This hack is so that the source file can tell whether it is being
13895 # built for inclusion in a dll (and should export symbols for example).
13896 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13899 hpux9* | hpux10* | hpux11*)
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13902 # not for PA HP-UX.
13908 lt_prog_compiler_pic_F77='+Z'
13911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13912 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13915 irix5* | irix6* | nonstopux*)
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 # PIC (with -KPIC) is the default.
13918 lt_prog_compiler_static_F77='-non_shared'
13922 lt_prog_compiler_pic_F77='-KPIC'
13923 lt_prog_compiler_static_F77='-Bstatic'
13927 case $cc_basename in
13929 lt_prog_compiler_wl_F77='-Wl,'
13930 lt_prog_compiler_pic_F77='-KPIC'
13931 lt_prog_compiler_static_F77='-static'
13933 pgcc* | pgf77* | pgf90* | pgf95*)
13934 # Portland Group compilers (*not* the Pentium gcc compiler,
13935 # which looks to be a dead project)
13936 lt_prog_compiler_wl_F77='-Wl,'
13937 lt_prog_compiler_pic_F77='-fpic'
13938 lt_prog_compiler_static_F77='-Bstatic'
13941 lt_prog_compiler_wl_F77='-Wl,'
13942 # All Alpha code is PIC.
13943 lt_prog_compiler_static_F77='-non_shared'
13948 osf3* | osf4* | osf5*)
13949 lt_prog_compiler_wl_F77='-Wl,'
13950 # All OSF/1 code is PIC.
13951 lt_prog_compiler_static_F77='-non_shared'
13955 lt_prog_compiler_pic_F77='-KPIC'
13956 lt_prog_compiler_static_F77='-Bstatic'
13957 case $cc_basename in
13958 f77* | f90* | f95*)
13959 lt_prog_compiler_wl_F77='-Qoption ld ';;
13961 lt_prog_compiler_wl_F77='-Wl,';;
13966 lt_prog_compiler_wl_F77='-Qoption ld '
13967 lt_prog_compiler_pic_F77='-PIC'
13968 lt_prog_compiler_static_F77='-Bstatic'
13971 sysv4 | sysv4.2uw2* | sysv4.3*)
13972 lt_prog_compiler_wl_F77='-Wl,'
13973 lt_prog_compiler_pic_F77='-KPIC'
13974 lt_prog_compiler_static_F77='-Bstatic'
13978 if test -d /usr/nec ;then
13979 lt_prog_compiler_pic_F77='-Kconform_pic'
13980 lt_prog_compiler_static_F77='-Bstatic'
13984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13985 lt_prog_compiler_wl_F77='-Wl,'
13986 lt_prog_compiler_pic_F77='-KPIC'
13987 lt_prog_compiler_static_F77='-Bstatic'
13991 lt_prog_compiler_wl_F77='-Wl,'
13992 lt_prog_compiler_can_build_shared_F77=no
13996 lt_prog_compiler_pic_F77='-pic'
13997 lt_prog_compiler_static_F77='-Bstatic'
14001 lt_prog_compiler_can_build_shared_F77=no
14006 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14007 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14010 # Check to make sure the PIC flag actually works.
14012 if test -n "$lt_prog_compiler_pic_F77"; then
14014 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14015 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14016 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14017 $as_echo_n "(cached) " >&6
14019 lt_prog_compiler_pic_works_F77=no
14020 ac_outfile=conftest.$ac_objext
14021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14022 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14023 # Insert the option either (1) after the last *FLAGS variable, or
14024 # (2) before a word containing "conftest.", or (3) at the end.
14025 # Note that $ac_compile itself does not contain backslashes and begins
14026 # with a dollar sign (not a hyphen), so the echo should work correctly.
14027 # The option is referenced via a variable to avoid confusing sed.
14028 lt_compile=`echo "$ac_compile" | $SED \
14029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14031 -e 's:$: $lt_compiler_flag:'`
14032 (eval echo "\"\$as_me:14032: $lt_compile\"" >&5)
14033 (eval "$lt_compile" 2>conftest.err)
14035 cat conftest.err >&5
14036 echo "$as_me:14036: \$? = $ac_status" >&5
14037 if (exit $ac_status) && test -s "$ac_outfile"; then
14038 # The compiler can only warn and ignore the option if not recognized
14039 # So say no if there are warnings other than the usual output.
14040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14043 lt_prog_compiler_pic_works_F77=yes
14049 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14050 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14052 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14053 case $lt_prog_compiler_pic_F77 in
14055 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14058 lt_prog_compiler_pic_F77=
14059 lt_prog_compiler_can_build_shared_F77=no
14064 # For platforms which do not support PIC, -DPIC is meaningless:
14066 lt_prog_compiler_pic_F77=
14069 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14074 # Check to make sure the static flag actually works.
14076 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14077 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14078 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14079 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14080 $as_echo_n "(cached) " >&6
14082 lt_prog_compiler_static_works_F77=no
14083 save_LDFLAGS="$LDFLAGS"
14084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14085 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14087 # The linker can only warn and ignore the option if not recognized
14088 # So say no if there are warnings
14089 if test -s conftest.err; then
14090 # Append any errors to the config.log.
14091 cat conftest.err 1>&5
14092 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094 if diff conftest.exp conftest.er2 >/dev/null; then
14095 lt_prog_compiler_static_works_F77=yes
14098 lt_prog_compiler_static_works_F77=yes
14102 LDFLAGS="$save_LDFLAGS"
14105 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14106 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14108 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14111 lt_prog_compiler_static_F77=
14115 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14117 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14118 $as_echo_n "(cached) " >&6
14120 lt_cv_prog_compiler_c_o_F77=no
14121 $rm -r conftest 2>/dev/null
14125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14127 lt_compiler_flag="-o out/conftest2.$ac_objext"
14128 # Insert the option either (1) after the last *FLAGS variable, or
14129 # (2) before a word containing "conftest.", or (3) at the end.
14130 # Note that $ac_compile itself does not contain backslashes and begins
14131 # with a dollar sign (not a hyphen), so the echo should work correctly.
14132 lt_compile=`echo "$ac_compile" | $SED \
14133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135 -e 's:$: $lt_compiler_flag:'`
14136 (eval echo "\"\$as_me:14136: $lt_compile\"" >&5)
14137 (eval "$lt_compile" 2>out/conftest.err)
14139 cat out/conftest.err >&5
14140 echo "$as_me:14140: \$? = $ac_status" >&5
14141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14143 # The compiler can only warn and ignore the option if not recognized
14144 # So say no if there are warnings
14145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14148 lt_cv_prog_compiler_c_o_F77=yes
14153 # SGI C++ compiler will create directory out/ii_files/ for
14154 # template instantiation
14155 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14156 $rm out/* && rmdir out
14162 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14163 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14166 hard_links="nottested"
14167 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14168 # do not overwrite the value of need_locks provided by the user
14169 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14170 $as_echo_n "checking if we can lock with hard links... " >&6; }
14173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175 ln conftest.a conftest.b 2>&5 || hard_links=no
14176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14177 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14178 $as_echo "$hard_links" >&6; }
14179 if test "$hard_links" = no; then
14180 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14181 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14188 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14192 allow_undefined_flag_F77=
14193 enable_shared_with_static_runtimes_F77=no
14195 archive_expsym_cmds_F77=
14196 old_archive_From_new_cmds_F77=
14197 old_archive_from_expsyms_cmds_F77=
14198 export_dynamic_flag_spec_F77=
14199 whole_archive_flag_spec_F77=
14200 thread_safe_flag_spec_F77=
14201 hardcode_libdir_flag_spec_F77=
14202 hardcode_libdir_flag_spec_ld_F77=
14203 hardcode_libdir_separator_F77=
14204 hardcode_direct_F77=no
14205 hardcode_minus_L_F77=no
14206 hardcode_shlibpath_var_F77=unsupported
14207 link_all_deplibs_F77=unknown
14208 hardcode_automatic_F77=no
14210 module_expsym_cmds_F77=
14211 always_export_symbols_F77=no
14212 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14213 # include_expsyms should be a list of space-separated symbols to be *always*
14214 # included in the symbol list
14215 include_expsyms_F77=
14216 # exclude_expsyms can be an extended regexp of symbols to exclude
14217 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14218 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14219 # as well as any symbol that contains `d'.
14220 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14221 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14222 # platforms (ab)use it in PIC code, but their linkers get confused if
14223 # the symbol is explicitly referenced. Since portable code cannot
14224 # rely on this symbol name, it's probably fine to never include it in
14225 # preloaded symbol tables.
14226 extract_expsyms_cmds=
14227 # Just being paranoid about ensuring that cc_basename is set.
14228 for cc_temp in $compiler""; do
14230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14239 cygwin* | mingw* | pw32*)
14240 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14241 # When not using gcc, we currently assume that we are using
14242 # Microsoft Visual C++.
14243 if test "$GCC" != yes; then
14248 # we just hope/assume this is gcc and not c89 (= MSVC++)
14257 if test "$with_gnu_ld" = yes; then
14258 # If archive_cmds runs LD, not CC, wlarc should be empty
14261 # Set some defaults for GNU ld with shared library support. These
14262 # are reset later if shared libraries are not supported. Putting them
14263 # here allows them to be overridden if necessary.
14264 runpath_var=LD_RUN_PATH
14265 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14266 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14267 # ancient GNU ld didn't support --whole-archive et. al.
14268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14269 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14271 whole_archive_flag_spec_F77=
14273 supports_anon_versioning=no
14274 case `$LD -v 2>/dev/null` in
14275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14278 *\ 2.11.*) ;; # other 2.11 versions
14279 *) supports_anon_versioning=yes ;;
14282 # See if GNU ld supports shared libraries.
14284 aix3* | aix4* | aix5*)
14285 # On AIX/PPC, the GNU linker is very broken
14286 if test "$host_cpu" != ia64; then
14290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14291 *** to be unable to reliably create shared libraries on AIX.
14292 *** Therefore, libtool is disabling shared libraries support. If you
14293 *** really care for shared libraries, you may want to modify your PATH
14294 *** so that a non-GNU linker is found, and then restart.
14301 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)'
14302 hardcode_libdir_flag_spec_F77='-L$libdir'
14303 hardcode_minus_L_F77=yes
14305 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14306 # that the semantics of dynamic libraries on AmigaOS, at least up
14307 # to version 4, is to share data among multiple programs linked
14308 # with the same dynamic library. Since this doesn't match the
14309 # behavior of shared libraries on other platforms, we can't use
14315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14316 allow_undefined_flag_F77=unsupported
14317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14318 # support --undefined. This deserves some investigation. FIXME
14319 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14325 cygwin* | mingw* | pw32*)
14326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14327 # as there is no search path for DLLs.
14328 hardcode_libdir_flag_spec_F77='-L$libdir'
14329 allow_undefined_flag_F77=unsupported
14330 always_export_symbols_F77=no
14331 enable_shared_with_static_runtimes_F77=yes
14332 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14335 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14336 # If the export-symbols file already is a .def file (1st line
14337 # is EXPORTS), use it as is; otherwise, prepend...
14338 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14339 cp $export_symbols $output_objdir/$soname.def;
14341 echo EXPORTS > $output_objdir/$soname.def;
14342 cat $export_symbols >> $output_objdir/$soname.def;
14344 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14351 hardcode_direct_F77=no
14352 hardcode_shlibpath_var_F77=no
14353 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14354 export_dynamic_flag_spec_F77='${wl}-E'
14355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14356 # Instead, shared libraries are loaded at an image base (0x10000000 by
14357 # default) and relocated if they conflict, which is a slow very memory
14358 # consuming and fragmenting process. To avoid this, we pick a random,
14359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14361 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'
14362 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'
14366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14368 case $cc_basename,$host_cpu in
14369 pgcc*) # Portland Group C compiler
14370 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'
14371 tmp_addflag=' $pic_flag'
14373 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14374 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'
14375 tmp_addflag=' $pic_flag -Mnomain' ;;
14376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14377 tmp_addflag=' -i_dynamic' ;;
14378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14379 tmp_addflag=' -i_dynamic -nofor_main' ;;
14380 ifc* | ifort*) # Intel Fortran compiler
14381 tmp_addflag=' -nofor_main' ;;
14383 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14385 if test $supports_anon_versioning = yes; then
14386 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14388 $echo "local: *; };" >> $output_objdir/$libname.ver~
14389 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14398 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14401 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14407 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14412 *** create shared libraries on Solaris systems. Therefore, libtool
14413 *** is disabling shared libraries support. We urge you to upgrade GNU
14414 *** binutils to release 2.9.1 or newer. Another option is to modify
14415 *** your PATH or compiler configuration so that the native linker is
14416 *** used, and then restart.
14419 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14420 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14421 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14428 case `$LD -v 2>&1` in
14429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14434 *** reliably create shared libraries on SCO systems. Therefore, libtool
14435 *** is disabling shared libraries support. We urge you to upgrade GNU
14436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14437 *** your PATH or compiler configuration so that the native linker is
14438 *** used, and then restart.
14443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14444 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14445 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14446 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14455 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_direct_F77=yes
14458 hardcode_shlibpath_var_F77=no
14462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14463 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14464 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14471 if test "$ld_shlibs_F77" = no; then
14473 hardcode_libdir_flag_spec_F77=
14474 export_dynamic_flag_spec_F77=
14475 whole_archive_flag_spec_F77=
14478 # PORTME fill in a description of your system's linker (not GNU ld)
14481 allow_undefined_flag_F77=unsupported
14482 always_export_symbols_F77=yes
14483 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'
14484 # Note: this linker hardcodes the directories in LIBPATH if there
14485 # are no directories specified by -L.
14486 hardcode_minus_L_F77=yes
14487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14488 # Neither direct hardcoding nor static linking is supported with a
14490 hardcode_direct_F77=unsupported
14495 if test "$host_cpu" = ia64; then
14496 # On IA64, the linker does run time linking by default, so we don't
14497 # have to do anything special.
14498 aix_use_runtimelinking=no
14499 exp_sym_flag='-Bexport'
14502 # If we're using GNU nm, then we don't want the "-C" option.
14503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14505 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'
14507 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'
14509 aix_use_runtimelinking=no
14511 # Test if we are trying to use run time linking or normal
14512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14513 # need to do runtime linking.
14514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14515 for ld_flag in $LDFLAGS; do
14516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14517 aix_use_runtimelinking=yes
14524 exp_sym_flag='-bexport'
14525 no_entry_flag='-bnoentry'
14528 # When large executables or shared objects are built, AIX ld can
14529 # have problems creating the table of contents. If linking a library
14530 # or program results in "error TOC overflow" add -mminimal-toc to
14531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14534 archive_cmds_F77=''
14535 hardcode_direct_F77=yes
14536 hardcode_libdir_separator_F77=':'
14537 link_all_deplibs_F77=yes
14539 if test "$GCC" = yes; then
14540 case $host_os in aix4.[012]|aix4.[012].*)
14541 # We only want to do this on AIX 4.2 and lower, the check
14542 # below for broken collect2 doesn't work under 4.3+
14543 collect2name=`${CC} -print-prog-name=collect2`
14544 if test -f "$collect2name" && \
14545 strings "$collect2name" | grep resolve_lib_name >/dev/null
14547 # We have reworked collect2
14548 hardcode_direct_F77=yes
14550 # We have old collect2
14551 hardcode_direct_F77=unsupported
14552 # It fails to find uninstalled libraries when the uninstalled
14553 # path is not listed in the libpath. Setting hardcode_minus_L
14554 # to unsupported forces relinking
14555 hardcode_minus_L_F77=yes
14556 hardcode_libdir_flag_spec_F77='-L$libdir'
14557 hardcode_libdir_separator_F77=
14561 shared_flag='-shared'
14562 if test "$aix_use_runtimelinking" = yes; then
14563 shared_flag="$shared_flag "'${wl}-G'
14567 if test "$host_cpu" = ia64; then
14568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14569 # chokes on -Wl,-G. The following line is correct:
14572 if test "$aix_use_runtimelinking" = yes; then
14573 shared_flag='${wl}-G'
14575 shared_flag='${wl}-bM:SRE'
14580 # It seems that -bexpall does not export symbols beginning with
14581 # underscore (_), so it is better to generate a list of symbols to export.
14582 always_export_symbols_F77=yes
14583 if test "$aix_use_runtimelinking" = yes; then
14584 # Warning - without using the other runtime loading flags (-brtl),
14585 # -berok will link without error, but may produce a broken library.
14586 allow_undefined_flag_F77='-berok'
14587 # Determine the default libpath from the value encoded in an empty executable.
14588 cat >conftest.$ac_ext <<_ACEOF
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14600 $as_echo "$ac_try_echo") >&5
14601 (eval "$ac_link") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } && {
14608 test -z "$ac_f77_werror_flag" ||
14609 test ! -s conftest.err
14610 } && test -s conftest$ac_exeext && {
14611 test "$cross_compiling" = yes ||
14612 $as_test_x conftest$ac_exeext
14615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14617 # Check for a 64-bit object if we didn't find anything.
14618 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; }
14621 $as_echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14627 rm -rf conftest.dSYM
14628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629 conftest$ac_exeext conftest.$ac_ext
14630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14632 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14633 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"
14635 if test "$host_cpu" = ia64; then
14636 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14637 allow_undefined_flag_F77="-z nodefs"
14638 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"
14640 # Determine the default libpath from the value encoded in an empty executable.
14641 cat >conftest.$ac_ext <<_ACEOF
14646 rm -f conftest.$ac_objext conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14653 $as_echo "$ac_try_echo") >&5
14654 (eval "$ac_link") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_f77_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest$ac_exeext && {
14664 test "$cross_compiling" = yes ||
14665 $as_test_x conftest$ac_exeext
14668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14670 # Check for a 64-bit object if we didn't find anything.
14671 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; }
14674 $as_echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14680 rm -rf conftest.dSYM
14681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14682 conftest$ac_exeext conftest.$ac_ext
14683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14685 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14686 # Warning - without using the other run time loading flags,
14687 # -berok will link without error, but may produce a broken library.
14688 no_undefined_flag_F77=' ${wl}-bernotok'
14689 allow_undefined_flag_F77=' ${wl}-berok'
14690 # Exported symbols can be pulled into shared objects from archives
14691 whole_archive_flag_spec_F77='$convenience'
14692 archive_cmds_need_lc_F77=yes
14693 # This is similar to how AIX traditionally builds its shared libraries.
14694 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'
14700 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)'
14701 hardcode_libdir_flag_spec_F77='-L$libdir'
14702 hardcode_minus_L_F77=yes
14703 # see comment about different semantics on the GNU ld section
14708 export_dynamic_flag_spec_F77=-rdynamic
14711 cygwin* | mingw* | pw32*)
14712 # When not using gcc, we currently assume that we are using
14713 # Microsoft Visual C++.
14714 # hardcode_libdir_flag_spec is actually meaningless, as there is
14715 # no search path for DLLs.
14716 hardcode_libdir_flag_spec_F77=' '
14717 allow_undefined_flag_F77=unsupported
14718 # Tell ltmain to make .lib files, not .a files.
14720 # Tell ltmain to make .dll files, not .so files.
14722 # FIXME: Setting linknames here is a bad hack.
14723 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14724 # The linker will automatically build a .lib file if we build a DLL.
14725 old_archive_From_new_cmds_F77='true'
14726 # FIXME: Should let the user specify the lib program.
14727 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14728 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14729 enable_shared_with_static_runtimes_F77=yes
14732 darwin* | rhapsody*)
14734 rhapsody* | darwin1.[012])
14735 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14738 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14739 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14741 case ${MACOSX_DEPLOYMENT_TARGET} in
14743 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14746 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14752 archive_cmds_need_lc_F77=no
14753 hardcode_direct_F77=no
14754 hardcode_automatic_F77=yes
14755 hardcode_shlibpath_var_F77=unsupported
14756 whole_archive_flag_spec_F77=''
14757 link_all_deplibs_F77=yes
14758 if test "$GCC" = yes ; then
14759 output_verbose_link_cmd='echo'
14760 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14761 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14762 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14763 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}'
14764 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}'
14766 case $cc_basename in
14768 output_verbose_link_cmd='echo'
14769 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14770 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14771 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14772 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}'
14773 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}'
14783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14784 hardcode_libdir_flag_spec_F77='-L$libdir'
14785 hardcode_shlibpath_var_F77=no
14792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14793 # support. Future versions do this automatically, but an explicit c++rt0.o
14794 # does not break anything, and helps significantly (at the cost of a little
14797 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14798 hardcode_libdir_flag_spec_F77='-R$libdir'
14799 hardcode_direct_F77=yes
14800 hardcode_shlibpath_var_F77=no
14803 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14805 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14806 hardcode_direct_F77=yes
14807 hardcode_minus_L_F77=yes
14808 hardcode_shlibpath_var_F77=no
14811 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14812 freebsd* | kfreebsd*-gnu | dragonfly*)
14813 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14814 hardcode_libdir_flag_spec_F77='-R$libdir'
14815 hardcode_direct_F77=yes
14816 hardcode_shlibpath_var_F77=no
14820 if test "$GCC" = yes; then
14821 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'
14823 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'
14825 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14826 hardcode_libdir_separator_F77=:
14827 hardcode_direct_F77=yes
14829 # hardcode_minus_L: Not really in the search PATH,
14830 # but as the default location of the library.
14831 hardcode_minus_L_F77=yes
14832 export_dynamic_flag_spec_F77='${wl}-E'
14836 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14837 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14839 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14841 if test "$with_gnu_ld" = no; then
14842 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14843 hardcode_libdir_separator_F77=:
14845 hardcode_direct_F77=yes
14846 export_dynamic_flag_spec_F77='${wl}-E'
14848 # hardcode_minus_L: Not really in the search PATH,
14849 # but as the default location of the library.
14850 hardcode_minus_L_F77=yes
14855 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14858 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14861 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14864 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14870 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14873 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14876 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14880 if test "$with_gnu_ld" = no; then
14881 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14882 hardcode_libdir_separator_F77=:
14886 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14887 hardcode_direct_F77=no
14888 hardcode_shlibpath_var_F77=no
14891 hardcode_direct_F77=yes
14892 export_dynamic_flag_spec_F77='${wl}-E'
14894 # hardcode_minus_L: Not really in the search PATH,
14895 # but as the default location of the library.
14896 hardcode_minus_L_F77=yes
14902 irix5* | irix6* | nonstopux*)
14903 if test "$GCC" = yes; then
14904 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'
14906 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'
14907 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14909 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14910 hardcode_libdir_separator_F77=:
14911 link_all_deplibs_F77=yes
14915 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14916 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14918 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14920 hardcode_libdir_flag_spec_F77='-R$libdir'
14921 hardcode_direct_F77=yes
14922 hardcode_shlibpath_var_F77=no
14926 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14927 hardcode_direct_F77=yes
14928 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14929 hardcode_libdir_separator_F77=:
14930 hardcode_shlibpath_var_F77=no
14934 hardcode_direct_F77=yes
14935 hardcode_shlibpath_var_F77=no
14936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14937 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14938 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14939 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14940 export_dynamic_flag_spec_F77='${wl}-E'
14943 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14944 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945 hardcode_libdir_flag_spec_F77='-R$libdir'
14948 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14949 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14956 hardcode_libdir_flag_spec_F77='-L$libdir'
14957 hardcode_minus_L_F77=yes
14958 allow_undefined_flag_F77=unsupported
14959 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'
14960 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14964 if test "$GCC" = yes; then
14965 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14966 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'
14968 allow_undefined_flag_F77=' -expect_unresolved \*'
14969 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'
14971 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14972 hardcode_libdir_separator_F77=:
14975 osf4* | osf5*) # as osf3* with the addition of -msym flag
14976 if test "$GCC" = yes; then
14977 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14978 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'
14979 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14981 allow_undefined_flag_F77=' -expect_unresolved \*'
14982 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'
14983 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~
14984 $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'
14986 # Both c and cxx compiler support -rpath directly
14987 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14989 hardcode_libdir_separator_F77=:
14993 no_undefined_flag_F77=' -z text'
14994 if test "$GCC" = yes; then
14996 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14997 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14998 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15001 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15003 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15005 hardcode_libdir_flag_spec_F77='-R$libdir'
15006 hardcode_shlibpath_var_F77=no
15008 solaris2.[0-5] | solaris2.[0-5].*) ;;
15010 # The compiler driver will combine linker options so we
15011 # cannot just pass the convience library names through
15012 # without $wl, iff we do not link with $LD.
15013 # Luckily, gcc supports the same syntax we need for Sun Studio.
15014 # Supported since Solaris 2.6 (maybe 2.5.1?)
15017 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15019 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' ;;
15022 link_all_deplibs_F77=yes
15026 if test "x$host_vendor" = xsequent; then
15027 # Use $CC to link under sequent, because it throws in some extra .o
15028 # files that make .init and .fini sections work.
15029 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15033 hardcode_libdir_flag_spec_F77='-L$libdir'
15034 hardcode_direct_F77=yes
15035 hardcode_minus_L_F77=yes
15036 hardcode_shlibpath_var_F77=no
15040 case $host_vendor in
15042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043 hardcode_direct_F77=yes # is this really true???
15046 ## LD is ld it makes a PLAMLIB
15047 ## CC just makes a GrossModule.
15048 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15049 reload_cmds_F77='$CC -r -o $output$reload_objs'
15050 hardcode_direct_F77=no
15053 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15054 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15057 runpath_var='LD_RUN_PATH'
15058 hardcode_shlibpath_var_F77=no
15062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_shlibpath_var_F77=no
15064 export_dynamic_flag_spec_F77='-Bexport'
15068 if test -d /usr/nec; then
15069 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_shlibpath_var_F77=no
15071 runpath_var=LD_RUN_PATH
15072 hardcode_runpath_var=yes
15077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15078 no_undefined_flag_F77='${wl}-z,text'
15079 archive_cmds_need_lc_F77=no
15080 hardcode_shlibpath_var_F77=no
15081 runpath_var='LD_RUN_PATH'
15083 if test "$GCC" = yes; then
15084 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 sysv5* | sco3.2v5* | sco5v6*)
15093 # Note: We can NOT use -z defs as we might desire, because we do not
15094 # link with -lc, and that would cause any symbols used from libc to
15095 # always be unresolved, which means just about no library would
15096 # ever link correctly. If we're not using GNU ld we use -z text
15097 # though, which does catch some bad symbols but isn't as heavy-handed
15099 no_undefined_flag_F77='${wl}-z,text'
15100 allow_undefined_flag_F77='${wl}-z,nodefs'
15101 archive_cmds_need_lc_F77=no
15102 hardcode_shlibpath_var_F77=no
15103 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15104 hardcode_libdir_separator_F77=':'
15105 link_all_deplibs_F77=yes
15106 export_dynamic_flag_spec_F77='${wl}-Bexport'
15107 runpath_var='LD_RUN_PATH'
15109 if test "$GCC" = yes; then
15110 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15111 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15113 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15114 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120 hardcode_libdir_flag_spec_F77='-L$libdir'
15121 hardcode_shlibpath_var_F77=no
15130 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15131 $as_echo "$ld_shlibs_F77" >&6; }
15132 test "$ld_shlibs_F77" = no && can_build_shared=no
15135 # Do we need to explicitly link libc?
15137 case "x$archive_cmds_need_lc_F77" in
15139 # Assume -lc should be added
15140 archive_cmds_need_lc_F77=yes
15142 if test "$enable_shared" = yes && test "$GCC" = yes; then
15143 case $archive_cmds_F77 in
15145 # FIXME: we may have to deal with multi-command sequences.
15148 # Test whether the compiler implicitly links with -lc since on some
15149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150 # to ld, don't add -lc before -lgcc.
15151 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15152 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15157 (eval $ac_compile) 2>&5
15159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } 2>conftest.err; then
15163 libobjs=conftest.$ac_objext
15165 wl=$lt_prog_compiler_wl_F77
15166 pic_flag=$lt_prog_compiler_pic_F77
15172 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15173 allow_undefined_flag_F77=
15174 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15175 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }
15180 archive_cmds_need_lc_F77=no
15182 archive_cmds_need_lc_F77=yes
15184 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15186 cat conftest.err 1>&5
15189 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15190 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15197 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15199 library_names_spec=
15200 libname_spec='lib$name'
15204 postuninstall_cmds=
15208 shlibpath_overrides_runpath=unknown
15210 dynamic_linker="$host_os ld.so"
15211 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15212 if test "$GCC" = yes; then
15213 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15214 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15215 # if the path contains ";" then we assume it to be the separator
15216 # otherwise default to the standard path separator (i.e. ":") - it is
15217 # assumed that no part of a normal pathname contains ";" but that should
15218 # okay in the real world where ";" in dirpaths is itself problematic.
15219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15226 need_lib_prefix=unknown
15227 hardcode_into_libs=no
15229 # when you set need_version to no, make sure it does not cause -set_version
15230 # flags to be left without arguments
15231 need_version=unknown
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15237 shlibpath_var=LIBPATH
15239 # AIX 3 has no versioning support, so we append a major version to the name.
15240 soname_spec='${libname}${release}${shared_ext}$major'
15247 hardcode_into_libs=yes
15248 if test "$host_cpu" = ia64; then
15249 # AIX 5 supports IA64
15250 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15251 shlibpath_var=LD_LIBRARY_PATH
15253 # With GCC up to 2.95.x, collect2 would create an import file
15254 # for dependence libraries. The import file would start with
15255 # the line `#! .'. This would cause the generated library to
15256 # depend on `.', always an invalid library. This was fixed in
15257 # development snapshots of GCC prior to 3.0.
15259 aix4 | aix4.[01] | aix4.[01].*)
15260 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15262 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15265 can_build_shared=no
15269 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15270 # soname into executable. Probably we can add versioning support to
15271 # collect2, so additional links can be useful in future.
15272 if test "$aix_use_runtimelinking" = yes; then
15273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15274 # instead of lib<name>.a to let people know that these are not
15275 # typical AIX shared libraries.
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 # We preserve .a as extension for shared libraries through AIX4.2
15279 # and later when we are not doing run time linking.
15280 library_names_spec='${libname}${release}.a $libname.a'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LIBPATH
15288 library_names_spec='$libname.ixlibrary $libname.a'
15289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15290 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'
15294 library_names_spec='${libname}${shared_ext}'
15295 dynamic_linker="$host_os ld.so"
15296 shlibpath_var=LIBRARY_PATH
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15307 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15308 # the default ld.so.conf also contains /usr/contrib/lib and
15309 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15310 # libtool to hard-code these into programs
15313 cygwin* | mingw* | pw32*)
15314 version_type=windows
15319 case $GCC,$host_os in
15320 yes,cygwin* | yes,mingw* | yes,pw32*)
15321 library_names_spec='$libname.dll.a'
15322 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15323 postinstall_cmds='base_file=`basename \${file}`~
15324 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15325 dldir=$destdir/`dirname \$dlpath`~
15326 test -d \$dldir || mkdir -p \$dldir~
15327 $install_prog $dir/$dlname \$dldir/$dlname~
15328 chmod a+x \$dldir/$dlname'
15329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15330 dlpath=$dir/\$dldll~
15332 shlibpath_overrides_runpath=yes
15336 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15337 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15338 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15341 # MinGW DLLs use traditional 'lib' prefix
15342 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15345 # It is most probably a Windows format PATH printed by
15346 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15347 # path with ; separators, and with drive letters. We can handle the
15348 # drive letters (cygwin fileutils understands them), so leave them,
15349 # especially as we might pass files found there to a mingw objdump,
15350 # which wouldn't understand a cygwinified path. Ahh.
15351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15357 # pw32 DLLs use 'pw' prefix rather than 'lib'
15358 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15364 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15367 dynamic_linker='Win32 ld.exe'
15368 # FIXME: first we should search . and the directory the executable is in
15372 darwin* | rhapsody*)
15373 dynamic_linker="$host_os dyld"
15374 version_type=darwin
15377 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15378 soname_spec='${libname}${release}${major}$shared_ext'
15379 shlibpath_overrides_runpath=yes
15380 shlibpath_var=DYLD_LIBRARY_PATH
15381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15382 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15383 if test "$GCC" = yes; then
15384 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"`
15386 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15388 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 shlibpath_overrides_runpath=no
15412 hardcode_into_libs=yes
15413 dynamic_linker='GNU ld.so'
15416 freebsd* | dragonfly*)
15417 # DragonFly does not have aout. When/if they implement a new
15418 # versioning mechanism, adjust this.
15419 if test -x /usr/bin/objformat; then
15420 objformat=`/usr/bin/objformat`
15423 freebsd[123]*) objformat=aout ;;
15424 *) objformat=elf ;;
15427 version_type=freebsd-$objformat
15428 case $version_type in
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15439 shlibpath_var=LD_LIBRARY_PATH
15442 shlibpath_overrides_runpath=yes
15444 freebsd3.[01]* | freebsdelf3.[01]*)
15445 shlibpath_overrides_runpath=yes
15446 hardcode_into_libs=yes
15448 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15449 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15450 shlibpath_overrides_runpath=no
15451 hardcode_into_libs=yes
15453 freebsd*) # from 4.6 on
15454 shlibpath_overrides_runpath=yes
15455 hardcode_into_libs=yes
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 shlibpath_var=LD_LIBRARY_PATH
15467 hardcode_into_libs=yes
15470 hpux9* | hpux10* | hpux11*)
15471 # Give a soname corresponding to the major version so that dld.sl refuses to
15472 # link against other versions.
15479 hardcode_into_libs=yes
15480 dynamic_linker="$host_os dld.so"
15481 shlibpath_var=LD_LIBRARY_PATH
15482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 if test "X$HPUX_IA64_MODE" = X32; then
15486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15494 hardcode_into_libs=yes
15495 dynamic_linker="$host_os dld.sl"
15496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15505 dynamic_linker="$host_os dld.sl"
15506 shlibpath_var=SHLIB_PATH
15507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15512 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15513 postinstall_cmds='chmod 555 $lib'
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=no
15525 hardcode_into_libs=yes
15528 irix5* | irix6* | nonstopux*)
15530 nonstopux*) version_type=nonstopux ;;
15532 if test "$lt_cv_prog_gnu_ld" = yes; then
15540 soname_spec='${libname}${release}${shared_ext}$major'
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15543 irix5* | nonstopux*)
15544 libsuff= shlibsuff=
15547 case $LD in # libtool.m4 will add one of these switches to LD
15548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15549 libsuff= shlibsuff= libmagic=32-bit;;
15550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15551 libsuff=32 shlibsuff=N32 libmagic=N32;;
15552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15554 *) libsuff= shlibsuff= libmagic=never-match;;
15558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15559 shlibpath_overrides_runpath=no
15560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15562 hardcode_into_libs=yes
15565 # No shared lib support for Linux oldld, aout, or coff.
15566 linux*oldld* | linux*aout* | linux*coff*)
15570 # This must be Linux ELF.
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=no
15580 # This implies no fast_install, which is unacceptable.
15581 # Some rework will be needed to allow for fast_install
15582 # before this can be enabled.
15583 hardcode_into_libs=yes
15585 # find out which ABI we are using
15587 case "$host_cpu" in
15588 x86_64*|s390x*|powerpc64*)
15589 echo '#line 15589 "configure"' > conftest.$ac_ext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>&5
15593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; then
15595 case `/usr/bin/file conftest.$ac_objext` in
15598 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15606 # Append ld.so.conf contents to the search path
15607 if test -f /etc/ld.so.conf; then
15608 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15609 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15612 # We used to test for /lib/ld.so.1 and disable shared libraries on
15613 # powerpc, because MkLinux only supported shared libraries with the
15614 # GNU dynamic linker. Since this was broken with cross compilers,
15615 # most powerpc-linux boxes support dynamic linking these days and
15616 # people can always --disable-shared, the test was removed, and we
15617 # assume the GNU/Linux dynamic linker is in use.
15618 dynamic_linker='GNU/Linux ld.so'
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=no
15629 hardcode_into_libs=yes
15630 dynamic_linker='GNU ld.so'
15637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15640 dynamic_linker='NetBSD (a.out) ld.so'
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 dynamic_linker='NetBSD ld.elf_so'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes
15648 hardcode_into_libs=yes
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 shlibpath_var=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath=yes
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 shlibpath_overrides_runpath=yes
15670 sys_lib_dlsearch_path_spec="/usr/lib"
15672 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15674 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15675 *) need_version=no ;;
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15682 openbsd2.[89] | openbsd2.[89].*)
15683 shlibpath_overrides_runpath=no
15686 shlibpath_overrides_runpath=yes
15690 shlibpath_overrides_runpath=yes
15695 libname_spec='$name'
15698 library_names_spec='$libname${shared_ext} $libname.a'
15699 dynamic_linker='OS/2 ld.exe'
15700 shlibpath_var=LIBPATH
15703 osf3* | osf4* | osf5*)
15707 soname_spec='${libname}${release}${shared_ext}$major'
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15723 # ldd complains unless libraries are executable
15724 postinstall_cmds='chmod +x $lib'
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15730 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 shlibpath_overrides_runpath=yes
15733 if test "$with_gnu_ld" = yes; then
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 case $host_vendor in
15746 shlibpath_overrides_runpath=no
15748 export_dynamic_flag_spec='${wl}-Blargedynsym'
15749 runpath_var=LD_RUN_PATH
15757 shlibpath_overrides_runpath=no
15758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15764 if test -d /usr/nec ;then
15766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15767 soname_spec='$libname${shared_ext}.$major'
15768 shlibpath_var=LD_LIBRARY_PATH
15772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15773 version_type=freebsd-elf
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 hardcode_into_libs=yes
15780 if test "$with_gnu_ld" = yes; then
15781 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15782 shlibpath_overrides_runpath=no
15784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15785 shlibpath_overrides_runpath=yes
15788 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15792 sys_lib_dlsearch_path_spec='/usr/lib'
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798 soname_spec='${libname}${release}${shared_ext}$major'
15799 shlibpath_var=LD_LIBRARY_PATH
15806 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15807 $as_echo "$dynamic_linker" >&6; }
15808 test "$dynamic_linker" = no && can_build_shared=no
15810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15811 if test "$GCC" = yes; then
15812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15815 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15817 hardcode_action_F77=
15818 if test -n "$hardcode_libdir_flag_spec_F77" || \
15819 test -n "$runpath_var_F77" || \
15820 test "X$hardcode_automatic_F77" = "Xyes" ; then
15822 # We can hardcode non-existant directories.
15823 if test "$hardcode_direct_F77" != no &&
15824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15825 # have to relink, otherwise we might link with an installed library
15826 # when we should be linking with a yet-to-be-installed one
15827 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15828 test "$hardcode_minus_L_F77" != no; then
15829 # Linking always hardcodes the temporary library directory.
15830 hardcode_action_F77=relink
15832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15833 hardcode_action_F77=immediate
15836 # We cannot hardcode anything, or else we can only hardcode existing
15838 hardcode_action_F77=unsupported
15840 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15841 $as_echo "$hardcode_action_F77" >&6; }
15843 if test "$hardcode_action_F77" = relink; then
15844 # Fast installation is not supported
15845 enable_fast_install=no
15846 elif test "$shlibpath_overrides_runpath" = yes ||
15847 test "$enable_shared" = no; then
15848 # Fast installation is not necessary
15849 enable_fast_install=needless
15853 # The else clause should only fire when bootstrapping the
15854 # libtool distribution, otherwise you forgot to ship ltmain.sh
15855 # with your package, and you will get complaints that there are
15856 # no rules to generate ltmain.sh.
15857 if test -f "$ltmain"; then
15858 # See if we are running on zsh, and set the options which allow our commands through
15859 # without removal of \ escapes.
15860 if test -n "${ZSH_VERSION+set}" ; then
15861 setopt NO_GLOB_SUBST
15863 # Now quote all the things that may contain metacharacters while being
15864 # careful not to overquote the AC_SUBSTed values. We take copies of the
15865 # variables and quote the copies for generation of the libtool script.
15866 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15868 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15869 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15870 deplibs_check_method reload_flag reload_cmds need_locks \
15871 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15872 lt_cv_sys_global_symbol_to_c_name_address \
15873 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15874 old_postinstall_cmds old_postuninstall_cmds \
15878 lt_prog_compiler_wl_F77 \
15879 lt_prog_compiler_pic_F77 \
15880 lt_prog_compiler_static_F77 \
15881 lt_prog_compiler_no_builtin_flag_F77 \
15882 export_dynamic_flag_spec_F77 \
15883 thread_safe_flag_spec_F77 \
15884 whole_archive_flag_spec_F77 \
15885 enable_shared_with_static_runtimes_F77 \
15886 old_archive_cmds_F77 \
15887 old_archive_from_new_cmds_F77 \
15888 predep_objects_F77 \
15889 postdep_objects_F77 \
15892 compiler_lib_search_path_F77 \
15894 archive_expsym_cmds_F77 \
15895 postinstall_cmds_F77 \
15896 postuninstall_cmds_F77 \
15897 old_archive_from_expsyms_cmds_F77 \
15898 allow_undefined_flag_F77 \
15899 no_undefined_flag_F77 \
15900 export_symbols_cmds_F77 \
15901 hardcode_libdir_flag_spec_F77 \
15902 hardcode_libdir_flag_spec_ld_F77 \
15903 hardcode_libdir_separator_F77 \
15904 hardcode_automatic_F77 \
15906 module_expsym_cmds_F77 \
15907 lt_cv_prog_compiler_c_o_F77 \
15908 exclude_expsyms_F77 \
15909 include_expsyms_F77; do
15912 old_archive_cmds_F77 | \
15913 old_archive_from_new_cmds_F77 | \
15914 archive_cmds_F77 | \
15915 archive_expsym_cmds_F77 | \
15916 module_cmds_F77 | \
15917 module_expsym_cmds_F77 | \
15918 old_archive_from_expsyms_cmds_F77 | \
15919 export_symbols_cmds_F77 | \
15920 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15921 postinstall_cmds | postuninstall_cmds | \
15922 old_postinstall_cmds | old_postuninstall_cmds | \
15923 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15924 # Double-quote double-evaled strings.
15925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15934 *'\$0 --fallback-echo"')
15935 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15941 cat <<__EOF__ >> "$cfgfile"
15942 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15946 # Shell to use when invoking shell scripts.
15949 # Whether or not to build shared libraries.
15950 build_libtool_libs=$enable_shared
15952 # Whether or not to build static libraries.
15953 build_old_libs=$enable_static
15955 # Whether or not to add -lc for building shared libraries.
15956 build_libtool_need_lc=$archive_cmds_need_lc_F77
15958 # Whether or not to disallow shared libs when runtime libs are static
15959 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15961 # Whether or not to optimize for fast installation.
15962 fast_install=$enable_fast_install
15965 host_alias=$host_alias
15969 # The build system.
15970 build_alias=$build_alias
15974 # An echo program that does not interpret backslashes.
15979 AR_FLAGS=$lt_AR_FLAGS
15984 # LTCC compiler flags.
15985 LTCFLAGS=$lt_LTCFLAGS
15987 # A language-specific compiler.
15988 CC=$lt_compiler_F77
15990 # Is the compiler the GNU C compiler?
15993 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15994 gcc_ver=\`gcc -dumpversion\`
15999 # The linker used to build libraries.
16002 # Whether we need hard or soft links.
16005 # A BSD-compatible nm program.
16008 # A symbol stripping program
16011 # Used to examine libraries when file_magic_cmd begins "file"
16012 MAGIC_CMD=$MAGIC_CMD
16014 # Used on cygwin: DLL creation program.
16017 # Used on cygwin: object dumper.
16020 # Used on cygwin: assembler.
16023 # The name of the directory that contains temporary libtool files.
16026 # How to create reloadable object files.
16027 reload_flag=$lt_reload_flag
16028 reload_cmds=$lt_reload_cmds
16030 # How to pass a linker flag through the compiler.
16031 wl=$lt_lt_prog_compiler_wl_F77
16033 # Object file suffix (normally "o").
16034 objext="$ac_objext"
16036 # Old archive suffix (normally "a").
16039 # Shared library suffix (normally ".so").
16040 shrext_cmds='$shrext_cmds'
16042 # Executable file suffix (normally "").
16045 # Additional compiler flags for building library objects.
16046 pic_flag=$lt_lt_prog_compiler_pic_F77
16049 # What is the maximum length of a command?
16050 max_cmd_len=$lt_cv_sys_max_cmd_len
16052 # Does compiler simultaneously support -c and -o options?
16053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16055 # Must we lock files when doing compilation?
16056 need_locks=$lt_need_locks
16058 # Do we need the lib prefix for modules?
16059 need_lib_prefix=$need_lib_prefix
16061 # Do we need a version for libraries?
16062 need_version=$need_version
16064 # Whether dlopen is supported.
16065 dlopen_support=$enable_dlopen
16067 # Whether dlopen of programs is supported.
16068 dlopen_self=$enable_dlopen_self
16070 # Whether dlopen of statically linked programs is supported.
16071 dlopen_self_static=$enable_dlopen_self_static
16073 # Compiler flag to prevent dynamic linking.
16074 link_static_flag=$lt_lt_prog_compiler_static_F77
16076 # Compiler flag to turn off builtin functions.
16077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16079 # Compiler flag to allow reflexive dlopens.
16080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16082 # Compiler flag to generate shared objects directly from archives.
16083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16085 # Compiler flag to generate thread-safe objects.
16086 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16088 # Library versioning type.
16089 version_type=$version_type
16091 # Format of library name prefix.
16092 libname_spec=$lt_libname_spec
16094 # List of archive names. First name is the real one, the rest are links.
16095 # The last name is the one that the linker finds with -lNAME.
16096 library_names_spec=$lt_library_names_spec
16098 # The coded name of the library, if different from the real name.
16099 soname_spec=$lt_soname_spec
16101 # Commands used to build and install an old-style archive.
16103 old_archive_cmds=$lt_old_archive_cmds_F77
16104 old_postinstall_cmds=$lt_old_postinstall_cmds
16105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16107 # Create an old-style archive from a shared archive.
16108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16110 # Create a temporary old-style archive to link instead of a shared archive.
16111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16113 # Commands used to build and install a shared archive.
16114 archive_cmds=$lt_archive_cmds_F77
16115 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16116 postinstall_cmds=$lt_postinstall_cmds
16117 postuninstall_cmds=$lt_postuninstall_cmds
16119 # Commands used to build a loadable module (assumed same as above if empty)
16120 module_cmds=$lt_module_cmds_F77
16121 module_expsym_cmds=$lt_module_expsym_cmds_F77
16123 # Commands to strip libraries.
16124 old_striplib=$lt_old_striplib
16125 striplib=$lt_striplib
16127 # Dependencies to place before the objects being linked to create a
16129 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16131 # Dependencies to place after the objects being linked to create a
16133 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16135 # Dependencies to place before the objects being linked to create a
16137 predeps=$lt_predeps_F77
16139 # Dependencies to place after the objects being linked to create a
16141 postdeps=$lt_postdeps_F77
16143 # The library search path used internally by the compiler when linking
16144 # a shared library.
16145 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"\`
16147 # Method to check whether dependent libraries are shared objects.
16148 deplibs_check_method=$lt_deplibs_check_method
16150 # Command to use when deplibs_check_method == file_magic.
16151 file_magic_cmd=$lt_file_magic_cmd
16153 # Flag that allows shared libraries with undefined symbols to be built.
16154 allow_undefined_flag=$lt_allow_undefined_flag_F77
16156 # Flag that forces no undefined symbols.
16157 no_undefined_flag=$lt_no_undefined_flag_F77
16159 # Commands used to finish a libtool library installation in a directory.
16160 finish_cmds=$lt_finish_cmds
16162 # Same as above, but a single script fragment to be evaled but not shown.
16163 finish_eval=$lt_finish_eval
16165 # Take the output of nm and produce a listing of raw symbols and C names.
16166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16168 # Transform the output of nm in a proper C declaration
16169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16171 # Transform the output of nm in a C name address pair
16172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16174 # This is the shared library runtime path variable.
16175 runpath_var=$runpath_var
16177 # This is the shared library path variable.
16178 shlibpath_var=$shlibpath_var
16180 # Is shlibpath searched before the hard-coded library search path?
16181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16183 # How to hardcode a shared library path into an executable.
16184 hardcode_action=$hardcode_action_F77
16186 # Whether we should hardcode library paths into libraries.
16187 hardcode_into_libs=$hardcode_into_libs
16189 # Flag to hardcode \$libdir into a binary during linking.
16190 # This must work even if \$libdir does not exist.
16191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16193 # If ld is used when linking, flag to hardcode \$libdir into
16194 # a binary during linking. This must work even if \$libdir does
16196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16198 # Whether we need a single -rpath flag with a separated argument.
16199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16202 # resulting binary.
16203 hardcode_direct=$hardcode_direct_F77
16205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16206 # resulting binary.
16207 hardcode_minus_L=$hardcode_minus_L_F77
16209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16210 # the resulting binary.
16211 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16213 # Set to yes if building a shared library automatically hardcodes DIR into the library
16214 # and all subsequent libraries and executables linked against it.
16215 hardcode_automatic=$hardcode_automatic_F77
16217 # Variables whose values should be saved in libtool wrapper scripts and
16218 # restored at relink time.
16219 variables_saved_for_relink="$variables_saved_for_relink"
16221 # Whether libtool must link a program against all its dependency libraries.
16222 link_all_deplibs=$link_all_deplibs_F77
16224 # Compile-time system search path for libraries
16225 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"\`
16227 # Run-time system search path for libraries
16228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16230 # Fix the shell variable \$srcfile for the compiler.
16231 fix_srcfile_path="$fix_srcfile_path_F77"
16233 # Set to yes if exported symbols are required.
16234 always_export_symbols=$always_export_symbols_F77
16236 # The commands to list exported symbols.
16237 export_symbols_cmds=$lt_export_symbols_cmds_F77
16239 # The commands to extract the exported symbol list from a shared archive.
16240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16242 # Symbols that should not be listed in the preloaded symbols.
16243 exclude_expsyms=$lt_exclude_expsyms_F77
16245 # Symbols that must always be exported.
16246 include_expsyms=$lt_include_expsyms_F77
16248 # ### END LIBTOOL TAG CONFIG: $tagname
16254 # If there is no Makefile yet, we rely on a make rule to execute
16255 # `config.status --recheck' to rerun these tests and create the
16256 # libtool script then.
16257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16258 if test -f "$ltmain_in"; then
16259 test -f Makefile && make "$ltmain"
16265 ac_cpp='$CPP $CPPFLAGS'
16266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16278 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16281 # Source file extension for Java test sources.
16284 # Object file extension for compiled Java test sources.
16288 # Code to be used in simple compile tests
16289 lt_simple_compile_test_code="class foo {}\n"
16291 # Code to be used in simple link tests
16292 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16296 # If no C compiler was specified, use CC.
16299 # If no C compiler flags were specified, use CFLAGS.
16300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16302 # Allow CC to be a program name with arguments.
16306 # save warnings/boilerplate of simple test code
16307 ac_outfile=conftest.$ac_objext
16308 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16310 _lt_compiler_boilerplate=`cat conftest.err`
16313 ac_outfile=conftest.$ac_objext
16314 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16316 _lt_linker_boilerplate=`cat conftest.err`
16320 # Allow CC to be a program name with arguments.
16325 for cc_temp in $compiler""; do
16327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16336 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16337 archive_cmds_need_lc_GCJ=no
16339 old_archive_cmds_GCJ=$old_archive_cmds
16342 lt_prog_compiler_no_builtin_flag_GCJ=
16344 if test "$GCC" = yes; then
16345 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16349 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16350 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16351 $as_echo_n "(cached) " >&6
16353 lt_cv_prog_compiler_rtti_exceptions=no
16354 ac_outfile=conftest.$ac_objext
16355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16356 lt_compiler_flag="-fno-rtti -fno-exceptions"
16357 # Insert the option either (1) after the last *FLAGS variable, or
16358 # (2) before a word containing "conftest.", or (3) at the end.
16359 # Note that $ac_compile itself does not contain backslashes and begins
16360 # with a dollar sign (not a hyphen), so the echo should work correctly.
16361 # The option is referenced via a variable to avoid confusing sed.
16362 lt_compile=`echo "$ac_compile" | $SED \
16363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16365 -e 's:$: $lt_compiler_flag:'`
16366 (eval echo "\"\$as_me:16366: $lt_compile\"" >&5)
16367 (eval "$lt_compile" 2>conftest.err)
16369 cat conftest.err >&5
16370 echo "$as_me:16370: \$? = $ac_status" >&5
16371 if (exit $ac_status) && test -s "$ac_outfile"; then
16372 # The compiler can only warn and ignore the option if not recognized
16373 # So say no if there are warnings other than the usual output.
16374 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16377 lt_cv_prog_compiler_rtti_exceptions=yes
16383 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16384 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16386 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16387 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16394 lt_prog_compiler_wl_GCJ=
16395 lt_prog_compiler_pic_GCJ=
16396 lt_prog_compiler_static_GCJ=
16398 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16399 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16401 if test "$GCC" = yes; then
16402 lt_prog_compiler_wl_GCJ='-Wl,'
16403 lt_prog_compiler_static_GCJ='-static'
16407 # All AIX code is PIC.
16408 if test "$host_cpu" = ia64; then
16409 # AIX 5 now supports IA64 processor
16410 lt_prog_compiler_static_GCJ='-Bstatic'
16415 # FIXME: we need at least 68020 code to build shared libraries, but
16416 # adding the `-m68020' flag to GCC prevents building anything better,
16418 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16421 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16422 # PIC is the default for these OSes.
16425 mingw* | pw32* | os2*)
16426 # This hack is so that the source file can tell whether it is being
16427 # built for inclusion in a dll (and should export symbols for example).
16428 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16431 darwin* | rhapsody*)
16432 # PIC is the default on this platform
16433 # Common symbols not allowed in MH_DYLIB files
16434 lt_prog_compiler_pic_GCJ='-fno-common'
16438 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16439 # Instead, we relocate shared libraries at runtime.
16443 # Just because we use GCC doesn't mean we suddenly get shared libraries
16444 # on systems that don't support them.
16445 lt_prog_compiler_can_build_shared_GCJ=no
16450 if test -d /usr/nec; then
16451 lt_prog_compiler_pic_GCJ=-Kconform_pic
16456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16457 # not for PA HP-UX.
16463 lt_prog_compiler_pic_GCJ='-fPIC'
16469 lt_prog_compiler_pic_GCJ='-fPIC'
16473 # PORTME Check for flag to pass linker flags through the system compiler.
16476 lt_prog_compiler_wl_GCJ='-Wl,'
16477 if test "$host_cpu" = ia64; then
16478 # AIX 5 now supports IA64 processor
16479 lt_prog_compiler_static_GCJ='-Bstatic'
16481 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16485 # PIC is the default on this platform
16486 # Common symbols not allowed in MH_DYLIB files
16487 case $cc_basename in
16489 lt_prog_compiler_pic_GCJ='-qnocommon'
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16495 mingw* | pw32* | os2*)
16496 # This hack is so that the source file can tell whether it is being
16497 # built for inclusion in a dll (and should export symbols for example).
16498 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16501 hpux9* | hpux10* | hpux11*)
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16504 # not for PA HP-UX.
16510 lt_prog_compiler_pic_GCJ='+Z'
16513 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16514 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16517 irix5* | irix6* | nonstopux*)
16518 lt_prog_compiler_wl_GCJ='-Wl,'
16519 # PIC (with -KPIC) is the default.
16520 lt_prog_compiler_static_GCJ='-non_shared'
16524 lt_prog_compiler_pic_GCJ='-KPIC'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16529 case $cc_basename in
16531 lt_prog_compiler_wl_GCJ='-Wl,'
16532 lt_prog_compiler_pic_GCJ='-KPIC'
16533 lt_prog_compiler_static_GCJ='-static'
16535 pgcc* | pgf77* | pgf90* | pgf95*)
16536 # Portland Group compilers (*not* the Pentium gcc compiler,
16537 # which looks to be a dead project)
16538 lt_prog_compiler_wl_GCJ='-Wl,'
16539 lt_prog_compiler_pic_GCJ='-fpic'
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16543 lt_prog_compiler_wl_GCJ='-Wl,'
16544 # All Alpha code is PIC.
16545 lt_prog_compiler_static_GCJ='-non_shared'
16550 osf3* | osf4* | osf5*)
16551 lt_prog_compiler_wl_GCJ='-Wl,'
16552 # All OSF/1 code is PIC.
16553 lt_prog_compiler_static_GCJ='-non_shared'
16557 lt_prog_compiler_pic_GCJ='-KPIC'
16558 lt_prog_compiler_static_GCJ='-Bstatic'
16559 case $cc_basename in
16560 f77* | f90* | f95*)
16561 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16563 lt_prog_compiler_wl_GCJ='-Wl,';;
16568 lt_prog_compiler_wl_GCJ='-Qoption ld '
16569 lt_prog_compiler_pic_GCJ='-PIC'
16570 lt_prog_compiler_static_GCJ='-Bstatic'
16573 sysv4 | sysv4.2uw2* | sysv4.3*)
16574 lt_prog_compiler_wl_GCJ='-Wl,'
16575 lt_prog_compiler_pic_GCJ='-KPIC'
16576 lt_prog_compiler_static_GCJ='-Bstatic'
16580 if test -d /usr/nec ;then
16581 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16582 lt_prog_compiler_static_GCJ='-Bstatic'
16586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16587 lt_prog_compiler_wl_GCJ='-Wl,'
16588 lt_prog_compiler_pic_GCJ='-KPIC'
16589 lt_prog_compiler_static_GCJ='-Bstatic'
16593 lt_prog_compiler_wl_GCJ='-Wl,'
16594 lt_prog_compiler_can_build_shared_GCJ=no
16598 lt_prog_compiler_pic_GCJ='-pic'
16599 lt_prog_compiler_static_GCJ='-Bstatic'
16603 lt_prog_compiler_can_build_shared_GCJ=no
16608 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16609 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16612 # Check to make sure the PIC flag actually works.
16614 if test -n "$lt_prog_compiler_pic_GCJ"; then
16616 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16618 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16619 $as_echo_n "(cached) " >&6
16621 lt_prog_compiler_pic_works_GCJ=no
16622 ac_outfile=conftest.$ac_objext
16623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16624 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16625 # Insert the option either (1) after the last *FLAGS variable, or
16626 # (2) before a word containing "conftest.", or (3) at the end.
16627 # Note that $ac_compile itself does not contain backslashes and begins
16628 # with a dollar sign (not a hyphen), so the echo should work correctly.
16629 # The option is referenced via a variable to avoid confusing sed.
16630 lt_compile=`echo "$ac_compile" | $SED \
16631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16633 -e 's:$: $lt_compiler_flag:'`
16634 (eval echo "\"\$as_me:16634: $lt_compile\"" >&5)
16635 (eval "$lt_compile" 2>conftest.err)
16637 cat conftest.err >&5
16638 echo "$as_me:16638: \$? = $ac_status" >&5
16639 if (exit $ac_status) && test -s "$ac_outfile"; then
16640 # The compiler can only warn and ignore the option if not recognized
16641 # So say no if there are warnings other than the usual output.
16642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16645 lt_prog_compiler_pic_works_GCJ=yes
16651 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16652 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16654 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16655 case $lt_prog_compiler_pic_GCJ in
16657 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16660 lt_prog_compiler_pic_GCJ=
16661 lt_prog_compiler_can_build_shared_GCJ=no
16666 # For platforms which do not support PIC, -DPIC is meaningless:
16668 lt_prog_compiler_pic_GCJ=
16671 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16676 # Check to make sure the static flag actually works.
16678 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16679 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16680 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16681 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16682 $as_echo_n "(cached) " >&6
16684 lt_prog_compiler_static_works_GCJ=no
16685 save_LDFLAGS="$LDFLAGS"
16686 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16687 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16688 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16689 # The linker can only warn and ignore the option if not recognized
16690 # So say no if there are warnings
16691 if test -s conftest.err; then
16692 # Append any errors to the config.log.
16693 cat conftest.err 1>&5
16694 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16696 if diff conftest.exp conftest.er2 >/dev/null; then
16697 lt_prog_compiler_static_works_GCJ=yes
16700 lt_prog_compiler_static_works_GCJ=yes
16704 LDFLAGS="$save_LDFLAGS"
16707 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16708 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16710 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16713 lt_prog_compiler_static_GCJ=
16717 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16719 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16720 $as_echo_n "(cached) " >&6
16722 lt_cv_prog_compiler_c_o_GCJ=no
16723 $rm -r conftest 2>/dev/null
16727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16729 lt_compiler_flag="-o out/conftest2.$ac_objext"
16730 # Insert the option either (1) after the last *FLAGS variable, or
16731 # (2) before a word containing "conftest.", or (3) at the end.
16732 # Note that $ac_compile itself does not contain backslashes and begins
16733 # with a dollar sign (not a hyphen), so the echo should work correctly.
16734 lt_compile=`echo "$ac_compile" | $SED \
16735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16737 -e 's:$: $lt_compiler_flag:'`
16738 (eval echo "\"\$as_me:16738: $lt_compile\"" >&5)
16739 (eval "$lt_compile" 2>out/conftest.err)
16741 cat out/conftest.err >&5
16742 echo "$as_me:16742: \$? = $ac_status" >&5
16743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16745 # The compiler can only warn and ignore the option if not recognized
16746 # So say no if there are warnings
16747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16750 lt_cv_prog_compiler_c_o_GCJ=yes
16755 # SGI C++ compiler will create directory out/ii_files/ for
16756 # template instantiation
16757 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16758 $rm out/* && rmdir out
16764 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16765 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16768 hard_links="nottested"
16769 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16770 # do not overwrite the value of need_locks provided by the user
16771 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16772 $as_echo_n "checking if we can lock with hard links... " >&6; }
16775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16777 ln conftest.a conftest.b 2>&5 || hard_links=no
16778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16779 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16780 $as_echo "$hard_links" >&6; }
16781 if test "$hard_links" = no; then
16782 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16790 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16794 allow_undefined_flag_GCJ=
16795 enable_shared_with_static_runtimes_GCJ=no
16797 archive_expsym_cmds_GCJ=
16798 old_archive_From_new_cmds_GCJ=
16799 old_archive_from_expsyms_cmds_GCJ=
16800 export_dynamic_flag_spec_GCJ=
16801 whole_archive_flag_spec_GCJ=
16802 thread_safe_flag_spec_GCJ=
16803 hardcode_libdir_flag_spec_GCJ=
16804 hardcode_libdir_flag_spec_ld_GCJ=
16805 hardcode_libdir_separator_GCJ=
16806 hardcode_direct_GCJ=no
16807 hardcode_minus_L_GCJ=no
16808 hardcode_shlibpath_var_GCJ=unsupported
16809 link_all_deplibs_GCJ=unknown
16810 hardcode_automatic_GCJ=no
16812 module_expsym_cmds_GCJ=
16813 always_export_symbols_GCJ=no
16814 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16815 # include_expsyms should be a list of space-separated symbols to be *always*
16816 # included in the symbol list
16817 include_expsyms_GCJ=
16818 # exclude_expsyms can be an extended regexp of symbols to exclude
16819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16821 # as well as any symbol that contains `d'.
16822 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16824 # platforms (ab)use it in PIC code, but their linkers get confused if
16825 # the symbol is explicitly referenced. Since portable code cannot
16826 # rely on this symbol name, it's probably fine to never include it in
16827 # preloaded symbol tables.
16828 extract_expsyms_cmds=
16829 # Just being paranoid about ensuring that cc_basename is set.
16830 for cc_temp in $compiler""; do
16832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16838 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16841 cygwin* | mingw* | pw32*)
16842 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16843 # When not using gcc, we currently assume that we are using
16844 # Microsoft Visual C++.
16845 if test "$GCC" != yes; then
16850 # we just hope/assume this is gcc and not c89 (= MSVC++)
16859 if test "$with_gnu_ld" = yes; then
16860 # If archive_cmds runs LD, not CC, wlarc should be empty
16863 # Set some defaults for GNU ld with shared library support. These
16864 # are reset later if shared libraries are not supported. Putting them
16865 # here allows them to be overridden if necessary.
16866 runpath_var=LD_RUN_PATH
16867 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16868 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16869 # ancient GNU ld didn't support --whole-archive et. al.
16870 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16871 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16873 whole_archive_flag_spec_GCJ=
16875 supports_anon_versioning=no
16876 case `$LD -v 2>/dev/null` in
16877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16880 *\ 2.11.*) ;; # other 2.11 versions
16881 *) supports_anon_versioning=yes ;;
16884 # See if GNU ld supports shared libraries.
16886 aix3* | aix4* | aix5*)
16887 # On AIX/PPC, the GNU linker is very broken
16888 if test "$host_cpu" != ia64; then
16892 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16893 *** to be unable to reliably create shared libraries on AIX.
16894 *** Therefore, libtool is disabling shared libraries support. If you
16895 *** really care for shared libraries, you may want to modify your PATH
16896 *** so that a non-GNU linker is found, and then restart.
16903 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)'
16904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16905 hardcode_minus_L_GCJ=yes
16907 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16908 # that the semantics of dynamic libraries on AmigaOS, at least up
16909 # to version 4, is to share data among multiple programs linked
16910 # with the same dynamic library. Since this doesn't match the
16911 # behavior of shared libraries on other platforms, we can't use
16917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16918 allow_undefined_flag_GCJ=unsupported
16919 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16920 # support --undefined. This deserves some investigation. FIXME
16921 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16927 cygwin* | mingw* | pw32*)
16928 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16929 # as there is no search path for DLLs.
16930 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16931 allow_undefined_flag_GCJ=unsupported
16932 always_export_symbols_GCJ=no
16933 enable_shared_with_static_runtimes_GCJ=yes
16934 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16936 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16937 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16938 # If the export-symbols file already is a .def file (1st line
16939 # is EXPORTS), use it as is; otherwise, prepend...
16940 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16941 cp $export_symbols $output_objdir/$soname.def;
16943 echo EXPORTS > $output_objdir/$soname.def;
16944 cat $export_symbols >> $output_objdir/$soname.def;
16946 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16953 hardcode_direct_GCJ=no
16954 hardcode_shlibpath_var_GCJ=no
16955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16956 export_dynamic_flag_spec_GCJ='${wl}-E'
16957 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16958 # Instead, shared libraries are loaded at an image base (0x10000000 by
16959 # default) and relocated if they conflict, which is a slow very memory
16960 # consuming and fragmenting process. To avoid this, we pick a random,
16961 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16962 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16963 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'
16964 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'
16968 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16970 case $cc_basename,$host_cpu in
16971 pgcc*) # Portland Group C compiler
16972 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'
16973 tmp_addflag=' $pic_flag'
16975 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16976 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'
16977 tmp_addflag=' $pic_flag -Mnomain' ;;
16978 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16979 tmp_addflag=' -i_dynamic' ;;
16980 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16981 tmp_addflag=' -i_dynamic -nofor_main' ;;
16982 ifc* | ifort*) # Intel Fortran compiler
16983 tmp_addflag=' -nofor_main' ;;
16985 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16987 if test $supports_anon_versioning = yes; then
16988 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16990 $echo "local: *; };" >> $output_objdir/$libname.ver~
16991 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17000 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17009 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17014 *** create shared libraries on Solaris systems. Therefore, libtool
17015 *** is disabling shared libraries support. We urge you to upgrade GNU
17016 *** binutils to release 2.9.1 or newer. Another option is to modify
17017 *** your PATH or compiler configuration so that the native linker is
17018 *** used, and then restart.
17021 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17022 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17023 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17030 case `$LD -v 2>&1` in
17031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17036 *** reliably create shared libraries on SCO systems. Therefore, libtool
17037 *** is disabling shared libraries support. We urge you to upgrade GNU
17038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17039 *** your PATH or compiler configuration so that the native linker is
17040 *** used, and then restart.
17045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17046 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17057 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_direct_GCJ=yes
17060 hardcode_shlibpath_var_GCJ=no
17064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17073 if test "$ld_shlibs_GCJ" = no; then
17075 hardcode_libdir_flag_spec_GCJ=
17076 export_dynamic_flag_spec_GCJ=
17077 whole_archive_flag_spec_GCJ=
17080 # PORTME fill in a description of your system's linker (not GNU ld)
17083 allow_undefined_flag_GCJ=unsupported
17084 always_export_symbols_GCJ=yes
17085 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'
17086 # Note: this linker hardcodes the directories in LIBPATH if there
17087 # are no directories specified by -L.
17088 hardcode_minus_L_GCJ=yes
17089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17090 # Neither direct hardcoding nor static linking is supported with a
17092 hardcode_direct_GCJ=unsupported
17097 if test "$host_cpu" = ia64; then
17098 # On IA64, the linker does run time linking by default, so we don't
17099 # have to do anything special.
17100 aix_use_runtimelinking=no
17101 exp_sym_flag='-Bexport'
17104 # If we're using GNU nm, then we don't want the "-C" option.
17105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17106 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17107 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'
17109 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'
17111 aix_use_runtimelinking=no
17113 # Test if we are trying to use run time linking or normal
17114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17115 # need to do runtime linking.
17116 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17117 for ld_flag in $LDFLAGS; do
17118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17119 aix_use_runtimelinking=yes
17126 exp_sym_flag='-bexport'
17127 no_entry_flag='-bnoentry'
17130 # When large executables or shared objects are built, AIX ld can
17131 # have problems creating the table of contents. If linking a library
17132 # or program results in "error TOC overflow" add -mminimal-toc to
17133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17136 archive_cmds_GCJ=''
17137 hardcode_direct_GCJ=yes
17138 hardcode_libdir_separator_GCJ=':'
17139 link_all_deplibs_GCJ=yes
17141 if test "$GCC" = yes; then
17142 case $host_os in aix4.[012]|aix4.[012].*)
17143 # We only want to do this on AIX 4.2 and lower, the check
17144 # below for broken collect2 doesn't work under 4.3+
17145 collect2name=`${CC} -print-prog-name=collect2`
17146 if test -f "$collect2name" && \
17147 strings "$collect2name" | grep resolve_lib_name >/dev/null
17149 # We have reworked collect2
17150 hardcode_direct_GCJ=yes
17152 # We have old collect2
17153 hardcode_direct_GCJ=unsupported
17154 # It fails to find uninstalled libraries when the uninstalled
17155 # path is not listed in the libpath. Setting hardcode_minus_L
17156 # to unsupported forces relinking
17157 hardcode_minus_L_GCJ=yes
17158 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17159 hardcode_libdir_separator_GCJ=
17163 shared_flag='-shared'
17164 if test "$aix_use_runtimelinking" = yes; then
17165 shared_flag="$shared_flag "'${wl}-G'
17169 if test "$host_cpu" = ia64; then
17170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17171 # chokes on -Wl,-G. The following line is correct:
17174 if test "$aix_use_runtimelinking" = yes; then
17175 shared_flag='${wl}-G'
17177 shared_flag='${wl}-bM:SRE'
17182 # It seems that -bexpall does not export symbols beginning with
17183 # underscore (_), so it is better to generate a list of symbols to export.
17184 always_export_symbols_GCJ=yes
17185 if test "$aix_use_runtimelinking" = yes; then
17186 # Warning - without using the other runtime loading flags (-brtl),
17187 # -berok will link without error, but may produce a broken library.
17188 allow_undefined_flag_GCJ='-berok'
17189 # Determine the default libpath from the value encoded in an empty executable.
17190 cat >conftest.$ac_ext <<_ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212 $as_echo "$ac_try_echo") >&5
17213 (eval "$ac_link") 2>conftest.er1
17215 grep -v '^ *+' conftest.er1 >conftest.err
17217 cat conftest.err >&5
17218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && {
17220 test -z "$ac_c_werror_flag" ||
17221 test ! -s conftest.err
17222 } && test -s conftest$ac_exeext && {
17223 test "$cross_compiling" = yes ||
17224 $as_test_x conftest$ac_exeext
17227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17229 # Check for a 64-bit object if we didn't find anything.
17230 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; }
17233 $as_echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17239 rm -rf conftest.dSYM
17240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17241 conftest$ac_exeext conftest.$ac_ext
17242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17244 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17245 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"
17247 if test "$host_cpu" = ia64; then
17248 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17249 allow_undefined_flag_GCJ="-z nodefs"
17250 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"
17252 # Determine the default libpath from the value encoded in an empty executable.
17253 cat >conftest.$ac_ext <<_ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17275 $as_echo "$ac_try_echo") >&5
17276 (eval "$ac_link") 2>conftest.er1
17278 grep -v '^ *+' conftest.er1 >conftest.err
17280 cat conftest.err >&5
17281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest$ac_exeext && {
17286 test "$cross_compiling" = yes ||
17287 $as_test_x conftest$ac_exeext
17290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17292 # Check for a 64-bit object if we didn't find anything.
17293 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; }
17296 $as_echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17302 rm -rf conftest.dSYM
17303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17304 conftest$ac_exeext conftest.$ac_ext
17305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17307 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17308 # Warning - without using the other run time loading flags,
17309 # -berok will link without error, but may produce a broken library.
17310 no_undefined_flag_GCJ=' ${wl}-bernotok'
17311 allow_undefined_flag_GCJ=' ${wl}-berok'
17312 # Exported symbols can be pulled into shared objects from archives
17313 whole_archive_flag_spec_GCJ='$convenience'
17314 archive_cmds_need_lc_GCJ=yes
17315 # This is similar to how AIX traditionally builds its shared libraries.
17316 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'
17322 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)'
17323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324 hardcode_minus_L_GCJ=yes
17325 # see comment about different semantics on the GNU ld section
17330 export_dynamic_flag_spec_GCJ=-rdynamic
17333 cygwin* | mingw* | pw32*)
17334 # When not using gcc, we currently assume that we are using
17335 # Microsoft Visual C++.
17336 # hardcode_libdir_flag_spec is actually meaningless, as there is
17337 # no search path for DLLs.
17338 hardcode_libdir_flag_spec_GCJ=' '
17339 allow_undefined_flag_GCJ=unsupported
17340 # Tell ltmain to make .lib files, not .a files.
17342 # Tell ltmain to make .dll files, not .so files.
17344 # FIXME: Setting linknames here is a bad hack.
17345 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17346 # The linker will automatically build a .lib file if we build a DLL.
17347 old_archive_From_new_cmds_GCJ='true'
17348 # FIXME: Should let the user specify the lib program.
17349 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17350 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17351 enable_shared_with_static_runtimes_GCJ=yes
17354 darwin* | rhapsody*)
17356 rhapsody* | darwin1.[012])
17357 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17360 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17361 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17363 case ${MACOSX_DEPLOYMENT_TARGET} in
17365 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17368 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17374 archive_cmds_need_lc_GCJ=no
17375 hardcode_direct_GCJ=no
17376 hardcode_automatic_GCJ=yes
17377 hardcode_shlibpath_var_GCJ=unsupported
17378 whole_archive_flag_spec_GCJ=''
17379 link_all_deplibs_GCJ=yes
17380 if test "$GCC" = yes ; then
17381 output_verbose_link_cmd='echo'
17382 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17383 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17385 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}'
17386 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}'
17388 case $cc_basename in
17390 output_verbose_link_cmd='echo'
17391 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17392 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17393 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17394 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}'
17395 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}'
17405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17406 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17407 hardcode_shlibpath_var_GCJ=no
17414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17415 # support. Future versions do this automatically, but an explicit c++rt0.o
17416 # does not break anything, and helps significantly (at the cost of a little
17419 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17420 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17421 hardcode_direct_GCJ=yes
17422 hardcode_shlibpath_var_GCJ=no
17425 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17427 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17428 hardcode_direct_GCJ=yes
17429 hardcode_minus_L_GCJ=yes
17430 hardcode_shlibpath_var_GCJ=no
17433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17434 freebsd* | kfreebsd*-gnu | dragonfly*)
17435 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17436 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17437 hardcode_direct_GCJ=yes
17438 hardcode_shlibpath_var_GCJ=no
17442 if test "$GCC" = yes; then
17443 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'
17445 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'
17447 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17448 hardcode_libdir_separator_GCJ=:
17449 hardcode_direct_GCJ=yes
17451 # hardcode_minus_L: Not really in the search PATH,
17452 # but as the default location of the library.
17453 hardcode_minus_L_GCJ=yes
17454 export_dynamic_flag_spec_GCJ='${wl}-E'
17458 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17459 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17461 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17463 if test "$with_gnu_ld" = no; then
17464 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17465 hardcode_libdir_separator_GCJ=:
17467 hardcode_direct_GCJ=yes
17468 export_dynamic_flag_spec_GCJ='${wl}-E'
17470 # hardcode_minus_L: Not really in the search PATH,
17471 # but as the default location of the library.
17472 hardcode_minus_L_GCJ=yes
17477 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17480 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17483 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17486 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17492 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17495 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17498 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17502 if test "$with_gnu_ld" = no; then
17503 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17504 hardcode_libdir_separator_GCJ=:
17508 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17509 hardcode_direct_GCJ=no
17510 hardcode_shlibpath_var_GCJ=no
17513 hardcode_direct_GCJ=yes
17514 export_dynamic_flag_spec_GCJ='${wl}-E'
17516 # hardcode_minus_L: Not really in the search PATH,
17517 # but as the default location of the library.
17518 hardcode_minus_L_GCJ=yes
17524 irix5* | irix6* | nonstopux*)
17525 if test "$GCC" = yes; then
17526 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'
17528 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'
17529 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17532 hardcode_libdir_separator_GCJ=:
17533 link_all_deplibs_GCJ=yes
17537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17540 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17542 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17543 hardcode_direct_GCJ=yes
17544 hardcode_shlibpath_var_GCJ=no
17548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549 hardcode_direct_GCJ=yes
17550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17551 hardcode_libdir_separator_GCJ=:
17552 hardcode_shlibpath_var_GCJ=no
17556 hardcode_direct_GCJ=yes
17557 hardcode_shlibpath_var_GCJ=no
17558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17559 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17560 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17562 export_dynamic_flag_spec_GCJ='${wl}-E'
17565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17566 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17567 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17570 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579 hardcode_minus_L_GCJ=yes
17580 allow_undefined_flag_GCJ=unsupported
17581 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'
17582 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17586 if test "$GCC" = yes; then
17587 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588 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'
17590 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591 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'
17593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594 hardcode_libdir_separator_GCJ=:
17597 osf4* | osf5*) # as osf3* with the addition of -msym flag
17598 if test "$GCC" = yes; then
17599 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17600 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'
17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17603 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17604 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'
17605 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~
17606 $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'
17608 # Both c and cxx compiler support -rpath directly
17609 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17611 hardcode_libdir_separator_GCJ=:
17615 no_undefined_flag_GCJ=' -z text'
17616 if test "$GCC" = yes; then
17618 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17620 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17623 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17628 hardcode_shlibpath_var_GCJ=no
17630 solaris2.[0-5] | solaris2.[0-5].*) ;;
17632 # The compiler driver will combine linker options so we
17633 # cannot just pass the convience library names through
17634 # without $wl, iff we do not link with $LD.
17635 # Luckily, gcc supports the same syntax we need for Sun Studio.
17636 # Supported since Solaris 2.6 (maybe 2.5.1?)
17639 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17641 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' ;;
17644 link_all_deplibs_GCJ=yes
17648 if test "x$host_vendor" = xsequent; then
17649 # Use $CC to link under sequent, because it throws in some extra .o
17650 # files that make .init and .fini sections work.
17651 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17653 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17656 hardcode_direct_GCJ=yes
17657 hardcode_minus_L_GCJ=yes
17658 hardcode_shlibpath_var_GCJ=no
17662 case $host_vendor in
17664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17665 hardcode_direct_GCJ=yes # is this really true???
17668 ## LD is ld it makes a PLAMLIB
17669 ## CC just makes a GrossModule.
17670 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17671 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17672 hardcode_direct_GCJ=no
17675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17679 runpath_var='LD_RUN_PATH'
17680 hardcode_shlibpath_var_GCJ=no
17684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17685 hardcode_shlibpath_var_GCJ=no
17686 export_dynamic_flag_spec_GCJ='-Bexport'
17690 if test -d /usr/nec; then
17691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17692 hardcode_shlibpath_var_GCJ=no
17693 runpath_var=LD_RUN_PATH
17694 hardcode_runpath_var=yes
17699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17700 no_undefined_flag_GCJ='${wl}-z,text'
17701 archive_cmds_need_lc_GCJ=no
17702 hardcode_shlibpath_var_GCJ=no
17703 runpath_var='LD_RUN_PATH'
17705 if test "$GCC" = yes; then
17706 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17707 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17710 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17714 sysv5* | sco3.2v5* | sco5v6*)
17715 # Note: We can NOT use -z defs as we might desire, because we do not
17716 # link with -lc, and that would cause any symbols used from libc to
17717 # always be unresolved, which means just about no library would
17718 # ever link correctly. If we're not using GNU ld we use -z text
17719 # though, which does catch some bad symbols but isn't as heavy-handed
17721 no_undefined_flag_GCJ='${wl}-z,text'
17722 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17723 archive_cmds_need_lc_GCJ=no
17724 hardcode_shlibpath_var_GCJ=no
17725 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17726 hardcode_libdir_separator_GCJ=':'
17727 link_all_deplibs_GCJ=yes
17728 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17729 runpath_var='LD_RUN_PATH'
17731 if test "$GCC" = yes; then
17732 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17733 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17736 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17743 hardcode_shlibpath_var_GCJ=no
17752 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17753 $as_echo "$ld_shlibs_GCJ" >&6; }
17754 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17757 # Do we need to explicitly link libc?
17759 case "x$archive_cmds_need_lc_GCJ" in
17761 # Assume -lc should be added
17762 archive_cmds_need_lc_GCJ=yes
17764 if test "$enable_shared" = yes && test "$GCC" = yes; then
17765 case $archive_cmds_GCJ in
17767 # FIXME: we may have to deal with multi-command sequences.
17770 # Test whether the compiler implicitly links with -lc since on some
17771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17772 # to ld, don't add -lc before -lgcc.
17773 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17774 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>&5
17781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } 2>conftest.err; then
17785 libobjs=conftest.$ac_objext
17787 wl=$lt_prog_compiler_wl_GCJ
17788 pic_flag=$lt_prog_compiler_pic_GCJ
17794 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17795 allow_undefined_flag_GCJ=
17796 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17797 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }
17802 archive_cmds_need_lc_GCJ=no
17804 archive_cmds_need_lc_GCJ=yes
17806 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17808 cat conftest.err 1>&5
17811 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17812 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17819 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17820 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17821 library_names_spec=
17822 libname_spec='lib$name'
17826 postuninstall_cmds=
17830 shlibpath_overrides_runpath=unknown
17832 dynamic_linker="$host_os ld.so"
17833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17834 if test "$GCC" = yes; then
17835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17837 # if the path contains ";" then we assume it to be the separator
17838 # otherwise default to the standard path separator (i.e. ":") - it is
17839 # assumed that no part of a normal pathname contains ";" but that should
17840 # okay in the real world where ";" in dirpaths is itself problematic.
17841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17848 need_lib_prefix=unknown
17849 hardcode_into_libs=no
17851 # when you set need_version to no, make sure it does not cause -set_version
17852 # flags to be left without arguments
17853 need_version=unknown
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17859 shlibpath_var=LIBPATH
17861 # AIX 3 has no versioning support, so we append a major version to the name.
17862 soname_spec='${libname}${release}${shared_ext}$major'
17869 hardcode_into_libs=yes
17870 if test "$host_cpu" = ia64; then
17871 # AIX 5 supports IA64
17872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17873 shlibpath_var=LD_LIBRARY_PATH
17875 # With GCC up to 2.95.x, collect2 would create an import file
17876 # for dependence libraries. The import file would start with
17877 # the line `#! .'. This would cause the generated library to
17878 # depend on `.', always an invalid library. This was fixed in
17879 # development snapshots of GCC prior to 3.0.
17881 aix4 | aix4.[01] | aix4.[01].*)
17882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17887 can_build_shared=no
17891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17892 # soname into executable. Probably we can add versioning support to
17893 # collect2, so additional links can be useful in future.
17894 if test "$aix_use_runtimelinking" = yes; then
17895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17896 # instead of lib<name>.a to let people know that these are not
17897 # typical AIX shared libraries.
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900 # We preserve .a as extension for shared libraries through AIX4.2
17901 # and later when we are not doing run time linking.
17902 library_names_spec='${libname}${release}.a $libname.a'
17903 soname_spec='${libname}${release}${shared_ext}$major'
17905 shlibpath_var=LIBPATH
17910 library_names_spec='$libname.ixlibrary $libname.a'
17911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17912 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'
17916 library_names_spec='${libname}${shared_ext}'
17917 dynamic_linker="$host_os ld.so"
17918 shlibpath_var=LIBRARY_PATH
17924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925 soname_spec='${libname}${release}${shared_ext}$major'
17926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17930 # the default ld.so.conf also contains /usr/contrib/lib and
17931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17932 # libtool to hard-code these into programs
17935 cygwin* | mingw* | pw32*)
17936 version_type=windows
17941 case $GCC,$host_os in
17942 yes,cygwin* | yes,mingw* | yes,pw32*)
17943 library_names_spec='$libname.dll.a'
17944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17945 postinstall_cmds='base_file=`basename \${file}`~
17946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17947 dldir=$destdir/`dirname \$dlpath`~
17948 test -d \$dldir || mkdir -p \$dldir~
17949 $install_prog $dir/$dlname \$dldir/$dlname~
17950 chmod a+x \$dldir/$dlname'
17951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17952 dlpath=$dir/\$dldll~
17954 shlibpath_overrides_runpath=yes
17958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17963 # MinGW DLLs use traditional 'lib' prefix
17964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17966 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17967 # It is most probably a Windows format PATH printed by
17968 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17969 # path with ; separators, and with drive letters. We can handle the
17970 # drive letters (cygwin fileutils understands them), so leave them,
17971 # especially as we might pass files found there to a mingw objdump,
17972 # which wouldn't understand a cygwinified path. Ahh.
17973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17979 # pw32 DLLs use 'pw' prefix rather than 'lib'
17980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17989 dynamic_linker='Win32 ld.exe'
17990 # FIXME: first we should search . and the directory the executable is in
17994 darwin* | rhapsody*)
17995 dynamic_linker="$host_os dyld"
17996 version_type=darwin
17999 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18000 soname_spec='${libname}${release}${major}$shared_ext'
18001 shlibpath_overrides_runpath=yes
18002 shlibpath_var=DYLD_LIBRARY_PATH
18003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18004 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18005 if test "$GCC" = yes; then
18006 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"`
18008 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 shlibpath_var=LD_LIBRARY_PATH
18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18031 soname_spec='${libname}${release}${shared_ext}$major'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 shlibpath_overrides_runpath=no
18034 hardcode_into_libs=yes
18035 dynamic_linker='GNU ld.so'
18038 freebsd* | dragonfly*)
18039 # DragonFly does not have aout. When/if they implement a new
18040 # versioning mechanism, adjust this.
18041 if test -x /usr/bin/objformat; then
18042 objformat=`/usr/bin/objformat`
18045 freebsd[123]*) objformat=aout ;;
18046 *) objformat=elf ;;
18049 version_type=freebsd-$objformat
18050 case $version_type in
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18061 shlibpath_var=LD_LIBRARY_PATH
18064 shlibpath_overrides_runpath=yes
18066 freebsd3.[01]* | freebsdelf3.[01]*)
18067 shlibpath_overrides_runpath=yes
18068 hardcode_into_libs=yes
18070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18072 shlibpath_overrides_runpath=no
18073 hardcode_into_libs=yes
18075 freebsd*) # from 4.6 on
18076 shlibpath_overrides_runpath=yes
18077 hardcode_into_libs=yes
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 hardcode_into_libs=yes
18092 hpux9* | hpux10* | hpux11*)
18093 # Give a soname corresponding to the major version so that dld.sl refuses to
18094 # link against other versions.
18101 hardcode_into_libs=yes
18102 dynamic_linker="$host_os dld.so"
18103 shlibpath_var=LD_LIBRARY_PATH
18104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18106 soname_spec='${libname}${release}${shared_ext}$major'
18107 if test "X$HPUX_IA64_MODE" = X32; then
18108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18116 hardcode_into_libs=yes
18117 dynamic_linker="$host_os dld.sl"
18118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18127 dynamic_linker="$host_os dld.sl"
18128 shlibpath_var=SHLIB_PATH
18129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
18134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18135 postinstall_cmds='chmod 555 $lib'
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18145 shlibpath_var=LD_LIBRARY_PATH
18146 shlibpath_overrides_runpath=no
18147 hardcode_into_libs=yes
18150 irix5* | irix6* | nonstopux*)
18152 nonstopux*) version_type=nonstopux ;;
18154 if test "$lt_cv_prog_gnu_ld" = yes; then
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18165 irix5* | nonstopux*)
18166 libsuff= shlibsuff=
18169 case $LD in # libtool.m4 will add one of these switches to LD
18170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18171 libsuff= shlibsuff= libmagic=32-bit;;
18172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18173 libsuff=32 shlibsuff=N32 libmagic=N32;;
18174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18176 *) libsuff= shlibsuff= libmagic=never-match;;
18180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18181 shlibpath_overrides_runpath=no
18182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18184 hardcode_into_libs=yes
18187 # No shared lib support for Linux oldld, aout, or coff.
18188 linux*oldld* | linux*aout* | linux*coff*)
18192 # This must be Linux ELF.
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18200 shlibpath_var=LD_LIBRARY_PATH
18201 shlibpath_overrides_runpath=no
18202 # This implies no fast_install, which is unacceptable.
18203 # Some rework will be needed to allow for fast_install
18204 # before this can be enabled.
18205 hardcode_into_libs=yes
18207 # find out which ABI we are using
18209 case "$host_cpu" in
18210 x86_64*|s390x*|powerpc64*)
18211 echo '#line 18211 "configure"' > conftest.$ac_ext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>&5
18215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; then
18217 case `/usr/bin/file conftest.$ac_objext` in
18220 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18228 # Append ld.so.conf contents to the search path
18229 if test -f /etc/ld.so.conf; then
18230 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18231 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18234 # We used to test for /lib/ld.so.1 and disable shared libraries on
18235 # powerpc, because MkLinux only supported shared libraries with the
18236 # GNU dynamic linker. Since this was broken with cross compilers,
18237 # most powerpc-linux boxes support dynamic linking these days and
18238 # people can always --disable-shared, the test was removed, and we
18239 # assume the GNU/Linux dynamic linker is in use.
18240 dynamic_linker='GNU/Linux ld.so'
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18248 soname_spec='${libname}${release}${shared_ext}$major'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 shlibpath_overrides_runpath=no
18251 hardcode_into_libs=yes
18252 dynamic_linker='GNU ld.so'
18259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18262 dynamic_linker='NetBSD (a.out) ld.so'
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 dynamic_linker='NetBSD ld.elf_so'
18268 shlibpath_var=LD_LIBRARY_PATH
18269 shlibpath_overrides_runpath=yes
18270 hardcode_into_libs=yes
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276 shlibpath_var=LD_LIBRARY_PATH
18277 shlibpath_overrides_runpath=yes
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18292 sys_lib_dlsearch_path_spec="/usr/lib"
18294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18296 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18297 *) need_version=no ;;
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18304 openbsd2.[89] | openbsd2.[89].*)
18305 shlibpath_overrides_runpath=no
18308 shlibpath_overrides_runpath=yes
18312 shlibpath_overrides_runpath=yes
18317 libname_spec='$name'
18320 library_names_spec='$libname${shared_ext} $libname.a'
18321 dynamic_linker='OS/2 ld.exe'
18322 shlibpath_var=LIBPATH
18325 osf3* | osf4* | osf5*)
18329 soname_spec='${libname}${release}${shared_ext}$major'
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341 soname_spec='${libname}${release}${shared_ext}$major'
18342 shlibpath_var=LD_LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes
18344 hardcode_into_libs=yes
18345 # ldd complains unless libraries are executable
18346 postinstall_cmds='chmod +x $lib'
18351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18353 shlibpath_var=LD_LIBRARY_PATH
18354 shlibpath_overrides_runpath=yes
18355 if test "$with_gnu_ld" = yes; then
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 soname_spec='${libname}${release}${shared_ext}$major'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 case $host_vendor in
18368 shlibpath_overrides_runpath=no
18370 export_dynamic_flag_spec='${wl}-Blargedynsym'
18371 runpath_var=LD_RUN_PATH
18379 shlibpath_overrides_runpath=no
18380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18386 if test -d /usr/nec ;then
18388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18389 soname_spec='$libname${shared_ext}.$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18395 version_type=freebsd-elf
18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18399 soname_spec='${libname}${release}${shared_ext}$major'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 hardcode_into_libs=yes
18402 if test "$with_gnu_ld" = yes; then
18403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18404 shlibpath_overrides_runpath=no
18406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18407 shlibpath_overrides_runpath=yes
18410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18414 sys_lib_dlsearch_path_spec='/usr/lib'
18419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 shlibpath_var=LD_LIBRARY_PATH
18428 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18429 $as_echo "$dynamic_linker" >&6; }
18430 test "$dynamic_linker" = no && can_build_shared=no
18432 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18433 if test "$GCC" = yes; then
18434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18437 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18438 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18439 hardcode_action_GCJ=
18440 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18441 test -n "$runpath_var_GCJ" || \
18442 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18444 # We can hardcode non-existant directories.
18445 if test "$hardcode_direct_GCJ" != no &&
18446 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18447 # have to relink, otherwise we might link with an installed library
18448 # when we should be linking with a yet-to-be-installed one
18449 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18450 test "$hardcode_minus_L_GCJ" != no; then
18451 # Linking always hardcodes the temporary library directory.
18452 hardcode_action_GCJ=relink
18454 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18455 hardcode_action_GCJ=immediate
18458 # We cannot hardcode anything, or else we can only hardcode existing
18460 hardcode_action_GCJ=unsupported
18462 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18463 $as_echo "$hardcode_action_GCJ" >&6; }
18465 if test "$hardcode_action_GCJ" = relink; then
18466 # Fast installation is not supported
18467 enable_fast_install=no
18468 elif test "$shlibpath_overrides_runpath" = yes ||
18469 test "$enable_shared" = no; then
18470 # Fast installation is not necessary
18471 enable_fast_install=needless
18475 # The else clause should only fire when bootstrapping the
18476 # libtool distribution, otherwise you forgot to ship ltmain.sh
18477 # with your package, and you will get complaints that there are
18478 # no rules to generate ltmain.sh.
18479 if test -f "$ltmain"; then
18480 # See if we are running on zsh, and set the options which allow our commands through
18481 # without removal of \ escapes.
18482 if test -n "${ZSH_VERSION+set}" ; then
18483 setopt NO_GLOB_SUBST
18485 # Now quote all the things that may contain metacharacters while being
18486 # careful not to overquote the AC_SUBSTed values. We take copies of the
18487 # variables and quote the copies for generation of the libtool script.
18488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18492 deplibs_check_method reload_flag reload_cmds need_locks \
18493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18494 lt_cv_sys_global_symbol_to_c_name_address \
18495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18496 old_postinstall_cmds old_postuninstall_cmds \
18500 lt_prog_compiler_wl_GCJ \
18501 lt_prog_compiler_pic_GCJ \
18502 lt_prog_compiler_static_GCJ \
18503 lt_prog_compiler_no_builtin_flag_GCJ \
18504 export_dynamic_flag_spec_GCJ \
18505 thread_safe_flag_spec_GCJ \
18506 whole_archive_flag_spec_GCJ \
18507 enable_shared_with_static_runtimes_GCJ \
18508 old_archive_cmds_GCJ \
18509 old_archive_from_new_cmds_GCJ \
18510 predep_objects_GCJ \
18511 postdep_objects_GCJ \
18514 compiler_lib_search_path_GCJ \
18516 archive_expsym_cmds_GCJ \
18517 postinstall_cmds_GCJ \
18518 postuninstall_cmds_GCJ \
18519 old_archive_from_expsyms_cmds_GCJ \
18520 allow_undefined_flag_GCJ \
18521 no_undefined_flag_GCJ \
18522 export_symbols_cmds_GCJ \
18523 hardcode_libdir_flag_spec_GCJ \
18524 hardcode_libdir_flag_spec_ld_GCJ \
18525 hardcode_libdir_separator_GCJ \
18526 hardcode_automatic_GCJ \
18528 module_expsym_cmds_GCJ \
18529 lt_cv_prog_compiler_c_o_GCJ \
18530 exclude_expsyms_GCJ \
18531 include_expsyms_GCJ; do
18534 old_archive_cmds_GCJ | \
18535 old_archive_from_new_cmds_GCJ | \
18536 archive_cmds_GCJ | \
18537 archive_expsym_cmds_GCJ | \
18538 module_cmds_GCJ | \
18539 module_expsym_cmds_GCJ | \
18540 old_archive_from_expsyms_cmds_GCJ | \
18541 export_symbols_cmds_GCJ | \
18542 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18543 postinstall_cmds | postuninstall_cmds | \
18544 old_postinstall_cmds | old_postuninstall_cmds | \
18545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18546 # Double-quote double-evaled strings.
18547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18556 *'\$0 --fallback-echo"')
18557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18563 cat <<__EOF__ >> "$cfgfile"
18564 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18566 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18568 # Shell to use when invoking shell scripts.
18571 # Whether or not to build shared libraries.
18572 build_libtool_libs=$enable_shared
18574 # Whether or not to build static libraries.
18575 build_old_libs=$enable_static
18577 # Whether or not to add -lc for building shared libraries.
18578 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18580 # Whether or not to disallow shared libs when runtime libs are static
18581 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18583 # Whether or not to optimize for fast installation.
18584 fast_install=$enable_fast_install
18587 host_alias=$host_alias
18591 # The build system.
18592 build_alias=$build_alias
18596 # An echo program that does not interpret backslashes.
18601 AR_FLAGS=$lt_AR_FLAGS
18606 # LTCC compiler flags.
18607 LTCFLAGS=$lt_LTCFLAGS
18609 # A language-specific compiler.
18610 CC=$lt_compiler_GCJ
18612 # Is the compiler the GNU C compiler?
18615 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18616 gcc_ver=\`gcc -dumpversion\`
18621 # The linker used to build libraries.
18624 # Whether we need hard or soft links.
18627 # A BSD-compatible nm program.
18630 # A symbol stripping program
18633 # Used to examine libraries when file_magic_cmd begins "file"
18634 MAGIC_CMD=$MAGIC_CMD
18636 # Used on cygwin: DLL creation program.
18639 # Used on cygwin: object dumper.
18642 # Used on cygwin: assembler.
18645 # The name of the directory that contains temporary libtool files.
18648 # How to create reloadable object files.
18649 reload_flag=$lt_reload_flag
18650 reload_cmds=$lt_reload_cmds
18652 # How to pass a linker flag through the compiler.
18653 wl=$lt_lt_prog_compiler_wl_GCJ
18655 # Object file suffix (normally "o").
18656 objext="$ac_objext"
18658 # Old archive suffix (normally "a").
18661 # Shared library suffix (normally ".so").
18662 shrext_cmds='$shrext_cmds'
18664 # Executable file suffix (normally "").
18667 # Additional compiler flags for building library objects.
18668 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18671 # What is the maximum length of a command?
18672 max_cmd_len=$lt_cv_sys_max_cmd_len
18674 # Does compiler simultaneously support -c and -o options?
18675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18677 # Must we lock files when doing compilation?
18678 need_locks=$lt_need_locks
18680 # Do we need the lib prefix for modules?
18681 need_lib_prefix=$need_lib_prefix
18683 # Do we need a version for libraries?
18684 need_version=$need_version
18686 # Whether dlopen is supported.
18687 dlopen_support=$enable_dlopen
18689 # Whether dlopen of programs is supported.
18690 dlopen_self=$enable_dlopen_self
18692 # Whether dlopen of statically linked programs is supported.
18693 dlopen_self_static=$enable_dlopen_self_static
18695 # Compiler flag to prevent dynamic linking.
18696 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18698 # Compiler flag to turn off builtin functions.
18699 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18701 # Compiler flag to allow reflexive dlopens.
18702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18704 # Compiler flag to generate shared objects directly from archives.
18705 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18707 # Compiler flag to generate thread-safe objects.
18708 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18710 # Library versioning type.
18711 version_type=$version_type
18713 # Format of library name prefix.
18714 libname_spec=$lt_libname_spec
18716 # List of archive names. First name is the real one, the rest are links.
18717 # The last name is the one that the linker finds with -lNAME.
18718 library_names_spec=$lt_library_names_spec
18720 # The coded name of the library, if different from the real name.
18721 soname_spec=$lt_soname_spec
18723 # Commands used to build and install an old-style archive.
18725 old_archive_cmds=$lt_old_archive_cmds_GCJ
18726 old_postinstall_cmds=$lt_old_postinstall_cmds
18727 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18729 # Create an old-style archive from a shared archive.
18730 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18732 # Create a temporary old-style archive to link instead of a shared archive.
18733 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18735 # Commands used to build and install a shared archive.
18736 archive_cmds=$lt_archive_cmds_GCJ
18737 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18738 postinstall_cmds=$lt_postinstall_cmds
18739 postuninstall_cmds=$lt_postuninstall_cmds
18741 # Commands used to build a loadable module (assumed same as above if empty)
18742 module_cmds=$lt_module_cmds_GCJ
18743 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18745 # Commands to strip libraries.
18746 old_striplib=$lt_old_striplib
18747 striplib=$lt_striplib
18749 # Dependencies to place before the objects being linked to create a
18751 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18753 # Dependencies to place after the objects being linked to create a
18755 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18757 # Dependencies to place before the objects being linked to create a
18759 predeps=$lt_predeps_GCJ
18761 # Dependencies to place after the objects being linked to create a
18763 postdeps=$lt_postdeps_GCJ
18765 # The library search path used internally by the compiler when linking
18766 # a shared library.
18767 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"\`
18769 # Method to check whether dependent libraries are shared objects.
18770 deplibs_check_method=$lt_deplibs_check_method
18772 # Command to use when deplibs_check_method == file_magic.
18773 file_magic_cmd=$lt_file_magic_cmd
18775 # Flag that allows shared libraries with undefined symbols to be built.
18776 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18778 # Flag that forces no undefined symbols.
18779 no_undefined_flag=$lt_no_undefined_flag_GCJ
18781 # Commands used to finish a libtool library installation in a directory.
18782 finish_cmds=$lt_finish_cmds
18784 # Same as above, but a single script fragment to be evaled but not shown.
18785 finish_eval=$lt_finish_eval
18787 # Take the output of nm and produce a listing of raw symbols and C names.
18788 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18790 # Transform the output of nm in a proper C declaration
18791 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18793 # Transform the output of nm in a C name address pair
18794 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18796 # This is the shared library runtime path variable.
18797 runpath_var=$runpath_var
18799 # This is the shared library path variable.
18800 shlibpath_var=$shlibpath_var
18802 # Is shlibpath searched before the hard-coded library search path?
18803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18805 # How to hardcode a shared library path into an executable.
18806 hardcode_action=$hardcode_action_GCJ
18808 # Whether we should hardcode library paths into libraries.
18809 hardcode_into_libs=$hardcode_into_libs
18811 # Flag to hardcode \$libdir into a binary during linking.
18812 # This must work even if \$libdir does not exist.
18813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18815 # If ld is used when linking, flag to hardcode \$libdir into
18816 # a binary during linking. This must work even if \$libdir does
18818 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18820 # Whether we need a single -rpath flag with a separated argument.
18821 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18823 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18824 # resulting binary.
18825 hardcode_direct=$hardcode_direct_GCJ
18827 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18828 # resulting binary.
18829 hardcode_minus_L=$hardcode_minus_L_GCJ
18831 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18832 # the resulting binary.
18833 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18835 # Set to yes if building a shared library automatically hardcodes DIR into the library
18836 # and all subsequent libraries and executables linked against it.
18837 hardcode_automatic=$hardcode_automatic_GCJ
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at relink time.
18841 variables_saved_for_relink="$variables_saved_for_relink"
18843 # Whether libtool must link a program against all its dependency libraries.
18844 link_all_deplibs=$link_all_deplibs_GCJ
18846 # Compile-time system search path for libraries
18847 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"\`
18849 # Run-time system search path for libraries
18850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18852 # Fix the shell variable \$srcfile for the compiler.
18853 fix_srcfile_path="$fix_srcfile_path_GCJ"
18855 # Set to yes if exported symbols are required.
18856 always_export_symbols=$always_export_symbols_GCJ
18858 # The commands to list exported symbols.
18859 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18861 # The commands to extract the exported symbol list from a shared archive.
18862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18864 # Symbols that should not be listed in the preloaded symbols.
18865 exclude_expsyms=$lt_exclude_expsyms_GCJ
18867 # Symbols that must always be exported.
18868 include_expsyms=$lt_include_expsyms_GCJ
18870 # ### END LIBTOOL TAG CONFIG: $tagname
18876 # If there is no Makefile yet, we rely on a make rule to execute
18877 # `config.status --recheck' to rerun these tests and create the
18878 # libtool script then.
18879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18880 if test -f "$ltmain_in"; then
18881 test -f Makefile && make "$ltmain"
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902 # Source file extension for RC test sources.
18905 # Object file extension for compiled RC test sources.
18909 # Code to be used in simple compile tests
18910 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18912 # Code to be used in simple link tests
18913 lt_simple_link_test_code="$lt_simple_compile_test_code"
18915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18917 # If no C compiler was specified, use CC.
18920 # If no C compiler flags were specified, use CFLAGS.
18921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18923 # Allow CC to be a program name with arguments.
18927 # save warnings/boilerplate of simple test code
18928 ac_outfile=conftest.$ac_objext
18929 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18931 _lt_compiler_boilerplate=`cat conftest.err`
18934 ac_outfile=conftest.$ac_objext
18935 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18937 _lt_linker_boilerplate=`cat conftest.err`
18941 # Allow CC to be a program name with arguments.
18946 for cc_temp in $compiler""; do
18948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18954 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18956 lt_cv_prog_compiler_c_o_RC=yes
18958 # The else clause should only fire when bootstrapping the
18959 # libtool distribution, otherwise you forgot to ship ltmain.sh
18960 # with your package, and you will get complaints that there are
18961 # no rules to generate ltmain.sh.
18962 if test -f "$ltmain"; then
18963 # See if we are running on zsh, and set the options which allow our commands through
18964 # without removal of \ escapes.
18965 if test -n "${ZSH_VERSION+set}" ; then
18966 setopt NO_GLOB_SUBST
18968 # Now quote all the things that may contain metacharacters while being
18969 # careful not to overquote the AC_SUBSTed values. We take copies of the
18970 # variables and quote the copies for generation of the libtool script.
18971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18975 deplibs_check_method reload_flag reload_cmds need_locks \
18976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18977 lt_cv_sys_global_symbol_to_c_name_address \
18978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18979 old_postinstall_cmds old_postuninstall_cmds \
18983 lt_prog_compiler_wl_RC \
18984 lt_prog_compiler_pic_RC \
18985 lt_prog_compiler_static_RC \
18986 lt_prog_compiler_no_builtin_flag_RC \
18987 export_dynamic_flag_spec_RC \
18988 thread_safe_flag_spec_RC \
18989 whole_archive_flag_spec_RC \
18990 enable_shared_with_static_runtimes_RC \
18991 old_archive_cmds_RC \
18992 old_archive_from_new_cmds_RC \
18993 predep_objects_RC \
18994 postdep_objects_RC \
18997 compiler_lib_search_path_RC \
18999 archive_expsym_cmds_RC \
19000 postinstall_cmds_RC \
19001 postuninstall_cmds_RC \
19002 old_archive_from_expsyms_cmds_RC \
19003 allow_undefined_flag_RC \
19004 no_undefined_flag_RC \
19005 export_symbols_cmds_RC \
19006 hardcode_libdir_flag_spec_RC \
19007 hardcode_libdir_flag_spec_ld_RC \
19008 hardcode_libdir_separator_RC \
19009 hardcode_automatic_RC \
19011 module_expsym_cmds_RC \
19012 lt_cv_prog_compiler_c_o_RC \
19013 exclude_expsyms_RC \
19014 include_expsyms_RC; do
19017 old_archive_cmds_RC | \
19018 old_archive_from_new_cmds_RC | \
19019 archive_cmds_RC | \
19020 archive_expsym_cmds_RC | \
19022 module_expsym_cmds_RC | \
19023 old_archive_from_expsyms_cmds_RC | \
19024 export_symbols_cmds_RC | \
19025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19026 postinstall_cmds | postuninstall_cmds | \
19027 old_postinstall_cmds | old_postuninstall_cmds | \
19028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19029 # Double-quote double-evaled strings.
19030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19039 *'\$0 --fallback-echo"')
19040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19046 cat <<__EOF__ >> "$cfgfile"
19047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19051 # Shell to use when invoking shell scripts.
19054 # Whether or not to build shared libraries.
19055 build_libtool_libs=$enable_shared
19057 # Whether or not to build static libraries.
19058 build_old_libs=$enable_static
19060 # Whether or not to add -lc for building shared libraries.
19061 build_libtool_need_lc=$archive_cmds_need_lc_RC
19063 # Whether or not to disallow shared libs when runtime libs are static
19064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19066 # Whether or not to optimize for fast installation.
19067 fast_install=$enable_fast_install
19070 host_alias=$host_alias
19074 # The build system.
19075 build_alias=$build_alias
19079 # An echo program that does not interpret backslashes.
19084 AR_FLAGS=$lt_AR_FLAGS
19089 # LTCC compiler flags.
19090 LTCFLAGS=$lt_LTCFLAGS
19092 # A language-specific compiler.
19095 # Is the compiler the GNU C compiler?
19098 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19099 gcc_ver=\`gcc -dumpversion\`
19104 # The linker used to build libraries.
19107 # Whether we need hard or soft links.
19110 # A BSD-compatible nm program.
19113 # A symbol stripping program
19116 # Used to examine libraries when file_magic_cmd begins "file"
19117 MAGIC_CMD=$MAGIC_CMD
19119 # Used on cygwin: DLL creation program.
19122 # Used on cygwin: object dumper.
19125 # Used on cygwin: assembler.
19128 # The name of the directory that contains temporary libtool files.
19131 # How to create reloadable object files.
19132 reload_flag=$lt_reload_flag
19133 reload_cmds=$lt_reload_cmds
19135 # How to pass a linker flag through the compiler.
19136 wl=$lt_lt_prog_compiler_wl_RC
19138 # Object file suffix (normally "o").
19139 objext="$ac_objext"
19141 # Old archive suffix (normally "a").
19144 # Shared library suffix (normally ".so").
19145 shrext_cmds='$shrext_cmds'
19147 # Executable file suffix (normally "").
19150 # Additional compiler flags for building library objects.
19151 pic_flag=$lt_lt_prog_compiler_pic_RC
19154 # What is the maximum length of a command?
19155 max_cmd_len=$lt_cv_sys_max_cmd_len
19157 # Does compiler simultaneously support -c and -o options?
19158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19160 # Must we lock files when doing compilation?
19161 need_locks=$lt_need_locks
19163 # Do we need the lib prefix for modules?
19164 need_lib_prefix=$need_lib_prefix
19166 # Do we need a version for libraries?
19167 need_version=$need_version
19169 # Whether dlopen is supported.
19170 dlopen_support=$enable_dlopen
19172 # Whether dlopen of programs is supported.
19173 dlopen_self=$enable_dlopen_self
19175 # Whether dlopen of statically linked programs is supported.
19176 dlopen_self_static=$enable_dlopen_self_static
19178 # Compiler flag to prevent dynamic linking.
19179 link_static_flag=$lt_lt_prog_compiler_static_RC
19181 # Compiler flag to turn off builtin functions.
19182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19184 # Compiler flag to allow reflexive dlopens.
19185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19187 # Compiler flag to generate shared objects directly from archives.
19188 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19190 # Compiler flag to generate thread-safe objects.
19191 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19193 # Library versioning type.
19194 version_type=$version_type
19196 # Format of library name prefix.
19197 libname_spec=$lt_libname_spec
19199 # List of archive names. First name is the real one, the rest are links.
19200 # The last name is the one that the linker finds with -lNAME.
19201 library_names_spec=$lt_library_names_spec
19203 # The coded name of the library, if different from the real name.
19204 soname_spec=$lt_soname_spec
19206 # Commands used to build and install an old-style archive.
19208 old_archive_cmds=$lt_old_archive_cmds_RC
19209 old_postinstall_cmds=$lt_old_postinstall_cmds
19210 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19212 # Create an old-style archive from a shared archive.
19213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19215 # Create a temporary old-style archive to link instead of a shared archive.
19216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19218 # Commands used to build and install a shared archive.
19219 archive_cmds=$lt_archive_cmds_RC
19220 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19221 postinstall_cmds=$lt_postinstall_cmds
19222 postuninstall_cmds=$lt_postuninstall_cmds
19224 # Commands used to build a loadable module (assumed same as above if empty)
19225 module_cmds=$lt_module_cmds_RC
19226 module_expsym_cmds=$lt_module_expsym_cmds_RC
19228 # Commands to strip libraries.
19229 old_striplib=$lt_old_striplib
19230 striplib=$lt_striplib
19232 # Dependencies to place before the objects being linked to create a
19234 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19236 # Dependencies to place after the objects being linked to create a
19238 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19240 # Dependencies to place before the objects being linked to create a
19242 predeps=$lt_predeps_RC
19244 # Dependencies to place after the objects being linked to create a
19246 postdeps=$lt_postdeps_RC
19248 # The library search path used internally by the compiler when linking
19249 # a shared library.
19250 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"\`
19252 # Method to check whether dependent libraries are shared objects.
19253 deplibs_check_method=$lt_deplibs_check_method
19255 # Command to use when deplibs_check_method == file_magic.
19256 file_magic_cmd=$lt_file_magic_cmd
19258 # Flag that allows shared libraries with undefined symbols to be built.
19259 allow_undefined_flag=$lt_allow_undefined_flag_RC
19261 # Flag that forces no undefined symbols.
19262 no_undefined_flag=$lt_no_undefined_flag_RC
19264 # Commands used to finish a libtool library installation in a directory.
19265 finish_cmds=$lt_finish_cmds
19267 # Same as above, but a single script fragment to be evaled but not shown.
19268 finish_eval=$lt_finish_eval
19270 # Take the output of nm and produce a listing of raw symbols and C names.
19271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19273 # Transform the output of nm in a proper C declaration
19274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19276 # Transform the output of nm in a C name address pair
19277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19279 # This is the shared library runtime path variable.
19280 runpath_var=$runpath_var
19282 # This is the shared library path variable.
19283 shlibpath_var=$shlibpath_var
19285 # Is shlibpath searched before the hard-coded library search path?
19286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action_RC
19291 # Whether we should hardcode library paths into libraries.
19292 hardcode_into_libs=$hardcode_into_libs
19294 # Flag to hardcode \$libdir into a binary during linking.
19295 # This must work even if \$libdir does not exist.
19296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19298 # If ld is used when linking, flag to hardcode \$libdir into
19299 # a binary during linking. This must work even if \$libdir does
19301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19303 # Whether we need a single -rpath flag with a separated argument.
19304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19307 # resulting binary.
19308 hardcode_direct=$hardcode_direct_RC
19310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_minus_L=$hardcode_minus_L_RC
19314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19315 # the resulting binary.
19316 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19318 # Set to yes if building a shared library automatically hardcodes DIR into the library
19319 # and all subsequent libraries and executables linked against it.
19320 hardcode_automatic=$hardcode_automatic_RC
19322 # Variables whose values should be saved in libtool wrapper scripts and
19323 # restored at relink time.
19324 variables_saved_for_relink="$variables_saved_for_relink"
19326 # Whether libtool must link a program against all its dependency libraries.
19327 link_all_deplibs=$link_all_deplibs_RC
19329 # Compile-time system search path for libraries
19330 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"\`
19332 # Run-time system search path for libraries
19333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19335 # Fix the shell variable \$srcfile for the compiler.
19336 fix_srcfile_path="$fix_srcfile_path_RC"
19338 # Set to yes if exported symbols are required.
19339 always_export_symbols=$always_export_symbols_RC
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds_RC
19344 # The commands to extract the exported symbol list from a shared archive.
19345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms_RC
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms_RC
19353 # ### END LIBTOOL TAG CONFIG: $tagname
19359 # If there is no Makefile yet, we rely on a make rule to execute
19360 # `config.status --recheck' to rerun these tests and create the
19361 # libtool script then.
19362 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19363 if test -f "$ltmain_in"; then
19364 test -f Makefile && make "$ltmain"
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19381 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19382 { (exit 1); exit 1; }; }
19386 # Append the new tag name to the list of available tags.
19387 if test -n "$tagname" ; then
19388 available_tags="$available_tags $tagname"
19394 # Now substitute the updated list of available tags.
19395 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19396 mv "${ofile}T" "$ofile"
19400 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19401 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19402 { (exit 1); exit 1; }; }
19408 # This can be used to rebuild libtool when needed
19409 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19411 # Always use our own libtool.
19412 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19414 # Prevent multiple expansion
19436 ac_cpp='$CPP $CPPFLAGS'
19437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19440 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
19441 $as_echo_n "checking how to run the C preprocessor... " >&6; }
19442 # On Suns, sometimes $CPP names a directory.
19443 if test -n "$CPP" && test -d "$CPP"; then
19446 if test -z "$CPP"; then
19447 if test "${ac_cv_prog_CPP+set}" = set; then
19448 $as_echo_n "(cached) " >&6
19450 # Double quotes because CPP needs to be expanded
19451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
19453 ac_preproc_ok=false
19454 for ac_c_preproc_warn_flag in '' yes
19456 # Use a header file that comes with gcc, so configuring glibc
19457 # with a fresh cross-compiler works.
19458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19459 # <limits.h> exists even on freestanding compilers.
19460 # On the NeXT, cc -E runs the code through the compiler's parser,
19461 # not just through cpp. "Syntax error" is here to catch this case.
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19469 # include <limits.h>
19471 # include <assert.h>
19475 if { (ac_try="$ac_cpp conftest.$ac_ext"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19481 $as_echo "$ac_try_echo") >&5
19482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } >/dev/null && {
19489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19490 test ! -s conftest.err
19494 $as_echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 # Broken: fails on valid input.
19501 rm -f conftest.err conftest.$ac_ext
19503 # OK, works on sane cases. Now check whether nonexistent headers
19504 # can be detected and how.
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 #include <ac_nonexistent.h>
19513 if { (ac_try="$ac_cpp conftest.$ac_ext"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19519 $as_echo "$ac_try_echo") >&5
19520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19522 grep -v '^ *+' conftest.er1 >conftest.err
19524 cat conftest.err >&5
19525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } >/dev/null && {
19527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19528 test ! -s conftest.err
19530 # Broken: success on invalid input.
19533 $as_echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 # Passes both tests.
19541 rm -f conftest.err conftest.$ac_ext
19544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19545 rm -f conftest.err conftest.$ac_ext
19546 if $ac_preproc_ok; then
19551 ac_cv_prog_CPP=$CPP
19554 CPP=$ac_cv_prog_CPP
19556 ac_cv_prog_CPP=$CPP
19558 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
19559 $as_echo "$CPP" >&6; }
19560 ac_preproc_ok=false
19561 for ac_c_preproc_warn_flag in '' yes
19563 # Use a header file that comes with gcc, so configuring glibc
19564 # with a fresh cross-compiler works.
19565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19566 # <limits.h> exists even on freestanding compilers.
19567 # On the NeXT, cc -E runs the code through the compiler's parser,
19568 # not just through cpp. "Syntax error" is here to catch this case.
19569 cat >conftest.$ac_ext <<_ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19576 # include <limits.h>
19578 # include <assert.h>
19582 if { (ac_try="$ac_cpp conftest.$ac_ext"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19588 $as_echo "$ac_try_echo") >&5
19589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } >/dev/null && {
19596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19601 $as_echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 # Broken: fails on valid input.
19608 rm -f conftest.err conftest.$ac_ext
19610 # OK, works on sane cases. Now check whether nonexistent headers
19611 # can be detected and how.
19612 cat >conftest.$ac_ext <<_ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618 #include <ac_nonexistent.h>
19620 if { (ac_try="$ac_cpp conftest.$ac_ext"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19626 $as_echo "$ac_try_echo") >&5
19627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } >/dev/null && {
19634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19637 # Broken: success on invalid input.
19640 $as_echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 # Passes both tests.
19648 rm -f conftest.err conftest.$ac_ext
19651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19652 rm -f conftest.err conftest.$ac_ext
19653 if $ac_preproc_ok; then
19656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19658 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
19659 See \`config.log' for more details." >&5
19660 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
19661 See \`config.log' for more details." >&2;}
19662 { (exit 1); exit 1; }; }; }
19666 ac_cpp='$CPP $CPPFLAGS'
19667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19671 # Find a good install program. We prefer a C program (faster),
19672 # so one script is as good as another. But avoid the broken or
19673 # incompatible versions:
19674 # SysV /etc/install, /usr/sbin/install
19675 # SunOS /usr/etc/install
19676 # IRIX /sbin/install
19678 # AmigaOS /C/install, which installs bootblocks on floppy discs
19679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19682 # OS/2's system install, which has a completely different semantic
19683 # ./install, which can be erroneously created by make from ./install.sh.
19684 # Reject install programs that cannot install multiple files.
19685 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19687 if test -z "$INSTALL"; then
19688 if test "${ac_cv_path_install+set}" = set; then
19689 $as_echo_n "(cached) " >&6
19691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19692 for as_dir in $PATH
19695 test -z "$as_dir" && as_dir=.
19696 # Account for people who put trailing slashes in PATH elements.
19698 ./ | .// | /cC/* | \
19699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19703 # OSF1 and SCO ODT 3.0 have their own names for install.
19704 # Don't use installbsd from OSF since it installs stuff as root
19706 for ac_prog in ginstall scoinst install; do
19707 for ac_exec_ext in '' $ac_executable_extensions; do
19708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19709 if test $ac_prog = install &&
19710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19711 # AIX install. It has an incompatible calling convention.
19713 elif test $ac_prog = install &&
19714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19715 # program-specific install script used by HP pwplus--don't use.
19718 rm -rf conftest.one conftest.two conftest.dir
19719 echo one > conftest.one
19720 echo two > conftest.two
19722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19723 test -s conftest.one && test -s conftest.two &&
19724 test -s conftest.dir/conftest.one &&
19725 test -s conftest.dir/conftest.two
19727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19740 rm -rf conftest.one conftest.two conftest.dir
19743 if test "${ac_cv_path_install+set}" = set; then
19744 INSTALL=$ac_cv_path_install
19746 # As a last resort, use the slow shell script. Don't cache a
19747 # value for INSTALL within a source directory, because that will
19748 # break other packages using the cache if that directory is
19749 # removed, or if the value is a relative name.
19750 INSTALL=$ac_install_sh
19753 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
19754 $as_echo "$INSTALL" >&6; }
19756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19757 # It thinks the first close brace ends the variable substitution.
19758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19764 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
19765 $as_echo_n "checking whether ln -s works... " >&6; }
19767 if test "$LN_S" = "ln -s"; then
19768 { $as_echo "$as_me:$LINENO: result: yes" >&5
19769 $as_echo "yes" >&6; }
19771 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19772 $as_echo "no, using $LN_S" >&6; }
19775 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19776 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19778 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19779 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19780 $as_echo_n "(cached) " >&6
19782 cat >conftest.make <<\_ACEOF
19785 @echo '@@@%%%=$(MAKE)=@@@%%%'
19787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19789 *@@@%%%=?*=@@@%%%*)
19790 eval ac_cv_prog_make_${ac_make}_set=yes;;
19792 eval ac_cv_prog_make_${ac_make}_set=no;;
19794 rm -f conftest.make
19796 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19797 { $as_echo "$as_me:$LINENO: result: yes" >&5
19798 $as_echo "yes" >&6; }
19801 { $as_echo "$as_me:$LINENO: result: no" >&5
19802 $as_echo "no" >&6; }
19803 SET_MAKE="MAKE=${MAKE-make}"
19807 # Checks for libraries.
19809 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19812 $as_echo_n "(cached) " >&6
19814 ac_check_lib_save_LIBS=$LIBS
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19823 /* Override any GCC internal prototype to avoid an error.
19824 Use char because int might match the return type of a GCC
19825 builtin and then its argument prototype would still apply. */
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846 (eval "$ac_link") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && {
19853 test -z "$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 } && test -s conftest$ac_exeext && {
19856 test "$cross_compiling" = yes ||
19857 $as_test_x conftest$ac_exeext
19859 ac_cv_lib_dl_dlopen=yes
19861 $as_echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_cv_lib_dl_dlopen=no
19867 rm -rf conftest.dSYM
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19873 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19874 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBDL 1
19883 { $as_echo "$as_me:$LINENO: checking for main in -llog4cxx" >&5
19884 $as_echo_n "checking for main in -llog4cxx... " >&6; }
19885 if test "${ac_cv_lib_log4cxx_main+set}" = set; then
19886 $as_echo_n "(cached) " >&6
19888 ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-llog4cxx $LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (ac_try="$ac_link"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19913 $as_echo "$ac_try_echo") >&5
19914 (eval "$ac_link") 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && {
19921 test -z "$ac_c_werror_flag" ||
19922 test ! -s conftest.err
19923 } && test -s conftest$ac_exeext && {
19924 test "$cross_compiling" = yes ||
19925 $as_test_x conftest$ac_exeext
19927 ac_cv_lib_log4cxx_main=yes
19929 $as_echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_cv_lib_log4cxx_main=no
19935 rm -rf conftest.dSYM
19936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19937 conftest$ac_exeext conftest.$ac_ext
19938 LIBS=$ac_check_lib_save_LIBS
19940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_log4cxx_main" >&5
19941 $as_echo "$ac_cv_lib_log4cxx_main" >&6; }
19942 if test "x$ac_cv_lib_log4cxx_main" = x""yes; then
19945 { { $as_echo "$as_me:$LINENO: error: l7vsd require log4cxx library. " >&5
19946 $as_echo "$as_me: error: l7vsd require log4cxx library. " >&2;}
19947 { (exit 1); exit 1; }; }
19950 { $as_echo "$as_me:$LINENO: checking for main in -lrt" >&5
19951 $as_echo_n "checking for main in -lrt... " >&6; }
19952 if test "${ac_cv_lib_rt_main+set}" = set; then
19953 $as_echo_n "(cached) " >&6
19955 ac_check_lib_save_LIBS=$LIBS
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19973 rm -f conftest.$ac_objext conftest$ac_exeext
19974 if { (ac_try="$ac_link"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19980 $as_echo "$ac_try_echo") >&5
19981 (eval "$ac_link") 2>conftest.er1
19983 grep -v '^ *+' conftest.er1 >conftest.err
19985 cat conftest.err >&5
19986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } && {
19988 test -z "$ac_c_werror_flag" ||
19989 test ! -s conftest.err
19990 } && test -s conftest$ac_exeext && {
19991 test "$cross_compiling" = yes ||
19992 $as_test_x conftest$ac_exeext
19994 ac_cv_lib_rt_main=yes
19996 $as_echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_cv_lib_rt_main=no
20002 rm -rf conftest.dSYM
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_main" >&5
20008 $as_echo "$ac_cv_lib_rt_main" >&6; }
20009 if test "x$ac_cv_lib_rt_main" = x""yes; then
20012 { { $as_echo "$as_me:$LINENO: error: l7vsd require rt library. " >&5
20013 $as_echo "$as_me: error: l7vsd require rt library. " >&2;}
20014 { (exit 1); exit 1; }; }
20017 { $as_echo "$as_me:$LINENO: checking for main in -lboost_thread-mt" >&5
20018 $as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
20019 if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then
20020 $as_echo_n "(cached) " >&6
20022 ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-lboost_thread-mt $LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20047 $as_echo "$ac_try_echo") >&5
20048 (eval "$ac_link") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext && {
20058 test "$cross_compiling" = yes ||
20059 $as_test_x conftest$ac_exeext
20061 ac_cv_lib_boost_thread_mt_main=yes
20063 $as_echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_lib_boost_thread_mt_main=no
20069 rm -rf conftest.dSYM
20070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20071 conftest$ac_exeext conftest.$ac_ext
20072 LIBS=$ac_check_lib_save_LIBS
20074 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_thread_mt_main" >&5
20075 $as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
20076 if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then
20079 { { $as_echo "$as_me:$LINENO: error: l7vsd require boost library. " >&5
20080 $as_echo "$as_me: error: l7vsd require boost library. " >&2;}
20081 { (exit 1); exit 1; }; }
20084 { $as_echo "$as_me:$LINENO: checking for main in -lboost_system-mt" >&5
20085 $as_echo_n "checking for main in -lboost_system-mt... " >&6; }
20086 if test "${ac_cv_lib_boost_system_mt_main+set}" = set; then
20087 $as_echo_n "(cached) " >&6
20089 ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-lboost_system-mt $LIBS"
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20107 rm -f conftest.$ac_objext conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20114 $as_echo "$ac_try_echo") >&5
20115 (eval "$ac_link") 2>conftest.er1
20117 grep -v '^ *+' conftest.er1 >conftest.err
20119 cat conftest.err >&5
20120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } && {
20122 test -z "$ac_c_werror_flag" ||
20123 test ! -s conftest.err
20124 } && test -s conftest$ac_exeext && {
20125 test "$cross_compiling" = yes ||
20126 $as_test_x conftest$ac_exeext
20128 ac_cv_lib_boost_system_mt_main=yes
20130 $as_echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_lib_boost_system_mt_main=no
20136 rm -rf conftest.dSYM
20137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20138 conftest$ac_exeext conftest.$ac_ext
20139 LIBS=$ac_check_lib_save_LIBS
20141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_system_mt_main" >&5
20142 $as_echo "$ac_cv_lib_boost_system_mt_main" >&6; }
20143 if test "x$ac_cv_lib_boost_system_mt_main" = x""yes; then
20146 { { $as_echo "$as_me:$LINENO: error: l7vsd require boost library. " >&5
20147 $as_echo "$as_me: error: l7vsd require boost library. " >&2;}
20148 { (exit 1); exit 1; }; }
20152 # Checks for header files.
20155 for ac_header in limits.h unistd.h
20157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20160 $as_echo_n "checking for $ac_header... " >&6; }
20161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20162 $as_echo_n "(cached) " >&6
20164 ac_res=`eval 'as_val=${'$as_ac_Header'}
20165 $as_echo "$as_val"'`
20166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20167 $as_echo "$ac_res" >&6; }
20169 # Is the header compilable?
20170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20171 $as_echo_n "checking $ac_header usability... " >&6; }
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 $ac_includes_default
20179 #include <$ac_header>
20181 rm -f conftest.$ac_objext
20182 if { (ac_try="$ac_compile"
20183 case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20188 $as_echo "$ac_try_echo") >&5
20189 (eval "$ac_compile") 2>conftest.er1
20191 grep -v '^ *+' conftest.er1 >conftest.err
20193 cat conftest.err >&5
20194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && {
20196 test -z "$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 } && test -s conftest.$ac_objext; then
20199 ac_header_compiler=yes
20201 $as_echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_header_compiler=no
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20209 $as_echo "$ac_header_compiler" >&6; }
20211 # Is the header present?
20212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20213 $as_echo_n "checking $ac_header presence... " >&6; }
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 #include <$ac_header>
20222 if { (ac_try="$ac_cpp conftest.$ac_ext"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20228 $as_echo "$ac_try_echo") >&5
20229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } >/dev/null && {
20236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20237 test ! -s conftest.err
20239 ac_header_preproc=yes
20241 $as_echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ac_header_preproc=no
20247 rm -f conftest.err conftest.$ac_ext
20248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20249 $as_echo "$ac_header_preproc" >&6; }
20251 # So? What about this header?
20252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20258 ac_header_preproc=yes
20261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20264 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20268 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20277 $as_echo_n "checking for $ac_header... " >&6; }
20278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20279 $as_echo_n "(cached) " >&6
20281 eval "$as_ac_Header=\$ac_header_preproc"
20283 ac_res=`eval 'as_val=${'$as_ac_Header'}
20284 $as_echo "$as_val"'`
20285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20286 $as_echo "$ac_res" >&6; }
20289 as_val=`eval 'as_val=${'$as_ac_Header'}
20290 $as_echo "$as_val"'`
20291 if test "x$as_val" = x""yes; then
20292 cat >>confdefs.h <<_ACEOF
20293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20301 # Checks for declarations.
20302 { $as_echo "$as_me:$LINENO: checking whether IP_TRANSPARENT is declared" >&5
20303 $as_echo_n "checking whether IP_TRANSPARENT is declared... " >&6; }
20304 if test "${ac_cv_have_decl_IP_TRANSPARENT+set}" = set; then
20305 $as_echo_n "(cached) " >&6
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20314 #include <sys/socket.h>
20315 #include <linux/in.h>
20321 #ifndef IP_TRANSPARENT
20322 (void) IP_TRANSPARENT;
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20336 $as_echo "$ac_try_echo") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 ac_cv_have_decl_IP_TRANSPARENT=yes
20349 $as_echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_have_decl_IP_TRANSPARENT=no
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20357 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_IP_TRANSPARENT" >&5
20358 $as_echo "$ac_cv_have_decl_IP_TRANSPARENT" >&6; }
20359 if test "x$ac_cv_have_decl_IP_TRANSPARENT" = x""yes; then
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_DECL_IP_TRANSPARENT 1
20367 cat >>confdefs.h <<_ACEOF
20368 #define HAVE_DECL_IP_TRANSPARENT 0
20376 # Checks for typedefs, structures, and compiler characteristics.
20377 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20378 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20379 if test "${ac_cv_header_stdbool_h+set}" = set; then
20380 $as_echo_n "(cached) " >&6
20382 cat >conftest.$ac_ext <<_ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20389 #include <stdbool.h>
20391 "error: bool is not defined"
20394 "error: false is not defined"
20397 "error: false is not 0"
20400 "error: true is not defined"
20403 "error: true is not 1"
20405 #ifndef __bool_true_false_are_defined
20406 "error: __bool_true_false_are_defined is not defined"
20409 struct s { _Bool s: 1; _Bool t; } s;
20411 char a[true == 1 ? 1 : -1];
20412 char b[false == 0 ? 1 : -1];
20413 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20414 char d[(bool) 0.5 == true ? 1 : -1];
20416 char f[(_Bool) 0.0 == false ? 1 : -1];
20418 char h[sizeof (_Bool)];
20419 char i[sizeof s.t];
20420 enum { j = false, k = true, l = false * true, m = true * 256 };
20421 /* The following fails for
20422 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20424 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20425 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20426 # if defined __xlc__ || defined __GNUC__
20427 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20428 reported by James Lemley on 2005-10-05; see
20429 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20430 This test is not quite right, since xlc is allowed to
20431 reject this program, as the initializer for xlcbug is
20432 not one of the forms that C requires support for.
20433 However, doing the test right would require a runtime
20434 test, and that would make cross-compilation harder.
20435 Let us hope that IBM fixes the xlc bug, and also adds
20436 support for this kind of constant expression. In the
20437 meantime, this test will reject xlc, which is OK, since
20438 our stdbool.h substitute should suffice. We also test
20439 this with GCC, where it should work, to detect more
20440 quickly whether someone messes up the test in the
20442 char digs[] = "0123456789";
20443 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20445 /* Catch a bug in an HP-UX C compiler. See
20446 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20447 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20458 /* Refer to every declared value, to avoid compiler optimizations. */
20459 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20460 + !m + !n + !o + !p + !q + !pq);
20466 rm -f conftest.$ac_objext
20467 if { (ac_try="$ac_compile"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20473 $as_echo "$ac_try_echo") >&5
20474 (eval "$ac_compile") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } && {
20481 test -z "$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 } && test -s conftest.$ac_objext; then
20484 ac_cv_header_stdbool_h=yes
20486 $as_echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_header_stdbool_h=no
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20495 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20496 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
20497 $as_echo_n "checking for _Bool... " >&6; }
20498 if test "${ac_cv_type__Bool+set}" = set; then
20499 $as_echo_n "(cached) " >&6
20501 ac_cv_type__Bool=no
20502 cat >conftest.$ac_ext <<_ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h. */
20508 $ac_includes_default
20512 if (sizeof (_Bool))
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20525 $as_echo "$ac_try_echo") >&5
20526 (eval "$ac_compile") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest.$ac_objext; then
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 $ac_includes_default
20546 if (sizeof ((_Bool)))
20552 rm -f conftest.$ac_objext
20553 if { (ac_try="$ac_compile"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20559 $as_echo "$ac_try_echo") >&5
20560 (eval "$ac_compile") 2>conftest.er1
20562 grep -v '^ *+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest.$ac_objext; then
20572 $as_echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_cv_type__Bool=yes
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 $as_echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20588 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20589 $as_echo "$ac_cv_type__Bool" >&6; }
20590 if test "x$ac_cv_type__Bool" = x""yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE__BOOL 1
20599 if test $ac_cv_header_stdbool_h = yes; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_STDBOOL_H 1
20607 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20608 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20609 if test "${ac_cv_c_const+set}" = set; then
20610 $as_echo_n "(cached) " >&6
20612 cat >conftest.$ac_ext <<_ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20622 /* FIXME: Include the comments suggested by Paul. */
20623 #ifndef __cplusplus
20624 /* Ultrix mips cc rejects this. */
20625 typedef int charset[2];
20627 /* SunOS 4.1.1 cc rejects this. */
20628 char const *const *pcpcc;
20630 /* NEC SVR4.0.2 mips cc rejects this. */
20631 struct point {int x, y;};
20632 static struct point const zero = {0,0};
20633 /* AIX XL C 1.02.0.0 rejects this.
20634 It does not let you subtract one const X* pointer from another in
20635 an arm of an if-expression whose if-part is not a constant
20637 const char *g = "string";
20638 pcpcc = &g + (g ? g-g : 0);
20639 /* HPUX 7.0 cc rejects these. */
20641 ppc = (char**) pcpcc;
20642 pcpcc = (char const *const *) ppc;
20643 { /* SCO 3.2v4 cc rejects this. */
20645 char const *s = 0 ? (char *) 0 : (char const *) 0;
20650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20651 int x[] = {25, 17};
20652 const int *foo = &x[0];
20655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20656 typedef const int *iptr;
20660 { /* AIX XL C 1.02.0.0 rejects this saying
20661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20662 struct s { int j; const int *ap[3]; };
20663 struct s *b; b->j = 5;
20665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20666 const int foo = 10;
20667 if (!foo) return 0;
20669 return !cs[0] && !zero.x;
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20683 $as_echo "$ac_try_echo") >&5
20684 (eval "$ac_compile") 2>conftest.er1
20686 grep -v '^ *+' conftest.er1 >conftest.err
20688 cat conftest.err >&5
20689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest.$ac_objext; then
20696 $as_echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20705 $as_echo "$ac_cv_c_const" >&6; }
20706 if test $ac_cv_c_const = no; then
20708 cat >>confdefs.h <<\_ACEOF
20714 { $as_echo "$as_me:$LINENO: checking for inline" >&5
20715 $as_echo_n "checking for inline... " >&6; }
20716 if test "${ac_cv_c_inline+set}" = set; then
20717 $as_echo_n "(cached) " >&6
20720 for ac_kw in inline __inline__ __inline; do
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #ifndef __cplusplus
20729 static $ac_kw foo_t static_foo () {return 0; }
20730 $ac_kw foo_t foo () {return 0; }
20734 rm -f conftest.$ac_objext
20735 if { (ac_try="$ac_compile"
20736 case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20741 $as_echo "$ac_try_echo") >&5
20742 (eval "$ac_compile") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && {
20749 test -z "$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20751 } && test -s conftest.$ac_objext; then
20752 ac_cv_c_inline=$ac_kw
20754 $as_echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761 test "$ac_cv_c_inline" != no && break
20765 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20766 $as_echo "$ac_cv_c_inline" >&6; }
20769 case $ac_cv_c_inline in
20772 case $ac_cv_c_inline in
20774 *) ac_val=$ac_cv_c_inline;;
20776 cat >>confdefs.h <<_ACEOF
20777 #ifndef __cplusplus
20778 #define inline $ac_val
20784 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20785 $as_echo_n "checking for size_t... " >&6; }
20786 if test "${ac_cv_type_size_t+set}" = set; then
20787 $as_echo_n "(cached) " >&6
20789 ac_cv_type_size_t=no
20790 cat >conftest.$ac_ext <<_ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20796 $ac_includes_default
20800 if (sizeof (size_t))
20806 rm -f conftest.$ac_objext
20807 if { (ac_try="$ac_compile"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20813 $as_echo "$ac_try_echo") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest.$ac_objext; then
20824 cat >conftest.$ac_ext <<_ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20830 $ac_includes_default
20834 if (sizeof ((size_t)))
20840 rm -f conftest.$ac_objext
20841 if { (ac_try="$ac_compile"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20847 $as_echo "$ac_try_echo") >&5
20848 (eval "$ac_compile") 2>conftest.er1
20850 grep -v '^ *+' conftest.er1 >conftest.err
20852 cat conftest.err >&5
20853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } && {
20855 test -z "$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 } && test -s conftest.$ac_objext; then
20860 $as_echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ac_cv_type_size_t=yes
20866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20877 $as_echo "$ac_cv_type_size_t" >&6; }
20878 if test "x$ac_cv_type_size_t" = x""yes; then
20882 cat >>confdefs.h <<_ACEOF
20883 #define size_t unsigned int
20888 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20889 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20890 if test "${ac_cv_struct_tm+set}" = set; then
20891 $as_echo_n "(cached) " >&6
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 #include <sys/types.h>
20906 int *p = &tm.tm_sec;
20912 rm -f conftest.$ac_objext
20913 if { (ac_try="$ac_compile"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20919 $as_echo "$ac_try_echo") >&5
20920 (eval "$ac_compile") 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } && {
20927 test -z "$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20929 } && test -s conftest.$ac_objext; then
20930 ac_cv_struct_tm=time.h
20932 $as_echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_cv_struct_tm=sys/time.h
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20941 $as_echo "$ac_cv_struct_tm" >&6; }
20942 if test $ac_cv_struct_tm = sys/time.h; then
20944 cat >>confdefs.h <<\_ACEOF
20945 #define TM_IN_SYS_TIME 1
20951 # Checks for library functions.
20952 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20953 $as_echo_n "checking for ANSI C header files... " >&6; }
20954 if test "${ac_cv_header_stdc+set}" = set; then
20955 $as_echo_n "(cached) " >&6
20957 cat >conftest.$ac_ext <<_ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h. */
20963 #include <stdlib.h>
20964 #include <stdarg.h>
20965 #include <string.h>
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20983 $as_echo "$ac_try_echo") >&5
20984 (eval "$ac_compile") 2>conftest.er1
20986 grep -v '^ *+' conftest.er1 >conftest.err
20988 cat conftest.err >&5
20989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && {
20991 test -z "$ac_c_werror_flag" ||
20992 test ! -s conftest.err
20993 } && test -s conftest.$ac_objext; then
20994 ac_cv_header_stdc=yes
20996 $as_echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_cv_header_stdc=no
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 if test $ac_cv_header_stdc = yes; then
21005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <string.h>
21015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21016 $EGREP "memchr" >/dev/null 2>&1; then
21019 ac_cv_header_stdc=no
21025 if test $ac_cv_header_stdc = yes; then
21026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 #include <stdlib.h>
21036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21037 $EGREP "free" >/dev/null 2>&1; then
21040 ac_cv_header_stdc=no
21046 if test $ac_cv_header_stdc = yes; then
21047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21048 if test "$cross_compiling" = yes; then
21051 cat >conftest.$ac_ext <<_ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21058 #include <stdlib.h>
21059 #if ((' ' & 0x0FF) == 0x020)
21060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21063 # define ISLOWER(c) \
21064 (('a' <= (c) && (c) <= 'i') \
21065 || ('j' <= (c) && (c) <= 'r') \
21066 || ('s' <= (c) && (c) <= 'z'))
21067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21075 for (i = 0; i < 256; i++)
21076 if (XOR (islower (i), ISLOWER (i))
21077 || toupper (i) != TOUPPER (i))
21082 rm -f conftest$ac_exeext
21083 if { (ac_try="$ac_link"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21089 $as_echo "$ac_try_echo") >&5
21090 (eval "$ac_link") 2>&5
21092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21094 { (case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21099 $as_echo "$ac_try_echo") >&5
21100 (eval "$ac_try") 2>&5
21102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
21106 $as_echo "$as_me: program exited with status $ac_status" >&5
21107 $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ( exit $ac_status )
21111 ac_cv_header_stdc=no
21113 rm -rf conftest.dSYM
21114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21120 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21121 $as_echo "$ac_cv_header_stdc" >&6; }
21122 if test $ac_cv_header_stdc = yes; then
21124 cat >>confdefs.h <<\_ACEOF
21125 #define STDC_HEADERS 1
21130 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21131 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21132 if test "${ac_cv_header_time+set}" = set; then
21133 $as_echo_n "(cached) " >&6
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 #include <sys/types.h>
21142 #include <sys/time.h>
21148 if ((struct tm *) 0)
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21161 $as_echo "$ac_try_echo") >&5
21162 (eval "$ac_compile") 2>conftest.er1
21164 grep -v '^ *+' conftest.er1 >conftest.err
21166 cat conftest.err >&5
21167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest.$ac_objext; then
21172 ac_cv_header_time=yes
21174 $as_echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_cv_header_time=no
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21183 $as_echo "$ac_cv_header_time" >&6; }
21184 if test $ac_cv_header_time = yes; then
21186 cat >>confdefs.h <<\_ACEOF
21187 #define TIME_WITH_SYS_TIME 1
21196 for ac_header in $ac_header_list
21198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21200 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21201 $as_echo_n "checking for $ac_header... " >&6; }
21202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21203 $as_echo_n "(cached) " >&6
21205 ac_res=`eval 'as_val=${'$as_ac_Header'}
21206 $as_echo "$as_val"'`
21207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21208 $as_echo "$ac_res" >&6; }
21210 # Is the header compilable?
21211 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21212 $as_echo_n "checking $ac_header usability... " >&6; }
21213 cat >conftest.$ac_ext <<_ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 $ac_includes_default
21220 #include <$ac_header>
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21229 $as_echo "$ac_try_echo") >&5
21230 (eval "$ac_compile") 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } && {
21237 test -z "$ac_c_werror_flag" ||
21238 test ! -s conftest.err
21239 } && test -s conftest.$ac_objext; then
21240 ac_header_compiler=yes
21242 $as_echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ac_header_compiler=no
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21250 $as_echo "$ac_header_compiler" >&6; }
21252 # Is the header present?
21253 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21254 $as_echo_n "checking $ac_header presence... " >&6; }
21255 cat >conftest.$ac_ext <<_ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21261 #include <$ac_header>
21263 if { (ac_try="$ac_cpp conftest.$ac_ext"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21269 $as_echo "$ac_try_echo") >&5
21270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } >/dev/null && {
21277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21280 ac_header_preproc=yes
21282 $as_echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_preproc=no
21288 rm -f conftest.err conftest.$ac_ext
21289 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21290 $as_echo "$ac_header_preproc" >&6; }
21292 # So? What about this header?
21293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21296 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21299 ac_header_preproc=yes
21302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21303 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21305 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21307 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21309 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21311 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21313 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21317 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21318 $as_echo_n "checking for $ac_header... " >&6; }
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320 $as_echo_n "(cached) " >&6
21322 eval "$as_ac_Header=\$ac_header_preproc"
21324 ac_res=`eval 'as_val=${'$as_ac_Header'}
21325 $as_echo "$as_val"'`
21326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21327 $as_echo "$ac_res" >&6; }
21330 as_val=`eval 'as_val=${'$as_ac_Header'}
21331 $as_echo "$as_val"'`
21332 if test "x$as_val" = x""yes; then
21333 cat >>confdefs.h <<_ACEOF
21334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21349 for ac_func in $ac_func_list
21351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21353 $as_echo_n "checking for $ac_func... " >&6; }
21354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21355 $as_echo_n "(cached) " >&6
21357 cat >conftest.$ac_ext <<_ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21365 #define $ac_func innocuous_$ac_func
21367 /* System header to define __stub macros and hopefully few prototypes,
21368 which can conflict with char $ac_func (); below.
21369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21370 <limits.h> exists even on freestanding compilers. */
21373 # include <limits.h>
21375 # include <assert.h>
21380 /* Override any GCC internal prototype to avoid an error.
21381 Use char because int might match the return type of a GCC
21382 builtin and then its argument prototype would still apply. */
21387 /* The GNU C library defines this for functions which it implements
21388 to always fail with ENOSYS. Some functions are actually named
21389 something starting with __ and the normal name is an alias. */
21390 #if defined __stub_$ac_func || defined __stub___$ac_func
21397 return $ac_func ();
21402 rm -f conftest.$ac_objext conftest$ac_exeext
21403 if { (ac_try="$ac_link"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409 $as_echo "$ac_try_echo") >&5
21410 (eval "$ac_link") 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && {
21417 test -z "$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21419 } && test -s conftest$ac_exeext && {
21420 test "$cross_compiling" = yes ||
21421 $as_test_x conftest$ac_exeext
21423 eval "$as_ac_var=yes"
21425 $as_echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 eval "$as_ac_var=no"
21431 rm -rf conftest.dSYM
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433 conftest$ac_exeext conftest.$ac_ext
21435 ac_res=`eval 'as_val=${'$as_ac_var'}
21436 $as_echo "$as_val"'`
21437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21438 $as_echo "$ac_res" >&6; }
21439 as_val=`eval 'as_val=${'$as_ac_var'}
21440 $as_echo "$as_val"'`
21441 if test "x$as_val" = x""yes; then
21442 cat >>confdefs.h <<_ACEOF
21443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21465 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
21466 $as_echo_n "checking for working mktime... " >&6; }
21467 if test "${ac_cv_func_working_mktime+set}" = set; then
21468 $as_echo_n "(cached) " >&6
21470 if test "$cross_compiling" = yes; then
21471 ac_cv_func_working_mktime=no
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 /* Test program from Paul Eggert and Tony Leneis. */
21480 #ifdef TIME_WITH_SYS_TIME
21481 # include <sys/time.h>
21484 # ifdef HAVE_SYS_TIME_H
21485 # include <sys/time.h>
21491 #include <limits.h>
21492 #include <stdlib.h>
21494 #ifdef HAVE_UNISTD_H
21495 # include <unistd.h>
21499 # define alarm(X) /* empty */
21502 /* Work around redefinition to rpl_putenv by other config tests. */
21505 static time_t time_t_max;
21506 static time_t time_t_min;
21508 /* Values we'll use to set the TZ environment variable. */
21509 static char *tz_strings[] = {
21510 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21511 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21513 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21515 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21516 Based on a problem report from Andreas Jaeger. */
21518 spring_forward_gap ()
21520 /* glibc (up to about 1998-10-07) failed this test. */
21523 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21524 instead of "TZ=America/Vancouver" in order to detect the bug even
21525 on systems that don't support the Olson extension, or don't have the
21526 full zoneinfo tables installed. */
21527 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21536 return mktime (&tm) != (time_t) -1;
21544 return ! (lt = localtime (&now)) || mktime (lt) == now;
21551 return (mktime_test1 (now)
21552 && mktime_test1 ((time_t) (time_t_max - now))
21553 && mktime_test1 ((time_t) (time_t_min + now)));
21559 /* Based on code from Ariel Faigon. */
21569 return tm.tm_mon == 2 && tm.tm_mday == 31;
21578 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21579 now = mktime (&tm);
21580 if (now != (time_t) -1)
21582 struct tm *lt = localtime (&now);
21584 && lt->tm_year == tm.tm_year
21585 && lt->tm_mon == tm.tm_mon
21586 && lt->tm_mday == tm.tm_mday
21587 && lt->tm_hour == tm.tm_hour
21588 && lt->tm_min == tm.tm_min
21589 && lt->tm_sec == tm.tm_sec
21590 && lt->tm_yday == tm.tm_yday
21591 && lt->tm_wday == tm.tm_wday
21592 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21593 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21602 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21603 ignoring leap seconds. */
21604 unsigned long int answer = 2527315200UL;
21608 tm.tm_year = 2050 - 1900;
21611 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21614 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21615 instead of "TZ=America/Vancouver" in order to detect the bug even
21616 on systems that don't support the Olson extension, or don't have the
21617 full zoneinfo tables installed. */
21618 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21622 /* Check that the result is either a failure, or close enough
21623 to the correct answer that we can assume the discrepancy is
21624 due to leap seconds. */
21625 return (t == (time_t) -1
21626 || (0 < t && answer - 120 <= t && t <= answer + 120));
21635 /* This test makes some buggy mktime implementations loop.
21636 Give up after 60 seconds; a mktime slower than that
21637 isn't worth using anyway. */
21642 t = (time_t_max << 1) + 1;
21643 if (t <= time_t_max)
21647 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
21649 delta = time_t_max / 997; /* a suitable prime number */
21650 for (i = 0; i < N_STRINGS; i++)
21653 putenv (tz_strings[i]);
21655 for (t = 0; t <= time_t_max - delta; t += delta)
21656 if (! mktime_test (t))
21658 if (! (mktime_test ((time_t) 1)
21659 && mktime_test ((time_t) (60 * 60))
21660 && mktime_test ((time_t) (60 * 60 * 24))))
21663 for (j = 1; ; j <<= 1)
21664 if (! bigtime_test (j))
21666 else if (INT_MAX / 2 < j)
21668 if (! bigtime_test (INT_MAX))
21671 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
21674 rm -f conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21681 $as_echo "$ac_try_echo") >&5
21682 (eval "$ac_link") 2>&5
21684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21686 { (case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692 (eval "$ac_try") 2>&5
21694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; }; then
21696 ac_cv_func_working_mktime=yes
21698 $as_echo "$as_me: program exited with status $ac_status" >&5
21699 $as_echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ( exit $ac_status )
21703 ac_cv_func_working_mktime=no
21705 rm -rf conftest.dSYM
21706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21711 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21712 $as_echo "$ac_cv_func_working_mktime" >&6; }
21713 if test $ac_cv_func_working_mktime = no; then
21714 case " $LIBOBJS " in
21715 *" mktime.$ac_objext "* ) ;;
21716 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
21723 for ac_func in strftime
21725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21726 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21727 $as_echo_n "checking for $ac_func... " >&6; }
21728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21729 $as_echo_n "(cached) " >&6
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21739 #define $ac_func innocuous_$ac_func
21741 /* System header to define __stub macros and hopefully few prototypes,
21742 which can conflict with char $ac_func (); below.
21743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21744 <limits.h> exists even on freestanding compilers. */
21747 # include <limits.h>
21749 # include <assert.h>
21754 /* Override any GCC internal prototype to avoid an error.
21755 Use char because int might match the return type of a GCC
21756 builtin and then its argument prototype would still apply. */
21761 /* The GNU C library defines this for functions which it implements
21762 to always fail with ENOSYS. Some functions are actually named
21763 something starting with __ and the normal name is an alias. */
21764 #if defined __stub_$ac_func || defined __stub___$ac_func
21771 return $ac_func ();
21776 rm -f conftest.$ac_objext conftest$ac_exeext
21777 if { (ac_try="$ac_link"
21778 case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21783 $as_echo "$ac_try_echo") >&5
21784 (eval "$ac_link") 2>conftest.er1
21786 grep -v '^ *+' conftest.er1 >conftest.err
21788 cat conftest.err >&5
21789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } && {
21791 test -z "$ac_c_werror_flag" ||
21792 test ! -s conftest.err
21793 } && test -s conftest$ac_exeext && {
21794 test "$cross_compiling" = yes ||
21795 $as_test_x conftest$ac_exeext
21797 eval "$as_ac_var=yes"
21799 $as_echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21802 eval "$as_ac_var=no"
21805 rm -rf conftest.dSYM
21806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21807 conftest$ac_exeext conftest.$ac_ext
21809 ac_res=`eval 'as_val=${'$as_ac_var'}
21810 $as_echo "$as_val"'`
21811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21812 $as_echo "$ac_res" >&6; }
21813 as_val=`eval 'as_val=${'$as_ac_var'}
21814 $as_echo "$as_val"'`
21815 if test "x$as_val" = x""yes; then
21816 cat >>confdefs.h <<_ACEOF
21817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21821 # strftime is in -lintl on SCO UNIX.
21822 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21823 $as_echo_n "checking for strftime in -lintl... " >&6; }
21824 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21825 $as_echo_n "(cached) " >&6
21827 ac_check_lib_save_LIBS=$LIBS
21828 LIBS="-lintl $LIBS"
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 /* Override any GCC internal prototype to avoid an error.
21837 Use char because int might match the return type of a GCC
21838 builtin and then its argument prototype would still apply. */
21846 return strftime ();
21851 rm -f conftest.$ac_objext conftest$ac_exeext
21852 if { (ac_try="$ac_link"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21858 $as_echo "$ac_try_echo") >&5
21859 (eval "$ac_link") 2>conftest.er1
21861 grep -v '^ *+' conftest.er1 >conftest.err
21863 cat conftest.err >&5
21864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } && {
21866 test -z "$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21868 } && test -s conftest$ac_exeext && {
21869 test "$cross_compiling" = yes ||
21870 $as_test_x conftest$ac_exeext
21872 ac_cv_lib_intl_strftime=yes
21874 $as_echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_cv_lib_intl_strftime=no
21880 rm -rf conftest.dSYM
21881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21882 conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21886 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21887 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
21888 cat >>confdefs.h <<\_ACEOF
21889 #define HAVE_STRFTIME 1
21892 LIBS="-lintl $LIBS"
21901 for ac_func in gethostname localtime_r memset
21903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21904 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21905 $as_echo_n "checking for $ac_func... " >&6; }
21906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21907 $as_echo_n "(cached) " >&6
21909 cat >conftest.$ac_ext <<_ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21917 #define $ac_func innocuous_$ac_func
21919 /* System header to define __stub macros and hopefully few prototypes,
21920 which can conflict with char $ac_func (); below.
21921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21922 <limits.h> exists even on freestanding compilers. */
21925 # include <limits.h>
21927 # include <assert.h>
21932 /* Override any GCC internal prototype to avoid an error.
21933 Use char because int might match the return type of a GCC
21934 builtin and then its argument prototype would still apply. */
21939 /* The GNU C library defines this for functions which it implements
21940 to always fail with ENOSYS. Some functions are actually named
21941 something starting with __ and the normal name is an alias. */
21942 #if defined __stub_$ac_func || defined __stub___$ac_func
21949 return $ac_func ();
21954 rm -f conftest.$ac_objext conftest$ac_exeext
21955 if { (ac_try="$ac_link"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21961 $as_echo "$ac_try_echo") >&5
21962 (eval "$ac_link") 2>conftest.er1
21964 grep -v '^ *+' conftest.er1 >conftest.err
21966 cat conftest.err >&5
21967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); } && {
21969 test -z "$ac_c_werror_flag" ||
21970 test ! -s conftest.err
21971 } && test -s conftest$ac_exeext && {
21972 test "$cross_compiling" = yes ||
21973 $as_test_x conftest$ac_exeext
21975 eval "$as_ac_var=yes"
21977 $as_echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 eval "$as_ac_var=no"
21983 rm -rf conftest.dSYM
21984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21985 conftest$ac_exeext conftest.$ac_ext
21987 ac_res=`eval 'as_val=${'$as_ac_var'}
21988 $as_echo "$as_val"'`
21989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21990 $as_echo "$ac_res" >&6; }
21991 as_val=`eval 'as_val=${'$as_ac_var'}
21992 $as_echo "$as_val"'`
21993 if test "x$as_val" = x""yes; then
21994 cat >>confdefs.h <<_ACEOF
21995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22002 # application-specific option
22003 if test `uname -m` == "x86_64"; then
22009 CXXFLAGS=-march=i686
22014 # Check whether --with-l7vs-moddir was given.
22015 if test "${with_l7vs_moddir+set}" = set; then
22016 withval=$with_l7vs_moddir; l7vs_moddir="$withval"
22018 l7vs_moddir="${libdir}/l7vs"
22024 # Check whether --with-l7vsadm-sockdir was given.
22025 if test "${with_l7vsadm_sockdir+set}" = set; then
22026 withval=$with_l7vsadm_sockdir; l7vsadm_sockdir="$withval"
22028 l7vsadm_sockdir="/var/run/l7vs"
22034 # Check whether --with-l7vs-buffer-size was given.
22035 if test "${with_l7vs_buffer_size+set}" = set; then
22036 withval=$with_l7vs_buffer_size; l7vs_max_buffer_size="$withval"
22038 l7vs_max_buffer_size=4096
22044 # Check whether --with-l7vs-config-dir was given.
22045 if test "${with_l7vs_config_dir+set}" = set; then
22046 withval=$with_l7vs_config_dir; l7vs_config="$withval"
22048 l7vs_config="/etc/l7vs/l7vs.cf"
22063 ultramonkeyl7_version=ultramonkeyl7-$VERSION
22066 ac_config_files="$ac_config_files doc/Makefile doc/conf/Makefile doc/sslfiles/Makefile doc/heartbeat-ra/Makefile l7directord/Makefile l7vsd/Makefile l7vsd/init.d/Makefile l7vsd/module/Makefile l7vsd/module/protocol/Makefile l7vsd/module/schedule/Makefile l7vsd/src/Makefile snmpagent/Makefile Makefile"
22069 ac_config_files="$ac_config_files l7vsd.spec"
22071 cat >confcache <<\_ACEOF
22072 # This file is a shell script that caches the results of configure
22073 # tests run on this system so they can be shared between configure
22074 # scripts and configure runs, see configure's option --config-cache.
22075 # It is not useful on other systems. If it contains results you don't
22076 # want to keep, you may remove or edit it.
22078 # config.status only pays attention to the cache file if you give it
22079 # the --recheck option to rerun configure.
22081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22083 # following values.
22087 # The following way of writing the cache mishandles newlines in values,
22088 # but we know of no workaround that is simple, portable, and efficient.
22089 # So, we kill variables containing newlines.
22090 # Ultrix sh set writes to stderr and can't be redirected directly,
22091 # and sets the high bit in the cache file unless we assign to the vars.
22093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22094 eval ac_val=\$$ac_var
22098 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22102 _ | IFS | as_nl) ;; #(
22103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22104 *) $as_unset $ac_var ;;
22110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22111 *${as_nl}ac_space=\ *)
22112 # `set' does not quote correctly, so add quotes (double-quote
22113 # substitution turns \\\\ into \\, and sed turns \\ into \).
22116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22119 # `set' quotes correctly as required by POSIX, so do not add quotes.
22120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22134 if test -w "$cache_file"; then
22135 test "x$cache_file" != "x/dev/null" &&
22136 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22137 $as_echo "$as_me: updating cache $cache_file" >&6;}
22138 cat confcache >$cache_file
22140 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22141 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22147 # Let make expand exec_prefix.
22148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22150 DEFS=-DHAVE_CONFIG_H
22154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22155 # 1. Remove the extension, and $U if already installed.
22156 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22157 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22159 # will be set to the directory where LIBOBJS objects are built.
22160 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22161 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22163 LIBOBJS=$ac_libobjs
22165 LTLIBOBJS=$ac_ltlibobjs
22168 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22169 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22170 Usually this means the macro was only invoked conditionally." >&5
22171 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22172 Usually this means the macro was only invoked conditionally." >&2;}
22173 { (exit 1); exit 1; }; }
22175 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22176 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22177 Usually this means the macro was only invoked conditionally." >&5
22178 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22179 Usually this means the macro was only invoked conditionally." >&2;}
22180 { (exit 1); exit 1; }; }
22182 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22183 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22184 Usually this means the macro was only invoked conditionally." >&5
22185 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22186 Usually this means the macro was only invoked conditionally." >&2;}
22187 { (exit 1); exit 1; }; }
22190 : ${CONFIG_STATUS=./config.status}
22192 ac_clean_files_save=$ac_clean_files
22193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22194 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22196 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22198 # Generated by $as_me.
22199 # Run this file to recreate the current configuration.
22200 # Compiler output produced by configure, useful for debugging
22201 # configure, is in config.log if it exists.
22204 ac_cs_recheck=false
22206 SHELL=\${CONFIG_SHELL-$SHELL}
22209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22210 ## --------------------- ##
22211 ## M4sh Initialization. ##
22212 ## --------------------- ##
22214 # Be more Bourne compatible
22215 DUALCASE=1; export DUALCASE # for MKS sh
22216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22220 # is contrary to our usage. Disable this feature.
22221 alias -g '${1+"$@"}'='"$@"'
22222 setopt NO_GLOB_SUBST
22224 case `(set -o) 2>/dev/null` in
22225 *posix*) set -o posix ;;
22234 # Avoid depending upon Character Ranges.
22235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22238 as_cr_digits='0123456789'
22239 as_cr_alnum=$as_cr_Letters$as_cr_digits
22244 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22245 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22248 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22249 as_echo='printf %s\n'
22250 as_echo_n='printf %s'
22252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22253 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22254 as_echo_n='/usr/ucb/echo -n'
22256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22257 as_echo_n_body='eval
22261 expr "X$arg" : "X\\(.*\\)$as_nl";
22262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22264 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22266 export as_echo_n_body
22267 as_echo_n='sh -c $as_echo_n_body as_echo'
22269 export as_echo_body
22270 as_echo='sh -c $as_echo_body as_echo'
22273 # The user is always right.
22274 if test "${PATH_SEPARATOR+set}" != set; then
22276 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22277 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22282 # Support unset when possible.
22283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22291 # We need space, tab and new line, in precisely that order. Quoting is
22292 # there to prevent editors from complaining about space-tab.
22293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22294 # splitting by setting IFS to empty value.)
22297 # Find who we are. Look in the path if we contain no directory separator.
22299 *[\\/]* ) as_myself=$0 ;;
22300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22301 for as_dir in $PATH
22304 test -z "$as_dir" && as_dir=.
22305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22311 # We did not find ourselves, most probably we were run as `sh COMMAND'
22312 # in which case we are not to be found in the path.
22313 if test "x$as_myself" = x; then
22316 if test ! -f "$as_myself"; then
22317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22318 { (exit 1); exit 1; }
22321 # Work around bugs in pre-3.0 UWIN ksh.
22322 for as_var in ENV MAIL MAILPATH
22323 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22335 # Required to use basename.
22336 if expr a : '\(a\)' >/dev/null 2>&1 &&
22337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22344 as_basename=basename
22350 # Name of the executable.
22351 as_me=`$as_basename -- "$0" ||
22352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22353 X"$0" : 'X\(//\)$' \| \
22354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22356 sed '/^.*\/\([^/][^/]*\)\/*$/{
22375 as_lineno_1=$LINENO
22376 as_lineno_2=$LINENO
22377 test "x$as_lineno_1" != "x$as_lineno_2" &&
22378 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22381 # uniformly replaced by the line number. The first 'sed' inserts a
22382 # line-number line after each line using $LINENO; the second 'sed'
22383 # does the real work. The second script uses 'N' to pair each
22384 # line-number line with the line containing $LINENO, and appends
22385 # trailing '-' during substitution so that $LINENO is not a special
22386 # case at line end.
22387 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22388 # scripts with optimization help from Paolo Bonzini. Blame Lee
22389 # E. McMahon (1931-1989) for sed's syntax. :-)
22401 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22404 ' >$as_me.lineno &&
22405 chmod +x "$as_me.lineno" ||
22406 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22407 { (exit 1); exit 1; }; }
22409 # Don't try to exec as it changes $[0], causing all sort of problems
22410 # (the dirname of $[0] is not the place where we might find the
22411 # original and so on. Autoconf is especially sensitive to this).
22412 . "./$as_me.lineno"
22413 # Exit status is that of the last command.
22418 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22424 ECHO_C= ECHO_N= ECHO_T=
22425 case `echo -n x` in
22427 case `echo 'x\c'` in
22428 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22434 if expr a : '\(a\)' >/dev/null 2>&1 &&
22435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22441 rm -f conf$$ conf$$.exe conf$$.file
22442 if test -d conf$$.dir; then
22443 rm -f conf$$.dir/conf$$.file
22446 mkdir conf$$.dir 2>/dev/null
22448 if (echo >conf$$.file) 2>/dev/null; then
22449 if ln -s conf$$.file conf$$ 2>/dev/null; then
22451 # ... but there are two gotchas:
22452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22454 # In both cases, we have to default to `cp -p'.
22455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22457 elif ln conf$$.file conf$$ 2>/dev/null; then
22465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22466 rmdir conf$$.dir 2>/dev/null
22468 if mkdir -p . 2>/dev/null; then
22471 test -d ./-p && rmdir ./-p
22475 if test -x / >/dev/null 2>&1; then
22476 as_test_x='test -x'
22478 if ls -dL / >/dev/null 2>&1; then
22485 if test -d "$1"; then
22491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22492 ???[sx]*):;;*)false;;esac;fi
22496 as_executable_p=$as_test_x
22498 # Sed expression to map a string onto a valid CPP name.
22499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22501 # Sed expression to map a string onto a valid variable name.
22502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22507 # Save the log message, to keep $[0] and so on meaningful, and to
22508 # report actual input values of CONFIG_FILES etc. instead of their
22509 # values after options handling.
22511 This file was extended by $as_me, which was
22512 generated by GNU Autoconf 2.63. Invocation command line was
22514 CONFIG_FILES = $CONFIG_FILES
22515 CONFIG_HEADERS = $CONFIG_HEADERS
22516 CONFIG_LINKS = $CONFIG_LINKS
22517 CONFIG_COMMANDS = $CONFIG_COMMANDS
22520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22525 case $ac_config_files in *"
22526 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22529 case $ac_config_headers in *"
22530 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22535 # Files that config.status was made for.
22536 config_files="$ac_config_files"
22537 config_headers="$ac_config_headers"
22538 config_commands="$ac_config_commands"
22542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22544 \`$as_me' instantiates files from templates according to the
22545 current configuration.
22547 Usage: $0 [OPTION]... [FILE]...
22549 -h, --help print this help, then exit
22550 -V, --version print version number and configuration settings, then exit
22551 -q, --quiet, --silent
22552 do not print progress messages
22553 -d, --debug don't remove temporary files
22554 --recheck update $as_me by reconfiguring in the same conditions
22555 --file=FILE[:TEMPLATE]
22556 instantiate the configuration file FILE
22557 --header=FILE[:TEMPLATE]
22558 instantiate the configuration header FILE
22560 Configuration files:
22563 Configuration headers:
22566 Configuration commands:
22569 Report bugs to <bug-autoconf@gnu.org>."
22572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22575 configured by $0, generated by GNU Autoconf 2.63,
22576 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22578 Copyright (C) 2008 Free Software Foundation, Inc.
22579 This config.status script is free software; the Free Software Foundation
22580 gives unlimited permission to copy, distribute and modify it."
22586 test -n "\$AWK" || AWK=awk
22589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22590 # The default lists apply if the user does not specify any file.
22596 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22597 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22608 # Handling of the options.
22609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22611 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22612 $as_echo "$ac_cs_version"; exit ;;
22613 --debug | --debu | --deb | --de | --d | -d )
22615 --file | --fil | --fi | --f )
22618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22620 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22621 ac_need_defaults=false;;
22622 --header | --heade | --head | --hea )
22625 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22627 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22628 ac_need_defaults=false;;
22630 # Conflict between --help and --header
22631 { $as_echo "$as_me: error: ambiguous option: $1
22632 Try \`$0 --help' for more information." >&2
22633 { (exit 1); exit 1; }; };;
22634 --help | --hel | -h )
22635 $as_echo "$ac_cs_usage"; exit ;;
22636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22637 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22640 # This is an error.
22641 -*) { $as_echo "$as_me: error: unrecognized option: $1
22642 Try \`$0 --help' for more information." >&2
22643 { (exit 1); exit 1; }; } ;;
22645 *) ac_config_targets="$ac_config_targets $1"
22646 ac_need_defaults=false ;;
22652 ac_configure_extra_args=
22654 if $ac_cs_silent; then
22656 ac_configure_extra_args="$ac_configure_extra_args --silent"
22660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22661 if \$ac_cs_recheck; then
22662 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22664 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22665 CONFIG_SHELL='$SHELL'
22666 export CONFIG_SHELL
22671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22676 ## Running $as_me. ##
22682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22686 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22692 # Handling of arguments.
22693 for ac_config_target in $ac_config_targets
22695 case $ac_config_target in
22696 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22697 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22698 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22699 "doc/conf/Makefile") CONFIG_FILES="$CONFIG_FILES doc/conf/Makefile" ;;
22700 "doc/sslfiles/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sslfiles/Makefile" ;;
22701 "doc/heartbeat-ra/Makefile") CONFIG_FILES="$CONFIG_FILES doc/heartbeat-ra/Makefile" ;;
22702 "l7directord/Makefile") CONFIG_FILES="$CONFIG_FILES l7directord/Makefile" ;;
22703 "l7vsd/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/Makefile" ;;
22704 "l7vsd/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/init.d/Makefile" ;;
22705 "l7vsd/module/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/Makefile" ;;
22706 "l7vsd/module/protocol/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/protocol/Makefile" ;;
22707 "l7vsd/module/schedule/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/schedule/Makefile" ;;
22708 "l7vsd/src/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/src/Makefile" ;;
22709 "snmpagent/Makefile") CONFIG_FILES="$CONFIG_FILES snmpagent/Makefile" ;;
22710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22711 "l7vsd.spec") CONFIG_FILES="$CONFIG_FILES l7vsd.spec" ;;
22713 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22714 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22715 { (exit 1); exit 1; }; };;
22720 # If the user did not use the arguments to specify the items to instantiate,
22721 # then the envvar interface is used. Set only those that are not.
22722 # We use the long form for the default assignment because of an extremely
22723 # bizarre bug on SunOS 4.1.3.
22724 if $ac_need_defaults; then
22725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22730 # Have a temporary directory for convenience. Make it in the build tree
22731 # simply because there is no reason against having it here, and in addition,
22732 # creating and moving files from /tmp can sometimes cause problems.
22733 # Hook for its removal unless debugging.
22734 # Note that there is a small window in which the directory will not be cleaned:
22735 # after its creation but before its name has been assigned to `$tmp'.
22739 trap 'exit_status=$?
22740 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22742 trap '{ (exit 1); exit 1; }' 1 2 13 15
22744 # Create a (secure) tmp directory for tmp files.
22747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22748 test -n "$tmp" && test -d "$tmp"
22751 tmp=./conf$$-$RANDOM
22752 (umask 077 && mkdir "$tmp")
22755 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22756 { (exit 1); exit 1; }
22759 # Set up the scripts for CONFIG_FILES section.
22760 # No need to generate them if there are no CONFIG_FILES.
22761 # This happens for instance with `./config.status config.h'.
22762 if test -n "$CONFIG_FILES"; then
22766 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22770 ac_cs_awk_cr=$ac_cr
22773 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22778 echo "cat >conf$$subs.awk <<_ACEOF" &&
22779 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22781 } >conf$$subs.sh ||
22782 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22783 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22784 { (exit 1); exit 1; }; }
22785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22787 for ac_last_try in false false false false false :; do
22788 . ./conf$$subs.sh ||
22789 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22790 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22791 { (exit 1); exit 1; }; }
22793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22794 if test $ac_delim_n = $ac_delim_num; then
22796 elif $ac_last_try; then
22797 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22798 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22799 { (exit 1); exit 1; }; }
22801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22804 rm -f conf$$subs.sh
22806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22807 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22811 s/^/S["/; s/!.*/"]=/
22821 s/\(.\{148\}\).*/\1/
22823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22835 s/\(.\{148\}\).*/\1/
22837 s/["\\]/\\&/g; s/^/"/; s/$/"/
22841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22846 ' <conf$$subs.awk | sed '
22851 ' >>$CONFIG_STATUS || ac_write_fail=1
22852 rm -f conf$$subs.awk
22853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22855 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22856 for (key in S) S_is_set[key] = 1
22862 nfields = split(line, field, "@")
22864 len = length(field[1])
22865 for (i = 2; i < nfields; i++) {
22867 keylen = length(key)
22868 if (S_is_set[key]) {
22870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22871 len += length(value) + length(field[++i])
22882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22887 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22888 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22889 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22890 { (exit 1); exit 1; }; }
22893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22895 # trailing colons and then remove the whole line if VPATH becomes empty
22896 # (actually we leave an empty line to preserve line numbers).
22897 if test "x$srcdir" = x.; then
22898 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22899 s/:*\$(srcdir):*/:/
22900 s/:*\${srcdir}:*/:/
22902 s/^\([^=]*=[ ]*\):*/\1/
22908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22909 fi # test -n "$CONFIG_FILES"
22911 # Set up the scripts for CONFIG_HEADERS section.
22912 # No need to generate them if there are no CONFIG_HEADERS.
22913 # This happens for instance with `./config.status Makefile'.
22914 if test -n "$CONFIG_HEADERS"; then
22915 cat >"$tmp/defines.awk" <<\_ACAWK ||
22919 # Transform confdefs.h into an awk script `defines.awk', embedded as
22920 # here-document in config.status, that substitutes the proper values into
22921 # config.h.in to produce config.h.
22923 # Create a delimiter string that does not exist in confdefs.h, to ease
22924 # handling of long lines.
22926 for ac_last_try in false false :; do
22927 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22928 if test -z "$ac_t"; then
22930 elif $ac_last_try; then
22931 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22932 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22933 { (exit 1); exit 1; }; }
22935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22939 # For the awk script, D is an array of macro values keyed by name,
22940 # likewise P contains macro parameters if any. Preserve backslash
22941 # newline sequences.
22943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22945 s/.\{148\}/&'"$ac_delim"'/g
22948 s/^[ ]*#[ ]*define[ ][ ]*/ /
22955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22962 D["\1"]=" \3\\\\\\n"\\/p
22964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22969 s/.\{148\}/&'"$ac_delim"'/g
22974 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22977 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22979 ' <confdefs.h | sed '
22980 s/'"$ac_delim"'/"\\\
22981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22984 for (key in D) D_is_set[key] = 1
22987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22989 split(line, arg, " ")
22990 if (arg[1] == "#") {
22994 defundef = substr(arg[1], 2)
22997 split(mac1, mac2, "(") #)
22999 prefix = substr(line, 1, index(line, defundef) - 1)
23000 if (D_is_set[macro]) {
23001 # Preserve the white space surrounding the "#".
23002 print prefix "define", macro P[macro] D[macro]
23005 # Replace #undef with comments. This is necessary, for example,
23006 # in the case of _POSIX_SOURCE, which is predefined and required
23007 # on some systems where configure will not decide to define it.
23008 if (defundef == "undef") {
23009 print "/*", prefix defundef, macro, "*/"
23017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23018 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23019 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23020 { (exit 1); exit 1; }; }
23021 fi # test -n "$CONFIG_HEADERS"
23024 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23029 :[FHLC]) ac_mode=$ac_tag; continue;;
23031 case $ac_mode$ac_tag in
23033 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23034 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23035 { (exit 1); exit 1; }; };;
23036 :[FH]-) ac_tag=-:-;;
23037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23054 -) ac_f="$tmp/stdin";;
23055 *) # Look for the file first in the build tree, then in the source tree
23056 # (if the path is not absolute). The absolute path cannot be DOS-style,
23057 # because $ac_f cannot contain `:'.
23061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23063 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23064 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23065 { (exit 1); exit 1; }; };;
23067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23068 ac_file_inputs="$ac_file_inputs '$ac_f'"
23071 # Let's still pretend it is `configure' which instantiates (i.e., don't
23072 # use $as_me), people would be surprised to read:
23073 # /* config.h. Generated by config.status. */
23074 configure_input='Generated from '`
23075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23077 if test x"$ac_file" != x-; then
23078 configure_input="$ac_file. $configure_input"
23079 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23080 $as_echo "$as_me: creating $ac_file" >&6;}
23082 # Neutralize special characters interpreted by sed in replacement strings.
23083 case $configure_input in #(
23084 *\&* | *\|* | *\\* )
23085 ac_sed_conf_input=`$as_echo "$configure_input" |
23086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23087 *) ac_sed_conf_input=$configure_input;;
23091 *:-:* | *:-) cat >"$tmp/stdin" \
23092 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23093 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23094 { (exit 1); exit 1; }; } ;;
23099 ac_dir=`$as_dirname -- "$ac_file" ||
23100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23101 X"$ac_file" : 'X\(//\)[^/]' \| \
23102 X"$ac_file" : 'X\(//\)$' \| \
23103 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23104 $as_echo X"$ac_file" |
23105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23109 /^X\(\/\/\)[^/].*/{
23124 -*) as_dir=./$as_dir;;
23126 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23130 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23131 *) as_qdir=$as_dir;;
23133 as_dirs="'$as_qdir' $as_dirs"
23134 as_dir=`$as_dirname -- "$as_dir" ||
23135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23136 X"$as_dir" : 'X\(//\)[^/]' \| \
23137 X"$as_dir" : 'X\(//\)$' \| \
23138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23139 $as_echo X"$as_dir" |
23140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23144 /^X\(\/\/\)[^/].*/{
23157 test -d "$as_dir" && break
23159 test -z "$as_dirs" || eval "mkdir $as_dirs"
23160 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23161 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23162 { (exit 1); exit 1; }; }; }
23166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23169 # A ".." for each directory in $ac_dir_suffix.
23170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23171 case $ac_top_builddir_sub in
23172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23176 ac_abs_top_builddir=$ac_pwd
23177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23178 # for backward compatibility:
23179 ac_top_builddir=$ac_top_build_prefix
23182 .) # We are building in place.
23184 ac_top_srcdir=$ac_top_builddir_sub
23185 ac_abs_top_srcdir=$ac_pwd ;;
23186 [\\/]* | ?:[\\/]* ) # Absolute name.
23187 ac_srcdir=$srcdir$ac_dir_suffix;
23188 ac_top_srcdir=$srcdir
23189 ac_abs_top_srcdir=$srcdir ;;
23190 *) # Relative name.
23191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23192 ac_top_srcdir=$ac_top_build_prefix$srcdir
23193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23206 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23211 # If the template does not know about datarootdir, expand it.
23212 # FIXME: This hack should be removed a few years after 2.60.
23213 ac_datarootdir_hack=; ac_datarootdir_seen=
23226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23227 *datarootdir*) ac_datarootdir_seen=yes;;
23228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23229 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23233 ac_datarootdir_hack='
23234 s&@datadir@&$datadir&g
23235 s&@docdir@&$docdir&g
23236 s&@infodir@&$infodir&g
23237 s&@localedir@&$localedir&g
23238 s&@mandir@&$mandir&g
23239 s&\\\${datarootdir}&$datarootdir&g' ;;
23243 # Neutralize VPATH when `$srcdir' = `.'.
23244 # Shell code in configure.ac might set extrasub.
23245 # FIXME: do we really want to maintain this feature?
23246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23247 ac_sed_extra="$ac_vpsub
23250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23253 s|@configure_input@|$ac_sed_conf_input|;t t
23254 s&@top_builddir@&$ac_top_builddir_sub&;t t
23255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23256 s&@srcdir@&$ac_srcdir&;t t
23257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23258 s&@top_srcdir@&$ac_top_srcdir&;t t
23259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23260 s&@builddir@&$ac_builddir&;t t
23261 s&@abs_builddir@&$ac_abs_builddir&;t t
23262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23263 s&@INSTALL@&$ac_INSTALL&;t t
23264 $ac_datarootdir_hack
23266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23269 { (exit 1); exit 1; }; }
23271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23272 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23274 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23275 which seems to be undefined. Please make sure it is defined." >&5
23276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23277 which seems to be undefined. Please make sure it is defined." >&2;}
23281 -) cat "$tmp/out" && rm -f "$tmp/out";;
23282 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23284 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23285 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23286 { (exit 1); exit 1; }; }
23292 if test x"$ac_file" != x-; then
23294 $as_echo "/* $configure_input */" \
23295 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23296 } >"$tmp/config.h" \
23297 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23298 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23299 { (exit 1); exit 1; }; }
23300 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23301 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23302 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23305 mv "$tmp/config.h" "$ac_file" \
23306 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23307 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23308 { (exit 1); exit 1; }; }
23311 $as_echo "/* $configure_input */" \
23312 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23313 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23314 $as_echo "$as_me: error: could not create -" >&2;}
23315 { (exit 1); exit 1; }; }
23317 # Compute "$ac_file"'s index in $config_headers.
23319 for _am_header in $config_headers :; do
23320 case $_am_header in
23321 "$ac_file" | "$ac_file":* )
23324 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23327 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
23328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23329 X"$ac_file" : 'X\(//\)[^/]' \| \
23330 X"$ac_file" : 'X\(//\)$' \| \
23331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23332 $as_echo X"$ac_file" |
23333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23337 /^X\(\/\/\)[^/].*/{
23349 s/.*/./; q'`/stamp-h$_am_stamp_count
23352 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23353 $as_echo "$as_me: executing $ac_file commands" >&6;}
23358 case $ac_file$ac_mode in
23359 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23360 # Strip MF so we end up with the name of the file.
23361 mf=`echo "$mf" | sed -e 's/:.*$//'`
23362 # Check whether this is an Automake generated Makefile or not.
23363 # We used to match only the files named `Makefile.in', but
23364 # some people rename them; so instead we look at the file content.
23365 # Grep'ing the first line is not enough: some people post-process
23366 # each Makefile.in and add a new line on top of each file to say so.
23367 # So let's grep whole file.
23368 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23369 dirpart=`$as_dirname -- "$mf" ||
23370 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23371 X"$mf" : 'X\(//\)[^/]' \| \
23372 X"$mf" : 'X\(//\)$' \| \
23373 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23379 /^X\(\/\/\)[^/].*/{
23395 # Extract the definition of DEPDIR, am__include, and am__quote
23396 # from the Makefile without running `make'.
23397 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23398 test -z "$DEPDIR" && continue
23399 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23400 test -z "am__include" && continue
23401 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23402 # When using ansi2knr, U may be empty or an underscore; expand it
23403 U=`sed -n 's/^U = //p' < "$mf"`
23404 # Find all dependency output files, they are included files with
23405 # $(DEPDIR) in their names. We invoke sed twice because it is the
23406 # simplest approach to changing $(DEPDIR) to its actual value in the
23408 for file in `sed -n "
23409 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23410 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23411 # Make sure the directory exists.
23412 test -f "$dirpart/$file" && continue
23413 fdir=`$as_dirname -- "$file" ||
23414 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23415 X"$file" : 'X\(//\)[^/]' \| \
23416 X"$file" : 'X\(//\)$' \| \
23417 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23418 $as_echo X"$file" |
23419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23423 /^X\(\/\/\)[^/].*/{
23436 { as_dir=$dirpart/$fdir
23438 -*) as_dir=./$as_dir;;
23440 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23445 *) as_qdir=$as_dir;;
23447 as_dirs="'$as_qdir' $as_dirs"
23448 as_dir=`$as_dirname -- "$as_dir" ||
23449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23450 X"$as_dir" : 'X\(//\)[^/]' \| \
23451 X"$as_dir" : 'X\(//\)$' \| \
23452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23453 $as_echo X"$as_dir" |
23454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23458 /^X\(\/\/\)[^/].*/{
23471 test -d "$as_dir" && break
23473 test -z "$as_dirs" || eval "mkdir $as_dirs"
23474 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23475 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23476 { (exit 1); exit 1; }; }; }
23477 # echo "creating $dirpart/$file"
23478 echo '# dummy' > "$dirpart/$file"
23487 { (exit 0); exit 0; }
23489 chmod +x $CONFIG_STATUS
23490 ac_clean_files=$ac_clean_files_save
23492 test $ac_write_fail = 0 ||
23493 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23494 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23495 { (exit 1); exit 1; }; }
23498 # configure is writing to config.log, and then calls config.status.
23499 # config.status does its own redirection, appending to config.log.
23500 # Unfortunately, on DOS this fails, as config.log is still kept open
23501 # by configure, so config.status won't be able to write to it; its
23502 # output is simply discarded. So we exec the FD to /dev/null,
23503 # effectively closing config.log, so it can be properly (re)opened and
23504 # appended to by config.status. When coming back to configure, we
23505 # need to make the FD available again.
23506 if test "$no_create" != yes; then
23508 ac_config_status_args=
23509 test "$silent" = yes &&
23510 ac_config_status_args="$ac_config_status_args --quiet"
23512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23515 # would make configure fail if this is the last instruction.
23516 $ac_cs_success || { (exit 1); exit 1; }
23518 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23519 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23520 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}