2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
652 # maybe with a smaller string...
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 # Oops. We lost completely, so just stick with echo.
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 exec 7<&0 </dev/null 6>&1
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
718 ac_unique_file="gconf/gconf.h"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
723 # include <sys/types.h>
726 # include <sys/stat.h>
737 # if !STDC_HEADERS && HAVE_MEMORY_H
743 # include <strings.h>
746 # include <inttypes.h>
764 program_transform_name
806 INSTALL_STRIP_PROGRAM
811 MAINTAINER_MODE_FALSE
873 GTK_DOC_USE_LIBTOOL_TRUE
874 GTK_DOC_USE_LIBTOOL_FALSE
880 DEPENDENT_WITH_XML_CFLAGS
881 DEPENDENT_WITH_XML_LIBS
882 DEPENDENT_WITH_GTK_CFLAGS
883 DEPENDENT_WITH_GTK_LIBS
884 DEPENDENT_WITH_XML_AND_GTK_CFLAGS
885 DEPENDENT_WITH_XML_AND_GTK_LIBS
894 INTLTOOL_DESKTOP_RULE
895 INTLTOOL_DIRECTORY_RULE
902 INTLTOOL_SOUNDLIST_RULE
907 INTLTOOL_XML_NOMERGE_RULE
909 INTLTOOL_SCHEMAS_RULE
911 INTLTOOL_SERVICE_RULE
942 ac_precious_vars='build_alias
959 DEPENDENT_WITH_XML_CFLAGS
960 DEPENDENT_WITH_XML_LIBS
961 DEPENDENT_WITH_GTK_CFLAGS
962 DEPENDENT_WITH_GTK_LIBS
963 DEPENDENT_WITH_XML_AND_GTK_CFLAGS
964 DEPENDENT_WITH_XML_AND_GTK_LIBS'
967 # Initialize some variables set by options.
969 ac_init_version=false
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
979 program_transform_name=s,x,x,
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE}'
1004 infodir='${datarootdir}/info'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074 eval enable_$ac_feature=no ;;
1076 -docdir | --docdir | --docdi | --doc | --do)
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1086 -enable-* | --enable-*)
1087 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1090 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091 { (exit 1); exit 1; }; }
1092 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1093 eval enable_$ac_feature=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1257 -site=* | --site=* | --sit=*)
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1284 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_package=`echo $ac_package| sed 's/-/_/g'`
1290 eval with_$ac_package=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package=`echo $ac_package | sed 's/-/_/g'`
1299 eval with_$ac_package=no ;;
1302 # Obsolete; use --with-x.
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) { echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 { echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1350 # Be sure to have absolute directory names.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val=\$$ac_var
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362 { (exit 1); exit 1; }; }
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1370 target=$target_alias
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377 If a cross compiler is detected then cross compile mode will be used." >&2
1378 elif test "x$build_alias" != "x$host_alias"; then
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386 test "$silent" = yes && exec 6>/dev/null
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 { echo "$as_me: error: Working directory cannot be determined" >&2
1393 { (exit 1); exit 1; }; }
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 { echo "$as_me: error: pwd does not report name of working directory" >&2
1396 { (exit 1); exit 1; }; }
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401 ac_srcdir_defaulted=yes
1402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir=`$as_dirname -- "$0" ||
1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405 X"$0" : 'X\(//\)[^/]' \| \
1406 X"$0" : 'X\(//\)$' \| \
1407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1431 ac_srcdir_defaulted=no
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1436 { (exit 1); exit 1; }; }
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1441 { (exit 1); exit 1; }; }
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures this package to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1525 --program-prefix=PREFIX prepend PREFIX to installed program names
1526 --program-suffix=SUFFIX append SUFFIX to installed program names
1527 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 if test -n "$ac_init_help"; then
1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1542 --enable-maintainer-mode enable make rules and dependencies not useful
1543 (and sometimes confusing) to the casual installer
1544 --disable-dependency-tracking Speeds up one-time builds
1545 --enable-dependency-tracking Do not reject slow dependency extractors
1546 --enable-shared[=PKGS] build shared libraries [default=yes]
1547 --enable-static[=PKGS] build static libraries [default=yes]
1548 --enable-fast-install[=PKGS]
1549 optimize for fast installation [default=yes]
1550 --disable-libtool-lock avoid locking (might break parallel builds)
1551 --enable-debug=no/yes/minimum Compile with debug checks.
1552 --enable-gtk-doc use gtk-doc to build documentation [default=no]
1553 --enable-gtk Enable GTK+ support (for gconf-sanity-check) default=auto
1554 --enable-system-bus Use the system bus instead of session bus
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-pic try to use only PIC/non-PIC objects [default=use
1562 --with-tags[=TAGS] include additional configurations [automatic]
1563 --with-sysconfsubdir directory name used under sysconfdir, default=gconf
1564 --with-html-dir=PATH path to installed docs
1565 --with-dbus-service-dir=PATH choose directory for dbus service files, default=PREFIX/share/dbus-1/services
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
1577 CXXCPP C++ preprocessor
1578 F77 Fortran 77 compiler command
1579 FFLAGS Fortran 77 compiler flags
1580 PKG_CONFIG path to pkg-config utility
1582 C compiler flags for DEPENDENT, overriding pkg-config
1584 linker flags for DEPENDENT, overriding pkg-config
1585 DEPENDENT_WITH_XML_CFLAGS
1586 C compiler flags for DEPENDENT_WITH_XML, overriding pkg-config
1587 DEPENDENT_WITH_XML_LIBS
1588 linker flags for DEPENDENT_WITH_XML, overriding pkg-config
1589 DEPENDENT_WITH_GTK_CFLAGS
1590 C compiler flags for DEPENDENT_WITH_GTK, overriding pkg-config
1591 DEPENDENT_WITH_GTK_LIBS
1592 linker flags for DEPENDENT_WITH_GTK, overriding pkg-config
1593 DEPENDENT_WITH_XML_AND_GTK_CFLAGS
1594 C compiler flags for DEPENDENT_WITH_XML_AND_GTK, overriding
1596 DEPENDENT_WITH_XML_AND_GTK_LIBS
1597 linker flags for DEPENDENT_WITH_XML_AND_GTK, overriding
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" || continue
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1630 .) # We are building in place.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1664 generated by GNU Autoconf 2.60
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1673 cat >config.log <<_ACEOF
1674 This file contains any messages produced by compilers while
1675 running configure, to aid debugging if configure makes a mistake.
1677 It was created by $as_me, which was
1678 generated by GNU Autoconf 2.60. Invocation command line was
1690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1702 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 echo "PATH: $as_dir"
1730 # Keep a trace of the command line.
1731 # Strip out --no-create and --no-recursion so they do not pile up.
1732 # Strip out --silent because we don't want to record it for future runs.
1733 # Also quote any args containing shell meta-characters.
1734 # Make two passes to allow for proper duplicate-argument suppression.
1738 ac_must_keep_next=false
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1749 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755 if test $ac_must_keep_next = true; then
1756 ac_must_keep_next=false # Got value, back to normal.
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 -* ) ac_must_keep_next=true ;;
1770 ac_configure_args="$ac_configure_args '$ac_arg'"
1775 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778 # When interrupted or exit'd, cleanup temporary files, and complete
1779 # config.log. We remove comments because anyway the quotes in there
1780 # would cause problems or look ugly.
1781 # WARNING: Use '\'' to represent an apostrophe within the trap.
1782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1783 trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
1789 ## ---------------- ##
1790 ## Cache variables. ##
1791 ## ---------------- ##
1794 # The following way of writing the cache mishandles newlines in values,
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1801 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1802 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805 _ | IFS | as_nl) ;; #(
1806 *) $as_unset $ac_var ;;
1811 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1812 *${as_nl}ac_space=\ *)
1814 "s/'\''/'\''\\\\'\'''\''/g;
1815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1826 ## ----------------- ##
1827 ## Output variables. ##
1828 ## ----------------- ##
1831 for ac_var in $ac_subst_vars
1833 eval ac_val=\$$ac_var
1835 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 echo "$ac_var='\''$ac_val'\''"
1841 if test -n "$ac_subst_files"; then
1843 ## ------------------- ##
1844 ## File substitutions. ##
1845 ## ------------------- ##
1848 for ac_var in $ac_subst_files
1850 eval ac_val=\$$ac_var
1852 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 echo "$ac_var='\''$ac_val'\''"
1859 if test -s confdefs.h; then
1869 test "$ac_signal" != 0 &&
1870 echo "$as_me: caught signal $ac_signal"
1871 echo "$as_me: exit $exit_status"
1873 rm -f core *.core core.conftest.* &&
1874 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877 for ac_signal in 1 2 13 15; do
1878 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1883 rm -f -r conftest* confdefs.h
1885 # Predefined preprocessor variables.
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_NAME "$PACKAGE_NAME"
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_STRING "$PACKAGE_STRING"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912 # Let the site file select an alternate cache file if it wants to.
1913 # Prefer explicitly selected file to automatically selected ones.
1914 if test -n "$CONFIG_SITE"; then
1915 set x "$CONFIG_SITE"
1916 elif test "x$prefix" != xNONE; then
1917 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919 set x "$ac_default_prefix/share/config.site" \
1920 "$ac_default_prefix/etc/config.site"
1925 if test -r "$ac_site_file"; then
1926 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 echo "$as_me: loading cache $cache_file" >&6;}
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941 *) . "./$cache_file";;
1945 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 echo "$as_me: creating cache $cache_file" >&6;}
1950 # Check that the precious variables saved in the cache have kept the same
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955 eval ac_new_set=\$ac_env_${ac_var}_set
1956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957 eval ac_new_val=\$ac_env_${ac_var}_value
1958 case $ac_old_set,$ac_new_set in
1960 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1969 if test "x$ac_old_val" != "x$ac_new_val"; then
1970 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1971 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1973 echo "$as_me: former value: $ac_old_val" >&2;}
1974 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1975 echo "$as_me: current value: $ac_new_val" >&2;}
1976 ac_cache_corrupted=:
1979 # Pass precious variables to config.status.
1980 if test "$ac_new_set" = set; then
1982 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 *) ac_arg=$ac_var=$ac_new_val ;;
1985 case " $ac_configure_args " in
1986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1987 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991 if $ac_cache_corrupted; then
1992 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1993 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1994 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1995 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1996 { (exit 1); exit 1; }; }
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023 ac_config_headers="$ac_config_headers config.h"
2026 am__api_version="1.7"
2028 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2029 if test -f "$ac_dir/install-sh"; then
2031 ac_install_sh="$ac_aux_dir/install-sh -c"
2033 elif test -f "$ac_dir/install.sh"; then
2035 ac_install_sh="$ac_aux_dir/install.sh -c"
2037 elif test -f "$ac_dir/shtool"; then
2039 ac_install_sh="$ac_aux_dir/shtool install -c"
2043 if test -z "$ac_aux_dir"; then
2044 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2045 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2046 { (exit 1); exit 1; }; }
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058 # Find a good install program. We prefer a C program (faster),
2059 # so one script is as good as another. But avoid the broken or
2060 # incompatible versions:
2061 # SysV /etc/install, /usr/sbin/install
2062 # SunOS /usr/etc/install
2063 # IRIX /sbin/install
2065 # AmigaOS /C/install, which installs bootblocks on floppy discs
2066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2069 # OS/2's system install, which has a completely different semantic
2070 # ./install, which can be erroneously created by make from ./install.sh.
2071 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2072 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2073 if test -z "$INSTALL"; then
2074 if test "${ac_cv_path_install+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 # Account for people who put trailing slashes in PATH elements.
2084 ./ | .// | /cC/* | \
2085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2086 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2089 # OSF1 and SCO ODT 3.0 have their own names for install.
2090 # Don't use installbsd from OSF since it installs stuff as root
2092 for ac_prog in ginstall scoinst install; do
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2095 if test $ac_prog = install &&
2096 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2097 # AIX install. It has an incompatible calling convention.
2099 elif test $ac_prog = install &&
2100 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2101 # program-specific install script used by HP pwplus--don't use.
2104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2117 if test "${ac_cv_path_install+set}" = set; then
2118 INSTALL=$ac_cv_path_install
2120 # As a last resort, use the slow shell script. Don't cache a
2121 # value for INSTALL within a source directory, because that will
2122 # break other packages using the cache if that directory is
2123 # removed, or if the value is a relative name.
2124 INSTALL=$ac_install_sh
2127 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2128 echo "${ECHO_T}$INSTALL" >&6; }
2130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2131 # It thinks the first close brace ends the variable substitution.
2132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2138 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2139 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2142 echo timestamp > conftest.file
2143 # Do `set' in a subshell so we don't clobber the current shell's
2144 # arguments. Must try -L first in case configure is actually a
2145 # symlink; some systems play weird games with the mod time of symlinks
2146 # (eg FreeBSD returns the mod time of the symlink's containing
2149 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2150 if test "$*" = "X"; then
2152 set X `ls -t $srcdir/configure conftest.file`
2155 if test "$*" != "X $srcdir/configure conftest.file" \
2156 && test "$*" != "X conftest.file $srcdir/configure"; then
2158 # If neither matched, then we have a broken ls. This can happen
2159 # if, for instance, CONFIG_SHELL is bash and it inherits a
2160 # broken ls alias from the environment. This has actually
2161 # happened. Such a system could not be considered "sane".
2162 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2163 alias in your environment" >&5
2164 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2165 alias in your environment" >&2;}
2166 { (exit 1); exit 1; }; }
2169 test "$2" = conftest.file
2175 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2176 Check your system clock" >&5
2177 echo "$as_me: error: newly created file is older than distributed files!
2178 Check your system clock" >&2;}
2179 { (exit 1); exit 1; }; }
2181 { echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6; }
2183 test "$program_prefix" != NONE &&
2184 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2185 # Use a double $ so make ignores it.
2186 test "$program_suffix" != NONE &&
2187 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2188 # Double any \ or $. echo might interpret backslashes.
2189 # By default was `s,x,x', remove it if useless.
2190 cat <<\_ACEOF >conftest.sed
2191 s/[\\$]/&&/g;s/;s,x,x,$//
2193 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2197 # expand $ac_aux_dir to an absolute path
2198 am_aux_dir=`cd $ac_aux_dir && pwd`
2200 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2201 # Use eval to expand $SHELL
2202 if eval "$MISSING --run true"; then
2203 am_missing_run="$MISSING --run "
2206 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2207 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2210 for ac_prog in gawk mawk nawk awk
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213 set dummy $ac_prog; ac_word=$2
2214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216 if test "${ac_cv_prog_AWK+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$AWK"; then
2220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 ac_cv_prog_AWK="$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 if test -n "$AWK"; then
2241 { echo "$as_me:$LINENO: result: $AWK" >&5
2242 echo "${ECHO_T}$AWK" >&6; }
2244 { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2249 test -n "$AWK" && break
2252 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2253 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2254 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2255 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 cat >conftest.make <<\_ACEOF
2261 @echo '@@@%%%=$(MAKE)=@@@%%%'
2263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2264 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266 eval ac_cv_prog_make_${ac_make}_set=yes;;
2268 eval ac_cv_prog_make_${ac_make}_set=no;;
2272 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2273 { echo "$as_me:$LINENO: result: yes" >&5
2274 echo "${ECHO_T}yes" >&6; }
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 SET_MAKE="MAKE=${MAKE-make}"
2282 rm -rf .tst 2>/dev/null
2283 mkdir .tst 2>/dev/null
2284 if test -d .tst; then
2289 rmdir .tst 2>/dev/null
2291 # test to see if srcdir already configured
2292 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2293 test -f $srcdir/config.status; then
2294 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2295 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2296 { (exit 1); exit 1; }; }
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301 if (cygpath --version) >/dev/null 2>/dev/null; then
2302 CYGPATH_W='cygpath -w'
2309 # Define the identity of the package.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2323 # Some tools Automake needs.
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2340 AMTAR=${AMTAR-"${am_missing_run}tar"}
2342 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2344 # Installed binaries are usually stripped using `strip' when the user
2345 # run `make install-strip'. However `strip' might not be the right
2346 # tool to use in cross-compilation environments, therefore Automake
2347 # will honor the `STRIP' environment variable to overrule this program.
2348 if test "$cross_compiling" != no; then
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}strip; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_STRIP+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 STRIP=$ac_cv_prog_STRIP
2378 if test -n "$STRIP"; then
2379 { echo "$as_me:$LINENO: result: $STRIP" >&5
2380 echo "${ECHO_T}$STRIP" >&6; }
2382 { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2388 if test -z "$ac_cv_prog_STRIP"; then
2390 # Extract the first word of "strip", so it can be a program name with args.
2391 set dummy strip; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$ac_ct_STRIP"; then
2398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_ac_ct_STRIP="strip"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2418 if test -n "$ac_ct_STRIP"; then
2419 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2420 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2426 if test "x$ac_ct_STRIP" = x; then
2429 case $cross_compiling:$ac_tool_warned in
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2442 STRIP="$ac_cv_prog_STRIP"
2446 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2448 # We need awk for the "check" target. The system "awk" is bad on
2454 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2455 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2456 # Check whether --enable-maintainer-mode was given.
2457 if test "${enable_maintainer_mode+set}" = set; then
2458 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2460 USE_MAINTAINER_MODE=no
2463 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2464 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2467 if test $USE_MAINTAINER_MODE = yes; then
2468 MAINTAINER_MODE_TRUE=
2469 MAINTAINER_MODE_FALSE='#'
2471 MAINTAINER_MODE_TRUE='#'
2472 MAINTAINER_MODE_FALSE=
2475 MAINT=$MAINTAINER_MODE_TRUE
2479 # Make sure we can run config.sub.
2480 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2481 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2482 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2483 { (exit 1); exit 1; }; }
2485 { echo "$as_me:$LINENO: checking build system type" >&5
2486 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2487 if test "${ac_cv_build+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 ac_build_alias=$build_alias
2491 test "x$ac_build_alias" = x &&
2492 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2493 test "x$ac_build_alias" = x &&
2494 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2495 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2496 { (exit 1); exit 1; }; }
2497 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2498 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2499 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2500 { (exit 1); exit 1; }; }
2503 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2504 echo "${ECHO_T}$ac_cv_build" >&6; }
2505 case $ac_cv_build in
2507 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2508 echo "$as_me: error: invalid value of canonical build" >&2;}
2509 { (exit 1); exit 1; }; };;
2512 ac_save_IFS=$IFS; IFS='-'
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2525 { echo "$as_me:$LINENO: checking host system type" >&5
2526 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2527 if test "${ac_cv_host+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test "x$host_alias" = x; then
2531 ac_cv_host=$ac_cv_build
2533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2534 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2535 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2536 { (exit 1); exit 1; }; }
2540 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2541 echo "${ECHO_T}$ac_cv_host" >&6; }
2544 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2545 echo "$as_me: error: invalid value of canonical host" >&2;}
2546 { (exit 1); exit 1; }; };;
2549 ac_save_IFS=$IFS; IFS='-'
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2559 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2573 if test "$os_win32" = "yes"; then
2582 if test "$os_win32" = "yes"; then
2583 if test x$enable_static = xyes -o x$enable_static = x; then
2584 { echo "$as_me:$LINENO: WARNING: Disabling static library build, must build as DLL on Windows." >&5
2585 echo "$as_me: WARNING: Disabling static library build, must build as DLL on Windows." >&2;}
2588 if test x$enable_shared = xno; then
2589 { echo "$as_me:$LINENO: WARNING: Enabling shared library build, must build as DLL on Windows." >&5
2590 echo "$as_me: WARNING: Enabling shared library build, must build as DLL on Windows." >&2;}
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 if test -n "$CC"; then
2630 { echo "$as_me:$LINENO: result: $CC" >&5
2631 echo "${ECHO_T}$CC" >&6; }
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2639 if test -z "$ac_cv_prog_CC"; then
2641 # Extract the first word of "gcc", so it can be a program name with args.
2642 set dummy gcc; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_CC="gcc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2671 echo "${ECHO_T}$ac_ct_CC" >&6; }
2673 { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2677 if test "x$ac_ct_CC" = x; then
2680 case $cross_compiling:$ac_tool_warned in
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2696 if test -z "$CC"; then
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}cc; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_CC="${ac_tool_prefix}cc"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test -n "$CC"; then
2727 { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2737 if test -z "$CC"; then
2738 # Extract the first word of "cc", so it can be a program name with args.
2739 set dummy cc; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2757 ac_prog_rejected=yes
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test $ac_prog_rejected = yes; then
2769 # We found a bogon in the path, so make sure we never use it.
2770 set dummy $ac_cv_prog_CC
2772 if test $# != 0; then
2773 # We chose a different compiler from the bogus one.
2774 # However, it has the same basename, so the bogon will be chosen
2775 # first if we set CC to just the basename; use the full file name.
2777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2783 if test -n "$CC"; then
2784 { echo "$as_me:$LINENO: result: $CC" >&5
2785 echo "${ECHO_T}$CC" >&6; }
2787 { echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6; }
2793 if test -z "$CC"; then
2794 if test -n "$ac_tool_prefix"; then
2795 for ac_prog in cl.exe
2797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 if test -n "$CC"; then
2826 { echo "$as_me:$LINENO: result: $CC" >&5
2827 echo "${ECHO_T}$CC" >&6; }
2829 { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2834 test -n "$CC" && break
2837 if test -z "$CC"; then
2839 for ac_prog in cl.exe
2841 # Extract the first word of "$ac_prog", so it can be a program name with args.
2842 set dummy $ac_prog; ac_word=$2
2843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CC="$ac_prog"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6; }
2873 { echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6; }
2878 test -n "$ac_ct_CC" && break
2881 if test "x$ac_ct_CC" = x; then
2884 case $cross_compiling:$ac_tool_warned in
2886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887 whose name does not start with the host triplet. If you think this
2888 configuration is useful to you, please write to autoconf@gnu.org." >&5
2889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet. If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2892 ac_tool_warned=yes ;;
2901 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2907 # Provide some information about the compiler.
2908 echo "$as_me:$LINENO: checking for C compiler version" >&5
2909 ac_compiler=`set X $ac_compile; echo $2`
2910 { (ac_try="$ac_compiler --version >&5"
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compiler --version >&5") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }
2920 { (ac_try="$ac_compiler -v >&5"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler -v >&5") 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -V >&5"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -V >&5") 2>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2961 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2962 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2963 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965 # List of possible output files, starting from the most likely.
2966 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2967 # only as a last resort. b.out is created by i960 compilers.
2968 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2970 # The IRIX 6 linker writes into existing files which may not be
2971 # executable, retaining their permissions. Remove them first so a
2972 # subsequent execution test works.
2974 for ac_file in $ac_files
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2983 if { (ac_try="$ac_link_default"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_link_default") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; then
2993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2994 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2995 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2996 # so that the user can short-circuit this test for compilers unknown to
2998 for ac_file in $ac_files
3000 test -f "$ac_file" || continue
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3005 # We found the default executable, but exeext='' is most
3009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3011 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013 # We set ac_cv_exeext here because the later test for it is not
3014 # safe: cross compilers may not add the suffix if given an `-o'
3015 # argument, so we may need to know it at that point already.
3016 # Even if this section looks crufty: it has the advantage of
3023 test "$ac_cv_exeext" = no && ac_cv_exeext=
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&2;}
3033 { (exit 77); exit 77; }; }
3036 ac_exeext=$ac_cv_exeext
3037 { echo "$as_me:$LINENO: result: $ac_file" >&5
3038 echo "${ECHO_T}$ac_file" >&6; }
3040 # Check that the compiler produces executables we can run. If not, either
3041 # the compiler is broken, or we cross compile.
3042 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3043 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3044 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3045 # If not cross compiling, check that we can run a simple program.
3046 if test "$cross_compiling" != yes; then
3047 if { ac_try='./$ac_file'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 if test "$cross_compiling" = maybe; then
3062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details." >&5
3065 echo "$as_me: error: cannot run C compiled programs.
3066 If you meant to cross compile, use \`--host'.
3067 See \`config.log' for more details." >&2;}
3068 { (exit 1); exit 1; }; }
3072 { echo "$as_me:$LINENO: result: yes" >&5
3073 echo "${ECHO_T}yes" >&6; }
3075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3076 ac_clean_files=$ac_clean_files_save
3077 # Check that the compiler produces executables we can run. If not, either
3078 # the compiler is broken, or we cross compile.
3079 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3081 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3082 echo "${ECHO_T}$cross_compiling" >&6; }
3084 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3086 if { (ac_try="$ac_link"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_link") 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; then
3096 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3097 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3098 # work properly (i.e., refer to `conftest.exe'), while it won't with
3100 for ac_file in conftest.exe conftest conftest.*; do
3101 test -f "$ac_file" || continue
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3104 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&5
3112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3113 See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }
3117 rm -f conftest$ac_cv_exeext
3118 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3119 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3121 rm -f conftest.$ac_ext
3122 EXEEXT=$ac_cv_exeext
3124 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3125 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3126 if test "${ac_cv_objext+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3144 rm -f conftest.o conftest.obj
3145 if { (ac_try="$ac_compile"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; then
3155 for ac_file in conftest.o conftest.obj conftest.*; do
3156 test -f "$ac_file" || continue;
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3170 See \`config.log' for more details." >&2;}
3171 { (exit 1); exit 1; }; }
3174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3176 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3177 echo "${ECHO_T}$ac_cv_objext" >&6; }
3178 OBJEXT=$ac_cv_objext
3180 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3181 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3182 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_try") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest.$ac_objext'
3228 { (case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_try") 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3249 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3250 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3251 GCC=`test $ac_compiler_gnu = yes && echo yes`
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3255 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_g+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3293 { (case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_try") 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; } &&
3302 { ac_try='test -s conftest.$ac_objext'
3303 { (case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_try") 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3404 { (case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_try") 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_try") 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_c_werror_flag=$ac_save_c_werror_flag
3440 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3441 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3442 if test "$ac_test_CFLAGS" = set; then
3443 CFLAGS=$ac_save_CFLAGS
3444 elif test $ac_cv_prog_cc_g = yes; then
3445 if test "$GCC" = yes; then
3451 if test "$GCC" = yes; then
3457 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3458 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3459 if test "${ac_cv_prog_cc_c89+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 ac_cv_prog_cc_c89=no
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3472 #include <sys/types.h>
3473 #include <sys/stat.h>
3474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3475 struct buf { int x; };
3476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3477 static char *e (p, i)
3483 static char *f (char * (*g) (char **, int), char **p, ...)
3488 s = g (p, va_arg (v,int));
3493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3494 function prototypes and stuff, but not '\xHH' hex character constants.
3495 These don't provoke an error unfortunately, instead are silently treated
3496 as 'x'. The following induces an error, until -std is added to get
3497 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3498 array size at least. It's necessary to write '\x00'==0 to get something
3499 that's true only with -std. */
3500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3503 inside strings and character constants. */
3505 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3507 int test (int i, double x);
3508 struct s1 {int (*f) (int a);};
3509 struct s2 {int (*f) (double a);};
3510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3516 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3522 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3524 CC="$ac_save_CC $ac_arg"
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3540 { (case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_try") 2>&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_try") 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_prog_cc_c89=$ac_arg
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3567 rm -f core conftest.err conftest.$ac_objext
3568 test "x$ac_cv_prog_cc_c89" != "xno" && break
3570 rm -f conftest.$ac_ext
3575 case "x$ac_cv_prog_cc_c89" in
3577 { echo "$as_me:$LINENO: result: none needed" >&5
3578 echo "${ECHO_T}none needed" >&6; } ;;
3580 { echo "$as_me:$LINENO: result: unsupported" >&5
3581 echo "${ECHO_T}unsupported" >&6; } ;;
3583 CC="$CC $ac_cv_prog_cc_c89"
3584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3585 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 DEPDIR="${am__leading_dot}deps"
3596 ac_config_commands="$ac_config_commands depfiles"
3599 am_make=${MAKE-make}
3600 cat > confinc << 'END'
3605 # If we don't find an include directive, just comment out the code.
3606 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3607 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3611 # First try GNU make style include.
3612 echo "include confinc" > confmf
3613 # We grep out `Entering directory' and `Leaving directory'
3614 # messages which can occur if `w' ends up in MAKEFLAGS.
3615 # In particular we don't look at `^make:' because GNU make might
3616 # be invoked under some other name (usually "gmake"), in which
3617 # case it prints its new name instead of `make'.
3618 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3623 # Now try BSD make style include.
3624 if test "$am__include" = "#"; then
3625 echo '.include "confinc"' > confmf
3626 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3627 am__include=.include
3634 { echo "$as_me:$LINENO: result: $_am_result" >&5
3635 echo "${ECHO_T}$_am_result" >&6; }
3636 rm -f confinc confmf
3638 # Check whether --enable-dependency-tracking was given.
3639 if test "${enable_dependency_tracking+set}" = set; then
3640 enableval=$enable_dependency_tracking;
3643 if test "x$enable_dependency_tracking" != xno; then
3644 am_depcomp="$ac_aux_dir/depcomp"
3649 if test "x$enable_dependency_tracking" != xno; then
3660 depcc="$CC" am_compiler_list=
3662 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3663 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3664 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3668 # We make a subdir and do the tests there. Otherwise we can end up
3669 # making bogus files that we don't know about and never remove. For
3670 # instance it was reported that on HP-UX the gcc test will end up
3671 # making a dummy file named `D' -- because `-MD' means `put the output
3674 # Copy depcomp to subdir because otherwise we won't find it if we're
3675 # using a relative directory.
3676 cp "$am_depcomp" conftest.dir
3678 # We will build objects and dependencies in a subdirectory because
3679 # it helps to detect inapplicable dependency modes. For instance
3680 # both Tru64's cc and ICC support -MD to output dependencies as a
3681 # side effect of compilation, but ICC will put the dependencies in
3682 # the current directory while Tru64 will put them in the object
3686 am_cv_CC_dependencies_compiler_type=none
3687 if test "$am_compiler_list" = ""; then
3688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3690 for depmode in $am_compiler_list; do
3691 # Setup a source with many dependencies, because some compilers
3692 # like to wrap large dependency lists on column 80 (with \), and
3693 # we should not choose a depcomp mode which is confused by this.
3695 # We need to recreate these files for each test, as the compiler may
3696 # overwrite some of them when testing with obscure command lines.
3697 # This happens at least with the AIX C compiler.
3699 for i in 1 2 3 4 5 6; do
3700 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3703 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3707 # after this tag, mechanisms are not by side-effect, so they'll
3708 # only be used when explicitly requested
3709 if test "x$enable_dependency_tracking" = xyes; then
3717 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3718 # mode. It turns out that the SunPro C++ compiler does not properly
3719 # handle `-M -o', and we need to detect this.
3720 if depmode=$depmode \
3721 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3723 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3724 >/dev/null 2>conftest.err &&
3725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3726 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3728 # icc doesn't choke on unknown options, it will just issue warnings
3729 # (even with -Werror). So we grep stderr for any message
3730 # that says an option was ignored.
3731 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3732 am_cv_CC_dependencies_compiler_type=$depmode
3741 am_cv_CC_dependencies_compiler_type=none
3745 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3746 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3752 test "x$enable_dependency_tracking" != xno \
3753 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3755 am__fastdepCC_FALSE='#'
3757 am__fastdepCC_TRUE='#'
3758 am__fastdepCC_FALSE=
3763 ac_cpp='$CXXCPP $CPPFLAGS'
3764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3767 if test -z "$CXX"; then
3768 if test -n "$CCC"; then
3771 if test -n "$ac_tool_prefix"; then
3772 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_CXX+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test -n "$CXX"; then
3782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 if test -n "$CXX"; then
3803 { echo "$as_me:$LINENO: result: $CXX" >&5
3804 echo "${ECHO_T}$CXX" >&6; }
3806 { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3811 test -n "$CXX" && break
3814 if test -z "$CXX"; then
3816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3822 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 if test -n "$ac_ct_CXX"; then
3826 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_ac_ct_CXX="$ac_prog"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3846 if test -n "$ac_ct_CXX"; then
3847 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3848 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3850 { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3855 test -n "$ac_ct_CXX" && break
3858 if test "x$ac_ct_CXX" = x; then
3861 case $cross_compiling:$ac_tool_warned in
3863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3864 whose name does not start with the host triplet. If you think this
3865 configuration is useful to you, please write to autoconf@gnu.org." >&5
3866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3867 whose name does not start with the host triplet. If you think this
3868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3869 ac_tool_warned=yes ;;
3877 # Provide some information about the compiler.
3878 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3879 ac_compiler=`set X $ac_compile; echo $2`
3880 { (ac_try="$ac_compiler --version >&5"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compiler --version >&5") 2>&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }
3890 { (ac_try="$ac_compiler -v >&5"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compiler -v >&5") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }
3900 { (ac_try="$ac_compiler -V >&5"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_compiler -V >&5") 2>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }
3911 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3912 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3913 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3980 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3981 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3982 GXX=`test $ac_compiler_gnu = yes && echo yes`
3983 ac_test_CXXFLAGS=${CXXFLAGS+set}
3984 ac_save_CXXFLAGS=$CXXFLAGS
3985 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3986 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3987 if test "${ac_cv_prog_cxx_g+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3991 ac_cxx_werror_flag=yes
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4009 rm -f conftest.$ac_objext
4010 if { (ac_try="$ac_compile"
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_compile") 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } &&
4023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4024 { (case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_try") 2>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039 (eval "$ac_try") 2>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_cv_prog_cxx_g=yes
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1 >conftest.err
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4120 rm -f conftest.$ac_objext
4121 if { (ac_try="$ac_compile"
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_compile") 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; } &&
4144 { ac_try='test -s conftest.$ac_objext'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_cv_prog_cxx_g=yes
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4172 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4173 if test "$ac_test_CXXFLAGS" = set; then
4174 CXXFLAGS=$ac_save_CXXFLAGS
4175 elif test $ac_cv_prog_cxx_g = yes; then
4176 if test "$GXX" = yes; then
4182 if test "$GXX" = yes; then
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 depcc="$CXX" am_compiler_list=
4196 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4197 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4198 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4202 # We make a subdir and do the tests there. Otherwise we can end up
4203 # making bogus files that we don't know about and never remove. For
4204 # instance it was reported that on HP-UX the gcc test will end up
4205 # making a dummy file named `D' -- because `-MD' means `put the output
4208 # Copy depcomp to subdir because otherwise we won't find it if we're
4209 # using a relative directory.
4210 cp "$am_depcomp" conftest.dir
4212 # We will build objects and dependencies in a subdirectory because
4213 # it helps to detect inapplicable dependency modes. For instance
4214 # both Tru64's cc and ICC support -MD to output dependencies as a
4215 # side effect of compilation, but ICC will put the dependencies in
4216 # the current directory while Tru64 will put them in the object
4220 am_cv_CXX_dependencies_compiler_type=none
4221 if test "$am_compiler_list" = ""; then
4222 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4224 for depmode in $am_compiler_list; do
4225 # Setup a source with many dependencies, because some compilers
4226 # like to wrap large dependency lists on column 80 (with \), and
4227 # we should not choose a depcomp mode which is confused by this.
4229 # We need to recreate these files for each test, as the compiler may
4230 # overwrite some of them when testing with obscure command lines.
4231 # This happens at least with the AIX C compiler.
4233 for i in 1 2 3 4 5 6; do
4234 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4241 # after this tag, mechanisms are not by side-effect, so they'll
4242 # only be used when explicitly requested
4243 if test "x$enable_dependency_tracking" = xyes; then
4251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4252 # mode. It turns out that the SunPro C++ compiler does not properly
4253 # handle `-M -o', and we need to detect this.
4254 if depmode=$depmode \
4255 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4257 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4258 >/dev/null 2>conftest.err &&
4259 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4260 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4261 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4262 # icc doesn't choke on unknown options, it will just issue warnings
4263 # (even with -Werror). So we grep stderr for any message
4264 # that says an option was ignored.
4265 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4266 am_cv_CXX_dependencies_compiler_type=$depmode
4275 am_cv_CXX_dependencies_compiler_type=none
4279 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4280 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4281 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4286 test "x$enable_dependency_tracking" != xno \
4287 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4288 am__fastdepCXX_TRUE=
4289 am__fastdepCXX_FALSE='#'
4291 am__fastdepCXX_TRUE='#'
4292 am__fastdepCXX_FALSE=
4297 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4298 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4299 if test "${ac_cv_search_strerror+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 ac_func_search_save_LIBS=$LIBS
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4310 /* Override any GCC internal prototype to avoid an error.
4311 Use char because int might match the return type of a GCC
4312 builtin and then its argument prototype would still apply. */
4325 for ac_lib in '' cposix; do
4326 if test -z "$ac_lib"; then
4327 ac_res="none required"
4330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4332 rm -f conftest.$ac_objext conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest$ac_exeext'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_search_strerror=$ac_res
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4374 rm -f core conftest.err conftest.$ac_objext \
4376 if test "${ac_cv_search_strerror+set}" = set; then
4380 if test "${ac_cv_search_strerror+set}" = set; then
4383 ac_cv_search_strerror=no
4386 LIBS=$ac_func_search_save_LIBS
4388 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4389 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4390 ac_res=$ac_cv_search_strerror
4391 if test "$ac_res" != no; then
4392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4399 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4400 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4401 if test "${am_cv_prog_cc_stdc+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 am_cv_prog_cc_stdc=no
4406 # Don't try gcc -ansi; that turns off useful extensions and
4407 # breaks some systems' header files.
4408 # AIX -qlanglvl=ansi
4409 # Ultrix and OSF/1 -std1
4410 # HP-UX 10.20 and later -Ae
4411 # HP-UX older versions -Aa -D_HPUX_SOURCE
4412 # SVR4 -Xc -D__EXTENSIONS__
4413 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4415 CC="$ac_save_CC $ac_arg"
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4424 #include <sys/types.h>
4425 #include <sys/stat.h>
4426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4427 struct buf { int x; };
4428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4429 static char *e (p, i)
4435 static char *f (char * (*g) (char **, int), char **p, ...)
4440 s = g (p, va_arg (v,int));
4444 int test (int i, double x);
4445 struct s1 {int (*f) (int a);};
4446 struct s2 {int (*f) (double a);};
4447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4476 { (case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_try") 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_try") 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 am_cv_prog_cc_stdc="$ac_arg"; break
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 if test -z "$am_cv_prog_cc_stdc"; then
4510 { echo "$as_me:$LINENO: result: none needed" >&5
4511 echo "${ECHO_T}none needed" >&6; }
4513 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4514 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4516 case "x$am_cv_prog_cc_stdc" in
4518 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4528 # On Suns, sometimes $CPP names a directory.
4529 if test -n "$CPP" && test -d "$CPP"; then
4532 if test -z "$CPP"; then
4533 if test "${ac_cv_prog_CPP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 # Double quotes because CPP needs to be expanded
4537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4540 for ac_c_preproc_warn_flag in '' yes
4542 # Use a header file that comes with gcc, so configuring glibc
4543 # with a fresh cross-compiler works.
4544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545 # <limits.h> exists even on freestanding compilers.
4546 # On the NeXT, cc -E runs the code through the compiler's parser,
4547 # not just through cpp. "Syntax error" is here to catch this case.
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4555 # include <limits.h>
4557 # include <assert.h>
4561 if { (ac_try="$ac_cpp conftest.$ac_ext"
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4569 grep -v '^ *+' conftest.er1 >conftest.err
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } >/dev/null; then
4574 if test -s conftest.err; then
4575 ac_cpp_err=$ac_c_preproc_warn_flag
4576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4583 if test -z "$ac_cpp_err"; then
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 # Broken: fails on valid input.
4593 rm -f conftest.err conftest.$ac_ext
4595 # OK, works on sane cases. Now check whether nonexistent headers
4596 # can be detected and how.
4597 cat >conftest.$ac_ext <<_ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 #include <ac_nonexistent.h>
4605 if { (ac_try="$ac_cpp conftest.$ac_ext"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } >/dev/null; then
4618 if test -s conftest.err; then
4619 ac_cpp_err=$ac_c_preproc_warn_flag
4620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4627 if test -z "$ac_cpp_err"; then
4628 # Broken: success on invalid input.
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 # Passes both tests.
4639 rm -f conftest.err conftest.$ac_ext
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.err conftest.$ac_ext
4644 if $ac_preproc_ok; then
4656 { echo "$as_me:$LINENO: result: $CPP" >&5
4657 echo "${ECHO_T}$CPP" >&6; }
4659 for ac_c_preproc_warn_flag in '' yes
4661 # Use a header file that comes with gcc, so configuring glibc
4662 # with a fresh cross-compiler works.
4663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664 # <limits.h> exists even on freestanding compilers.
4665 # On the NeXT, cc -E runs the code through the compiler's parser,
4666 # not just through cpp. "Syntax error" is here to catch this case.
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 # include <limits.h>
4676 # include <assert.h>
4680 if { (ac_try="$ac_cpp conftest.$ac_ext"
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } >/dev/null; then
4693 if test -s conftest.err; then
4694 ac_cpp_err=$ac_c_preproc_warn_flag
4695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4702 if test -z "$ac_cpp_err"; then
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 # Broken: fails on valid input.
4712 rm -f conftest.err conftest.$ac_ext
4714 # OK, works on sane cases. Now check whether nonexistent headers
4715 # can be detected and how.
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 #include <ac_nonexistent.h>
4724 if { (ac_try="$ac_cpp conftest.$ac_ext"
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } >/dev/null; then
4737 if test -s conftest.err; then
4738 ac_cpp_err=$ac_c_preproc_warn_flag
4739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4746 if test -z "$ac_cpp_err"; then
4747 # Broken: success on invalid input.
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 # Passes both tests.
4758 rm -f conftest.err conftest.$ac_ext
4761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4762 rm -f conftest.err conftest.$ac_ext
4763 if $ac_preproc_ok; then
4766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4767 See \`config.log' for more details." >&5
4768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4769 See \`config.log' for more details." >&2;}
4770 { (exit 1); exit 1; }; }
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4781 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_GREP+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 # Extract the first word of "grep ggrep" to use in msg output
4786 if test -z "$GREP"; then
4787 set dummy grep ggrep; ac_prog_name=$2
4788 if test "${ac_cv_path_GREP+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 ac_path_GREP_found=false
4792 # Loop through the user's path and test for each of PROGNAME-LIST
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4797 test -z "$as_dir" && as_dir=.
4798 for ac_prog in grep ggrep; do
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4801 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4802 # Check for GNU ac_path_GREP and select it if it is found.
4803 # Check for GNU $ac_path_GREP
4804 case `"$ac_path_GREP" --version 2>&1` in
4806 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4809 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4812 cat "conftest.in" "conftest.in" >"conftest.tmp"
4813 mv "conftest.tmp" "conftest.in"
4814 cp "conftest.in" "conftest.nl"
4815 echo 'GREP' >> "conftest.nl"
4816 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818 ac_count=`expr $ac_count + 1`
4819 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4820 # Best one so far, save it but keep looking for a better one
4821 ac_cv_path_GREP="$ac_path_GREP"
4822 ac_path_GREP_max=$ac_count
4824 # 10*(2^10) chars as input seems more than enough
4825 test $ac_count -gt 10 && break
4827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 $ac_path_GREP_found && break 3
4841 GREP="$ac_cv_path_GREP"
4842 if test -z "$GREP"; then
4843 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4844 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4845 { (exit 1); exit 1; }; }
4849 ac_cv_path_GREP=$GREP
4854 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4855 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4856 GREP="$ac_cv_path_GREP"
4859 { echo "$as_me:$LINENO: checking for egrep" >&5
4860 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_EGREP+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4865 then ac_cv_path_EGREP="$GREP -E"
4867 # Extract the first word of "egrep" to use in msg output
4868 if test -z "$EGREP"; then
4869 set dummy egrep; ac_prog_name=$2
4870 if test "${ac_cv_path_EGREP+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 ac_path_EGREP_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4879 test -z "$as_dir" && as_dir=.
4880 for ac_prog in egrep; do
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4883 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4884 # Check for GNU ac_path_EGREP and select it if it is found.
4885 # Check for GNU $ac_path_EGREP
4886 case `"$ac_path_EGREP" --version 2>&1` in
4888 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4891 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4894 cat "conftest.in" "conftest.in" >"conftest.tmp"
4895 mv "conftest.tmp" "conftest.in"
4896 cp "conftest.in" "conftest.nl"
4897 echo 'EGREP' >> "conftest.nl"
4898 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4900 ac_count=`expr $ac_count + 1`
4901 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4902 # Best one so far, save it but keep looking for a better one
4903 ac_cv_path_EGREP="$ac_path_EGREP"
4904 ac_path_EGREP_max=$ac_count
4906 # 10*(2^10) chars as input seems more than enough
4907 test $ac_count -gt 10 && break
4909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4913 $ac_path_EGREP_found && break 3
4923 EGREP="$ac_cv_path_EGREP"
4924 if test -z "$EGREP"; then
4925 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4926 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4927 { (exit 1); exit 1; }; }
4931 ac_cv_path_EGREP=$EGREP
4937 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4938 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4939 EGREP="$ac_cv_path_EGREP"
4942 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4943 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4944 if test "${ac_cv_header_stdc+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4981 { (case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_try") 2>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_try") 2>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 ac_cv_header_stdc=yes
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_header_stdc=no
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 if test $ac_cv_header_stdc = yes; then
5011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5022 $EGREP "memchr" >/dev/null 2>&1; then
5025 ac_cv_header_stdc=no
5031 if test $ac_cv_header_stdc = yes; then
5032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043 $EGREP "free" >/dev/null 2>&1; then
5046 ac_cv_header_stdc=no
5052 if test $ac_cv_header_stdc = yes; then
5053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5054 if test "$cross_compiling" = yes; then
5057 cat >conftest.$ac_ext <<_ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5065 #if ((' ' & 0x0FF) == 0x020)
5066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5069 # define ISLOWER(c) \
5070 (('a' <= (c) && (c) <= 'i') \
5071 || ('j' <= (c) && (c) <= 'r') \
5072 || ('s' <= (c) && (c) <= 'z'))
5073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5081 for (i = 0; i < 256; i++)
5082 if (XOR (islower (i), ISLOWER (i))
5083 || toupper (i) != TOUPPER (i))
5088 rm -f conftest$ac_exeext
5089 if { (ac_try="$ac_link"
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_link") 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5099 { (case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_try") 2>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5110 echo "$as_me: program exited with status $ac_status" >&5
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_cv_header_stdc=no
5117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5123 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5124 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5125 if test $ac_cv_header_stdc = yes; then
5127 cat >>confdefs.h <<\_ACEOF
5128 #define STDC_HEADERS 1
5136 # Check whether --enable-shared was given.
5137 if test "${enable_shared+set}" = set; then
5138 enableval=$enable_shared; p=${PACKAGE-default}
5140 yes) enable_shared=yes ;;
5141 no) enable_shared=no ;;
5144 # Look at the argument we got. We use all the common list separators.
5145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5146 for pkg in $enableval; do
5148 if test "X$pkg" = "X$p"; then
5160 # Check whether --enable-static was given.
5161 if test "${enable_static+set}" = set; then
5162 enableval=$enable_static; p=${PACKAGE-default}
5164 yes) enable_static=yes ;;
5165 no) enable_static=no ;;
5168 # Look at the argument we got. We use all the common list separators.
5169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5170 for pkg in $enableval; do
5172 if test "X$pkg" = "X$p"; then
5184 # Check whether --enable-fast-install was given.
5185 if test "${enable_fast_install+set}" = set; then
5186 enableval=$enable_fast_install; p=${PACKAGE-default}
5188 yes) enable_fast_install=yes ;;
5189 no) enable_fast_install=no ;;
5191 enable_fast_install=no
5192 # Look at the argument we got. We use all the common list separators.
5193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5194 for pkg in $enableval; do
5196 if test "X$pkg" = "X$p"; then
5197 enable_fast_install=yes
5204 enable_fast_install=yes
5208 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5209 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5210 if test "${lt_cv_path_SED+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 # Loop through the user's path and test for sed and gsed.
5214 # Then use that list of sed's as ones to test for truncation.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for lt_ac_prog in sed gsed; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5223 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5230 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5231 # along with /bin/sed that truncates output.
5232 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5233 test ! -f $lt_ac_sed && continue
5234 cat /dev/null > conftest.in
5236 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5237 # Check for GNU sed and select it if it is found.
5238 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5239 lt_cv_path_SED=$lt_ac_sed
5243 cat conftest.in conftest.in >conftest.tmp
5244 mv conftest.tmp conftest.in
5245 cp conftest.in conftest.nl
5247 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5248 cmp -s conftest.out conftest.nl || break
5249 # 10000 chars as input seems more than enough
5250 test $lt_ac_count -gt 10 && break
5251 lt_ac_count=`expr $lt_ac_count + 1`
5252 if test $lt_ac_count -gt $lt_ac_max; then
5253 lt_ac_max=$lt_ac_count
5254 lt_cv_path_SED=$lt_ac_sed
5262 { echo "$as_me:$LINENO: result: $SED" >&5
5263 echo "${ECHO_T}$SED" >&6; }
5266 # Check whether --with-gnu-ld was given.
5267 if test "${with_gnu_ld+set}" = set; then
5268 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5274 if test "$GCC" = yes; then
5275 # Check if gcc -print-prog-name=ld gives a path.
5276 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5280 # gcc leaves a trailing carriage return which upsets mingw
5281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5286 # Accept absolute paths.
5288 re_direlt='/[^/][^/]*/\.\./'
5289 # Canonicalize the pathname of ld
5290 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5291 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5292 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5294 test -z "$LD" && LD="$ac_prog"
5297 # If it fails, then pretend we aren't using GCC.
5301 # If it is relative, then search for the first ld in PATH.
5305 elif test "$with_gnu_ld" = yes; then
5306 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5309 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5312 if test "${lt_cv_path_LD+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 if test -z "$LD"; then
5316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5317 for ac_dir in $PATH; do
5319 test -z "$ac_dir" && ac_dir=.
5320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5321 lt_cv_path_LD="$ac_dir/$ac_prog"
5322 # Check to see if the program is GNU ld. I'd rather use --version,
5323 # but apparently some variants of GNU ld only accept -v.
5324 # Break only if it was the GNU/non-GNU ld that we prefer.
5325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5326 *GNU* | *'with BFD'*)
5327 test "$with_gnu_ld" != no && break
5330 test "$with_gnu_ld" != yes && break
5337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5342 if test -n "$LD"; then
5343 { echo "$as_me:$LINENO: result: $LD" >&5
5344 echo "${ECHO_T}$LD" >&6; }
5346 { echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6; }
5349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5351 { (exit 1); exit 1; }; }
5352 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5358 case `$LD -v 2>&1 </dev/null` in
5359 *GNU* | *'with BFD'*)
5360 lt_cv_prog_gnu_ld=yes
5363 lt_cv_prog_gnu_ld=no
5367 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5369 with_gnu_ld=$lt_cv_prog_gnu_ld
5372 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5374 if test "${lt_cv_ld_reload_flag+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 lt_cv_ld_reload_flag='-r'
5379 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5381 reload_flag=$lt_cv_ld_reload_flag
5382 case $reload_flag in
5384 *) reload_flag=" $reload_flag" ;;
5386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5389 if test "$GCC" = yes; then
5390 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5397 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5398 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5399 if test "${lt_cv_path_NM+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 if test -n "$NM"; then
5403 # Let the user override the test.
5406 lt_nm_to_check="${ac_tool_prefix}nm"
5407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5408 lt_nm_to_check="$lt_nm_to_check nm"
5410 for lt_tmp_nm in $lt_nm_to_check; do
5411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5414 test -z "$ac_dir" && ac_dir=.
5415 tmp_nm="$ac_dir/$lt_tmp_nm"
5416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5417 # Check to see if the nm accepts a BSD-compat flag.
5418 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5419 # nm: unknown option "B" ignored
5420 # Tru64's nm complains that /dev/null is an invalid object file
5421 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5422 */dev/null* | *'Invalid file or object type'*)
5423 lt_cv_path_NM="$tmp_nm -B"
5427 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5429 lt_cv_path_NM="$tmp_nm -p"
5433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5434 continue # so that we can try to find one that supports BSD flags
5443 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5446 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5447 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5450 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5453 if test "$LN_S" = "ln -s"; then
5454 { echo "$as_me:$LINENO: result: yes" >&5
5455 echo "${ECHO_T}yes" >&6; }
5457 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5458 echo "${ECHO_T}no, using $LN_S" >&6; }
5461 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5462 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5463 if test "${lt_cv_deplibs_check_method+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 lt_cv_file_magic_cmd='$MAGIC_CMD'
5467 lt_cv_file_magic_test_file=
5468 lt_cv_deplibs_check_method='unknown'
5469 # Need to set the preceding variable on all platforms that support
5470 # interlibrary dependencies.
5471 # 'none' -- dependencies not supported.
5472 # `unknown' -- same as none, but documents that we really don't know.
5473 # 'pass_all' -- all dependencies passed with no checks.
5474 # 'test_compile' -- check by making test program.
5475 # 'file_magic [[regex]]' -- check by looking for files in library path
5476 # which responds to the $file_magic_cmd with a given extended regex.
5477 # If you have `file' or equivalent on your system and you're not sure
5478 # whether `pass_all' will *always* work, you probably want this one.
5482 lt_cv_deplibs_check_method=pass_all
5486 lt_cv_deplibs_check_method=pass_all
5490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5491 lt_cv_file_magic_cmd='/usr/bin/file -L'
5492 lt_cv_file_magic_test_file=/shlib/libc.so
5496 # func_win32_libid is a shell function defined in ltmain.sh
5497 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5498 lt_cv_file_magic_cmd='func_win32_libid'
5502 # Base MSYS/MinGW do not provide the 'file' command needed by
5503 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5505 lt_cv_file_magic_cmd='$OBJDUMP -f'
5508 darwin* | rhapsody*)
5509 lt_cv_deplibs_check_method=pass_all
5512 freebsd* | kfreebsd*-gnu | dragonfly*)
5513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5516 # Not sure whether the presence of OpenBSD here was a mistake.
5517 # Let's accept both of them until this is cleared up.
5518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5519 lt_cv_file_magic_cmd=/usr/bin/file
5520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5524 lt_cv_deplibs_check_method=pass_all
5529 lt_cv_deplibs_check_method=pass_all
5532 hpux10.20* | hpux11*)
5533 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5540 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]'
5541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5555 irix5* | irix6* | nonstopux*)
5557 *-32|*"-32 ") libmagic=32-bit;;
5558 *-n32|*"-n32 ") libmagic=N32;;
5559 *-64|*"-64 ") libmagic=64-bit;;
5560 *) libmagic=never-match;;
5562 lt_cv_deplibs_check_method=pass_all
5565 # This must be Linux ELF.
5567 lt_cv_deplibs_check_method=pass_all
5571 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5580 lt_cv_file_magic_cmd=/usr/bin/file
5581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5585 lt_cv_deplibs_check_method=unknown
5589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5596 osf3* | osf4* | osf5*)
5597 lt_cv_deplibs_check_method=pass_all
5601 lt_cv_deplibs_check_method=pass_all
5605 case $host_vendor in
5607 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]'
5608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5611 lt_cv_deplibs_check_method=pass_all
5614 lt_cv_file_magic_cmd='/bin/file'
5615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5618 lt_cv_file_magic_cmd='/bin/file'
5619 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5620 lt_cv_file_magic_test_file=/lib/libc.so
5623 lt_cv_deplibs_check_method=pass_all
5626 lt_cv_deplibs_check_method=pass_all
5631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5632 lt_cv_deplibs_check_method=pass_all
5637 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5638 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5639 file_magic_cmd=$lt_cv_file_magic_cmd
5640 deplibs_check_method=$lt_cv_deplibs_check_method
5641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5646 # If no C compiler was specified, use CC.
5649 # If no C compiler flags were specified, use CFLAGS.
5650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5652 # Allow CC to be a program name with arguments.
5655 # Check whether --enable-libtool-lock was given.
5656 if test "${enable_libtool_lock+set}" = set; then
5657 enableval=$enable_libtool_lock;
5660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5662 # Some flags need to be propagated to the compiler or linker for good
5666 # Find out which ABI we are using.
5667 echo 'int i;' > conftest.$ac_ext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; then
5673 case `/usr/bin/file conftest.$ac_objext` in
5685 # Find out which ABI we are using.
5686 echo '#line 5686 "configure"' > conftest.$ac_ext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; then
5692 if test "$lt_cv_prog_gnu_ld" = yes; then
5693 case `/usr/bin/file conftest.$ac_objext` in
5695 LD="${LD-ld} -melf32bsmip"
5698 LD="${LD-ld} -melf32bmipn32"
5701 LD="${LD-ld} -melf64bmip"
5705 case `/usr/bin/file conftest.$ac_objext` in
5721 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5722 # Find out which ABI we are using.
5723 echo 'int i;' > conftest.$ac_ext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; then
5729 case `/usr/bin/file conftest.o` in
5733 LD="${LD-ld} -m elf_i386"
5735 ppc64-*linux*|powerpc64-*linux*)
5736 LD="${LD-ld} -m elf32ppclinux"
5739 LD="${LD-ld} -m elf_s390"
5742 LD="${LD-ld} -m elf32_sparc"
5749 LD="${LD-ld} -m elf_x86_64"
5751 ppc*-*linux*|powerpc*-*linux*)
5752 LD="${LD-ld} -m elf64ppc"
5755 LD="${LD-ld} -m elf64_s390"
5758 LD="${LD-ld} -m elf64_sparc"
5768 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5769 SAVE_CFLAGS="$CFLAGS"
5770 CFLAGS="$CFLAGS -belf"
5771 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5772 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5773 if test "${lt_cv_cc_needs_belf+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (ac_try="$ac_link"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_link") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5812 { (case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_try") 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest$ac_exeext'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 lt_cv_cc_needs_belf=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 lt_cv_cc_needs_belf=no
5839 rm -f core conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5849 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5850 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5851 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5852 CFLAGS="$SAVE_CFLAGS"
5856 # Find out which ABI we are using.
5857 echo 'int i;' > conftest.$ac_ext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; then
5863 case `/usr/bin/file conftest.o` in
5865 case $lt_cv_prog_gnu_ld in
5866 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5867 *) LD="${LD-ld} -64" ;;
5875 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 if test -n "$DLLTOOL"; then
5885 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 DLLTOOL=$ac_cv_prog_DLLTOOL
5905 if test -n "$DLLTOOL"; then
5906 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5907 echo "${ECHO_T}$DLLTOOL" >&6; }
5909 { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5915 if test -z "$ac_cv_prog_DLLTOOL"; then
5916 ac_ct_DLLTOOL=$DLLTOOL
5917 # Extract the first word of "dlltool", so it can be a program name with args.
5918 set dummy dlltool; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 if test -n "$ac_ct_DLLTOOL"; then
5925 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5945 if test -n "$ac_ct_DLLTOOL"; then
5946 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5947 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5949 { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5953 if test "x$ac_ct_DLLTOOL" = x; then
5956 case $cross_compiling:$ac_tool_warned in
5958 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5959 whose name does not start with the host triplet. If you think this
5960 configuration is useful to you, please write to autoconf@gnu.org." >&5
5961 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5962 whose name does not start with the host triplet. If you think this
5963 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5964 ac_tool_warned=yes ;;
5966 DLLTOOL=$ac_ct_DLLTOOL
5969 DLLTOOL="$ac_cv_prog_DLLTOOL"
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}as; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_prog_AS+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 if test -n "$AS"; then
5981 ac_cv_prog_AS="$AS" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_AS="${ac_tool_prefix}as"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 if test -n "$AS"; then
6002 { echo "$as_me:$LINENO: result: $AS" >&5
6003 echo "${ECHO_T}$AS" >&6; }
6005 { echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6; }
6011 if test -z "$ac_cv_prog_AS"; then
6013 # Extract the first word of "as", so it can be a program name with args.
6014 set dummy as; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 if test -n "$ac_ct_AS"; then
6021 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_ac_ct_AS="as"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6041 if test -n "$ac_ct_AS"; then
6042 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6043 echo "${ECHO_T}$ac_ct_AS" >&6; }
6045 { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6049 if test "x$ac_ct_AS" = x; then
6052 case $cross_compiling:$ac_tool_warned in
6054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6055 whose name does not start with the host triplet. If you think this
6056 configuration is useful to you, please write to autoconf@gnu.org." >&5
6057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6058 whose name does not start with the host triplet. If you think this
6059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6060 ac_tool_warned=yes ;;
6068 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6073 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 if test -n "$OBJDUMP"; then
6077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 OBJDUMP=$ac_cv_prog_OBJDUMP
6097 if test -n "$OBJDUMP"; then
6098 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6099 echo "${ECHO_T}$OBJDUMP" >&6; }
6101 { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6107 if test -z "$ac_cv_prog_OBJDUMP"; then
6108 ac_ct_OBJDUMP=$OBJDUMP
6109 # Extract the first word of "objdump", so it can be a program name with args.
6110 set dummy objdump; ac_word=$2
6111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6113 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 if test -n "$ac_ct_OBJDUMP"; then
6117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6137 if test -n "$ac_ct_OBJDUMP"; then
6138 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6139 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6145 if test "x$ac_ct_OBJDUMP" = x; then
6148 case $cross_compiling:$ac_tool_warned in
6150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet. If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&5
6153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6154 whose name does not start with the host triplet. If you think this
6155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6156 ac_tool_warned=yes ;;
6158 OBJDUMP=$ac_ct_OBJDUMP
6161 OBJDUMP="$ac_cv_prog_OBJDUMP"
6168 need_locks="$enable_libtool_lock"
6171 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6182 inttypes.h stdint.h unistd.h
6184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6198 #include <$ac_header>
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6215 { (case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_try") 2>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; } &&
6224 { ac_try='test -s conftest.$ac_objext'
6225 { (case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_try") 2>&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 eval "$as_ac_Header=yes"
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 eval "$as_ac_Header=no"
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 ac_res=`eval echo '${'$as_ac_Header'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6258 for ac_header in dlfcn.h
6260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6271 # Is the header compilable?
6272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 $ac_includes_default
6281 #include <$ac_header>
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6292 grep -v '^ *+' conftest.er1 >conftest.err
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6298 { (case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_try") 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_header_compiler=yes
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_header_compiler=no
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6327 echo "${ECHO_T}$ac_header_compiler" >&6; }
6329 # Is the header present?
6330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 #include <$ac_header>
6340 if { (ac_try="$ac_cpp conftest.$ac_ext"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null; then
6353 if test -s conftest.err; then
6354 ac_cpp_err=$ac_c_preproc_warn_flag
6355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6362 if test -z "$ac_cpp_err"; then
6363 ac_header_preproc=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_header_preproc=no
6371 rm -f conftest.err conftest.$ac_ext
6372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6373 echo "${ECHO_T}$ac_header_preproc" >&6; }
6375 # So? What about this header?
6376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6382 ac_header_preproc=yes
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 eval "$as_ac_Header=\$ac_header_preproc"
6407 ac_res=`eval echo '${'$as_ac_Header'}'`
6408 { echo "$as_me:$LINENO: result: $ac_res" >&5
6409 echo "${ECHO_T}$ac_res" >&6; }
6412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6423 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6424 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6425 (test "X$CXX" != "Xg++"))) ; then
6427 ac_cpp='$CXXCPP $CPPFLAGS'
6428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6431 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6432 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6433 if test -z "$CXXCPP"; then
6434 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 # Double quotes because CXXCPP needs to be expanded
6438 for CXXCPP in "$CXX -E" "/lib/cpp"
6441 for ac_cxx_preproc_warn_flag in '' yes
6443 # Use a header file that comes with gcc, so configuring glibc
6444 # with a fresh cross-compiler works.
6445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446 # <limits.h> exists even on freestanding compilers.
6447 # On the NeXT, cc -E runs the code through the compiler's parser,
6448 # not just through cpp. "Syntax error" is here to catch this case.
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6456 # include <limits.h>
6458 # include <assert.h>
6462 if { (ac_try="$ac_cpp conftest.$ac_ext"
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6470 grep -v '^ *+' conftest.er1 >conftest.err
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev/null; then
6475 if test -s conftest.err; then
6476 ac_cpp_err=$ac_cxx_preproc_warn_flag
6477 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6484 if test -z "$ac_cpp_err"; then
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 # Broken: fails on valid input.
6494 rm -f conftest.err conftest.$ac_ext
6496 # OK, works on sane cases. Now check whether nonexistent headers
6497 # can be detected and how.
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 #include <ac_nonexistent.h>
6506 if { (ac_try="$ac_cpp conftest.$ac_ext"
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } >/dev/null; then
6519 if test -s conftest.err; then
6520 ac_cpp_err=$ac_cxx_preproc_warn_flag
6521 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6528 if test -z "$ac_cpp_err"; then
6529 # Broken: success on invalid input.
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 # Passes both tests.
6540 rm -f conftest.err conftest.$ac_ext
6543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6544 rm -f conftest.err conftest.$ac_ext
6545 if $ac_preproc_ok; then
6550 ac_cv_prog_CXXCPP=$CXXCPP
6553 CXXCPP=$ac_cv_prog_CXXCPP
6555 ac_cv_prog_CXXCPP=$CXXCPP
6557 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6558 echo "${ECHO_T}$CXXCPP" >&6; }
6560 for ac_cxx_preproc_warn_flag in '' yes
6562 # Use a header file that comes with gcc, so configuring glibc
6563 # with a fresh cross-compiler works.
6564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 # <limits.h> exists even on freestanding compilers.
6566 # On the NeXT, cc -E runs the code through the compiler's parser,
6567 # not just through cpp. "Syntax error" is here to catch this case.
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6575 # include <limits.h>
6577 # include <assert.h>
6581 if { (ac_try="$ac_cpp conftest.$ac_ext"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } >/dev/null; then
6594 if test -s conftest.err; then
6595 ac_cpp_err=$ac_cxx_preproc_warn_flag
6596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6603 if test -z "$ac_cpp_err"; then
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 # Broken: fails on valid input.
6613 rm -f conftest.err conftest.$ac_ext
6615 # OK, works on sane cases. Now check whether nonexistent headers
6616 # can be detected and how.
6617 cat >conftest.$ac_ext <<_ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <ac_nonexistent.h>
6625 if { (ac_try="$ac_cpp conftest.$ac_ext"
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } >/dev/null; then
6638 if test -s conftest.err; then
6639 ac_cpp_err=$ac_cxx_preproc_warn_flag
6640 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6647 if test -z "$ac_cpp_err"; then
6648 # Broken: success on invalid input.
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 # Passes both tests.
6659 rm -f conftest.err conftest.$ac_ext
6662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6663 rm -f conftest.err conftest.$ac_ext
6664 if $ac_preproc_ok; then
6667 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6668 See \`config.log' for more details." >&5
6669 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6670 See \`config.log' for more details." >&2;}
6671 { (exit 1); exit 1; }; }
6675 ac_cpp='$CXXCPP $CPPFLAGS'
6676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6684 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6685 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6687 if test -n "$ac_tool_prefix"; then
6688 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_F77+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 if test -n "$F77"; then
6698 ac_cv_prog_F77="$F77" # Let the user override the test.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 if test -n "$F77"; then
6719 { echo "$as_me:$LINENO: result: $F77" >&5
6720 echo "${ECHO_T}$F77" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 test -n "$F77" && break
6730 if test -z "$F77"; then
6732 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6734 # Extract the first word of "$ac_prog", so it can be a program name with args.
6735 set dummy $ac_prog; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 if test -n "$ac_ct_F77"; then
6742 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_ac_ct_F77="$ac_prog"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6762 if test -n "$ac_ct_F77"; then
6763 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6764 echo "${ECHO_T}$ac_ct_F77" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 test -n "$ac_ct_F77" && break
6774 if test "x$ac_ct_F77" = x; then
6777 case $cross_compiling:$ac_tool_warned in
6779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6780 whose name does not start with the host triplet. If you think this
6781 configuration is useful to you, please write to autoconf@gnu.org." >&5
6782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6783 whose name does not start with the host triplet. If you think this
6784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6785 ac_tool_warned=yes ;;
6792 # Provide some information about the compiler.
6793 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6794 ac_compiler=`set X $ac_compile; echo $2`
6795 { (ac_try="$ac_compiler --version >&5"
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6801 (eval "$ac_compiler --version >&5") 2>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }
6805 { (ac_try="$ac_compiler -v >&5"
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compiler -v >&5") 2>&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }
6815 { (ac_try="$ac_compiler -V >&5"
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compiler -V >&5") 2>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }
6827 # If we don't use `.F' as extension, the preprocessor is not run on the
6828 # input file. (Note that this only needs to work for GNU compilers.)
6831 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6832 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6833 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 cat >conftest.$ac_ext <<_ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6853 grep -v '^ *+' conftest.er1 >conftest.err
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6859 { (case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_try") 2>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_try") 2>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6890 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6891 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6893 ac_test_FFLAGS=${FFLAGS+set}
6894 ac_save_FFLAGS=$FFLAGS
6896 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6897 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_f77_g+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 cat >conftest.$ac_ext <<_ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_compile") 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6922 { (case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_try") 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_try") 2>&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_prog_f77_g=yes
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6953 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6954 if test "$ac_test_FFLAGS" = set; then
6955 FFLAGS=$ac_save_FFLAGS
6956 elif test $ac_cv_prog_f77_g = yes; then
6957 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6963 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6970 G77=`test $ac_compiler_gnu = yes && echo yes`
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6981 # find the maximum length of command line arguments
6982 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6983 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6984 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 # On DJGPP, this test can blow up pretty badly due to problems in libc
6993 # (any single argument exceeding 2000 bytes causes a buffer overrun
6994 # during glob expansion). Even if it were fixed, the result of this
6995 # check would be larger than it should be.
6996 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7000 # Under GNU Hurd, this test is not required because there is
7001 # no limit to the length of command line arguments.
7002 # Libtool will interpret -1 as no limit whatsoever
7003 lt_cv_sys_max_cmd_len=-1;
7007 # On Win9x/ME, this test blows up -- it succeeds, but takes
7008 # about 5 minutes as the teststring grows exponentially.
7009 # Worse, since 9x/ME are not pre-emptively multitasking,
7010 # you end up with a "frozen" computer, even though with patience
7011 # the test eventually succeeds (with a max line length of 256k).
7012 # Instead, let's just punt: use the minimum linelength reported by
7013 # all of the supported platforms: 8192 (on NT/2K/XP).
7014 lt_cv_sys_max_cmd_len=8192;
7018 # On AmigaOS with pdksh, this test takes hours, literally.
7019 # So we just punt and use a minimum line length of 8192.
7020 lt_cv_sys_max_cmd_len=8192;
7023 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7024 # This has been around since 386BSD, at least. Likely further.
7025 if test -x /sbin/sysctl; then
7026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7027 elif test -x /usr/sbin/sysctl; then
7028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7032 # And add a safety zone
7033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7039 lt_cv_sys_max_cmd_len=196608
7043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7045 # nice to cause kernel panics so lets avoid the loop below.
7046 # First set a reasonable default.
7047 lt_cv_sys_max_cmd_len=16384
7049 if test -x /sbin/sysconfig; then
7050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7051 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7056 lt_cv_sys_max_cmd_len=102400
7058 sysv5* | sco5v6* | sysv4.2uw2*)
7059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7060 if test -n "$kargmax"; then
7061 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7063 lt_cv_sys_max_cmd_len=32768
7067 # If test is not a shell built-in, we'll probably end up computing a
7068 # maximum length that is only half of the actual maximum length, but
7070 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7071 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7072 = "XX$teststring") >/dev/null 2>&1 &&
7073 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7074 lt_cv_sys_max_cmd_len=$new_result &&
7075 test $i != 17 # 1/2 MB should be enough
7078 teststring=$teststring$teststring
7081 # Add a significant safety factor because C++ compilers can tack on massive
7082 # amounts of additional arguments before passing them to the linker.
7083 # It appears as though 1/2 is a usable value.
7084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7090 if test -n $lt_cv_sys_max_cmd_len ; then
7091 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7092 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7094 { echo "$as_me:$LINENO: result: none" >&5
7095 echo "${ECHO_T}none" >&6; }
7101 # Check for command to grab the raw symbol name followed by C symbol from nm.
7102 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7103 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7104 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 # These are sane defaults that work on at least a few old systems.
7109 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7111 # Character class describing NM global symbol codes.
7112 symcode='[BCDEGRST]'
7114 # Regexp to match symbols that can be accessed directly from C.
7115 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7117 # Transform an extracted symbol line into a proper C declaration
7118 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7120 # Transform an extracted symbol line into symbol name and symbol address
7121 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'"
7123 # Define system-specific variables.
7128 cygwin* | mingw* | pw32*)
7129 symcode='[ABCDGISTW]'
7131 hpux*) # Its linker distinguishes data from code symbols
7132 if test "$host_cpu" = ia64; then
7133 symcode='[ABCDEGRST]'
7135 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7136 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'"
7139 if test "$host_cpu" = ia64; then
7140 symcode='[ABCDGIRSTW]'
7141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7142 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'"
7146 symcode='[BCDEGRST]'
7149 symcode='[BCDEGQRST]'
7160 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7168 # Handle CRLF in mingw tool chain
7172 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7176 # If we're using GNU nm, then use its standard symbol codes.
7177 case `$NM -V 2>&1` in
7178 *GNU* | *'with BFD'*)
7179 symcode='[ABCDGIRSTW]' ;;
7182 # Try without a prefix undercore, then with it.
7183 for ac_symprfx in "" "_"; do
7185 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7186 symxfrm="\\1 $ac_symprfx\\2 \\2"
7188 # Write the raw and C identifiers.
7189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7191 # Check to see that the pipe works correctly.
7195 cat > conftest.$ac_ext <<EOF
7200 void nm_test_func(){}
7204 int main(){nm_test_var='a';nm_test_func();return(0);}
7207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; then
7212 # Now try to grab the symbols.
7214 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7215 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && test -s "$nlist"; then
7219 # Try sorting and uniquifying the output.
7220 if sort "$nlist" | uniq > "$nlist"T; then
7221 mv -f "$nlist"T "$nlist"
7226 # Make sure that we snagged all the symbols we need.
7227 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7228 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7229 cat <<EOF > conftest.$ac_ext
7235 # Now generate the symbol file.
7236 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7238 cat <<EOF >> conftest.$ac_ext
7239 #if defined (__STDC__) && __STDC__
7240 # define lt_ptr_t void *
7242 # define lt_ptr_t char *
7246 /* The mapping between symbol names and symbols. */
7251 lt_preloaded_symbols[] =
7254 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7255 cat <<\EOF >> conftest.$ac_ext
7263 # Now try linking the two files.
7264 mv conftest.$ac_objext conftstm.$ac_objext
7265 lt_save_LIBS="$LIBS"
7266 lt_save_CFLAGS="$CFLAGS"
7267 LIBS="conftstm.$ac_objext"
7268 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7276 LIBS="$lt_save_LIBS"
7277 CFLAGS="$lt_save_CFLAGS"
7279 echo "cannot find nm_test_func in $nlist" >&5
7282 echo "cannot find nm_test_var in $nlist" >&5
7285 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7288 echo "$progname: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7291 rm -f conftest* conftst*
7293 # Do not use the global_symbol_pipe unless it works.
7294 if test "$pipe_works" = yes; then
7297 lt_cv_sys_global_symbol_pipe=
7303 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7304 lt_cv_sys_global_symbol_to_cdecl=
7306 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7307 { echo "$as_me:$LINENO: result: failed" >&5
7308 echo "${ECHO_T}failed" >&6; }
7310 { echo "$as_me:$LINENO: result: ok" >&5
7311 echo "${ECHO_T}ok" >&6; }
7314 { echo "$as_me:$LINENO: checking for objdir" >&5
7315 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7316 if test "${lt_cv_objdir+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 rm -f .libs 2>/dev/null
7320 mkdir .libs 2>/dev/null
7321 if test -d .libs; then
7324 # MS-DOS does not allow filenames that begin with a dot.
7327 rmdir .libs 2>/dev/null
7329 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7330 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7331 objdir=$lt_cv_objdir
7339 # AIX sometimes has problems with the GCC collect2 program. For some
7340 # reason, if we set the COLLECT_NAMES environment variable, the problems
7341 # vanish in a puff of smoke.
7342 if test "X${COLLECT_NAMES+set}" != Xset; then
7344 export COLLECT_NAMES
7349 # Sed substitution that helps us do robust quoting. It backslashifies
7350 # metacharacters that are still active within double-quoted strings.
7351 Xsed='sed -e 1s/^X//'
7352 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7354 # Same as above, but do not quote variable references.
7355 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7357 # Sed substitution to delay expansion of an escaped shell variable in a
7358 # double_quote_subst'ed string.
7359 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7361 # Sed substitution to avoid accidental globbing in evaled expressions
7362 no_glob_subst='s/\*/\\\*/g'
7368 default_ofile=libtool
7369 can_build_shared=yes
7371 # All known linkers require a `.a' archive for static linking (except MSVC,
7372 # which needs '.lib').
7374 ltmain="$ac_aux_dir/ltmain.sh"
7375 ofile="$default_ofile"
7376 with_gnu_ld="$lt_cv_prog_gnu_ld"
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}ar; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_prog_AR+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 if test -n "$AR"; then
7387 ac_cv_prog_AR="$AR" # Let the user override the test.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_prog_AR="${ac_tool_prefix}ar"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 if test -n "$AR"; then
7408 { echo "$as_me:$LINENO: result: $AR" >&5
7409 echo "${ECHO_T}$AR" >&6; }
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7417 if test -z "$ac_cv_prog_AR"; then
7419 # Extract the first word of "ar", so it can be a program name with args.
7420 set dummy ar; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 if test -n "$ac_ct_AR"; then
7427 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_ac_ct_AR="ar"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7447 if test -n "$ac_ct_AR"; then
7448 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7449 echo "${ECHO_T}$ac_ct_AR" >&6; }
7451 { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7455 if test "x$ac_ct_AR" = x; then
7458 case $cross_compiling:$ac_tool_warned in
7460 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7461 whose name does not start with the host triplet. If you think this
7462 configuration is useful to you, please write to autoconf@gnu.org." >&5
7463 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7464 whose name does not start with the host triplet. If you think this
7465 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7466 ac_tool_warned=yes ;;
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_prog_RANLIB+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 if test -n "$RANLIB"; then
7483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 RANLIB=$ac_cv_prog_RANLIB
7503 if test -n "$RANLIB"; then
7504 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7505 echo "${ECHO_T}$RANLIB" >&6; }
7507 { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7513 if test -z "$ac_cv_prog_RANLIB"; then
7514 ac_ct_RANLIB=$RANLIB
7515 # Extract the first word of "ranlib", so it can be a program name with args.
7516 set dummy ranlib; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 if test -n "$ac_ct_RANLIB"; then
7523 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_ac_ct_RANLIB="ranlib"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7543 if test -n "$ac_ct_RANLIB"; then
7544 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7545 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7551 if test "x$ac_ct_RANLIB" = x; then
7554 case $cross_compiling:$ac_tool_warned in
7556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7557 whose name does not start with the host triplet. If you think this
7558 configuration is useful to you, please write to autoconf@gnu.org." >&5
7559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7560 whose name does not start with the host triplet. If you think this
7561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7562 ac_tool_warned=yes ;;
7564 RANLIB=$ac_ct_RANLIB
7567 RANLIB="$ac_cv_prog_RANLIB"
7570 if test -n "$ac_tool_prefix"; then
7571 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}strip; ac_word=$2
7573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575 if test "${ac_cv_prog_STRIP+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 if test -n "$STRIP"; then
7579 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 STRIP=$ac_cv_prog_STRIP
7599 if test -n "$STRIP"; then
7600 { echo "$as_me:$LINENO: result: $STRIP" >&5
7601 echo "${ECHO_T}$STRIP" >&6; }
7603 { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }
7609 if test -z "$ac_cv_prog_STRIP"; then
7611 # Extract the first word of "strip", so it can be a program name with args.
7612 set dummy strip; ac_word=$2
7613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 if test -n "$ac_ct_STRIP"; then
7619 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_prog_ac_ct_STRIP="strip"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7639 if test -n "$ac_ct_STRIP"; then
7640 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7641 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7643 { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7647 if test "x$ac_ct_STRIP" = x; then
7650 case $cross_compiling:$ac_tool_warned in
7652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7653 whose name does not start with the host triplet. If you think this
7654 configuration is useful to you, please write to autoconf@gnu.org." >&5
7655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7656 whose name does not start with the host triplet. If you think this
7657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7658 ac_tool_warned=yes ;;
7663 STRIP="$ac_cv_prog_STRIP"
7668 old_CFLAGS="$CFLAGS"
7670 # Set sane defaults for various variables
7671 test -z "$AR" && AR=ar
7672 test -z "$AR_FLAGS" && AR_FLAGS=cru
7673 test -z "$AS" && AS=as
7674 test -z "$CC" && CC=cc
7675 test -z "$LTCC" && LTCC=$CC
7676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7677 test -z "$DLLTOOL" && DLLTOOL=dlltool
7678 test -z "$LD" && LD=ld
7679 test -z "$LN_S" && LN_S="ln -s"
7680 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7681 test -z "$NM" && NM=nm
7682 test -z "$SED" && SED=sed
7683 test -z "$OBJDUMP" && OBJDUMP=objdump
7684 test -z "$RANLIB" && RANLIB=:
7685 test -z "$STRIP" && STRIP=:
7686 test -z "$ac_objext" && ac_objext=o
7688 # Determine commands to create old-style static archives.
7689 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7690 old_postinstall_cmds='chmod 644 $oldlib'
7691 old_postuninstall_cmds=
7693 if test -n "$RANLIB"; then
7696 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7699 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7702 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7705 for cc_temp in $compiler""; do
7707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7713 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7716 # Only perform the check for file, if the check method requires it
7717 case $deplibs_check_method in
7719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7720 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7721 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7722 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7730 lt_save_MAGIC_CMD="$MAGIC_CMD"
7731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7733 for ac_dir in $ac_dummy; do
7735 test -z "$ac_dir" && ac_dir=.
7736 if test -f $ac_dir/${ac_tool_prefix}file; then
7737 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7738 if test -n "$file_magic_test_file"; then
7739 case $deplibs_check_method in
7741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7744 $EGREP "$file_magic_regex" > /dev/null; then
7749 *** Warning: the command libtool uses to detect shared libraries,
7750 *** $file_magic_cmd, produces output that libtool cannot recognize.
7751 *** The result is that libtool may fail to recognize shared libraries
7752 *** as such. This will affect the creation of libtool libraries that
7753 *** depend on shared libraries, but programs linked with such libtool
7754 *** libraries will work regardless of this problem. Nevertheless, you
7755 *** may want to report the problem to your system manager and/or to
7756 *** bug-libtool@gnu.org
7766 MAGIC_CMD="$lt_save_MAGIC_CMD"
7771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7772 if test -n "$MAGIC_CMD"; then
7773 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7774 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7780 if test -z "$lt_cv_path_MAGIC_CMD"; then
7781 if test -n "$ac_tool_prefix"; then
7782 { echo "$as_me:$LINENO: checking for file" >&5
7783 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7784 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7792 lt_save_MAGIC_CMD="$MAGIC_CMD"
7793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7794 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7795 for ac_dir in $ac_dummy; do
7797 test -z "$ac_dir" && ac_dir=.
7798 if test -f $ac_dir/file; then
7799 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7800 if test -n "$file_magic_test_file"; then
7801 case $deplibs_check_method in
7803 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7805 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7806 $EGREP "$file_magic_regex" > /dev/null; then
7811 *** Warning: the command libtool uses to detect shared libraries,
7812 *** $file_magic_cmd, produces output that libtool cannot recognize.
7813 *** The result is that libtool may fail to recognize shared libraries
7814 *** as such. This will affect the creation of libtool libraries that
7815 *** depend on shared libraries, but programs linked with such libtool
7816 *** libraries will work regardless of this problem. Nevertheless, you
7817 *** may want to report the problem to your system manager and/or to
7818 *** bug-libtool@gnu.org
7828 MAGIC_CMD="$lt_save_MAGIC_CMD"
7833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7834 if test -n "$MAGIC_CMD"; then
7835 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7836 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7838 { echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6; }
7852 enable_win32_dll=yes
7854 # Check whether --enable-libtool-lock was given.
7855 if test "${enable_libtool_lock+set}" = set; then
7856 enableval=$enable_libtool_lock;
7859 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7862 # Check whether --with-pic was given.
7863 if test "${with_pic+set}" = set; then
7864 withval=$with_pic; pic_mode="$withval"
7869 test -z "$pic_mode" && pic_mode=default
7871 # Use C for the default configuration in the libtool script
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881 # Source file extension for C test sources.
7884 # Object file extension for compiled C test sources.
7888 # Code to be used in simple compile tests
7889 lt_simple_compile_test_code="int some_variable = 0;\n"
7891 # Code to be used in simple link tests
7892 lt_simple_link_test_code='int main(){return(0);}\n'
7895 # If no C compiler was specified, use CC.
7898 # If no C compiler flags were specified, use CFLAGS.
7899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7901 # Allow CC to be a program name with arguments.
7905 # save warnings/boilerplate of simple test code
7906 ac_outfile=conftest.$ac_objext
7907 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7909 _lt_compiler_boilerplate=`cat conftest.err`
7912 ac_outfile=conftest.$ac_objext
7913 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7915 _lt_linker_boilerplate=`cat conftest.err`
7920 lt_prog_compiler_no_builtin_flag=
7922 if test "$GCC" = yes; then
7923 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7926 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7927 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7928 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 lt_cv_prog_compiler_rtti_exceptions=no
7932 ac_outfile=conftest.$ac_objext
7933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7934 lt_compiler_flag="-fno-rtti -fno-exceptions"
7935 # Insert the option either (1) after the last *FLAGS variable, or
7936 # (2) before a word containing "conftest.", or (3) at the end.
7937 # Note that $ac_compile itself does not contain backslashes and begins
7938 # with a dollar sign (not a hyphen), so the echo should work correctly.
7939 # The option is referenced via a variable to avoid confusing sed.
7940 lt_compile=`echo "$ac_compile" | $SED \
7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943 -e 's:$: $lt_compiler_flag:'`
7944 (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
7945 (eval "$lt_compile" 2>conftest.err)
7947 cat conftest.err >&5
7948 echo "$as_me:7948: \$? = $ac_status" >&5
7949 if (exit $ac_status) && test -s "$ac_outfile"; then
7950 # The compiler can only warn and ignore the option if not recognized
7951 # So say no if there are warnings other than the usual output.
7952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7955 lt_cv_prog_compiler_rtti_exceptions=yes
7961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7962 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7964 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7972 lt_prog_compiler_wl=
7973 lt_prog_compiler_pic=
7974 lt_prog_compiler_static=
7976 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7977 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7979 if test "$GCC" = yes; then
7980 lt_prog_compiler_wl='-Wl,'
7981 lt_prog_compiler_static='-static'
7985 # All AIX code is PIC.
7986 if test "$host_cpu" = ia64; then
7987 # AIX 5 now supports IA64 processor
7988 lt_prog_compiler_static='-Bstatic'
7993 # FIXME: we need at least 68020 code to build shared libraries, but
7994 # adding the `-m68020' flag to GCC prevents building anything better,
7996 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7999 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8000 # PIC is the default for these OSes.
8003 mingw* | pw32* | os2*)
8004 # This hack is so that the source file can tell whether it is being
8005 # built for inclusion in a dll (and should export symbols for example).
8006 lt_prog_compiler_pic='-DDLL_EXPORT'
8009 darwin* | rhapsody*)
8010 # PIC is the default on this platform
8011 # Common symbols not allowed in MH_DYLIB files
8012 lt_prog_compiler_pic='-fno-common'
8016 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8017 # Instead, we relocate shared libraries at runtime.
8021 # Just because we use GCC doesn't mean we suddenly get shared libraries
8022 # on systems that don't support them.
8023 lt_prog_compiler_can_build_shared=no
8028 if test -d /usr/nec; then
8029 lt_prog_compiler_pic=-Kconform_pic
8034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8041 lt_prog_compiler_pic='-fPIC'
8047 lt_prog_compiler_pic='-fPIC'
8051 # PORTME Check for flag to pass linker flags through the system compiler.
8054 lt_prog_compiler_wl='-Wl,'
8055 if test "$host_cpu" = ia64; then
8056 # AIX 5 now supports IA64 processor
8057 lt_prog_compiler_static='-Bstatic'
8059 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8063 # PIC is the default on this platform
8064 # Common symbols not allowed in MH_DYLIB files
8065 case $cc_basename in
8067 lt_prog_compiler_pic='-qnocommon'
8068 lt_prog_compiler_wl='-Wl,'
8073 mingw* | pw32* | os2*)
8074 # This hack is so that the source file can tell whether it is being
8075 # built for inclusion in a dll (and should export symbols for example).
8076 lt_prog_compiler_pic='-DDLL_EXPORT'
8079 hpux9* | hpux10* | hpux11*)
8080 lt_prog_compiler_wl='-Wl,'
8081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8088 lt_prog_compiler_pic='+Z'
8091 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8092 lt_prog_compiler_static='${wl}-a ${wl}archive'
8095 irix5* | irix6* | nonstopux*)
8096 lt_prog_compiler_wl='-Wl,'
8097 # PIC (with -KPIC) is the default.
8098 lt_prog_compiler_static='-non_shared'
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8107 case $cc_basename in
8109 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_pic='-KPIC'
8111 lt_prog_compiler_static='-static'
8113 pgcc* | pgf77* | pgf90* | pgf95*)
8114 # Portland Group compilers (*not* the Pentium gcc compiler,
8115 # which looks to be a dead project)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_pic='-fpic'
8118 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_wl='-Wl,'
8122 # All Alpha code is PIC.
8123 lt_prog_compiler_static='-non_shared'
8128 osf3* | osf4* | osf5*)
8129 lt_prog_compiler_wl='-Wl,'
8130 # All OSF/1 code is PIC.
8131 lt_prog_compiler_static='-non_shared'
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 case $cc_basename in
8139 lt_prog_compiler_wl='-Qoption ld ';;
8141 lt_prog_compiler_wl='-Wl,';;
8146 lt_prog_compiler_wl='-Qoption ld '
8147 lt_prog_compiler_pic='-PIC'
8148 lt_prog_compiler_static='-Bstatic'
8151 sysv4 | sysv4.2uw2* | sysv4.3*)
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='-KPIC'
8154 lt_prog_compiler_static='-Bstatic'
8158 if test -d /usr/nec ;then
8159 lt_prog_compiler_pic='-Kconform_pic'
8160 lt_prog_compiler_static='-Bstatic'
8164 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_pic='-KPIC'
8167 lt_prog_compiler_static='-Bstatic'
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_can_build_shared=no
8176 lt_prog_compiler_pic='-pic'
8177 lt_prog_compiler_static='-Bstatic'
8181 lt_prog_compiler_can_build_shared=no
8186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8187 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8190 # Check to make sure the PIC flag actually works.
8192 if test -n "$lt_prog_compiler_pic"; then
8194 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8195 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8196 if test "${lt_prog_compiler_pic_works+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 lt_prog_compiler_pic_works=no
8200 ac_outfile=conftest.$ac_objext
8201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8202 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8203 # Insert the option either (1) after the last *FLAGS variable, or
8204 # (2) before a word containing "conftest.", or (3) at the end.
8205 # Note that $ac_compile itself does not contain backslashes and begins
8206 # with a dollar sign (not a hyphen), so the echo should work correctly.
8207 # The option is referenced via a variable to avoid confusing sed.
8208 lt_compile=`echo "$ac_compile" | $SED \
8209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8211 -e 's:$: $lt_compiler_flag:'`
8212 (eval echo "\"\$as_me:8212: $lt_compile\"" >&5)
8213 (eval "$lt_compile" 2>conftest.err)
8215 cat conftest.err >&5
8216 echo "$as_me:8216: \$? = $ac_status" >&5
8217 if (exit $ac_status) && test -s "$ac_outfile"; then
8218 # The compiler can only warn and ignore the option if not recognized
8219 # So say no if there are warnings other than the usual output.
8220 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8223 lt_prog_compiler_pic_works=yes
8229 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8230 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8232 if test x"$lt_prog_compiler_pic_works" = xyes; then
8233 case $lt_prog_compiler_pic in
8235 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8238 lt_prog_compiler_pic=
8239 lt_prog_compiler_can_build_shared=no
8244 # For platforms which do not support PIC, -DPIC is meaningless:
8246 lt_prog_compiler_pic=
8249 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8254 # Check to make sure the static flag actually works.
8256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8257 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8258 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8259 if test "${lt_prog_compiler_static_works+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 lt_prog_compiler_static_works=no
8263 save_LDFLAGS="$LDFLAGS"
8264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8265 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8267 # The linker can only warn and ignore the option if not recognized
8268 # So say no if there are warnings
8269 if test -s conftest.err; then
8270 # Append any errors to the config.log.
8271 cat conftest.err 1>&5
8272 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_prog_compiler_static_works=yes
8278 lt_prog_compiler_static_works=yes
8282 LDFLAGS="$save_LDFLAGS"
8285 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8286 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8288 if test x"$lt_prog_compiler_static_works" = xyes; then
8291 lt_prog_compiler_static=
8295 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8296 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8297 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 lt_cv_prog_compiler_c_o=no
8301 $rm -r conftest 2>/dev/null
8305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8307 lt_compiler_flag="-o out/conftest2.$ac_objext"
8308 # Insert the option either (1) after the last *FLAGS variable, or
8309 # (2) before a word containing "conftest.", or (3) at the end.
8310 # Note that $ac_compile itself does not contain backslashes and begins
8311 # with a dollar sign (not a hyphen), so the echo should work correctly.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
8316 (eval echo "\"\$as_me:8316: $lt_compile\"" >&5)
8317 (eval "$lt_compile" 2>out/conftest.err)
8319 cat out/conftest.err >&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8323 # The compiler can only warn and ignore the option if not recognized
8324 # So say no if there are warnings
8325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8328 lt_cv_prog_compiler_c_o=yes
8333 # SGI C++ compiler will create directory out/ii_files/ for
8334 # template instantiation
8335 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8336 $rm out/* && rmdir out
8342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8343 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8346 hard_links="nottested"
8347 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8348 # do not overwrite the value of need_locks provided by the user
8349 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8350 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8355 ln conftest.a conftest.b 2>&5 || hard_links=no
8356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8357 { echo "$as_me:$LINENO: result: $hard_links" >&5
8358 echo "${ECHO_T}$hard_links" >&6; }
8359 if test "$hard_links" = no; then
8360 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8361 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8368 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8369 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8372 allow_undefined_flag=
8373 enable_shared_with_static_runtimes=no
8375 archive_expsym_cmds=
8376 old_archive_From_new_cmds=
8377 old_archive_from_expsyms_cmds=
8378 export_dynamic_flag_spec=
8379 whole_archive_flag_spec=
8380 thread_safe_flag_spec=
8381 hardcode_libdir_flag_spec=
8382 hardcode_libdir_flag_spec_ld=
8383 hardcode_libdir_separator=
8386 hardcode_shlibpath_var=unsupported
8387 link_all_deplibs=unknown
8388 hardcode_automatic=no
8391 always_export_symbols=no
8392 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8393 # include_expsyms should be a list of space-separated symbols to be *always*
8394 # included in the symbol list
8396 # exclude_expsyms can be an extended regexp of symbols to exclude
8397 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8398 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8399 # as well as any symbol that contains `d'.
8400 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8402 # platforms (ab)use it in PIC code, but their linkers get confused if
8403 # the symbol is explicitly referenced. Since portable code cannot
8404 # rely on this symbol name, it's probably fine to never include it in
8405 # preloaded symbol tables.
8406 extract_expsyms_cmds=
8407 # Just being paranoid about ensuring that cc_basename is set.
8408 for cc_temp in $compiler""; do
8410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8416 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8419 cygwin* | mingw* | pw32*)
8420 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8421 # When not using gcc, we currently assume that we are using
8422 # Microsoft Visual C++.
8423 if test "$GCC" != yes; then
8428 # we just hope/assume this is gcc and not c89 (= MSVC++)
8437 if test "$with_gnu_ld" = yes; then
8438 # If archive_cmds runs LD, not CC, wlarc should be empty
8441 # Set some defaults for GNU ld with shared library support. These
8442 # are reset later if shared libraries are not supported. Putting them
8443 # here allows them to be overridden if necessary.
8444 runpath_var=LD_RUN_PATH
8445 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8446 export_dynamic_flag_spec='${wl}--export-dynamic'
8447 # ancient GNU ld didn't support --whole-archive et. al.
8448 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8449 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8451 whole_archive_flag_spec=
8453 supports_anon_versioning=no
8454 case `$LD -v 2>/dev/null` in
8455 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8456 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8457 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8458 *\ 2.11.*) ;; # other 2.11 versions
8459 *) supports_anon_versioning=yes ;;
8462 # See if GNU ld supports shared libraries.
8464 aix3* | aix4* | aix5*)
8465 # On AIX/PPC, the GNU linker is very broken
8466 if test "$host_cpu" != ia64; then
8470 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8471 *** to be unable to reliably create shared libraries on AIX.
8472 *** Therefore, libtool is disabling shared libraries support. If you
8473 *** really care for shared libraries, you may want to modify your PATH
8474 *** so that a non-GNU linker is found, and then restart.
8481 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)'
8482 hardcode_libdir_flag_spec='-L$libdir'
8483 hardcode_minus_L=yes
8485 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8486 # that the semantics of dynamic libraries on AmigaOS, at least up
8487 # to version 4, is to share data among multiple programs linked
8488 # with the same dynamic library. Since this doesn't match the
8489 # behavior of shared libraries on other platforms, we can't use
8495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8496 allow_undefined_flag=unsupported
8497 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8498 # support --undefined. This deserves some investigation. FIXME
8499 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8505 cygwin* | mingw* | pw32*)
8506 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8507 # as there is no search path for DLLs.
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 allow_undefined_flag=unsupported
8510 always_export_symbols=no
8511 enable_shared_with_static_runtimes=yes
8512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8514 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8516 # If the export-symbols file already is a .def file (1st line
8517 # is EXPORTS), use it as is; otherwise, prepend...
8518 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8519 cp $export_symbols $output_objdir/$soname.def;
8521 echo EXPORTS > $output_objdir/$soname.def;
8522 cat $export_symbols >> $output_objdir/$soname.def;
8524 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8532 hardcode_shlibpath_var=no
8533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8534 export_dynamic_flag_spec='${wl}-E'
8535 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8536 # Instead, shared libraries are loaded at an image base (0x10000000 by
8537 # default) and relocated if they conflict, which is a slow very memory
8538 # consuming and fragmenting process. To avoid this, we pick a random,
8539 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8540 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8541 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8542 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'
8546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8548 case $cc_basename,$host_cpu in
8549 pgcc*) # Portland Group C compiler
8550 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'
8551 tmp_addflag=' $pic_flag'
8553 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8554 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'
8555 tmp_addflag=' $pic_flag -Mnomain' ;;
8556 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8557 tmp_addflag=' -i_dynamic' ;;
8558 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8559 tmp_addflag=' -i_dynamic -nofor_main' ;;
8560 ifc* | ifort*) # Intel Fortran compiler
8561 tmp_addflag=' -nofor_main' ;;
8563 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565 if test $supports_anon_versioning = yes; then
8566 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8568 $echo "local: *; };" >> $output_objdir/$libname.ver~
8569 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8578 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8587 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8591 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8592 *** create shared libraries on Solaris systems. Therefore, libtool
8593 *** is disabling shared libraries support. We urge you to upgrade GNU
8594 *** binutils to release 2.9.1 or newer. Another option is to modify
8595 *** your PATH or compiler configuration so that the native linker is
8596 *** used, and then restart.
8599 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8608 case `$LD -v 2>&1` in
8609 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8613 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8614 *** reliably create shared libraries on SCO systems. Therefore, libtool
8615 *** is disabling shared libraries support. We urge you to upgrade GNU
8616 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8617 *** your PATH or compiler configuration so that the native linker is
8618 *** used, and then restart.
8623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8624 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8635 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_shlibpath_var=no
8642 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651 if test "$ld_shlibs" = no; then
8653 hardcode_libdir_flag_spec=
8654 export_dynamic_flag_spec=
8655 whole_archive_flag_spec=
8658 # PORTME fill in a description of your system's linker (not GNU ld)
8661 allow_undefined_flag=unsupported
8662 always_export_symbols=yes
8663 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'
8664 # Note: this linker hardcodes the directories in LIBPATH if there
8665 # are no directories specified by -L.
8666 hardcode_minus_L=yes
8667 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8668 # Neither direct hardcoding nor static linking is supported with a
8670 hardcode_direct=unsupported
8675 if test "$host_cpu" = ia64; then
8676 # On IA64, the linker does run time linking by default, so we don't
8677 # have to do anything special.
8678 aix_use_runtimelinking=no
8679 exp_sym_flag='-Bexport'
8682 # If we're using GNU nm, then we don't want the "-C" option.
8683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8684 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8685 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'
8687 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'
8689 aix_use_runtimelinking=no
8691 # Test if we are trying to use run time linking or normal
8692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8693 # need to do runtime linking.
8694 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8695 for ld_flag in $LDFLAGS; do
8696 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8697 aix_use_runtimelinking=yes
8704 exp_sym_flag='-bexport'
8705 no_entry_flag='-bnoentry'
8708 # When large executables or shared objects are built, AIX ld can
8709 # have problems creating the table of contents. If linking a library
8710 # or program results in "error TOC overflow" add -mminimal-toc to
8711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8716 hardcode_libdir_separator=':'
8717 link_all_deplibs=yes
8719 if test "$GCC" = yes; then
8720 case $host_os in aix4.[012]|aix4.[012].*)
8721 # We only want to do this on AIX 4.2 and lower, the check
8722 # below for broken collect2 doesn't work under 4.3+
8723 collect2name=`${CC} -print-prog-name=collect2`
8724 if test -f "$collect2name" && \
8725 strings "$collect2name" | grep resolve_lib_name >/dev/null
8727 # We have reworked collect2
8730 # We have old collect2
8731 hardcode_direct=unsupported
8732 # It fails to find uninstalled libraries when the uninstalled
8733 # path is not listed in the libpath. Setting hardcode_minus_L
8734 # to unsupported forces relinking
8735 hardcode_minus_L=yes
8736 hardcode_libdir_flag_spec='-L$libdir'
8737 hardcode_libdir_separator=
8741 shared_flag='-shared'
8742 if test "$aix_use_runtimelinking" = yes; then
8743 shared_flag="$shared_flag "'${wl}-G'
8747 if test "$host_cpu" = ia64; then
8748 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8749 # chokes on -Wl,-G. The following line is correct:
8752 if test "$aix_use_runtimelinking" = yes; then
8753 shared_flag='${wl}-G'
8755 shared_flag='${wl}-bM:SRE'
8760 # It seems that -bexpall does not export symbols beginning with
8761 # underscore (_), so it is better to generate a list of symbols to export.
8762 always_export_symbols=yes
8763 if test "$aix_use_runtimelinking" = yes; then
8764 # Warning - without using the other runtime loading flags (-brtl),
8765 # -berok will link without error, but may produce a broken library.
8766 allow_undefined_flag='-berok'
8767 # Determine the default libpath from the value encoded in an empty executable.
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (ac_try="$ac_link"
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_link") 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (case "(($ac_try" in
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_try") 2>&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest$ac_exeext'
8808 { (case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_try") 2>&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8820 # Check for a 64-bit object if we didn't find anything.
8821 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; }
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8834 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8835 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"
8837 if test "$host_cpu" = ia64; then
8838 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8839 allow_undefined_flag="-z nodefs"
8840 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"
8842 # Determine the default libpath from the value encoded in an empty executable.
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_link") 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } &&
8872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8873 { (case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_try") 2>&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_try") 2>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8895 # Check for a 64-bit object if we didn't find anything.
8896 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; }
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8905 rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8910 # Warning - without using the other run time loading flags,
8911 # -berok will link without error, but may produce a broken library.
8912 no_undefined_flag=' ${wl}-bernotok'
8913 allow_undefined_flag=' ${wl}-berok'
8914 # Exported symbols can be pulled into shared objects from archives
8915 whole_archive_flag_spec='$convenience'
8916 archive_cmds_need_lc=yes
8917 # This is similar to how AIX traditionally builds its shared libraries.
8918 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'
8924 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)'
8925 hardcode_libdir_flag_spec='-L$libdir'
8926 hardcode_minus_L=yes
8927 # see comment about different semantics on the GNU ld section
8932 export_dynamic_flag_spec=-rdynamic
8935 cygwin* | mingw* | pw32*)
8936 # When not using gcc, we currently assume that we are using
8937 # Microsoft Visual C++.
8938 # hardcode_libdir_flag_spec is actually meaningless, as there is
8939 # no search path for DLLs.
8940 hardcode_libdir_flag_spec=' '
8941 allow_undefined_flag=unsupported
8942 # Tell ltmain to make .lib files, not .a files.
8944 # Tell ltmain to make .dll files, not .so files.
8946 # FIXME: Setting linknames here is a bad hack.
8947 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8948 # The linker will automatically build a .lib file if we build a DLL.
8949 old_archive_From_new_cmds='true'
8950 # FIXME: Should let the user specify the lib program.
8951 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8952 fix_srcfile_path='`cygpath -w "$srcfile"`'
8953 enable_shared_with_static_runtimes=yes
8956 darwin* | rhapsody*)
8958 rhapsody* | darwin1.[012])
8959 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8962 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8963 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8965 case ${MACOSX_DEPLOYMENT_TARGET} in
8967 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8970 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8976 archive_cmds_need_lc=no
8978 hardcode_automatic=yes
8979 hardcode_shlibpath_var=unsupported
8980 whole_archive_flag_spec=''
8981 link_all_deplibs=yes
8982 if test "$GCC" = yes ; then
8983 output_verbose_link_cmd='echo'
8984 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8985 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8986 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8987 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}'
8988 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}'
8990 case $cc_basename in
8992 output_verbose_link_cmd='echo'
8993 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8994 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8995 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8996 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}'
8997 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}'
9007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_shlibpath_var=no
9016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9017 # support. Future versions do this automatically, but an explicit c++rt0.o
9018 # does not break anything, and helps significantly (at the cost of a little
9021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9022 hardcode_libdir_flag_spec='-R$libdir'
9024 hardcode_shlibpath_var=no
9027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_minus_L=yes
9032 hardcode_shlibpath_var=no
9035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9036 freebsd* | kfreebsd*-gnu | dragonfly*)
9037 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9038 hardcode_libdir_flag_spec='-R$libdir'
9040 hardcode_shlibpath_var=no
9044 if test "$GCC" = yes; then
9045 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'
9047 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'
9049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9050 hardcode_libdir_separator=:
9053 # hardcode_minus_L: Not really in the search PATH,
9054 # but as the default location of the library.
9055 hardcode_minus_L=yes
9056 export_dynamic_flag_spec='${wl}-E'
9060 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9065 if test "$with_gnu_ld" = no; then
9066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9067 hardcode_libdir_separator=:
9070 export_dynamic_flag_spec='${wl}-E'
9072 # hardcode_minus_L: Not really in the search PATH,
9073 # but as the default location of the library.
9074 hardcode_minus_L=yes
9079 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9082 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9100 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9104 if test "$with_gnu_ld" = no; then
9105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9106 hardcode_libdir_separator=:
9110 hardcode_libdir_flag_spec_ld='+b $libdir'
9112 hardcode_shlibpath_var=no
9116 export_dynamic_flag_spec='${wl}-E'
9118 # hardcode_minus_L: Not really in the search PATH,
9119 # but as the default location of the library.
9120 hardcode_minus_L=yes
9126 irix5* | irix6* | nonstopux*)
9127 if test "$GCC" = yes; then
9128 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'
9130 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'
9131 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9134 hardcode_libdir_separator=:
9135 link_all_deplibs=yes
9139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9144 hardcode_libdir_flag_spec='-R$libdir'
9146 hardcode_shlibpath_var=no
9150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153 hardcode_libdir_separator=:
9154 hardcode_shlibpath_var=no
9159 hardcode_shlibpath_var=no
9160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9164 export_dynamic_flag_spec='${wl}-E'
9167 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9169 hardcode_libdir_flag_spec='-R$libdir'
9172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 hardcode_minus_L=yes
9182 allow_undefined_flag=unsupported
9183 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'
9184 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9188 if test "$GCC" = yes; then
9189 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9190 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'
9192 allow_undefined_flag=' -expect_unresolved \*'
9193 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'
9195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196 hardcode_libdir_separator=:
9199 osf4* | osf5*) # as osf3* with the addition of -msym flag
9200 if test "$GCC" = yes; then
9201 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9202 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'
9203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205 allow_undefined_flag=' -expect_unresolved \*'
9206 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'
9207 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9208 $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'
9210 # Both c and cxx compiler support -rpath directly
9211 hardcode_libdir_flag_spec='-rpath $libdir'
9213 hardcode_libdir_separator=:
9217 no_undefined_flag=' -z text'
9218 if test "$GCC" = yes; then
9220 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9221 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9222 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9225 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9226 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9227 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9229 hardcode_libdir_flag_spec='-R$libdir'
9230 hardcode_shlibpath_var=no
9232 solaris2.[0-5] | solaris2.[0-5].*) ;;
9234 # The compiler driver will combine linker options so we
9235 # cannot just pass the convience library names through
9236 # without $wl, iff we do not link with $LD.
9237 # Luckily, gcc supports the same syntax we need for Sun Studio.
9238 # Supported since Solaris 2.6 (maybe 2.5.1?)
9241 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9243 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' ;;
9246 link_all_deplibs=yes
9250 if test "x$host_vendor" = xsequent; then
9251 # Use $CC to link under sequent, because it throws in some extra .o
9252 # files that make .init and .fini sections work.
9253 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec='-L$libdir'
9259 hardcode_minus_L=yes
9260 hardcode_shlibpath_var=no
9264 case $host_vendor in
9266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267 hardcode_direct=yes # is this really true???
9270 ## LD is ld it makes a PLAMLIB
9271 ## CC just makes a GrossModule.
9272 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9273 reload_cmds='$CC -r -o $output$reload_objs'
9277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9281 runpath_var='LD_RUN_PATH'
9282 hardcode_shlibpath_var=no
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_shlibpath_var=no
9288 export_dynamic_flag_spec='-Bexport'
9292 if test -d /usr/nec; then
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_shlibpath_var=no
9295 runpath_var=LD_RUN_PATH
9296 hardcode_runpath_var=yes
9301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9302 no_undefined_flag='${wl}-z,text'
9303 archive_cmds_need_lc=no
9304 hardcode_shlibpath_var=no
9305 runpath_var='LD_RUN_PATH'
9307 if test "$GCC" = yes; then
9308 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9316 sysv5* | sco3.2v5* | sco5v6*)
9317 # Note: We can NOT use -z defs as we might desire, because we do not
9318 # link with -lc, and that would cause any symbols used from libc to
9319 # always be unresolved, which means just about no library would
9320 # ever link correctly. If we're not using GNU ld we use -z text
9321 # though, which does catch some bad symbols but isn't as heavy-handed
9323 no_undefined_flag='${wl}-z,text'
9324 allow_undefined_flag='${wl}-z,nodefs'
9325 archive_cmds_need_lc=no
9326 hardcode_shlibpath_var=no
9327 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9328 hardcode_libdir_separator=':'
9329 link_all_deplibs=yes
9330 export_dynamic_flag_spec='${wl}-Bexport'
9331 runpath_var='LD_RUN_PATH'
9333 if test "$GCC" = yes; then
9334 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9337 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9338 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_libdir_flag_spec='-L$libdir'
9345 hardcode_shlibpath_var=no
9354 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9355 echo "${ECHO_T}$ld_shlibs" >&6; }
9356 test "$ld_shlibs" = no && can_build_shared=no
9359 # Do we need to explicitly link libc?
9361 case "x$archive_cmds_need_lc" in
9363 # Assume -lc should be added
9364 archive_cmds_need_lc=yes
9366 if test "$enable_shared" = yes && test "$GCC" = yes; then
9367 case $archive_cmds in
9369 # FIXME: we may have to deal with multi-command sequences.
9372 # Test whether the compiler implicitly links with -lc since on some
9373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9374 # to ld, don't add -lc before -lgcc.
9375 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } 2>conftest.err; then
9387 libobjs=conftest.$ac_objext
9389 wl=$lt_prog_compiler_wl
9390 pic_flag=$lt_prog_compiler_pic
9396 lt_save_allow_undefined_flag=$allow_undefined_flag
9397 allow_undefined_flag=
9398 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9399 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }
9404 archive_cmds_need_lc=no
9406 archive_cmds_need_lc=yes
9408 allow_undefined_flag=$lt_save_allow_undefined_flag
9410 cat conftest.err 1>&5
9413 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9414 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9421 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9422 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9424 libname_spec='lib$name'
9432 shlibpath_overrides_runpath=unknown
9434 dynamic_linker="$host_os ld.so"
9435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9436 if test "$GCC" = yes; then
9437 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9438 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9439 # if the path contains ";" then we assume it to be the separator
9440 # otherwise default to the standard path separator (i.e. ":") - it is
9441 # assumed that no part of a normal pathname contains ";" but that should
9442 # okay in the real world where ";" in dirpaths is itself problematic.
9443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9450 need_lib_prefix=unknown
9451 hardcode_into_libs=no
9453 # when you set need_version to no, make sure it does not cause -set_version
9454 # flags to be left without arguments
9455 need_version=unknown
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9461 shlibpath_var=LIBPATH
9463 # AIX 3 has no versioning support, so we append a major version to the name.
9464 soname_spec='${libname}${release}${shared_ext}$major'
9471 hardcode_into_libs=yes
9472 if test "$host_cpu" = ia64; then
9473 # AIX 5 supports IA64
9474 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9475 shlibpath_var=LD_LIBRARY_PATH
9477 # With GCC up to 2.95.x, collect2 would create an import file
9478 # for dependence libraries. The import file would start with
9479 # the line `#! .'. This would cause the generated library to
9480 # depend on `.', always an invalid library. This was fixed in
9481 # development snapshots of GCC prior to 3.0.
9483 aix4 | aix4.[01] | aix4.[01].*)
9484 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9486 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9493 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9494 # soname into executable. Probably we can add versioning support to
9495 # collect2, so additional links can be useful in future.
9496 if test "$aix_use_runtimelinking" = yes; then
9497 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9498 # instead of lib<name>.a to let people know that these are not
9499 # typical AIX shared libraries.
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 # We preserve .a as extension for shared libraries through AIX4.2
9503 # and later when we are not doing run time linking.
9504 library_names_spec='${libname}${release}.a $libname.a'
9505 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LIBPATH
9512 library_names_spec='$libname.ixlibrary $libname.a'
9513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9514 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'
9518 library_names_spec='${libname}${shared_ext}'
9519 dynamic_linker="$host_os ld.so"
9520 shlibpath_var=LIBRARY_PATH
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9532 # the default ld.so.conf also contains /usr/contrib/lib and
9533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9534 # libtool to hard-code these into programs
9537 cygwin* | mingw* | pw32*)
9538 version_type=windows
9543 case $GCC,$host_os in
9544 yes,cygwin* | yes,mingw* | yes,pw32*)
9545 library_names_spec='$libname.dll.a'
9546 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9547 postinstall_cmds='base_file=`basename \${file}`~
9548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9549 dldir=$destdir/`dirname \$dlpath`~
9550 test -d \$dldir || mkdir -p \$dldir~
9551 $install_prog $dir/$dlname \$dldir/$dlname~
9552 chmod a+x \$dldir/$dlname'
9553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9554 dlpath=$dir/\$dldll~
9556 shlibpath_overrides_runpath=yes
9560 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9562 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9565 # MinGW DLLs use traditional 'lib' prefix
9566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9567 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9568 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9569 # It is most probably a Windows format PATH printed by
9570 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9571 # path with ; separators, and with drive letters. We can handle the
9572 # drive letters (cygwin fileutils understands them), so leave them,
9573 # especially as we might pass files found there to a mingw objdump,
9574 # which wouldn't understand a cygwinified path. Ahh.
9575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9581 # pw32 DLLs use 'pw' prefix rather than 'lib'
9582 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9588 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9591 dynamic_linker='Win32 ld.exe'
9592 # FIXME: first we should search . and the directory the executable is in
9596 darwin* | rhapsody*)
9597 dynamic_linker="$host_os dyld"
9601 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9602 soname_spec='${libname}${release}${major}$shared_ext'
9603 shlibpath_overrides_runpath=yes
9604 shlibpath_var=DYLD_LIBRARY_PATH
9605 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9606 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9607 if test "$GCC" = yes; then
9608 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"`
9610 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=no
9636 hardcode_into_libs=yes
9637 dynamic_linker='GNU ld.so'
9640 freebsd* | dragonfly*)
9641 # DragonFly does not have aout. When/if they implement a new
9642 # versioning mechanism, adjust this.
9643 if test -x /usr/bin/objformat; then
9644 objformat=`/usr/bin/objformat`
9647 freebsd[123]*) objformat=aout ;;
9651 version_type=freebsd-$objformat
9652 case $version_type in
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9663 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes
9668 freebsd3.[01]* | freebsdelf3.[01]*)
9669 shlibpath_overrides_runpath=yes
9670 hardcode_into_libs=yes
9672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9674 shlibpath_overrides_runpath=no
9675 hardcode_into_libs=yes
9677 freebsd*) # from 4.6 on
9678 shlibpath_overrides_runpath=yes
9679 hardcode_into_libs=yes
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 hardcode_into_libs=yes
9694 hpux9* | hpux10* | hpux11*)
9695 # Give a soname corresponding to the major version so that dld.sl refuses to
9696 # link against other versions.
9703 hardcode_into_libs=yes
9704 dynamic_linker="$host_os dld.so"
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 if test "X$HPUX_IA64_MODE" = X32; then
9710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9718 hardcode_into_libs=yes
9719 dynamic_linker="$host_os dld.sl"
9720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9729 dynamic_linker="$host_os dld.sl"
9730 shlibpath_var=SHLIB_PATH
9731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9736 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9737 postinstall_cmds='chmod 555 $lib'
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 shlibpath_overrides_runpath=no
9749 hardcode_into_libs=yes
9752 irix5* | irix6* | nonstopux*)
9754 nonstopux*) version_type=nonstopux ;;
9756 if test "$lt_cv_prog_gnu_ld" = yes; then
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9767 irix5* | nonstopux*)
9771 case $LD in # libtool.m4 will add one of these switches to LD
9772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9773 libsuff= shlibsuff= libmagic=32-bit;;
9774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9775 libsuff=32 shlibsuff=N32 libmagic=N32;;
9776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9778 *) libsuff= shlibsuff= libmagic=never-match;;
9782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9783 shlibpath_overrides_runpath=no
9784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9786 hardcode_into_libs=yes
9789 # No shared lib support for Linux oldld, aout, or coff.
9790 linux*oldld* | linux*aout* | linux*coff*)
9794 # This must be Linux ELF.
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 shlibpath_overrides_runpath=no
9804 # This implies no fast_install, which is unacceptable.
9805 # Some rework will be needed to allow for fast_install
9806 # before this can be enabled.
9807 hardcode_into_libs=yes
9809 # find out which ABI we are using
9812 x86_64*|s390x*|powerpc64*)
9813 echo '#line 9813 "configure"' > conftest.$ac_ext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9815 (eval $ac_compile) 2>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; then
9819 case `/usr/bin/file conftest.$ac_objext` in
9822 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9830 # Append ld.so.conf contents to the search path
9831 if test -f /etc/ld.so.conf; then
9832 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9833 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9836 # We used to test for /lib/ld.so.1 and disable shared libraries on
9837 # powerpc, because MkLinux only supported shared libraries with the
9838 # GNU dynamic linker. Since this was broken with cross compilers,
9839 # most powerpc-linux boxes support dynamic linking these days and
9840 # people can always --disable-shared, the test was removed, and we
9841 # assume the GNU/Linux dynamic linker is in use.
9842 dynamic_linker='GNU/Linux ld.so'
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 shlibpath_overrides_runpath=no
9853 hardcode_into_libs=yes
9854 dynamic_linker='GNU ld.so'
9861 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9864 dynamic_linker='NetBSD (a.out) ld.so'
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 dynamic_linker='NetBSD ld.elf_so'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 shlibpath_overrides_runpath=yes
9872 hardcode_into_libs=yes
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath=yes
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=yes
9894 sys_lib_dlsearch_path_spec="/usr/lib"
9896 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9898 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9899 *) need_version=no ;;
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9906 openbsd2.[89] | openbsd2.[89].*)
9907 shlibpath_overrides_runpath=no
9910 shlibpath_overrides_runpath=yes
9914 shlibpath_overrides_runpath=yes
9919 libname_spec='$name'
9922 library_names_spec='$libname${shared_ext} $libname.a'
9923 dynamic_linker='OS/2 ld.exe'
9924 shlibpath_var=LIBPATH
9927 osf3* | osf4* | osf5*)
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=yes
9946 hardcode_into_libs=yes
9947 # ldd complains unless libraries are executable
9948 postinstall_cmds='chmod +x $lib'
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9957 if test "$with_gnu_ld" = yes; then
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 case $host_vendor in
9970 shlibpath_overrides_runpath=no
9972 export_dynamic_flag_spec='${wl}-Blargedynsym'
9973 runpath_var=LD_RUN_PATH
9981 shlibpath_overrides_runpath=no
9982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9988 if test -d /usr/nec ;then
9990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9991 soname_spec='$libname${shared_ext}.$major'
9992 shlibpath_var=LD_LIBRARY_PATH
9996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9997 version_type=freebsd-elf
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 hardcode_into_libs=yes
10004 if test "$with_gnu_ld" = yes; then
10005 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10006 shlibpath_overrides_runpath=no
10008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10009 shlibpath_overrides_runpath=yes
10012 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10016 sys_lib_dlsearch_path_spec='/usr/lib'
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10030 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10031 echo "${ECHO_T}$dynamic_linker" >&6; }
10032 test "$dynamic_linker" = no && can_build_shared=no
10034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10035 if test "$GCC" = yes; then
10036 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10039 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10040 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10042 if test -n "$hardcode_libdir_flag_spec" || \
10043 test -n "$runpath_var" || \
10044 test "X$hardcode_automatic" = "Xyes" ; then
10046 # We can hardcode non-existant directories.
10047 if test "$hardcode_direct" != no &&
10048 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10049 # have to relink, otherwise we might link with an installed library
10050 # when we should be linking with a yet-to-be-installed one
10051 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10052 test "$hardcode_minus_L" != no; then
10053 # Linking always hardcodes the temporary library directory.
10054 hardcode_action=relink
10056 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10057 hardcode_action=immediate
10060 # We cannot hardcode anything, or else we can only hardcode existing
10062 hardcode_action=unsupported
10064 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10065 echo "${ECHO_T}$hardcode_action" >&6; }
10067 if test "$hardcode_action" = relink; then
10068 # Fast installation is not supported
10069 enable_fast_install=no
10070 elif test "$shlibpath_overrides_runpath" = yes ||
10071 test "$enable_shared" = no; then
10072 # Fast installation is not necessary
10073 enable_fast_install=needless
10078 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10079 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10080 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10082 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10083 { echo "$as_me:$LINENO: result: yes" >&5
10084 echo "${ECHO_T}yes" >&6; }
10086 # FIXME - insert some real tests, host_os isn't really good enough
10089 if test -n "$STRIP" ; then
10090 striplib="$STRIP -x"
10091 { echo "$as_me:$LINENO: result: yes" >&5
10092 echo "${ECHO_T}yes" >&6; }
10094 { echo "$as_me:$LINENO: result: no" >&5
10095 echo "${ECHO_T}no" >&6; }
10099 { echo "$as_me:$LINENO: result: no" >&5
10100 echo "${ECHO_T}no" >&6; }
10105 if test "x$enable_dlopen" != xyes; then
10106 enable_dlopen=unknown
10107 enable_dlopen_self=unknown
10108 enable_dlopen_self_static=unknown
10115 lt_cv_dlopen="load_add_on"
10117 lt_cv_dlopen_self=yes
10121 lt_cv_dlopen="LoadLibrary"
10126 lt_cv_dlopen="dlopen"
10131 # if libdl is installed we need to link against it
10132 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10133 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 ac_check_lib_save_LIBS=$LIBS
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_link") 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10176 { (case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_try") 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest$ac_exeext'
10186 { (case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_try") 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_lib_dl_dlopen=yes
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ac_cv_lib_dl_dlopen=no
10203 rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10207 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10209 if test $ac_cv_lib_dl_dlopen = yes; then
10210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10213 lt_cv_dlopen="dyld"
10215 lt_cv_dlopen_self=yes
10222 { echo "$as_me:$LINENO: checking for shl_load" >&5
10223 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10224 if test "${ac_cv_func_shl_load+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 cat >conftest.$ac_ext <<_ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10235 #define shl_load innocuous_shl_load
10237 /* System header to define __stub macros and hopefully few prototypes,
10238 which can conflict with char shl_load (); below.
10239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10240 <limits.h> exists even on freestanding compilers. */
10243 # include <limits.h>
10245 # include <assert.h>
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10257 /* The GNU C library defines this for functions which it implements
10258 to always fail with ENOSYS. Some functions are actually named
10259 something starting with __ and the normal name is an alias. */
10260 #if defined __stub_shl_load || defined __stub___shl_load
10267 return shl_load ();
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10287 { (case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_try") 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest$ac_exeext'
10297 { (case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_try") 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 ac_cv_func_shl_load=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_func_shl_load=no
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10317 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10318 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10319 if test $ac_cv_func_shl_load = yes; then
10320 lt_cv_dlopen="shl_load"
10322 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10323 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_check_lib_save_LIBS=$LIBS
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10346 return shl_load ();
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366 { (case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_try") 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } &&
10375 { ac_try='test -s conftest$ac_exeext'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_lib_dld_shl_load=yes
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ac_cv_lib_dld_shl_load=no
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10399 if test $ac_cv_lib_dld_shl_load = yes; then
10400 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10402 { echo "$as_me:$LINENO: checking for dlopen" >&5
10403 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10404 if test "${ac_cv_func_dlopen+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10415 #define dlopen innocuous_dlopen
10417 /* System header to define __stub macros and hopefully few prototypes,
10418 which can conflict with char dlopen (); below.
10419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10420 <limits.h> exists even on freestanding compilers. */
10423 # include <limits.h>
10425 # include <assert.h>
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10437 /* The GNU C library defines this for functions which it implements
10438 to always fail with ENOSYS. Some functions are actually named
10439 something starting with __ and the normal name is an alias. */
10440 #if defined __stub_dlopen || defined __stub___dlopen
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10467 { (case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_try") 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_try") 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_func_dlopen=yes
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_func_dlopen=no
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10497 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10498 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10499 if test $ac_cv_func_dlopen = yes; then
10500 lt_cv_dlopen="dlopen"
10502 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10503 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 ac_check_lib_save_LIBS=$LIBS
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10516 /* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_cv_lib_dl_dlopen=yes
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 ac_cv_lib_dl_dlopen=no
10573 rm -f core conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10577 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10578 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10579 if test $ac_cv_lib_dl_dlopen = yes; then
10580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10582 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10583 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10584 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 ac_check_lib_save_LIBS=$LIBS
10588 LIBS="-lsvld $LIBS"
10589 cat >conftest.$ac_ext <<_ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10596 /* Override any GCC internal prototype to avoid an error.
10597 Use char because int might match the return type of a GCC
10598 builtin and then its argument prototype would still apply. */
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (ac_try="$ac_link"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_link") 2>conftest.er1
10620 grep -v '^ *+' conftest.er1 >conftest.err
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; } &&
10635 { ac_try='test -s conftest$ac_exeext'
10636 { (case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_try") 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_cv_lib_svld_dlopen=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_cv_lib_svld_dlopen=no
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10657 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10658 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10659 if test $ac_cv_lib_svld_dlopen = yes; then
10660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10662 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10663 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10664 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 ac_check_lib_save_LIBS=$LIBS
10669 cat >conftest.$ac_ext <<_ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10686 return dld_link ();
10691 rm -f conftest.$ac_objext conftest$ac_exeext
10692 if { (ac_try="$ac_link"
10693 case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_link") 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_lib_dld_dld_link=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_lib_dld_dld_link=no
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10739 if test $ac_cv_lib_dld_dld_link = yes; then
10740 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10761 if test "x$lt_cv_dlopen" != xno; then
10767 case $lt_cv_dlopen in
10769 save_CPPFLAGS="$CPPFLAGS"
10770 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10772 save_LDFLAGS="$LDFLAGS"
10773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10776 LIBS="$lt_cv_dlopen_libs $LIBS"
10778 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10779 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10780 if test "${lt_cv_dlopen_self+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 if test "$cross_compiling" = yes; then :
10784 lt_cv_dlopen_self=cross
10786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10787 lt_status=$lt_dlunknown
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10789 "configure"
10790 #include "confdefs.h"
10799 # define LT_DLGLOBAL RTLD_GLOBAL
10802 # define LT_DLGLOBAL DL_GLOBAL
10804 # define LT_DLGLOBAL 0
10808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10809 find out it does not work in some platform. */
10810 #ifndef LT_DLLAZY_OR_NOW
10812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10815 # define LT_DLLAZY_OR_NOW DL_LAZY
10818 # define LT_DLLAZY_OR_NOW RTLD_NOW
10821 # define LT_DLLAZY_OR_NOW DL_NOW
10823 # define LT_DLLAZY_OR_NOW 0
10831 extern "C" void exit (int);
10834 void fnord() { int i=42;}
10837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10838 int status = $lt_dlunknown;
10842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10843 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10844 /* dlclose (self); */
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853 (eval $ac_link) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10857 (./conftest; exit; ) >&5 2>/dev/null
10859 case x$lt_status in
10860 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10861 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10862 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10865 # compilation failed
10866 lt_cv_dlopen_self=no
10873 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10874 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10876 if test "x$lt_cv_dlopen_self" = xyes; then
10877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10878 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10879 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10880 if test "${lt_cv_dlopen_self_static+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 if test "$cross_compiling" = yes; then :
10884 lt_cv_dlopen_self_static=cross
10886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887 lt_status=$lt_dlunknown
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10889 "configure"
10890 #include "confdefs.h"
10899 # define LT_DLGLOBAL RTLD_GLOBAL
10902 # define LT_DLGLOBAL DL_GLOBAL
10904 # define LT_DLGLOBAL 0
10908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909 find out it does not work in some platform. */
10910 #ifndef LT_DLLAZY_OR_NOW
10912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10915 # define LT_DLLAZY_OR_NOW DL_LAZY
10918 # define LT_DLLAZY_OR_NOW RTLD_NOW
10921 # define LT_DLLAZY_OR_NOW DL_NOW
10923 # define LT_DLLAZY_OR_NOW 0
10931 extern "C" void exit (int);
10934 void fnord() { int i=42;}
10937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10938 int status = $lt_dlunknown;
10942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10944 /* dlclose (self); */
10952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953 (eval $ac_link) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10957 (./conftest; exit; ) >&5 2>/dev/null
10959 case x$lt_status in
10960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10965 # compilation failed
10966 lt_cv_dlopen_self_static=no
10973 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10974 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10977 CPPFLAGS="$save_CPPFLAGS"
10978 LDFLAGS="$save_LDFLAGS"
10983 case $lt_cv_dlopen_self in
10984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10985 *) enable_dlopen_self=unknown ;;
10988 case $lt_cv_dlopen_self_static in
10989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10990 *) enable_dlopen_self_static=unknown ;;
10995 # Report which library types will actually be built
10996 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10997 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10998 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10999 echo "${ECHO_T}$can_build_shared" >&6; }
11001 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11002 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11003 test "$can_build_shared" = "no" && enable_shared=no
11005 # On AIX, shared libraries and static libraries use the same namespace, and
11006 # are all built from PIC.
11009 test "$enable_shared" = yes && enable_static=no
11010 if test -n "$RANLIB"; then
11011 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11012 postinstall_cmds='$RANLIB $lib'
11017 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11018 test "$enable_shared" = yes && enable_static=no
11022 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11023 echo "${ECHO_T}$enable_shared" >&6; }
11025 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11026 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11027 # Make sure either enable_shared or enable_static is yes.
11028 test "$enable_shared" = yes || enable_static=yes
11029 { echo "$as_me:$LINENO: result: $enable_static" >&5
11030 echo "${ECHO_T}$enable_static" >&6; }
11032 # The else clause should only fire when bootstrapping the
11033 # libtool distribution, otherwise you forgot to ship ltmain.sh
11034 # with your package, and you will get complaints that there are
11035 # no rules to generate ltmain.sh.
11036 if test -f "$ltmain"; then
11037 # See if we are running on zsh, and set the options which allow our commands through
11038 # without removal of \ escapes.
11039 if test -n "${ZSH_VERSION+set}" ; then
11040 setopt NO_GLOB_SUBST
11042 # Now quote all the things that may contain metacharacters while being
11043 # careful not to overquote the AC_SUBSTed values. We take copies of the
11044 # variables and quote the copies for generation of the libtool script.
11045 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11047 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11048 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11049 deplibs_check_method reload_flag reload_cmds need_locks \
11050 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11051 lt_cv_sys_global_symbol_to_c_name_address \
11052 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11053 old_postinstall_cmds old_postuninstall_cmds \
11057 lt_prog_compiler_wl \
11058 lt_prog_compiler_pic \
11059 lt_prog_compiler_static \
11060 lt_prog_compiler_no_builtin_flag \
11061 export_dynamic_flag_spec \
11062 thread_safe_flag_spec \
11063 whole_archive_flag_spec \
11064 enable_shared_with_static_runtimes \
11066 old_archive_from_new_cmds \
11071 compiler_lib_search_path \
11073 archive_expsym_cmds \
11075 postuninstall_cmds \
11076 old_archive_from_expsyms_cmds \
11077 allow_undefined_flag \
11078 no_undefined_flag \
11079 export_symbols_cmds \
11080 hardcode_libdir_flag_spec \
11081 hardcode_libdir_flag_spec_ld \
11082 hardcode_libdir_separator \
11083 hardcode_automatic \
11085 module_expsym_cmds \
11086 lt_cv_prog_compiler_c_o \
11088 include_expsyms; do
11091 old_archive_cmds | \
11092 old_archive_from_new_cmds | \
11094 archive_expsym_cmds | \
11096 module_expsym_cmds | \
11097 old_archive_from_expsyms_cmds | \
11098 export_symbols_cmds | \
11099 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11100 postinstall_cmds | postuninstall_cmds | \
11101 old_postinstall_cmds | old_postuninstall_cmds | \
11102 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11103 # Double-quote double-evaled strings.
11104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11113 *'\$0 --fallback-echo"')
11114 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11118 cfgfile="${ofile}T"
11119 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11121 { echo "$as_me:$LINENO: creating $ofile" >&5
11122 echo "$as_me: creating $ofile" >&6;}
11124 cat <<__EOF__ >> "$cfgfile"
11127 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11128 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11131 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11132 # Free Software Foundation, Inc.
11134 # This file is part of GNU Libtool:
11135 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11137 # This program is free software; you can redistribute it and/or modify
11138 # it under the terms of the GNU General Public License as published by
11139 # the Free Software Foundation; either version 2 of the License, or
11140 # (at your option) any later version.
11142 # This program is distributed in the hope that it will be useful, but
11143 # WITHOUT ANY WARRANTY; without even the implied warranty of
11144 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11145 # General Public License for more details.
11147 # You should have received a copy of the GNU General Public License
11148 # along with this program; if not, write to the Free Software
11149 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11151 # As a special exception to the GNU General Public License, if you
11152 # distribute this file as part of a program that contains a
11153 # configuration script generated by Autoconf, you may include it under
11154 # the same distribution terms that you use for the rest of that program.
11156 # A sed program that does not truncate output.
11159 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11160 Xsed="$SED -e 1s/^X//"
11162 # The HP-UX ksh and POSIX shell print the target directory to stdout
11163 # if CDPATH is set.
11164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11166 # The names of the tagged configurations supported by this script.
11169 # ### BEGIN LIBTOOL CONFIG
11171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11173 # Shell to use when invoking shell scripts.
11176 # Whether or not to build shared libraries.
11177 build_libtool_libs=$enable_shared
11179 # Whether or not to build static libraries.
11180 build_old_libs=$enable_static
11182 # Whether or not to add -lc for building shared libraries.
11183 build_libtool_need_lc=$archive_cmds_need_lc
11185 # Whether or not to disallow shared libs when runtime libs are static
11186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11188 # Whether or not to optimize for fast installation.
11189 fast_install=$enable_fast_install
11192 host_alias=$host_alias
11196 # The build system.
11197 build_alias=$build_alias
11201 # An echo program that does not interpret backslashes.
11206 AR_FLAGS=$lt_AR_FLAGS
11211 # LTCC compiler flags.
11212 LTCFLAGS=$lt_LTCFLAGS
11214 # A language-specific compiler.
11217 # Is the compiler the GNU C compiler?
11223 # The linker used to build libraries.
11226 # Whether we need hard or soft links.
11229 # A BSD-compatible nm program.
11232 # A symbol stripping program
11235 # Used to examine libraries when file_magic_cmd begins "file"
11236 MAGIC_CMD=$MAGIC_CMD
11238 # Used on cygwin: DLL creation program.
11241 # Used on cygwin: object dumper.
11244 # Used on cygwin: assembler.
11247 # The name of the directory that contains temporary libtool files.
11250 # How to create reloadable object files.
11251 reload_flag=$lt_reload_flag
11252 reload_cmds=$lt_reload_cmds
11254 # How to pass a linker flag through the compiler.
11255 wl=$lt_lt_prog_compiler_wl
11257 # Object file suffix (normally "o").
11258 objext="$ac_objext"
11260 # Old archive suffix (normally "a").
11263 # Shared library suffix (normally ".so").
11264 shrext_cmds='$shrext_cmds'
11266 # Executable file suffix (normally "").
11269 # Additional compiler flags for building library objects.
11270 pic_flag=$lt_lt_prog_compiler_pic
11273 # What is the maximum length of a command?
11274 max_cmd_len=$lt_cv_sys_max_cmd_len
11276 # Does compiler simultaneously support -c and -o options?
11277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11279 # Must we lock files when doing compilation?
11280 need_locks=$lt_need_locks
11282 # Do we need the lib prefix for modules?
11283 need_lib_prefix=$need_lib_prefix
11285 # Do we need a version for libraries?
11286 need_version=$need_version
11288 # Whether dlopen is supported.
11289 dlopen_support=$enable_dlopen
11291 # Whether dlopen of programs is supported.
11292 dlopen_self=$enable_dlopen_self
11294 # Whether dlopen of statically linked programs is supported.
11295 dlopen_self_static=$enable_dlopen_self_static
11297 # Compiler flag to prevent dynamic linking.
11298 link_static_flag=$lt_lt_prog_compiler_static
11300 # Compiler flag to turn off builtin functions.
11301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11303 # Compiler flag to allow reflexive dlopens.
11304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11306 # Compiler flag to generate shared objects directly from archives.
11307 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11309 # Compiler flag to generate thread-safe objects.
11310 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11312 # Library versioning type.
11313 version_type=$version_type
11315 # Format of library name prefix.
11316 libname_spec=$lt_libname_spec
11318 # List of archive names. First name is the real one, the rest are links.
11319 # The last name is the one that the linker finds with -lNAME.
11320 library_names_spec=$lt_library_names_spec
11322 # The coded name of the library, if different from the real name.
11323 soname_spec=$lt_soname_spec
11325 # Commands used to build and install an old-style archive.
11327 old_archive_cmds=$lt_old_archive_cmds
11328 old_postinstall_cmds=$lt_old_postinstall_cmds
11329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11331 # Create an old-style archive from a shared archive.
11332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11334 # Create a temporary old-style archive to link instead of a shared archive.
11335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11337 # Commands used to build and install a shared archive.
11338 archive_cmds=$lt_archive_cmds
11339 archive_expsym_cmds=$lt_archive_expsym_cmds
11340 postinstall_cmds=$lt_postinstall_cmds
11341 postuninstall_cmds=$lt_postuninstall_cmds
11343 # Commands used to build a loadable module (assumed same as above if empty)
11344 module_cmds=$lt_module_cmds
11345 module_expsym_cmds=$lt_module_expsym_cmds
11347 # Commands to strip libraries.
11348 old_striplib=$lt_old_striplib
11349 striplib=$lt_striplib
11351 # Dependencies to place before the objects being linked to create a
11353 predep_objects=$lt_predep_objects
11355 # Dependencies to place after the objects being linked to create a
11357 postdep_objects=$lt_postdep_objects
11359 # Dependencies to place before the objects being linked to create a
11361 predeps=$lt_predeps
11363 # Dependencies to place after the objects being linked to create a
11365 postdeps=$lt_postdeps
11367 # The library search path used internally by the compiler when linking
11368 # a shared library.
11369 compiler_lib_search_path=$lt_compiler_lib_search_path
11371 # Method to check whether dependent libraries are shared objects.
11372 deplibs_check_method=$lt_deplibs_check_method
11374 # Command to use when deplibs_check_method == file_magic.
11375 file_magic_cmd=$lt_file_magic_cmd
11377 # Flag that allows shared libraries with undefined symbols to be built.
11378 allow_undefined_flag=$lt_allow_undefined_flag
11380 # Flag that forces no undefined symbols.
11381 no_undefined_flag=$lt_no_undefined_flag
11383 # Commands used to finish a libtool library installation in a directory.
11384 finish_cmds=$lt_finish_cmds
11386 # Same as above, but a single script fragment to be evaled but not shown.
11387 finish_eval=$lt_finish_eval
11389 # Take the output of nm and produce a listing of raw symbols and C names.
11390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11392 # Transform the output of nm in a proper C declaration
11393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11395 # Transform the output of nm in a C name address pair
11396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11398 # This is the shared library runtime path variable.
11399 runpath_var=$runpath_var
11401 # This is the shared library path variable.
11402 shlibpath_var=$shlibpath_var
11404 # Is shlibpath searched before the hard-coded library search path?
11405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11407 # How to hardcode a shared library path into an executable.
11408 hardcode_action=$hardcode_action
11410 # Whether we should hardcode library paths into libraries.
11411 hardcode_into_libs=$hardcode_into_libs
11413 # Flag to hardcode \$libdir into a binary during linking.
11414 # This must work even if \$libdir does not exist.
11415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11417 # If ld is used when linking, flag to hardcode \$libdir into
11418 # a binary during linking. This must work even if \$libdir does
11420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11422 # Whether we need a single -rpath flag with a separated argument.
11423 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11426 # resulting binary.
11427 hardcode_direct=$hardcode_direct
11429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11430 # resulting binary.
11431 hardcode_minus_L=$hardcode_minus_L
11433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11434 # the resulting binary.
11435 hardcode_shlibpath_var=$hardcode_shlibpath_var
11437 # Set to yes if building a shared library automatically hardcodes DIR into the library
11438 # and all subsequent libraries and executables linked against it.
11439 hardcode_automatic=$hardcode_automatic
11441 # Variables whose values should be saved in libtool wrapper scripts and
11442 # restored at relink time.
11443 variables_saved_for_relink="$variables_saved_for_relink"
11445 # Whether libtool must link a program against all its dependency libraries.
11446 link_all_deplibs=$link_all_deplibs
11448 # Compile-time system search path for libraries
11449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11451 # Run-time system search path for libraries
11452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11454 # Fix the shell variable \$srcfile for the compiler.
11455 fix_srcfile_path="$fix_srcfile_path"
11457 # Set to yes if exported symbols are required.
11458 always_export_symbols=$always_export_symbols
11460 # The commands to list exported symbols.
11461 export_symbols_cmds=$lt_export_symbols_cmds
11463 # The commands to extract the exported symbol list from a shared archive.
11464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11466 # Symbols that should not be listed in the preloaded symbols.
11467 exclude_expsyms=$lt_exclude_expsyms
11469 # Symbols that must always be exported.
11470 include_expsyms=$lt_include_expsyms
11472 # ### END LIBTOOL CONFIG
11479 cat <<\EOF >> "$cfgfile"
11481 # AIX sometimes has problems with the GCC collect2 program. For some
11482 # reason, if we set the COLLECT_NAMES environment variable, the problems
11483 # vanish in a puff of smoke.
11484 if test "X${COLLECT_NAMES+set}" != Xset; then
11486 export COLLECT_NAMES
11492 # We use sed instead of cat because bash on DJGPP gets confused if
11493 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11494 # text mode, it properly converts lines to CR/LF. This bash problem
11495 # is reportedly fixed, but why not run on old versions too?
11496 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11498 mv -f "$cfgfile" "$ofile" || \
11499 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11503 # If there is no Makefile yet, we rely on a make rule to execute
11504 # `config.status --recheck' to rerun these tests and create the
11505 # libtool script then.
11506 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11507 if test -f "$ltmain_in"; then
11508 test -f Makefile && make "$ltmain"
11514 ac_cpp='$CPP $CPPFLAGS'
11515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11522 # Check whether --with-tags was given.
11523 if test "${with_tags+set}" = set; then
11524 withval=$with_tags; tagnames="$withval"
11528 if test -f "$ltmain" && test -n "$tagnames"; then
11529 if test ! -f "${ofile}"; then
11530 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11531 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11534 if test -z "$LTCC"; then
11535 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11536 if test -z "$LTCC"; then
11537 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11538 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11541 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11544 if test -z "$LTCFLAGS"; then
11545 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11548 # Extract list of available tagged configurations in $ofile.
11549 # Note that this assumes the entire list is on one line.
11550 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11553 for tagname in $tagnames; do
11555 # Check whether tagname contains only valid characters
11556 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11558 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11559 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11560 { (exit 1); exit 1; }; }
11564 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11566 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11567 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11568 { (exit 1); exit 1; }; }
11571 # Update the list of available tags.
11572 if test -n "$tagname"; then
11573 echo appending configuration tag \"$tagname\" to $ofile
11577 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11578 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11579 (test "X$CXX" != "Xg++"))) ; then
11581 ac_cpp='$CXXCPP $CPPFLAGS'
11582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11589 archive_cmds_need_lc_CXX=no
11590 allow_undefined_flag_CXX=
11591 always_export_symbols_CXX=no
11592 archive_expsym_cmds_CXX=
11593 export_dynamic_flag_spec_CXX=
11594 hardcode_direct_CXX=no
11595 hardcode_libdir_flag_spec_CXX=
11596 hardcode_libdir_flag_spec_ld_CXX=
11597 hardcode_libdir_separator_CXX=
11598 hardcode_minus_L_CXX=no
11599 hardcode_shlibpath_var_CXX=unsupported
11600 hardcode_automatic_CXX=no
11602 module_expsym_cmds_CXX=
11603 link_all_deplibs_CXX=unknown
11604 old_archive_cmds_CXX=$old_archive_cmds
11605 no_undefined_flag_CXX=
11606 whole_archive_flag_spec_CXX=
11607 enable_shared_with_static_runtimes_CXX=no
11609 # Dependencies to place before and after the object being linked:
11610 predep_objects_CXX=
11611 postdep_objects_CXX=
11614 compiler_lib_search_path_CXX=
11616 # Source file extension for C++ test sources.
11619 # Object file extension for compiled C++ test sources.
11623 # Code to be used in simple compile tests
11624 lt_simple_compile_test_code="int some_variable = 0;\n"
11626 # Code to be used in simple link tests
11627 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11631 # If no C compiler was specified, use CC.
11634 # If no C compiler flags were specified, use CFLAGS.
11635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11637 # Allow CC to be a program name with arguments.
11641 # save warnings/boilerplate of simple test code
11642 ac_outfile=conftest.$ac_objext
11643 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11645 _lt_compiler_boilerplate=`cat conftest.err`
11648 ac_outfile=conftest.$ac_objext
11649 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11651 _lt_linker_boilerplate=`cat conftest.err`
11655 # Allow CC to be a program name with arguments.
11660 lt_save_with_gnu_ld=$with_gnu_ld
11661 lt_save_path_LD=$lt_cv_path_LD
11662 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11663 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11665 $as_unset lt_cv_prog_gnu_ld
11667 if test -n "${lt_cv_path_LDCXX+set}"; then
11668 lt_cv_path_LD=$lt_cv_path_LDCXX
11670 $as_unset lt_cv_path_LD
11672 test -z "${LDCXX+set}" || LD=$LDCXX
11676 for cc_temp in $compiler""; do
11678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11687 # We don't want -fno-exception wen compiling C++ code, so set the
11688 # no_builtin_flag separately
11689 if test "$GXX" = yes; then
11690 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11692 lt_prog_compiler_no_builtin_flag_CXX=
11695 if test "$GXX" = yes; then
11696 # Set up default GNU C++ configuration
11699 # Check whether --with-gnu-ld was given.
11700 if test "${with_gnu_ld+set}" = set; then
11701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11707 if test "$GCC" = yes; then
11708 # Check if gcc -print-prog-name=ld gives a path.
11709 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11710 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11713 # gcc leaves a trailing carriage return which upsets mingw
11714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11719 # Accept absolute paths.
11721 re_direlt='/[^/][^/]*/\.\./'
11722 # Canonicalize the pathname of ld
11723 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11724 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11725 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11727 test -z "$LD" && LD="$ac_prog"
11730 # If it fails, then pretend we aren't using GCC.
11734 # If it is relative, then search for the first ld in PATH.
11735 with_gnu_ld=unknown
11738 elif test "$with_gnu_ld" = yes; then
11739 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11740 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11742 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11743 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11745 if test "${lt_cv_path_LD+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 if test -z "$LD"; then
11749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11750 for ac_dir in $PATH; do
11752 test -z "$ac_dir" && ac_dir=.
11753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11754 lt_cv_path_LD="$ac_dir/$ac_prog"
11755 # Check to see if the program is GNU ld. I'd rather use --version,
11756 # but apparently some variants of GNU ld only accept -v.
11757 # Break only if it was the GNU/non-GNU ld that we prefer.
11758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11759 *GNU* | *'with BFD'*)
11760 test "$with_gnu_ld" != no && break
11763 test "$with_gnu_ld" != yes && break
11770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11774 LD="$lt_cv_path_LD"
11775 if test -n "$LD"; then
11776 { echo "$as_me:$LINENO: result: $LD" >&5
11777 echo "${ECHO_T}$LD" >&6; }
11779 { echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6; }
11782 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11783 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11784 { (exit 1); exit 1; }; }
11785 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11786 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11787 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11791 case `$LD -v 2>&1 </dev/null` in
11792 *GNU* | *'with BFD'*)
11793 lt_cv_prog_gnu_ld=yes
11796 lt_cv_prog_gnu_ld=no
11800 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11801 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11802 with_gnu_ld=$lt_cv_prog_gnu_ld
11806 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11807 # archiving commands below assume that GNU ld is being used.
11808 if test "$with_gnu_ld" = yes; then
11809 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 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'
11812 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11815 # If archive_cmds runs LD, not CC, wlarc should be empty
11816 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11817 # investigate it a little bit more. (MM)
11820 # ancient GNU ld didn't support --whole-archive et. al.
11821 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11822 grep 'no-whole-archive' > /dev/null; then
11823 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11825 whole_archive_flag_spec_CXX=
11831 # A generic and very simple default shared library creation
11832 # command for GNU C++ for the case where it uses the native
11833 # linker, instead of GNU ld. If possible, this setting should
11834 # overridden to take advantage of the native linker features on
11835 # the platform it is being used on.
11836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11839 # Commands to make compiler produce verbose output that lists
11840 # what "hidden" libraries, object files and flags are used when
11841 # linking a shared library.
11842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11850 # PORTME: fill in a description of your system's C++ link characteristics
11851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11856 # FIXME: insert proper C++ library support
11860 if test "$host_cpu" = ia64; then
11861 # On IA64, the linker does run time linking by default, so we don't
11862 # have to do anything special.
11863 aix_use_runtimelinking=no
11864 exp_sym_flag='-Bexport'
11867 aix_use_runtimelinking=no
11869 # Test if we are trying to use run time linking or normal
11870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11871 # need to do runtime linking.
11872 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11873 for ld_flag in $LDFLAGS; do
11876 aix_use_runtimelinking=yes
11884 exp_sym_flag='-bexport'
11885 no_entry_flag='-bnoentry'
11888 # When large executables or shared objects are built, AIX ld can
11889 # have problems creating the table of contents. If linking a library
11890 # or program results in "error TOC overflow" add -mminimal-toc to
11891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11894 archive_cmds_CXX=''
11895 hardcode_direct_CXX=yes
11896 hardcode_libdir_separator_CXX=':'
11897 link_all_deplibs_CXX=yes
11899 if test "$GXX" = yes; then
11900 case $host_os in aix4.[012]|aix4.[012].*)
11901 # We only want to do this on AIX 4.2 and lower, the check
11902 # below for broken collect2 doesn't work under 4.3+
11903 collect2name=`${CC} -print-prog-name=collect2`
11904 if test -f "$collect2name" && \
11905 strings "$collect2name" | grep resolve_lib_name >/dev/null
11907 # We have reworked collect2
11908 hardcode_direct_CXX=yes
11910 # We have old collect2
11911 hardcode_direct_CXX=unsupported
11912 # It fails to find uninstalled libraries when the uninstalled
11913 # path is not listed in the libpath. Setting hardcode_minus_L
11914 # to unsupported forces relinking
11915 hardcode_minus_L_CXX=yes
11916 hardcode_libdir_flag_spec_CXX='-L$libdir'
11917 hardcode_libdir_separator_CXX=
11921 shared_flag='-shared'
11922 if test "$aix_use_runtimelinking" = yes; then
11923 shared_flag="$shared_flag "'${wl}-G'
11927 if test "$host_cpu" = ia64; then
11928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11929 # chokes on -Wl,-G. The following line is correct:
11932 if test "$aix_use_runtimelinking" = yes; then
11933 shared_flag='${wl}-G'
11935 shared_flag='${wl}-bM:SRE'
11940 # It seems that -bexpall does not export symbols beginning with
11941 # underscore (_), so it is better to generate a list of symbols to export.
11942 always_export_symbols_CXX=yes
11943 if test "$aix_use_runtimelinking" = yes; then
11944 # Warning - without using the other runtime loading flags (-brtl),
11945 # -berok will link without error, but may produce a broken library.
11946 allow_undefined_flag_CXX='-berok'
11947 # Determine the default libpath from the value encoded in an empty executable.
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_link") 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11978 { (case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_try") 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest$ac_exeext'
11988 { (case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_try") 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12000 # Check for a 64-bit object if we didn't find anything.
12001 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; }
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12010 rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12014 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12016 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"
12018 if test "$host_cpu" = ia64; then
12019 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12020 allow_undefined_flag_CXX="-z nodefs"
12021 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"
12023 # Determine the default libpath from the value encoded in an empty executable.
12024 cat >conftest.$ac_ext <<_ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12039 rm -f conftest.$ac_objext conftest$ac_exeext
12040 if { (ac_try="$ac_link"
12041 case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_link") 2>conftest.er1
12048 grep -v '^ *+' conftest.er1 >conftest.err
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } &&
12053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest$ac_exeext'
12064 { (case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_try") 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12076 # Check for a 64-bit object if we didn't find anything.
12077 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; }
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12086 rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12090 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12091 # Warning - without using the other run time loading flags,
12092 # -berok will link without error, but may produce a broken library.
12093 no_undefined_flag_CXX=' ${wl}-bernotok'
12094 allow_undefined_flag_CXX=' ${wl}-berok'
12095 # Exported symbols can be pulled into shared objects from archives
12096 whole_archive_flag_spec_CXX='$convenience'
12097 archive_cmds_need_lc_CXX=yes
12098 # This is similar to how AIX traditionally builds its shared libraries.
12099 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'
12105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12106 allow_undefined_flag_CXX=unsupported
12107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12108 # support --undefined. This deserves some investigation. FIXME
12109 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12116 case $cc_basename in
12118 # FIXME: insert proper C++ library support
12124 cygwin* | mingw* | pw32*)
12125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12126 # as there is no search path for DLLs.
12127 hardcode_libdir_flag_spec_CXX='-L$libdir'
12128 allow_undefined_flag_CXX=unsupported
12129 always_export_symbols_CXX=no
12130 enable_shared_with_static_runtimes_CXX=yes
12132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12133 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'
12134 # If the export-symbols file already is a .def file (1st line
12135 # is EXPORTS), use it as is; otherwise, prepend...
12136 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12137 cp $export_symbols $output_objdir/$soname.def;
12139 echo EXPORTS > $output_objdir/$soname.def;
12140 cat $export_symbols >> $output_objdir/$soname.def;
12142 $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'
12147 darwin* | rhapsody*)
12149 rhapsody* | darwin1.[012])
12150 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12154 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12156 case ${MACOSX_DEPLOYMENT_TARGET} in
12158 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12161 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12167 archive_cmds_need_lc_CXX=no
12168 hardcode_direct_CXX=no
12169 hardcode_automatic_CXX=yes
12170 hardcode_shlibpath_var_CXX=unsupported
12171 whole_archive_flag_spec_CXX=''
12172 link_all_deplibs_CXX=yes
12174 if test "$GXX" = yes ; then
12175 lt_int_apple_cc_single_mod=no
12176 output_verbose_link_cmd='echo'
12177 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12178 lt_int_apple_cc_single_mod=yes
12180 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12181 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12183 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'
12185 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12187 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12188 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}'
12190 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}'
12192 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}'
12194 case $cc_basename in
12196 output_verbose_link_cmd='echo'
12197 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'
12198 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12200 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}'
12201 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}'
12211 case $cc_basename in
12213 # FIXME: insert proper C++ library support
12217 # Green Hills C++ Compiler
12218 # FIXME: insert proper C++ library support
12222 # FIXME: insert proper C++ library support
12228 # C++ shared libraries reported to be fairly broken before switch to ELF
12232 archive_cmds_need_lc_CXX=no
12234 freebsd* | kfreebsd*-gnu | dragonfly*)
12235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12243 hardcode_libdir_separator_CXX=:
12244 export_dynamic_flag_spec_CXX='${wl}-E'
12245 hardcode_direct_CXX=yes
12246 hardcode_minus_L_CXX=yes # Not in the search PATH,
12247 # but as the default
12248 # location of the library.
12250 case $cc_basename in
12252 # FIXME: insert proper C++ library support
12256 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'
12257 # Commands to make compiler produce verbose output that lists
12258 # what "hidden" libraries, object files and flags are used when
12259 # linking a shared library.
12261 # There doesn't appear to be a way to prevent this compiler from
12262 # explicitly linking system object files so we need to strip them
12263 # from the output so that they don't get included in the library
12265 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'
12268 if test "$GXX" = yes; then
12269 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'
12271 # FIXME: insert proper C++ library support
12278 if test $with_gnu_ld = no; then
12279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12280 hardcode_libdir_separator_CXX=:
12284 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12287 export_dynamic_flag_spec_CXX='${wl}-E'
12293 hardcode_direct_CXX=no
12294 hardcode_shlibpath_var_CXX=no
12297 hardcode_direct_CXX=yes
12298 hardcode_minus_L_CXX=yes # Not in the search PATH,
12299 # but as the default
12300 # location of the library.
12304 case $cc_basename in
12306 # FIXME: insert proper C++ library support
12312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12318 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321 # Commands to make compiler produce verbose output that lists
12322 # what "hidden" libraries, object files and flags are used when
12323 # linking a shared library.
12325 # There doesn't appear to be a way to prevent this compiler from
12326 # explicitly linking system object files so we need to strip them
12327 # from the output so that they don't get included in the library
12329 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'
12332 if test "$GXX" = yes; then
12333 if test $with_gnu_ld = no; then
12336 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12339 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12342 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'
12347 # FIXME: insert proper C++ library support
12354 hardcode_direct_CXX=no
12355 hardcode_shlibpath_var_CXX=no
12356 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12357 export_dynamic_flag_spec_CXX='${wl}-E'
12358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12359 # Instead, shared libraries are loaded at an image base (0x10000000 by
12360 # default) and relocated if they conflict, which is a slow very memory
12361 # consuming and fragmenting process. To avoid this, we pick a random,
12362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12364 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'
12365 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'
12368 case $cc_basename in
12371 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'
12373 # Archives containing C++ object files must be created using
12374 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12375 # necessary to make sure instantiated templates are included
12377 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12380 if test "$GXX" = yes; then
12381 if test "$with_gnu_ld" = no; then
12382 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'
12384 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'
12387 link_all_deplibs_CXX=yes
12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12391 hardcode_libdir_separator_CXX=:
12394 case $cc_basename in
12396 # Kuck and Associates, Inc. (KAI) C++ Compiler
12398 # KCC will only create a shared library if the output file
12399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12400 # to its proper name (with version) after linking.
12401 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'
12402 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'
12403 # Commands to make compiler produce verbose output that lists
12404 # what "hidden" libraries, object files and flags are used when
12405 # linking a shared library.
12407 # There doesn't appear to be a way to prevent this compiler from
12408 # explicitly linking system object files so we need to strip them
12409 # from the output so that they don't get included in the library
12411 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'
12413 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12416 # Archives containing C++ object files must be created using
12417 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12418 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12423 # version 8.0 and above of icpc choke on multiply defined symbols
12424 # if we add $predep_objects and $postdep_objects, however 7.1 and
12425 # earlier do not add the objects themselves.
12426 case `$CC -V 2>&1` in
12428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12429 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'
12431 *) # Version 8.0 or newer
12434 ia64*) tmp_idyn=' -i_dynamic';;
12436 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12437 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'
12440 archive_cmds_need_lc_CXX=no
12441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12443 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12446 # Portland Group C++ compiler
12447 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12448 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'
12450 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12451 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12452 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'
12456 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12457 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'
12459 runpath_var=LD_RUN_PATH
12460 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12461 hardcode_libdir_separator_CXX=:
12463 # Commands to make compiler produce verbose output that lists
12464 # what "hidden" libraries, object files and flags are used when
12465 # linking a shared library.
12467 # There doesn't appear to be a way to prevent this compiler from
12468 # explicitly linking system object files so we need to strip them
12469 # from the output so that they don't get included in the library
12471 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'
12476 # FIXME: insert proper C++ library support
12480 # FIXME: insert proper C++ library support
12484 case $cc_basename in
12486 # FIXME: insert proper C++ library support
12490 # FIXME: insert proper C++ library support
12496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12497 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12499 hardcode_libdir_flag_spec_CXX='-R$libdir'
12500 hardcode_direct_CXX=yes
12501 hardcode_shlibpath_var_CXX=no
12503 # Workaround some broken pre-1.5 toolchains
12504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12507 # C++ shared libraries are fairly broken
12511 hardcode_direct_CXX=yes
12512 hardcode_shlibpath_var_CXX=no
12513 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12516 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12517 export_dynamic_flag_spec_CXX='${wl}-E'
12518 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12520 output_verbose_link_cmd='echo'
12523 case $cc_basename in
12525 # Kuck and Associates, Inc. (KAI) C++ Compiler
12527 # KCC will only create a shared library if the output file
12528 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12529 # to its proper name (with version) after linking.
12530 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'
12532 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12533 hardcode_libdir_separator_CXX=:
12535 # Archives containing C++ object files must be created using
12536 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12537 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12541 # Rational C++ 2.4.1
12542 # FIXME: insert proper C++ library support
12546 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12547 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'
12549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12550 hardcode_libdir_separator_CXX=:
12552 # Commands to make compiler produce verbose output that lists
12553 # what "hidden" libraries, object files and flags are used when
12554 # linking a shared library.
12556 # There doesn't appear to be a way to prevent this compiler from
12557 # explicitly linking system object files so we need to strip them
12558 # from the output so that they don't get included in the library
12560 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'
12563 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12564 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12565 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'
12567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12568 hardcode_libdir_separator_CXX=:
12570 # Commands to make compiler produce verbose output that lists
12571 # what "hidden" libraries, object files and flags are used when
12572 # linking a shared library.
12573 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12576 # FIXME: insert proper C++ library support
12583 case $cc_basename in
12585 # Kuck and Associates, Inc. (KAI) C++ Compiler
12587 # KCC will only create a shared library if the output file
12588 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12589 # to its proper name (with version) after linking.
12590 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'
12592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12593 hardcode_libdir_separator_CXX=:
12595 # Archives containing C++ object files must be created using
12596 # the KAI C++ compiler.
12597 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12600 # Rational C++ 2.4.1
12601 # FIXME: insert proper C++ library support
12605 allow_undefined_flag_CXX=' -expect_unresolved \*'
12606 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'
12607 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12608 echo "-hidden">> $lib.exp~
12609 $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~
12612 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12613 hardcode_libdir_separator_CXX=:
12615 # Commands to make compiler produce verbose output that lists
12616 # what "hidden" libraries, object files and flags are used when
12617 # linking a shared library.
12619 # There doesn't appear to be a way to prevent this compiler from
12620 # explicitly linking system object files so we need to strip them
12621 # from the output so that they don't get included in the library
12623 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'
12626 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12627 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12628 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'
12630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12631 hardcode_libdir_separator_CXX=:
12633 # Commands to make compiler produce verbose output that lists
12634 # what "hidden" libraries, object files and flags are used when
12635 # linking a shared library.
12636 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12639 # FIXME: insert proper C++ library support
12646 # FIXME: insert proper C++ library support
12650 case $cc_basename in
12653 # FIXME: insert proper C++ library support
12658 # FIXME: insert proper C++ library support
12662 # FIXME: insert proper C++ library support
12668 case $cc_basename in
12670 # Sun C++ 4.2, 5.x and Centerline C++
12671 archive_cmds_need_lc_CXX=yes
12672 no_undefined_flag_CXX=' -zdefs'
12673 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12674 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12675 $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'
12677 hardcode_libdir_flag_spec_CXX='-R$libdir'
12678 hardcode_shlibpath_var_CXX=no
12680 solaris2.[0-5] | solaris2.[0-5].*) ;;
12682 # The C++ compiler is used as linker so we must use $wl
12683 # flag to pass the commands to the underlying system
12684 # linker. We must also pass each convience library through
12685 # to the system linker between allextract/defaultextract.
12686 # The C++ compiler will combine linker options so we
12687 # cannot just pass the convience library names through
12689 # Supported since Solaris 2.6 (maybe 2.5.1?)
12690 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'
12693 link_all_deplibs_CXX=yes
12695 output_verbose_link_cmd='echo'
12697 # Archives containing C++ object files must be created using
12698 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12699 # necessary to make sure instantiated templates are included
12701 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12704 # Green Hills C++ Compiler
12705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12707 # The C++ compiler must be used to create the archive.
12708 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12711 # GNU C++ compiler with Solaris linker
12712 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12713 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12714 if $CC --version | grep -v '^2\.7' > /dev/null; then
12715 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12716 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12717 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12719 # Commands to make compiler produce verbose output that lists
12720 # what "hidden" libraries, object files and flags are used when
12721 # linking a shared library.
12722 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12724 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12726 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12727 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12728 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12730 # Commands to make compiler produce verbose output that lists
12731 # what "hidden" libraries, object files and flags are used when
12732 # linking a shared library.
12733 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12736 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12742 no_undefined_flag_CXX='${wl}-z,text'
12743 archive_cmds_need_lc_CXX=no
12744 hardcode_shlibpath_var_CXX=no
12745 runpath_var='LD_RUN_PATH'
12747 case $cc_basename in
12749 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12750 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12753 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12754 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12758 sysv5* | sco3.2v5* | sco5v6*)
12759 # Note: We can NOT use -z defs as we might desire, because we do not
12760 # link with -lc, and that would cause any symbols used from libc to
12761 # always be unresolved, which means just about no library would
12762 # ever link correctly. If we're not using GNU ld we use -z text
12763 # though, which does catch some bad symbols but isn't as heavy-handed
12765 # For security reasons, it is highly recommended that you always
12766 # use absolute paths for naming shared libraries, and exclude the
12767 # DT_RUNPATH tag from executables and libraries. But doing so
12768 # requires that you compile everything twice, which is a pain.
12769 # So that behaviour is only enabled if SCOABSPATH is set to a
12770 # non-empty value in the environment. Most likely only useful for
12771 # creating official distributions of packages.
12772 # This is a hack until libtool officially supports absolute path
12773 # names for shared libraries.
12774 no_undefined_flag_CXX='${wl}-z,text'
12775 allow_undefined_flag_CXX='${wl}-z,nodefs'
12776 archive_cmds_need_lc_CXX=no
12777 hardcode_shlibpath_var_CXX=no
12778 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12779 hardcode_libdir_separator_CXX=':'
12780 link_all_deplibs_CXX=yes
12781 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12782 runpath_var='LD_RUN_PATH'
12784 case $cc_basename in
12786 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12787 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12790 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12791 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12796 case $cc_basename in
12798 # NonStop-UX NCC 3.20
12799 # FIXME: insert proper C++ library support
12803 # FIXME: insert proper C++ library support
12809 # FIXME: insert proper C++ library support
12813 # FIXME: insert proper C++ library support
12817 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12818 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12819 test "$ld_shlibs_CXX" = no && can_build_shared=no
12825 cat > conftest.$ac_ext <<EOF
12829 Foo (void) { a = 0; }
12835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836 (eval $ac_compile) 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; then
12840 # Parse the compiler output and extract the necessary
12841 # objects, libraries and library flags.
12843 # Sentinel used to keep track of whether or not we are before
12844 # the conftest object file.
12845 pre_test_object_deps_done=no
12847 # The `*' in the case matches for architectures that use `case' in
12848 # $output_verbose_cmd can trigger glob expansion during the loop
12849 # eval without this substitution.
12850 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12852 for p in `eval $output_verbose_link_cmd`; do
12856 # Some compilers place space between "-{L,R}" and the path.
12857 # Remove the space.
12858 if test $p = "-L" \
12859 || test $p = "-R"; then
12866 if test "$pre_test_object_deps_done" = no; then
12869 # Internal compiler library paths should come after those
12870 # provided the user. The postdeps already come after the
12871 # user supplied libs so there is no need to process them.
12872 if test -z "$compiler_lib_search_path_CXX"; then
12873 compiler_lib_search_path_CXX="${prev}${p}"
12875 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12878 # The "-l" case would never come before the object being
12879 # linked, so don't bother handling this case.
12882 if test -z "$postdeps_CXX"; then
12883 postdeps_CXX="${prev}${p}"
12885 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12891 # This assumes that the test object file only shows up
12892 # once in the compiler output.
12893 if test "$p" = "conftest.$objext"; then
12894 pre_test_object_deps_done=yes
12898 if test "$pre_test_object_deps_done" = no; then
12899 if test -z "$predep_objects_CXX"; then
12900 predep_objects_CXX="$p"
12902 predep_objects_CXX="$predep_objects_CXX $p"
12905 if test -z "$postdep_objects_CXX"; then
12906 postdep_objects_CXX="$p"
12908 postdep_objects_CXX="$postdep_objects_CXX $p"
12913 *) ;; # Ignore the rest.
12921 echo "libtool.m4: error: problem compiling CXX test program"
12924 $rm -f confest.$objext
12926 # PORTME: override above test on systems where it is broken
12929 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12930 # hack all around it, let's just trust "g++" to DTRT.
12931 predep_objects_CXX=
12932 postdep_objects_CXX=
12937 case $cc_basename in
12939 # Adding this requires a known-good setup of shared libraries for
12940 # Sun compiler versions before 5.6, else PIC objects from an old
12941 # archive will be linked into the output, leading to subtle bugs.
12942 postdeps_CXX='-lCstd -lCrun'
12949 case " $postdeps_CXX " in
12950 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12953 lt_prog_compiler_wl_CXX=
12954 lt_prog_compiler_pic_CXX=
12955 lt_prog_compiler_static_CXX=
12957 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12960 # C++ specific cases for pic, static, wl, etc.
12961 if test "$GXX" = yes; then
12962 lt_prog_compiler_wl_CXX='-Wl,'
12963 lt_prog_compiler_static_CXX='-static'
12967 # All AIX code is PIC.
12968 if test "$host_cpu" = ia64; then
12969 # AIX 5 now supports IA64 processor
12970 lt_prog_compiler_static_CXX='-Bstatic'
12974 # FIXME: we need at least 68020 code to build shared libraries, but
12975 # adding the `-m68020' flag to GCC prevents building anything better,
12977 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12979 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12980 # PIC is the default for these OSes.
12982 mingw* | os2* | pw32*)
12983 # This hack is so that the source file can tell whether it is being
12984 # built for inclusion in a dll (and should export symbols for example).
12985 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12987 darwin* | rhapsody*)
12988 # PIC is the default on this platform
12989 # Common symbols not allowed in MH_DYLIB files
12990 lt_prog_compiler_pic_CXX='-fno-common'
12993 # DJGPP does not support shared libraries at all
12994 lt_prog_compiler_pic_CXX=
12997 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12998 # Instead, we relocate shared libraries at runtime.
13001 if test -d /usr/nec; then
13002 lt_prog_compiler_pic_CXX=-Kconform_pic
13006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13007 # not for PA HP-UX.
13012 lt_prog_compiler_pic_CXX='-fPIC'
13017 lt_prog_compiler_pic_CXX='-fPIC'
13023 # All AIX code is PIC.
13024 if test "$host_cpu" = ia64; then
13025 # AIX 5 now supports IA64 processor
13026 lt_prog_compiler_static_CXX='-Bstatic'
13028 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13032 case $cc_basename in
13034 # Green Hills C++ Compiler
13035 # _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"
13040 # PIC is the default on this platform
13041 # Common symbols not allowed in MH_DYLIB files
13042 case $cc_basename in
13044 lt_prog_compiler_pic_CXX='-qnocommon'
13045 lt_prog_compiler_wl_CXX='-Wl,'
13050 case $cc_basename in
13052 lt_prog_compiler_pic_CXX='-KPIC'
13055 # Green Hills C++ Compiler
13056 lt_prog_compiler_pic_CXX='-pic'
13062 freebsd* | kfreebsd*-gnu | dragonfly*)
13063 # FreeBSD uses GNU C++
13065 hpux9* | hpux10* | hpux11*)
13066 case $cc_basename in
13068 lt_prog_compiler_wl_CXX='-Wl,'
13069 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13070 if test "$host_cpu" != ia64; then
13071 lt_prog_compiler_pic_CXX='+Z'
13075 lt_prog_compiler_wl_CXX='-Wl,'
13076 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13082 lt_prog_compiler_pic_CXX='+Z'
13091 # This is c89, which is MS Visual C++ (no shared libs)
13092 # Anyone wants to do a port?
13094 irix5* | irix6* | nonstopux*)
13095 case $cc_basename in
13097 lt_prog_compiler_wl_CXX='-Wl,'
13098 lt_prog_compiler_static_CXX='-non_shared'
13099 # CC pic flag -KPIC is the default.
13106 case $cc_basename in
13109 lt_prog_compiler_wl_CXX='--backend -Wl,'
13110 lt_prog_compiler_pic_CXX='-fPIC'
13114 lt_prog_compiler_wl_CXX='-Wl,'
13115 lt_prog_compiler_pic_CXX='-KPIC'
13116 lt_prog_compiler_static_CXX='-static'
13119 # Portland Group C++ compiler.
13120 lt_prog_compiler_wl_CXX='-Wl,'
13121 lt_prog_compiler_pic_CXX='-fpic'
13122 lt_prog_compiler_static_CXX='-Bstatic'
13126 # Make sure the PIC flag is empty. It appears that all Alpha
13127 # Linux and Compaq Tru64 Unix objects are PIC.
13128 lt_prog_compiler_pic_CXX=
13129 lt_prog_compiler_static_CXX='-non_shared'
13140 case $cc_basename in
13142 lt_prog_compiler_pic_CXX='-W c,exportall'
13150 osf3* | osf4* | osf5*)
13151 case $cc_basename in
13153 lt_prog_compiler_wl_CXX='--backend -Wl,'
13156 # Rational C++ 2.4.1
13157 lt_prog_compiler_pic_CXX='-pic'
13160 # Digital/Compaq C++
13161 lt_prog_compiler_wl_CXX='-Wl,'
13162 # Make sure the PIC flag is empty. It appears that all Alpha
13163 # Linux and Compaq Tru64 Unix objects are PIC.
13164 lt_prog_compiler_pic_CXX=
13165 lt_prog_compiler_static_CXX='-non_shared'
13174 case $cc_basename in
13176 # Sun C++ 4.2, 5.x and Centerline C++
13177 lt_prog_compiler_pic_CXX='-KPIC'
13178 lt_prog_compiler_static_CXX='-Bstatic'
13179 lt_prog_compiler_wl_CXX='-Qoption ld '
13182 # Green Hills C++ Compiler
13183 lt_prog_compiler_pic_CXX='-PIC'
13190 case $cc_basename in
13193 lt_prog_compiler_pic_CXX='-pic'
13194 lt_prog_compiler_static_CXX='-Bstatic'
13198 lt_prog_compiler_pic_CXX='-pic'
13205 case $cc_basename in
13207 # NonStop-UX NCC 3.20
13208 lt_prog_compiler_pic_CXX='-KPIC'
13214 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13215 case $cc_basename in
13217 lt_prog_compiler_wl_CXX='-Wl,'
13218 lt_prog_compiler_pic_CXX='-KPIC'
13219 lt_prog_compiler_static_CXX='-Bstatic'
13226 lt_prog_compiler_can_build_shared_CXX=no
13231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13232 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13235 # Check to make sure the PIC flag actually works.
13237 if test -n "$lt_prog_compiler_pic_CXX"; then
13239 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13240 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13241 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 lt_prog_compiler_pic_works_CXX=no
13245 ac_outfile=conftest.$ac_objext
13246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13247 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13248 # Insert the option either (1) after the last *FLAGS variable, or
13249 # (2) before a word containing "conftest.", or (3) at the end.
13250 # Note that $ac_compile itself does not contain backslashes and begins
13251 # with a dollar sign (not a hyphen), so the echo should work correctly.
13252 # The option is referenced via a variable to avoid confusing sed.
13253 lt_compile=`echo "$ac_compile" | $SED \
13254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13256 -e 's:$: $lt_compiler_flag:'`
13257 (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
13258 (eval "$lt_compile" 2>conftest.err)
13260 cat conftest.err >&5
13261 echo "$as_me:13261: \$? = $ac_status" >&5
13262 if (exit $ac_status) && test -s "$ac_outfile"; then
13263 # The compiler can only warn and ignore the option if not recognized
13264 # So say no if there are warnings other than the usual output.
13265 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13268 lt_prog_compiler_pic_works_CXX=yes
13274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13275 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13277 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13278 case $lt_prog_compiler_pic_CXX in
13280 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13283 lt_prog_compiler_pic_CXX=
13284 lt_prog_compiler_can_build_shared_CXX=no
13289 # For platforms which do not support PIC, -DPIC is meaningless:
13291 lt_prog_compiler_pic_CXX=
13294 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13299 # Check to make sure the static flag actually works.
13301 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13302 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13303 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13304 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 lt_prog_compiler_static_works_CXX=no
13308 save_LDFLAGS="$LDFLAGS"
13309 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13310 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13312 # The linker can only warn and ignore the option if not recognized
13313 # So say no if there are warnings
13314 if test -s conftest.err; then
13315 # Append any errors to the config.log.
13316 cat conftest.err 1>&5
13317 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13319 if diff conftest.exp conftest.er2 >/dev/null; then
13320 lt_prog_compiler_static_works_CXX=yes
13323 lt_prog_compiler_static_works_CXX=yes
13327 LDFLAGS="$save_LDFLAGS"
13330 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13331 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13333 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13336 lt_prog_compiler_static_CXX=
13340 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13341 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13342 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 lt_cv_prog_compiler_c_o_CXX=no
13346 $rm -r conftest 2>/dev/null
13350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13352 lt_compiler_flag="-o out/conftest2.$ac_objext"
13353 # Insert the option either (1) after the last *FLAGS variable, or
13354 # (2) before a word containing "conftest.", or (3) at the end.
13355 # Note that $ac_compile itself does not contain backslashes and begins
13356 # with a dollar sign (not a hyphen), so the echo should work correctly.
13357 lt_compile=`echo "$ac_compile" | $SED \
13358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13360 -e 's:$: $lt_compiler_flag:'`
13361 (eval echo "\"\$as_me:13361: $lt_compile\"" >&5)
13362 (eval "$lt_compile" 2>out/conftest.err)
13364 cat out/conftest.err >&5
13365 echo "$as_me:13365: \$? = $ac_status" >&5
13366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13368 # The compiler can only warn and ignore the option if not recognized
13369 # So say no if there are warnings
13370 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13373 lt_cv_prog_compiler_c_o_CXX=yes
13378 # SGI C++ compiler will create directory out/ii_files/ for
13379 # template instantiation
13380 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13381 $rm out/* && rmdir out
13387 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13388 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13391 hard_links="nottested"
13392 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13393 # do not overwrite the value of need_locks provided by the user
13394 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13395 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13400 ln conftest.a conftest.b 2>&5 || hard_links=no
13401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13402 { echo "$as_me:$LINENO: result: $hard_links" >&5
13403 echo "${ECHO_T}$hard_links" >&6; }
13404 if test "$hard_links" = no; then
13405 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13406 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13413 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13414 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13416 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13419 # If we're using GNU nm, then we don't want the "-C" option.
13420 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13421 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13422 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'
13424 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'
13428 export_symbols_cmds_CXX="$ltdll_cmds"
13431 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'
13434 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13438 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13439 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13440 test "$ld_shlibs_CXX" = no && can_build_shared=no
13443 # Do we need to explicitly link libc?
13445 case "x$archive_cmds_need_lc_CXX" in
13447 # Assume -lc should be added
13448 archive_cmds_need_lc_CXX=yes
13450 if test "$enable_shared" = yes && test "$GCC" = yes; then
13451 case $archive_cmds_CXX in
13453 # FIXME: we may have to deal with multi-command sequences.
13456 # Test whether the compiler implicitly links with -lc since on some
13457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13458 # to ld, don't add -lc before -lgcc.
13459 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } 2>conftest.err; then
13471 libobjs=conftest.$ac_objext
13473 wl=$lt_prog_compiler_wl_CXX
13474 pic_flag=$lt_prog_compiler_pic_CXX
13480 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13481 allow_undefined_flag_CXX=
13482 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13483 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }
13488 archive_cmds_need_lc_CXX=no
13490 archive_cmds_need_lc_CXX=yes
13492 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13494 cat conftest.err 1>&5
13497 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13498 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13505 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13506 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13507 library_names_spec=
13508 libname_spec='lib$name'
13512 postuninstall_cmds=
13516 shlibpath_overrides_runpath=unknown
13518 dynamic_linker="$host_os ld.so"
13519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13520 if test "$GCC" = yes; then
13521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13522 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13523 # if the path contains ";" then we assume it to be the separator
13524 # otherwise default to the standard path separator (i.e. ":") - it is
13525 # assumed that no part of a normal pathname contains ";" but that should
13526 # okay in the real world where ";" in dirpaths is itself problematic.
13527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13534 need_lib_prefix=unknown
13535 hardcode_into_libs=no
13537 # when you set need_version to no, make sure it does not cause -set_version
13538 # flags to be left without arguments
13539 need_version=unknown
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13545 shlibpath_var=LIBPATH
13547 # AIX 3 has no versioning support, so we append a major version to the name.
13548 soname_spec='${libname}${release}${shared_ext}$major'
13555 hardcode_into_libs=yes
13556 if test "$host_cpu" = ia64; then
13557 # AIX 5 supports IA64
13558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13559 shlibpath_var=LD_LIBRARY_PATH
13561 # With GCC up to 2.95.x, collect2 would create an import file
13562 # for dependence libraries. The import file would start with
13563 # the line `#! .'. This would cause the generated library to
13564 # depend on `.', always an invalid library. This was fixed in
13565 # development snapshots of GCC prior to 3.0.
13567 aix4 | aix4.[01] | aix4.[01].*)
13568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13570 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13573 can_build_shared=no
13577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13578 # soname into executable. Probably we can add versioning support to
13579 # collect2, so additional links can be useful in future.
13580 if test "$aix_use_runtimelinking" = yes; then
13581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13582 # instead of lib<name>.a to let people know that these are not
13583 # typical AIX shared libraries.
13584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586 # We preserve .a as extension for shared libraries through AIX4.2
13587 # and later when we are not doing run time linking.
13588 library_names_spec='${libname}${release}.a $libname.a'
13589 soname_spec='${libname}${release}${shared_ext}$major'
13591 shlibpath_var=LIBPATH
13596 library_names_spec='$libname.ixlibrary $libname.a'
13597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13598 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'
13602 library_names_spec='${libname}${shared_ext}'
13603 dynamic_linker="$host_os ld.so"
13604 shlibpath_var=LIBRARY_PATH
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13616 # the default ld.so.conf also contains /usr/contrib/lib and
13617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13618 # libtool to hard-code these into programs
13621 cygwin* | mingw* | pw32*)
13622 version_type=windows
13627 case $GCC,$host_os in
13628 yes,cygwin* | yes,mingw* | yes,pw32*)
13629 library_names_spec='$libname.dll.a'
13630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13631 postinstall_cmds='base_file=`basename \${file}`~
13632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13633 dldir=$destdir/`dirname \$dlpath`~
13634 test -d \$dldir || mkdir -p \$dldir~
13635 $install_prog $dir/$dlname \$dldir/$dlname~
13636 chmod a+x \$dldir/$dlname'
13637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13638 dlpath=$dir/\$dldll~
13640 shlibpath_overrides_runpath=yes
13644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13649 # MinGW DLLs use traditional 'lib' prefix
13650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13652 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13653 # It is most probably a Windows format PATH printed by
13654 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13655 # path with ; separators, and with drive letters. We can handle the
13656 # drive letters (cygwin fileutils understands them), so leave them,
13657 # especially as we might pass files found there to a mingw objdump,
13658 # which wouldn't understand a cygwinified path. Ahh.
13659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13665 # pw32 DLLs use 'pw' prefix rather than 'lib'
13666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13675 dynamic_linker='Win32 ld.exe'
13676 # FIXME: first we should search . and the directory the executable is in
13680 darwin* | rhapsody*)
13681 dynamic_linker="$host_os dyld"
13682 version_type=darwin
13685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13686 soname_spec='${libname}${release}${major}$shared_ext'
13687 shlibpath_overrides_runpath=yes
13688 shlibpath_var=DYLD_LIBRARY_PATH
13689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13691 if test "$GCC" = yes; then
13692 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"`
13694 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13704 soname_spec='${libname}${release}${shared_ext}$major'
13705 shlibpath_var=LD_LIBRARY_PATH
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13717 soname_spec='${libname}${release}${shared_ext}$major'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 hardcode_into_libs=yes
13721 dynamic_linker='GNU ld.so'
13724 freebsd* | dragonfly*)
13725 # DragonFly does not have aout. When/if they implement a new
13726 # versioning mechanism, adjust this.
13727 if test -x /usr/bin/objformat; then
13728 objformat=`/usr/bin/objformat`
13731 freebsd[123]*) objformat=aout ;;
13732 *) objformat=elf ;;
13735 version_type=freebsd-$objformat
13736 case $version_type in
13738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13747 shlibpath_var=LD_LIBRARY_PATH
13750 shlibpath_overrides_runpath=yes
13752 freebsd3.[01]* | freebsdelf3.[01]*)
13753 shlibpath_overrides_runpath=yes
13754 hardcode_into_libs=yes
13756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13758 shlibpath_overrides_runpath=no
13759 hardcode_into_libs=yes
13761 freebsd*) # from 4.6 on
13762 shlibpath_overrides_runpath=yes
13763 hardcode_into_libs=yes
13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13773 soname_spec='${libname}${release}${shared_ext}$major'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 hardcode_into_libs=yes
13778 hpux9* | hpux10* | hpux11*)
13779 # Give a soname corresponding to the major version so that dld.sl refuses to
13780 # link against other versions.
13787 hardcode_into_libs=yes
13788 dynamic_linker="$host_os dld.so"
13789 shlibpath_var=LD_LIBRARY_PATH
13790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13792 soname_spec='${libname}${release}${shared_ext}$major'
13793 if test "X$HPUX_IA64_MODE" = X32; then
13794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13802 hardcode_into_libs=yes
13803 dynamic_linker="$host_os dld.sl"
13804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13807 soname_spec='${libname}${release}${shared_ext}$major'
13808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13813 dynamic_linker="$host_os dld.sl"
13814 shlibpath_var=SHLIB_PATH
13815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13817 soname_spec='${libname}${release}${shared_ext}$major'
13820 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13821 postinstall_cmds='chmod 555 $lib'
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13829 soname_spec='${libname}${release}${shared_ext}$major'
13830 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13831 shlibpath_var=LD_LIBRARY_PATH
13832 shlibpath_overrides_runpath=no
13833 hardcode_into_libs=yes
13836 irix5* | irix6* | nonstopux*)
13838 nonstopux*) version_type=nonstopux ;;
13840 if test "$lt_cv_prog_gnu_ld" = yes; then
13848 soname_spec='${libname}${release}${shared_ext}$major'
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13851 irix5* | nonstopux*)
13852 libsuff= shlibsuff=
13855 case $LD in # libtool.m4 will add one of these switches to LD
13856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13857 libsuff= shlibsuff= libmagic=32-bit;;
13858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13859 libsuff=32 shlibsuff=N32 libmagic=N32;;
13860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13862 *) libsuff= shlibsuff= libmagic=never-match;;
13866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13867 shlibpath_overrides_runpath=no
13868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13870 hardcode_into_libs=yes
13873 # No shared lib support for Linux oldld, aout, or coff.
13874 linux*oldld* | linux*aout* | linux*coff*)
13878 # This must be Linux ELF.
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13886 shlibpath_var=LD_LIBRARY_PATH
13887 shlibpath_overrides_runpath=no
13888 # This implies no fast_install, which is unacceptable.
13889 # Some rework will be needed to allow for fast_install
13890 # before this can be enabled.
13891 hardcode_into_libs=yes
13893 # find out which ABI we are using
13895 case "$host_cpu" in
13896 x86_64*|s390x*|powerpc64*)
13897 echo '#line 13897 "configure"' > conftest.$ac_ext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; then
13903 case `/usr/bin/file conftest.$ac_objext` in
13906 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13914 # Append ld.so.conf contents to the search path
13915 if test -f /etc/ld.so.conf; then
13916 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13917 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13920 # We used to test for /lib/ld.so.1 and disable shared libraries on
13921 # powerpc, because MkLinux only supported shared libraries with the
13922 # GNU dynamic linker. Since this was broken with cross compilers,
13923 # most powerpc-linux boxes support dynamic linking these days and
13924 # people can always --disable-shared, the test was removed, and we
13925 # assume the GNU/Linux dynamic linker is in use.
13926 dynamic_linker='GNU/Linux ld.so'
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13934 soname_spec='${libname}${release}${shared_ext}$major'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 shlibpath_overrides_runpath=no
13937 hardcode_into_libs=yes
13938 dynamic_linker='GNU ld.so'
13945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13948 dynamic_linker='NetBSD (a.out) ld.so'
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 dynamic_linker='NetBSD ld.elf_so'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 shlibpath_overrides_runpath=yes
13956 hardcode_into_libs=yes
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 shlibpath_overrides_runpath=yes
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13972 shlibpath_var=LD_LIBRARY_PATH
13973 shlibpath_overrides_runpath=yes
13978 sys_lib_dlsearch_path_spec="/usr/lib"
13980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13983 *) need_version=no ;;
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13990 openbsd2.[89] | openbsd2.[89].*)
13991 shlibpath_overrides_runpath=no
13994 shlibpath_overrides_runpath=yes
13998 shlibpath_overrides_runpath=yes
14003 libname_spec='$name'
14006 library_names_spec='$libname${shared_ext} $libname.a'
14007 dynamic_linker='OS/2 ld.exe'
14008 shlibpath_var=LIBPATH
14011 osf3* | osf4* | osf5*)
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 shlibpath_overrides_runpath=yes
14030 hardcode_into_libs=yes
14031 # ldd complains unless libraries are executable
14032 postinstall_cmds='chmod +x $lib'
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 shlibpath_overrides_runpath=yes
14041 if test "$with_gnu_ld" = yes; then
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 case $host_vendor in
14054 shlibpath_overrides_runpath=no
14056 export_dynamic_flag_spec='${wl}-Blargedynsym'
14057 runpath_var=LD_RUN_PATH
14065 shlibpath_overrides_runpath=no
14066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14072 if test -d /usr/nec ;then
14074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14075 soname_spec='$libname${shared_ext}.$major'
14076 shlibpath_var=LD_LIBRARY_PATH
14080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14081 version_type=freebsd-elf
14084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14085 soname_spec='${libname}${release}${shared_ext}$major'
14086 shlibpath_var=LD_LIBRARY_PATH
14087 hardcode_into_libs=yes
14088 if test "$with_gnu_ld" = yes; then
14089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14090 shlibpath_overrides_runpath=no
14092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14093 shlibpath_overrides_runpath=yes
14096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14100 sys_lib_dlsearch_path_spec='/usr/lib'
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106 soname_spec='${libname}${release}${shared_ext}$major'
14107 shlibpath_var=LD_LIBRARY_PATH
14114 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14115 echo "${ECHO_T}$dynamic_linker" >&6; }
14116 test "$dynamic_linker" = no && can_build_shared=no
14118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14119 if test "$GCC" = yes; then
14120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14123 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14124 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14125 hardcode_action_CXX=
14126 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14127 test -n "$runpath_var_CXX" || \
14128 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14130 # We can hardcode non-existant directories.
14131 if test "$hardcode_direct_CXX" != no &&
14132 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14133 # have to relink, otherwise we might link with an installed library
14134 # when we should be linking with a yet-to-be-installed one
14135 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14136 test "$hardcode_minus_L_CXX" != no; then
14137 # Linking always hardcodes the temporary library directory.
14138 hardcode_action_CXX=relink
14140 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14141 hardcode_action_CXX=immediate
14144 # We cannot hardcode anything, or else we can only hardcode existing
14146 hardcode_action_CXX=unsupported
14148 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14149 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14151 if test "$hardcode_action_CXX" = relink; then
14152 # Fast installation is not supported
14153 enable_fast_install=no
14154 elif test "$shlibpath_overrides_runpath" = yes ||
14155 test "$enable_shared" = no; then
14156 # Fast installation is not necessary
14157 enable_fast_install=needless
14161 # The else clause should only fire when bootstrapping the
14162 # libtool distribution, otherwise you forgot to ship ltmain.sh
14163 # with your package, and you will get complaints that there are
14164 # no rules to generate ltmain.sh.
14165 if test -f "$ltmain"; then
14166 # See if we are running on zsh, and set the options which allow our commands through
14167 # without removal of \ escapes.
14168 if test -n "${ZSH_VERSION+set}" ; then
14169 setopt NO_GLOB_SUBST
14171 # Now quote all the things that may contain metacharacters while being
14172 # careful not to overquote the AC_SUBSTed values. We take copies of the
14173 # variables and quote the copies for generation of the libtool script.
14174 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14176 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14177 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14178 deplibs_check_method reload_flag reload_cmds need_locks \
14179 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14180 lt_cv_sys_global_symbol_to_c_name_address \
14181 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14182 old_postinstall_cmds old_postuninstall_cmds \
14186 lt_prog_compiler_wl_CXX \
14187 lt_prog_compiler_pic_CXX \
14188 lt_prog_compiler_static_CXX \
14189 lt_prog_compiler_no_builtin_flag_CXX \
14190 export_dynamic_flag_spec_CXX \
14191 thread_safe_flag_spec_CXX \
14192 whole_archive_flag_spec_CXX \
14193 enable_shared_with_static_runtimes_CXX \
14194 old_archive_cmds_CXX \
14195 old_archive_from_new_cmds_CXX \
14196 predep_objects_CXX \
14197 postdep_objects_CXX \
14200 compiler_lib_search_path_CXX \
14202 archive_expsym_cmds_CXX \
14203 postinstall_cmds_CXX \
14204 postuninstall_cmds_CXX \
14205 old_archive_from_expsyms_cmds_CXX \
14206 allow_undefined_flag_CXX \
14207 no_undefined_flag_CXX \
14208 export_symbols_cmds_CXX \
14209 hardcode_libdir_flag_spec_CXX \
14210 hardcode_libdir_flag_spec_ld_CXX \
14211 hardcode_libdir_separator_CXX \
14212 hardcode_automatic_CXX \
14214 module_expsym_cmds_CXX \
14215 lt_cv_prog_compiler_c_o_CXX \
14216 exclude_expsyms_CXX \
14217 include_expsyms_CXX; do
14220 old_archive_cmds_CXX | \
14221 old_archive_from_new_cmds_CXX | \
14222 archive_cmds_CXX | \
14223 archive_expsym_cmds_CXX | \
14224 module_cmds_CXX | \
14225 module_expsym_cmds_CXX | \
14226 old_archive_from_expsyms_cmds_CXX | \
14227 export_symbols_cmds_CXX | \
14228 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14229 postinstall_cmds | postuninstall_cmds | \
14230 old_postinstall_cmds | old_postuninstall_cmds | \
14231 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14232 # Double-quote double-evaled strings.
14233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14242 *'\$0 --fallback-echo"')
14243 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14249 cat <<__EOF__ >> "$cfgfile"
14250 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14252 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14254 # Shell to use when invoking shell scripts.
14257 # Whether or not to build shared libraries.
14258 build_libtool_libs=$enable_shared
14260 # Whether or not to build static libraries.
14261 build_old_libs=$enable_static
14263 # Whether or not to add -lc for building shared libraries.
14264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14266 # Whether or not to disallow shared libs when runtime libs are static
14267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14269 # Whether or not to optimize for fast installation.
14270 fast_install=$enable_fast_install
14273 host_alias=$host_alias
14277 # The build system.
14278 build_alias=$build_alias
14282 # An echo program that does not interpret backslashes.
14287 AR_FLAGS=$lt_AR_FLAGS
14292 # LTCC compiler flags.
14293 LTCFLAGS=$lt_LTCFLAGS
14295 # A language-specific compiler.
14296 CC=$lt_compiler_CXX
14298 # Is the compiler the GNU C compiler?
14304 # The linker used to build libraries.
14307 # Whether we need hard or soft links.
14310 # A BSD-compatible nm program.
14313 # A symbol stripping program
14316 # Used to examine libraries when file_magic_cmd begins "file"
14317 MAGIC_CMD=$MAGIC_CMD
14319 # Used on cygwin: DLL creation program.
14322 # Used on cygwin: object dumper.
14325 # Used on cygwin: assembler.
14328 # The name of the directory that contains temporary libtool files.
14331 # How to create reloadable object files.
14332 reload_flag=$lt_reload_flag
14333 reload_cmds=$lt_reload_cmds
14335 # How to pass a linker flag through the compiler.
14336 wl=$lt_lt_prog_compiler_wl_CXX
14338 # Object file suffix (normally "o").
14339 objext="$ac_objext"
14341 # Old archive suffix (normally "a").
14344 # Shared library suffix (normally ".so").
14345 shrext_cmds='$shrext_cmds'
14347 # Executable file suffix (normally "").
14350 # Additional compiler flags for building library objects.
14351 pic_flag=$lt_lt_prog_compiler_pic_CXX
14354 # What is the maximum length of a command?
14355 max_cmd_len=$lt_cv_sys_max_cmd_len
14357 # Does compiler simultaneously support -c and -o options?
14358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14360 # Must we lock files when doing compilation?
14361 need_locks=$lt_need_locks
14363 # Do we need the lib prefix for modules?
14364 need_lib_prefix=$need_lib_prefix
14366 # Do we need a version for libraries?
14367 need_version=$need_version
14369 # Whether dlopen is supported.
14370 dlopen_support=$enable_dlopen
14372 # Whether dlopen of programs is supported.
14373 dlopen_self=$enable_dlopen_self
14375 # Whether dlopen of statically linked programs is supported.
14376 dlopen_self_static=$enable_dlopen_self_static
14378 # Compiler flag to prevent dynamic linking.
14379 link_static_flag=$lt_lt_prog_compiler_static_CXX
14381 # Compiler flag to turn off builtin functions.
14382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14384 # Compiler flag to allow reflexive dlopens.
14385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14387 # Compiler flag to generate shared objects directly from archives.
14388 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14390 # Compiler flag to generate thread-safe objects.
14391 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14393 # Library versioning type.
14394 version_type=$version_type
14396 # Format of library name prefix.
14397 libname_spec=$lt_libname_spec
14399 # List of archive names. First name is the real one, the rest are links.
14400 # The last name is the one that the linker finds with -lNAME.
14401 library_names_spec=$lt_library_names_spec
14403 # The coded name of the library, if different from the real name.
14404 soname_spec=$lt_soname_spec
14406 # Commands used to build and install an old-style archive.
14408 old_archive_cmds=$lt_old_archive_cmds_CXX
14409 old_postinstall_cmds=$lt_old_postinstall_cmds
14410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14412 # Create an old-style archive from a shared archive.
14413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14415 # Create a temporary old-style archive to link instead of a shared archive.
14416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14418 # Commands used to build and install a shared archive.
14419 archive_cmds=$lt_archive_cmds_CXX
14420 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14421 postinstall_cmds=$lt_postinstall_cmds
14422 postuninstall_cmds=$lt_postuninstall_cmds
14424 # Commands used to build a loadable module (assumed same as above if empty)
14425 module_cmds=$lt_module_cmds_CXX
14426 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14428 # Commands to strip libraries.
14429 old_striplib=$lt_old_striplib
14430 striplib=$lt_striplib
14432 # Dependencies to place before the objects being linked to create a
14434 predep_objects=$lt_predep_objects_CXX
14436 # Dependencies to place after the objects being linked to create a
14438 postdep_objects=$lt_postdep_objects_CXX
14440 # Dependencies to place before the objects being linked to create a
14442 predeps=$lt_predeps_CXX
14444 # Dependencies to place after the objects being linked to create a
14446 postdeps=$lt_postdeps_CXX
14448 # The library search path used internally by the compiler when linking
14449 # a shared library.
14450 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14452 # Method to check whether dependent libraries are shared objects.
14453 deplibs_check_method=$lt_deplibs_check_method
14455 # Command to use when deplibs_check_method == file_magic.
14456 file_magic_cmd=$lt_file_magic_cmd
14458 # Flag that allows shared libraries with undefined symbols to be built.
14459 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14461 # Flag that forces no undefined symbols.
14462 no_undefined_flag=$lt_no_undefined_flag_CXX
14464 # Commands used to finish a libtool library installation in a directory.
14465 finish_cmds=$lt_finish_cmds
14467 # Same as above, but a single script fragment to be evaled but not shown.
14468 finish_eval=$lt_finish_eval
14470 # Take the output of nm and produce a listing of raw symbols and C names.
14471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14473 # Transform the output of nm in a proper C declaration
14474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14476 # Transform the output of nm in a C name address pair
14477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14479 # This is the shared library runtime path variable.
14480 runpath_var=$runpath_var
14482 # This is the shared library path variable.
14483 shlibpath_var=$shlibpath_var
14485 # Is shlibpath searched before the hard-coded library search path?
14486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14488 # How to hardcode a shared library path into an executable.
14489 hardcode_action=$hardcode_action_CXX
14491 # Whether we should hardcode library paths into libraries.
14492 hardcode_into_libs=$hardcode_into_libs
14494 # Flag to hardcode \$libdir into a binary during linking.
14495 # This must work even if \$libdir does not exist.
14496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14498 # If ld is used when linking, flag to hardcode \$libdir into
14499 # a binary during linking. This must work even if \$libdir does
14501 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14503 # Whether we need a single -rpath flag with a separated argument.
14504 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14506 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14507 # resulting binary.
14508 hardcode_direct=$hardcode_direct_CXX
14510 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14511 # resulting binary.
14512 hardcode_minus_L=$hardcode_minus_L_CXX
14514 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14515 # the resulting binary.
14516 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14518 # Set to yes if building a shared library automatically hardcodes DIR into the library
14519 # and all subsequent libraries and executables linked against it.
14520 hardcode_automatic=$hardcode_automatic_CXX
14522 # Variables whose values should be saved in libtool wrapper scripts and
14523 # restored at relink time.
14524 variables_saved_for_relink="$variables_saved_for_relink"
14526 # Whether libtool must link a program against all its dependency libraries.
14527 link_all_deplibs=$link_all_deplibs_CXX
14529 # Compile-time system search path for libraries
14530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14532 # Run-time system search path for libraries
14533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14535 # Fix the shell variable \$srcfile for the compiler.
14536 fix_srcfile_path="$fix_srcfile_path_CXX"
14538 # Set to yes if exported symbols are required.
14539 always_export_symbols=$always_export_symbols_CXX
14541 # The commands to list exported symbols.
14542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14544 # The commands to extract the exported symbol list from a shared archive.
14545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14547 # Symbols that should not be listed in the preloaded symbols.
14548 exclude_expsyms=$lt_exclude_expsyms_CXX
14550 # Symbols that must always be exported.
14551 include_expsyms=$lt_include_expsyms_CXX
14553 # ### END LIBTOOL TAG CONFIG: $tagname
14559 # If there is no Makefile yet, we rely on a make rule to execute
14560 # `config.status --recheck' to rerun these tests and create the
14561 # libtool script then.
14562 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14563 if test -f "$ltmain_in"; then
14564 test -f Makefile && make "$ltmain"
14570 ac_cpp='$CPP $CPPFLAGS'
14571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14579 with_gnu_ldcxx=$with_gnu_ld
14580 with_gnu_ld=$lt_save_with_gnu_ld
14581 lt_cv_path_LDCXX=$lt_cv_path_LD
14582 lt_cv_path_LD=$lt_save_path_LD
14583 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14584 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14592 if test -n "$F77" && test "X$F77" != "Xno"; then
14595 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14596 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14597 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14600 archive_cmds_need_lc_F77=no
14601 allow_undefined_flag_F77=
14602 always_export_symbols_F77=no
14603 archive_expsym_cmds_F77=
14604 export_dynamic_flag_spec_F77=
14605 hardcode_direct_F77=no
14606 hardcode_libdir_flag_spec_F77=
14607 hardcode_libdir_flag_spec_ld_F77=
14608 hardcode_libdir_separator_F77=
14609 hardcode_minus_L_F77=no
14610 hardcode_automatic_F77=no
14612 module_expsym_cmds_F77=
14613 link_all_deplibs_F77=unknown
14614 old_archive_cmds_F77=$old_archive_cmds
14615 no_undefined_flag_F77=
14616 whole_archive_flag_spec_F77=
14617 enable_shared_with_static_runtimes_F77=no
14619 # Source file extension for f77 test sources.
14622 # Object file extension for compiled f77 test sources.
14626 # Code to be used in simple compile tests
14627 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14629 # Code to be used in simple link tests
14630 lt_simple_link_test_code=" program t\n end\n"
14632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14634 # If no C compiler was specified, use CC.
14637 # If no C compiler flags were specified, use CFLAGS.
14638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14640 # Allow CC to be a program name with arguments.
14644 # save warnings/boilerplate of simple test code
14645 ac_outfile=conftest.$ac_objext
14646 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14648 _lt_compiler_boilerplate=`cat conftest.err`
14651 ac_outfile=conftest.$ac_objext
14652 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14654 _lt_linker_boilerplate=`cat conftest.err`
14658 # Allow CC to be a program name with arguments.
14663 for cc_temp in $compiler""; do
14665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14671 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14674 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14675 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14676 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14677 echo "${ECHO_T}$can_build_shared" >&6; }
14679 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14680 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14681 test "$can_build_shared" = "no" && enable_shared=no
14683 # On AIX, shared libraries and static libraries use the same namespace, and
14684 # are all built from PIC.
14687 test "$enable_shared" = yes && enable_static=no
14688 if test -n "$RANLIB"; then
14689 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14690 postinstall_cmds='$RANLIB $lib'
14694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14695 test "$enable_shared" = yes && enable_static=no
14699 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14700 echo "${ECHO_T}$enable_shared" >&6; }
14702 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14704 # Make sure either enable_shared or enable_static is yes.
14705 test "$enable_shared" = yes || enable_static=yes
14706 { echo "$as_me:$LINENO: result: $enable_static" >&5
14707 echo "${ECHO_T}$enable_static" >&6; }
14712 lt_prog_compiler_wl_F77=
14713 lt_prog_compiler_pic_F77=
14714 lt_prog_compiler_static_F77=
14716 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14717 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14719 if test "$GCC" = yes; then
14720 lt_prog_compiler_wl_F77='-Wl,'
14721 lt_prog_compiler_static_F77='-static'
14725 # All AIX code is PIC.
14726 if test "$host_cpu" = ia64; then
14727 # AIX 5 now supports IA64 processor
14728 lt_prog_compiler_static_F77='-Bstatic'
14733 # FIXME: we need at least 68020 code to build shared libraries, but
14734 # adding the `-m68020' flag to GCC prevents building anything better,
14736 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14739 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14740 # PIC is the default for these OSes.
14743 mingw* | pw32* | os2*)
14744 # This hack is so that the source file can tell whether it is being
14745 # built for inclusion in a dll (and should export symbols for example).
14746 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14749 darwin* | rhapsody*)
14750 # PIC is the default on this platform
14751 # Common symbols not allowed in MH_DYLIB files
14752 lt_prog_compiler_pic_F77='-fno-common'
14756 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14757 # Instead, we relocate shared libraries at runtime.
14761 # Just because we use GCC doesn't mean we suddenly get shared libraries
14762 # on systems that don't support them.
14763 lt_prog_compiler_can_build_shared_F77=no
14768 if test -d /usr/nec; then
14769 lt_prog_compiler_pic_F77=-Kconform_pic
14774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14775 # not for PA HP-UX.
14781 lt_prog_compiler_pic_F77='-fPIC'
14787 lt_prog_compiler_pic_F77='-fPIC'
14791 # PORTME Check for flag to pass linker flags through the system compiler.
14794 lt_prog_compiler_wl_F77='-Wl,'
14795 if test "$host_cpu" = ia64; then
14796 # AIX 5 now supports IA64 processor
14797 lt_prog_compiler_static_F77='-Bstatic'
14799 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14803 # PIC is the default on this platform
14804 # Common symbols not allowed in MH_DYLIB files
14805 case $cc_basename in
14807 lt_prog_compiler_pic_F77='-qnocommon'
14808 lt_prog_compiler_wl_F77='-Wl,'
14813 mingw* | pw32* | os2*)
14814 # This hack is so that the source file can tell whether it is being
14815 # built for inclusion in a dll (and should export symbols for example).
14816 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14819 hpux9* | hpux10* | hpux11*)
14820 lt_prog_compiler_wl_F77='-Wl,'
14821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14822 # not for PA HP-UX.
14828 lt_prog_compiler_pic_F77='+Z'
14831 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14832 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14835 irix5* | irix6* | nonstopux*)
14836 lt_prog_compiler_wl_F77='-Wl,'
14837 # PIC (with -KPIC) is the default.
14838 lt_prog_compiler_static_F77='-non_shared'
14842 lt_prog_compiler_pic_F77='-KPIC'
14843 lt_prog_compiler_static_F77='-Bstatic'
14847 case $cc_basename in
14849 lt_prog_compiler_wl_F77='-Wl,'
14850 lt_prog_compiler_pic_F77='-KPIC'
14851 lt_prog_compiler_static_F77='-static'
14853 pgcc* | pgf77* | pgf90* | pgf95*)
14854 # Portland Group compilers (*not* the Pentium gcc compiler,
14855 # which looks to be a dead project)
14856 lt_prog_compiler_wl_F77='-Wl,'
14857 lt_prog_compiler_pic_F77='-fpic'
14858 lt_prog_compiler_static_F77='-Bstatic'
14861 lt_prog_compiler_wl_F77='-Wl,'
14862 # All Alpha code is PIC.
14863 lt_prog_compiler_static_F77='-non_shared'
14868 osf3* | osf4* | osf5*)
14869 lt_prog_compiler_wl_F77='-Wl,'
14870 # All OSF/1 code is PIC.
14871 lt_prog_compiler_static_F77='-non_shared'
14875 lt_prog_compiler_pic_F77='-KPIC'
14876 lt_prog_compiler_static_F77='-Bstatic'
14877 case $cc_basename in
14878 f77* | f90* | f95*)
14879 lt_prog_compiler_wl_F77='-Qoption ld ';;
14881 lt_prog_compiler_wl_F77='-Wl,';;
14886 lt_prog_compiler_wl_F77='-Qoption ld '
14887 lt_prog_compiler_pic_F77='-PIC'
14888 lt_prog_compiler_static_F77='-Bstatic'
14891 sysv4 | sysv4.2uw2* | sysv4.3*)
14892 lt_prog_compiler_wl_F77='-Wl,'
14893 lt_prog_compiler_pic_F77='-KPIC'
14894 lt_prog_compiler_static_F77='-Bstatic'
14898 if test -d /usr/nec ;then
14899 lt_prog_compiler_pic_F77='-Kconform_pic'
14900 lt_prog_compiler_static_F77='-Bstatic'
14904 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14905 lt_prog_compiler_wl_F77='-Wl,'
14906 lt_prog_compiler_pic_F77='-KPIC'
14907 lt_prog_compiler_static_F77='-Bstatic'
14911 lt_prog_compiler_wl_F77='-Wl,'
14912 lt_prog_compiler_can_build_shared_F77=no
14916 lt_prog_compiler_pic_F77='-pic'
14917 lt_prog_compiler_static_F77='-Bstatic'
14921 lt_prog_compiler_can_build_shared_F77=no
14926 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14927 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14930 # Check to make sure the PIC flag actually works.
14932 if test -n "$lt_prog_compiler_pic_F77"; then
14934 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14936 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 lt_prog_compiler_pic_works_F77=no
14940 ac_outfile=conftest.$ac_objext
14941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14942 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14943 # Insert the option either (1) after the last *FLAGS variable, or
14944 # (2) before a word containing "conftest.", or (3) at the end.
14945 # Note that $ac_compile itself does not contain backslashes and begins
14946 # with a dollar sign (not a hyphen), so the echo should work correctly.
14947 # The option is referenced via a variable to avoid confusing sed.
14948 lt_compile=`echo "$ac_compile" | $SED \
14949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14951 -e 's:$: $lt_compiler_flag:'`
14952 (eval echo "\"\$as_me:14952: $lt_compile\"" >&5)
14953 (eval "$lt_compile" 2>conftest.err)
14955 cat conftest.err >&5
14956 echo "$as_me:14956: \$? = $ac_status" >&5
14957 if (exit $ac_status) && test -s "$ac_outfile"; then
14958 # The compiler can only warn and ignore the option if not recognized
14959 # So say no if there are warnings other than the usual output.
14960 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14963 lt_prog_compiler_pic_works_F77=yes
14969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14970 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14972 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14973 case $lt_prog_compiler_pic_F77 in
14975 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14978 lt_prog_compiler_pic_F77=
14979 lt_prog_compiler_can_build_shared_F77=no
14984 # For platforms which do not support PIC, -DPIC is meaningless:
14986 lt_prog_compiler_pic_F77=
14989 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14994 # Check to make sure the static flag actually works.
14996 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14997 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14998 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14999 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 lt_prog_compiler_static_works_F77=no
15003 save_LDFLAGS="$LDFLAGS"
15004 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15005 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15006 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15007 # The linker can only warn and ignore the option if not recognized
15008 # So say no if there are warnings
15009 if test -s conftest.err; then
15010 # Append any errors to the config.log.
15011 cat conftest.err 1>&5
15012 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15014 if diff conftest.exp conftest.er2 >/dev/null; then
15015 lt_prog_compiler_static_works_F77=yes
15018 lt_prog_compiler_static_works_F77=yes
15022 LDFLAGS="$save_LDFLAGS"
15025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15026 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15028 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15031 lt_prog_compiler_static_F77=
15035 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15037 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 lt_cv_prog_compiler_c_o_F77=no
15041 $rm -r conftest 2>/dev/null
15045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15047 lt_compiler_flag="-o out/conftest2.$ac_objext"
15048 # Insert the option either (1) after the last *FLAGS variable, or
15049 # (2) before a word containing "conftest.", or (3) at the end.
15050 # Note that $ac_compile itself does not contain backslashes and begins
15051 # with a dollar sign (not a hyphen), so the echo should work correctly.
15052 lt_compile=`echo "$ac_compile" | $SED \
15053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15055 -e 's:$: $lt_compiler_flag:'`
15056 (eval echo "\"\$as_me:15056: $lt_compile\"" >&5)
15057 (eval "$lt_compile" 2>out/conftest.err)
15059 cat out/conftest.err >&5
15060 echo "$as_me:15060: \$? = $ac_status" >&5
15061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15063 # The compiler can only warn and ignore the option if not recognized
15064 # So say no if there are warnings
15065 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15068 lt_cv_prog_compiler_c_o_F77=yes
15073 # SGI C++ compiler will create directory out/ii_files/ for
15074 # template instantiation
15075 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15076 $rm out/* && rmdir out
15082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15083 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15086 hard_links="nottested"
15087 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15088 # do not overwrite the value of need_locks provided by the user
15089 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15090 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15095 ln conftest.a conftest.b 2>&5 || hard_links=no
15096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15097 { echo "$as_me:$LINENO: result: $hard_links" >&5
15098 echo "${ECHO_T}$hard_links" >&6; }
15099 if test "$hard_links" = no; then
15100 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15101 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15108 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15109 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15112 allow_undefined_flag_F77=
15113 enable_shared_with_static_runtimes_F77=no
15115 archive_expsym_cmds_F77=
15116 old_archive_From_new_cmds_F77=
15117 old_archive_from_expsyms_cmds_F77=
15118 export_dynamic_flag_spec_F77=
15119 whole_archive_flag_spec_F77=
15120 thread_safe_flag_spec_F77=
15121 hardcode_libdir_flag_spec_F77=
15122 hardcode_libdir_flag_spec_ld_F77=
15123 hardcode_libdir_separator_F77=
15124 hardcode_direct_F77=no
15125 hardcode_minus_L_F77=no
15126 hardcode_shlibpath_var_F77=unsupported
15127 link_all_deplibs_F77=unknown
15128 hardcode_automatic_F77=no
15130 module_expsym_cmds_F77=
15131 always_export_symbols_F77=no
15132 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15133 # include_expsyms should be a list of space-separated symbols to be *always*
15134 # included in the symbol list
15135 include_expsyms_F77=
15136 # exclude_expsyms can be an extended regexp of symbols to exclude
15137 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15138 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15139 # as well as any symbol that contains `d'.
15140 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15141 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15142 # platforms (ab)use it in PIC code, but their linkers get confused if
15143 # the symbol is explicitly referenced. Since portable code cannot
15144 # rely on this symbol name, it's probably fine to never include it in
15145 # preloaded symbol tables.
15146 extract_expsyms_cmds=
15147 # Just being paranoid about ensuring that cc_basename is set.
15148 for cc_temp in $compiler""; do
15150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15159 cygwin* | mingw* | pw32*)
15160 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15161 # When not using gcc, we currently assume that we are using
15162 # Microsoft Visual C++.
15163 if test "$GCC" != yes; then
15168 # we just hope/assume this is gcc and not c89 (= MSVC++)
15177 if test "$with_gnu_ld" = yes; then
15178 # If archive_cmds runs LD, not CC, wlarc should be empty
15181 # Set some defaults for GNU ld with shared library support. These
15182 # are reset later if shared libraries are not supported. Putting them
15183 # here allows them to be overridden if necessary.
15184 runpath_var=LD_RUN_PATH
15185 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15186 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15187 # ancient GNU ld didn't support --whole-archive et. al.
15188 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15189 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15191 whole_archive_flag_spec_F77=
15193 supports_anon_versioning=no
15194 case `$LD -v 2>/dev/null` in
15195 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15196 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15197 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15198 *\ 2.11.*) ;; # other 2.11 versions
15199 *) supports_anon_versioning=yes ;;
15202 # See if GNU ld supports shared libraries.
15204 aix3* | aix4* | aix5*)
15205 # On AIX/PPC, the GNU linker is very broken
15206 if test "$host_cpu" != ia64; then
15210 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15211 *** to be unable to reliably create shared libraries on AIX.
15212 *** Therefore, libtool is disabling shared libraries support. If you
15213 *** really care for shared libraries, you may want to modify your PATH
15214 *** so that a non-GNU linker is found, and then restart.
15221 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)'
15222 hardcode_libdir_flag_spec_F77='-L$libdir'
15223 hardcode_minus_L_F77=yes
15225 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15226 # that the semantics of dynamic libraries on AmigaOS, at least up
15227 # to version 4, is to share data among multiple programs linked
15228 # with the same dynamic library. Since this doesn't match the
15229 # behavior of shared libraries on other platforms, we can't use
15235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15236 allow_undefined_flag_F77=unsupported
15237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15238 # support --undefined. This deserves some investigation. FIXME
15239 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245 cygwin* | mingw* | pw32*)
15246 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15247 # as there is no search path for DLLs.
15248 hardcode_libdir_flag_spec_F77='-L$libdir'
15249 allow_undefined_flag_F77=unsupported
15250 always_export_symbols_F77=no
15251 enable_shared_with_static_runtimes_F77=yes
15252 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15254 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15256 # If the export-symbols file already is a .def file (1st line
15257 # is EXPORTS), use it as is; otherwise, prepend...
15258 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15259 cp $export_symbols $output_objdir/$soname.def;
15261 echo EXPORTS > $output_objdir/$soname.def;
15262 cat $export_symbols >> $output_objdir/$soname.def;
15264 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15271 hardcode_direct_F77=no
15272 hardcode_shlibpath_var_F77=no
15273 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15274 export_dynamic_flag_spec_F77='${wl}-E'
15275 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15276 # Instead, shared libraries are loaded at an image base (0x10000000 by
15277 # default) and relocated if they conflict, which is a slow very memory
15278 # consuming and fragmenting process. To avoid this, we pick a random,
15279 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15280 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15281 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'
15282 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'
15286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15288 case $cc_basename,$host_cpu in
15289 pgcc*) # Portland Group C compiler
15290 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'
15291 tmp_addflag=' $pic_flag'
15293 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15294 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'
15295 tmp_addflag=' $pic_flag -Mnomain' ;;
15296 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15297 tmp_addflag=' -i_dynamic' ;;
15298 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15299 tmp_addflag=' -i_dynamic -nofor_main' ;;
15300 ifc* | ifort*) # Intel Fortran compiler
15301 tmp_addflag=' -nofor_main' ;;
15303 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15305 if test $supports_anon_versioning = yes; then
15306 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15308 $echo "local: *; };" >> $output_objdir/$libname.ver~
15309 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15317 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15318 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15321 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15322 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15327 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15331 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15332 *** create shared libraries on Solaris systems. Therefore, libtool
15333 *** is disabling shared libraries support. We urge you to upgrade GNU
15334 *** binutils to release 2.9.1 or newer. Another option is to modify
15335 *** your PATH or compiler configuration so that the native linker is
15336 *** used, and then restart.
15339 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15340 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15341 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15348 case `$LD -v 2>&1` in
15349 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15353 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15354 *** reliably create shared libraries on SCO systems. Therefore, libtool
15355 *** is disabling shared libraries support. We urge you to upgrade GNU
15356 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15357 *** your PATH or compiler configuration so that the native linker is
15358 *** used, and then restart.
15363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15364 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15365 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15366 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15375 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15377 hardcode_direct_F77=yes
15378 hardcode_shlibpath_var_F77=no
15382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15383 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15391 if test "$ld_shlibs_F77" = no; then
15393 hardcode_libdir_flag_spec_F77=
15394 export_dynamic_flag_spec_F77=
15395 whole_archive_flag_spec_F77=
15398 # PORTME fill in a description of your system's linker (not GNU ld)
15401 allow_undefined_flag_F77=unsupported
15402 always_export_symbols_F77=yes
15403 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'
15404 # Note: this linker hardcodes the directories in LIBPATH if there
15405 # are no directories specified by -L.
15406 hardcode_minus_L_F77=yes
15407 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15408 # Neither direct hardcoding nor static linking is supported with a
15410 hardcode_direct_F77=unsupported
15415 if test "$host_cpu" = ia64; then
15416 # On IA64, the linker does run time linking by default, so we don't
15417 # have to do anything special.
15418 aix_use_runtimelinking=no
15419 exp_sym_flag='-Bexport'
15422 # If we're using GNU nm, then we don't want the "-C" option.
15423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15424 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15425 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'
15427 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'
15429 aix_use_runtimelinking=no
15431 # Test if we are trying to use run time linking or normal
15432 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15433 # need to do runtime linking.
15434 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15435 for ld_flag in $LDFLAGS; do
15436 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15437 aix_use_runtimelinking=yes
15444 exp_sym_flag='-bexport'
15445 no_entry_flag='-bnoentry'
15448 # When large executables or shared objects are built, AIX ld can
15449 # have problems creating the table of contents. If linking a library
15450 # or program results in "error TOC overflow" add -mminimal-toc to
15451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15454 archive_cmds_F77=''
15455 hardcode_direct_F77=yes
15456 hardcode_libdir_separator_F77=':'
15457 link_all_deplibs_F77=yes
15459 if test "$GCC" = yes; then
15460 case $host_os in aix4.[012]|aix4.[012].*)
15461 # We only want to do this on AIX 4.2 and lower, the check
15462 # below for broken collect2 doesn't work under 4.3+
15463 collect2name=`${CC} -print-prog-name=collect2`
15464 if test -f "$collect2name" && \
15465 strings "$collect2name" | grep resolve_lib_name >/dev/null
15467 # We have reworked collect2
15468 hardcode_direct_F77=yes
15470 # We have old collect2
15471 hardcode_direct_F77=unsupported
15472 # It fails to find uninstalled libraries when the uninstalled
15473 # path is not listed in the libpath. Setting hardcode_minus_L
15474 # to unsupported forces relinking
15475 hardcode_minus_L_F77=yes
15476 hardcode_libdir_flag_spec_F77='-L$libdir'
15477 hardcode_libdir_separator_F77=
15481 shared_flag='-shared'
15482 if test "$aix_use_runtimelinking" = yes; then
15483 shared_flag="$shared_flag "'${wl}-G'
15487 if test "$host_cpu" = ia64; then
15488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15489 # chokes on -Wl,-G. The following line is correct:
15492 if test "$aix_use_runtimelinking" = yes; then
15493 shared_flag='${wl}-G'
15495 shared_flag='${wl}-bM:SRE'
15500 # It seems that -bexpall does not export symbols beginning with
15501 # underscore (_), so it is better to generate a list of symbols to export.
15502 always_export_symbols_F77=yes
15503 if test "$aix_use_runtimelinking" = yes; then
15504 # Warning - without using the other runtime loading flags (-brtl),
15505 # -berok will link without error, but may produce a broken library.
15506 allow_undefined_flag_F77='-berok'
15507 # Determine the default libpath from the value encoded in an empty executable.
15508 cat >conftest.$ac_ext <<_ACEOF
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1 >conftest.err
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } &&
15527 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15528 { (case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_try") 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try='test -s conftest$ac_exeext'
15538 { (case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_try") 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15550 # Check for a 64-bit object if we didn't find anything.
15551 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; }
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15560 rm -f core conftest.err conftest.$ac_objext \
15561 conftest$ac_exeext conftest.$ac_ext
15562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15564 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15565 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"
15567 if test "$host_cpu" = ia64; then
15568 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15569 allow_undefined_flag_F77="-z nodefs"
15570 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"
15572 # Determine the default libpath from the value encoded in an empty executable.
15573 cat >conftest.$ac_ext <<_ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15587 grep -v '^ *+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15615 # Check for a 64-bit object if we didn't find anything.
15616 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; }
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15625 rm -f core conftest.err conftest.$ac_objext \
15626 conftest$ac_exeext conftest.$ac_ext
15627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15629 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15630 # Warning - without using the other run time loading flags,
15631 # -berok will link without error, but may produce a broken library.
15632 no_undefined_flag_F77=' ${wl}-bernotok'
15633 allow_undefined_flag_F77=' ${wl}-berok'
15634 # Exported symbols can be pulled into shared objects from archives
15635 whole_archive_flag_spec_F77='$convenience'
15636 archive_cmds_need_lc_F77=yes
15637 # This is similar to how AIX traditionally builds its shared libraries.
15638 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'
15644 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)'
15645 hardcode_libdir_flag_spec_F77='-L$libdir'
15646 hardcode_minus_L_F77=yes
15647 # see comment about different semantics on the GNU ld section
15652 export_dynamic_flag_spec_F77=-rdynamic
15655 cygwin* | mingw* | pw32*)
15656 # When not using gcc, we currently assume that we are using
15657 # Microsoft Visual C++.
15658 # hardcode_libdir_flag_spec is actually meaningless, as there is
15659 # no search path for DLLs.
15660 hardcode_libdir_flag_spec_F77=' '
15661 allow_undefined_flag_F77=unsupported
15662 # Tell ltmain to make .lib files, not .a files.
15664 # Tell ltmain to make .dll files, not .so files.
15666 # FIXME: Setting linknames here is a bad hack.
15667 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15668 # The linker will automatically build a .lib file if we build a DLL.
15669 old_archive_From_new_cmds_F77='true'
15670 # FIXME: Should let the user specify the lib program.
15671 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15672 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15673 enable_shared_with_static_runtimes_F77=yes
15676 darwin* | rhapsody*)
15678 rhapsody* | darwin1.[012])
15679 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15682 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15683 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15685 case ${MACOSX_DEPLOYMENT_TARGET} in
15687 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15690 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15696 archive_cmds_need_lc_F77=no
15697 hardcode_direct_F77=no
15698 hardcode_automatic_F77=yes
15699 hardcode_shlibpath_var_F77=unsupported
15700 whole_archive_flag_spec_F77=''
15701 link_all_deplibs_F77=yes
15702 if test "$GCC" = yes ; then
15703 output_verbose_link_cmd='echo'
15704 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15705 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15707 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}'
15708 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}'
15710 case $cc_basename in
15712 output_verbose_link_cmd='echo'
15713 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15714 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15715 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15716 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}'
15717 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}'
15727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_libdir_flag_spec_F77='-L$libdir'
15729 hardcode_shlibpath_var_F77=no
15736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15737 # support. Future versions do this automatically, but an explicit c++rt0.o
15738 # does not break anything, and helps significantly (at the cost of a little
15741 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15742 hardcode_libdir_flag_spec_F77='-R$libdir'
15743 hardcode_direct_F77=yes
15744 hardcode_shlibpath_var_F77=no
15747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15749 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_direct_F77=yes
15751 hardcode_minus_L_F77=yes
15752 hardcode_shlibpath_var_F77=no
15755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15756 freebsd* | kfreebsd*-gnu | dragonfly*)
15757 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15758 hardcode_libdir_flag_spec_F77='-R$libdir'
15759 hardcode_direct_F77=yes
15760 hardcode_shlibpath_var_F77=no
15764 if test "$GCC" = yes; then
15765 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'
15767 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'
15769 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15770 hardcode_libdir_separator_F77=:
15771 hardcode_direct_F77=yes
15773 # hardcode_minus_L: Not really in the search PATH,
15774 # but as the default location of the library.
15775 hardcode_minus_L_F77=yes
15776 export_dynamic_flag_spec_F77='${wl}-E'
15780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15781 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15783 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15785 if test "$with_gnu_ld" = no; then
15786 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15787 hardcode_libdir_separator_F77=:
15789 hardcode_direct_F77=yes
15790 export_dynamic_flag_spec_F77='${wl}-E'
15792 # hardcode_minus_L: Not really in the search PATH,
15793 # but as the default location of the library.
15794 hardcode_minus_L_F77=yes
15799 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15802 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15805 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15808 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15814 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15817 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15820 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15824 if test "$with_gnu_ld" = no; then
15825 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15826 hardcode_libdir_separator_F77=:
15830 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15831 hardcode_direct_F77=no
15832 hardcode_shlibpath_var_F77=no
15835 hardcode_direct_F77=yes
15836 export_dynamic_flag_spec_F77='${wl}-E'
15838 # hardcode_minus_L: Not really in the search PATH,
15839 # but as the default location of the library.
15840 hardcode_minus_L_F77=yes
15846 irix5* | irix6* | nonstopux*)
15847 if test "$GCC" = yes; then
15848 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'
15850 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'
15851 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15853 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15854 hardcode_libdir_separator_F77=:
15855 link_all_deplibs_F77=yes
15859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15862 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15864 hardcode_libdir_flag_spec_F77='-R$libdir'
15865 hardcode_direct_F77=yes
15866 hardcode_shlibpath_var_F77=no
15870 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_direct_F77=yes
15872 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15873 hardcode_libdir_separator_F77=:
15874 hardcode_shlibpath_var_F77=no
15878 hardcode_direct_F77=yes
15879 hardcode_shlibpath_var_F77=no
15880 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15881 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15882 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15883 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15884 export_dynamic_flag_spec_F77='${wl}-E'
15887 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15888 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15889 hardcode_libdir_flag_spec_F77='-R$libdir'
15892 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15893 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15900 hardcode_libdir_flag_spec_F77='-L$libdir'
15901 hardcode_minus_L_F77=yes
15902 allow_undefined_flag_F77=unsupported
15903 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'
15904 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15908 if test "$GCC" = yes; then
15909 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15910 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'
15912 allow_undefined_flag_F77=' -expect_unresolved \*'
15913 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'
15915 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15916 hardcode_libdir_separator_F77=:
15919 osf4* | osf5*) # as osf3* with the addition of -msym flag
15920 if test "$GCC" = yes; then
15921 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15922 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'
15923 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15925 allow_undefined_flag_F77=' -expect_unresolved \*'
15926 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'
15927 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~
15928 $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'
15930 # Both c and cxx compiler support -rpath directly
15931 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15933 hardcode_libdir_separator_F77=:
15937 no_undefined_flag_F77=' -z text'
15938 if test "$GCC" = yes; then
15940 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15942 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15945 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15946 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15947 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15949 hardcode_libdir_flag_spec_F77='-R$libdir'
15950 hardcode_shlibpath_var_F77=no
15952 solaris2.[0-5] | solaris2.[0-5].*) ;;
15954 # The compiler driver will combine linker options so we
15955 # cannot just pass the convience library names through
15956 # without $wl, iff we do not link with $LD.
15957 # Luckily, gcc supports the same syntax we need for Sun Studio.
15958 # Supported since Solaris 2.6 (maybe 2.5.1?)
15961 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15963 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' ;;
15966 link_all_deplibs_F77=yes
15970 if test "x$host_vendor" = xsequent; then
15971 # Use $CC to link under sequent, because it throws in some extra .o
15972 # files that make .init and .fini sections work.
15973 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15975 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15977 hardcode_libdir_flag_spec_F77='-L$libdir'
15978 hardcode_direct_F77=yes
15979 hardcode_minus_L_F77=yes
15980 hardcode_shlibpath_var_F77=no
15984 case $host_vendor in
15986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15987 hardcode_direct_F77=yes # is this really true???
15990 ## LD is ld it makes a PLAMLIB
15991 ## CC just makes a GrossModule.
15992 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15993 reload_cmds_F77='$CC -r -o $output$reload_objs'
15994 hardcode_direct_F77=no
15997 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16001 runpath_var='LD_RUN_PATH'
16002 hardcode_shlibpath_var_F77=no
16006 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16007 hardcode_shlibpath_var_F77=no
16008 export_dynamic_flag_spec_F77='-Bexport'
16012 if test -d /usr/nec; then
16013 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16014 hardcode_shlibpath_var_F77=no
16015 runpath_var=LD_RUN_PATH
16016 hardcode_runpath_var=yes
16021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16022 no_undefined_flag_F77='${wl}-z,text'
16023 archive_cmds_need_lc_F77=no
16024 hardcode_shlibpath_var_F77=no
16025 runpath_var='LD_RUN_PATH'
16027 if test "$GCC" = yes; then
16028 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16029 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16031 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16032 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16036 sysv5* | sco3.2v5* | sco5v6*)
16037 # Note: We can NOT use -z defs as we might desire, because we do not
16038 # link with -lc, and that would cause any symbols used from libc to
16039 # always be unresolved, which means just about no library would
16040 # ever link correctly. If we're not using GNU ld we use -z text
16041 # though, which does catch some bad symbols but isn't as heavy-handed
16043 no_undefined_flag_F77='${wl}-z,text'
16044 allow_undefined_flag_F77='${wl}-z,nodefs'
16045 archive_cmds_need_lc_F77=no
16046 hardcode_shlibpath_var_F77=no
16047 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16048 hardcode_libdir_separator_F77=':'
16049 link_all_deplibs_F77=yes
16050 export_dynamic_flag_spec_F77='${wl}-Bexport'
16051 runpath_var='LD_RUN_PATH'
16053 if test "$GCC" = yes; then
16054 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16058 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16063 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16064 hardcode_libdir_flag_spec_F77='-L$libdir'
16065 hardcode_shlibpath_var_F77=no
16074 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16075 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16076 test "$ld_shlibs_F77" = no && can_build_shared=no
16079 # Do we need to explicitly link libc?
16081 case "x$archive_cmds_need_lc_F77" in
16083 # Assume -lc should be added
16084 archive_cmds_need_lc_F77=yes
16086 if test "$enable_shared" = yes && test "$GCC" = yes; then
16087 case $archive_cmds_F77 in
16089 # FIXME: we may have to deal with multi-command sequences.
16092 # Test whether the compiler implicitly links with -lc since on some
16093 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16094 # to ld, don't add -lc before -lgcc.
16095 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16096 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16101 (eval $ac_compile) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } 2>conftest.err; then
16107 libobjs=conftest.$ac_objext
16109 wl=$lt_prog_compiler_wl_F77
16110 pic_flag=$lt_prog_compiler_pic_F77
16116 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16117 allow_undefined_flag_F77=
16118 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16119 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }
16124 archive_cmds_need_lc_F77=no
16126 archive_cmds_need_lc_F77=yes
16128 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16130 cat conftest.err 1>&5
16133 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16134 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16141 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16142 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16143 library_names_spec=
16144 libname_spec='lib$name'
16148 postuninstall_cmds=
16152 shlibpath_overrides_runpath=unknown
16154 dynamic_linker="$host_os ld.so"
16155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16156 if test "$GCC" = yes; then
16157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16158 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16159 # if the path contains ";" then we assume it to be the separator
16160 # otherwise default to the standard path separator (i.e. ":") - it is
16161 # assumed that no part of a normal pathname contains ";" but that should
16162 # okay in the real world where ";" in dirpaths is itself problematic.
16163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16168 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16170 need_lib_prefix=unknown
16171 hardcode_into_libs=no
16173 # when you set need_version to no, make sure it does not cause -set_version
16174 # flags to be left without arguments
16175 need_version=unknown
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16181 shlibpath_var=LIBPATH
16183 # AIX 3 has no versioning support, so we append a major version to the name.
16184 soname_spec='${libname}${release}${shared_ext}$major'
16191 hardcode_into_libs=yes
16192 if test "$host_cpu" = ia64; then
16193 # AIX 5 supports IA64
16194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16195 shlibpath_var=LD_LIBRARY_PATH
16197 # With GCC up to 2.95.x, collect2 would create an import file
16198 # for dependence libraries. The import file would start with
16199 # the line `#! .'. This would cause the generated library to
16200 # depend on `.', always an invalid library. This was fixed in
16201 # development snapshots of GCC prior to 3.0.
16203 aix4 | aix4.[01] | aix4.[01].*)
16204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16206 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16209 can_build_shared=no
16213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16214 # soname into executable. Probably we can add versioning support to
16215 # collect2, so additional links can be useful in future.
16216 if test "$aix_use_runtimelinking" = yes; then
16217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16218 # instead of lib<name>.a to let people know that these are not
16219 # typical AIX shared libraries.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222 # We preserve .a as extension for shared libraries through AIX4.2
16223 # and later when we are not doing run time linking.
16224 library_names_spec='${libname}${release}.a $libname.a'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LIBPATH
16232 library_names_spec='$libname.ixlibrary $libname.a'
16233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16234 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'
16238 library_names_spec='${libname}${shared_ext}'
16239 dynamic_linker="$host_os ld.so"
16240 shlibpath_var=LIBRARY_PATH
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
16248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16252 # the default ld.so.conf also contains /usr/contrib/lib and
16253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16254 # libtool to hard-code these into programs
16257 cygwin* | mingw* | pw32*)
16258 version_type=windows
16263 case $GCC,$host_os in
16264 yes,cygwin* | yes,mingw* | yes,pw32*)
16265 library_names_spec='$libname.dll.a'
16266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16267 postinstall_cmds='base_file=`basename \${file}`~
16268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16269 dldir=$destdir/`dirname \$dlpath`~
16270 test -d \$dldir || mkdir -p \$dldir~
16271 $install_prog $dir/$dlname \$dldir/$dlname~
16272 chmod a+x \$dldir/$dlname'
16273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16274 dlpath=$dir/\$dldll~
16276 shlibpath_overrides_runpath=yes
16280 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16281 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16282 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16285 # MinGW DLLs use traditional 'lib' prefix
16286 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16287 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16288 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16289 # It is most probably a Windows format PATH printed by
16290 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16291 # path with ; separators, and with drive letters. We can handle the
16292 # drive letters (cygwin fileutils understands them), so leave them,
16293 # especially as we might pass files found there to a mingw objdump,
16294 # which wouldn't understand a cygwinified path. Ahh.
16295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16301 # pw32 DLLs use 'pw' prefix rather than 'lib'
16302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16311 dynamic_linker='Win32 ld.exe'
16312 # FIXME: first we should search . and the directory the executable is in
16316 darwin* | rhapsody*)
16317 dynamic_linker="$host_os dyld"
16318 version_type=darwin
16321 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16322 soname_spec='${libname}${release}${major}$shared_ext'
16323 shlibpath_overrides_runpath=yes
16324 shlibpath_var=DYLD_LIBRARY_PATH
16325 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16326 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16327 if test "$GCC" = yes; then
16328 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"`
16330 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16340 soname_spec='${libname}${release}${shared_ext}$major'
16341 shlibpath_var=LD_LIBRARY_PATH
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16353 soname_spec='${libname}${release}${shared_ext}$major'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=no
16356 hardcode_into_libs=yes
16357 dynamic_linker='GNU ld.so'
16360 freebsd* | dragonfly*)
16361 # DragonFly does not have aout. When/if they implement a new
16362 # versioning mechanism, adjust this.
16363 if test -x /usr/bin/objformat; then
16364 objformat=`/usr/bin/objformat`
16367 freebsd[123]*) objformat=aout ;;
16368 *) objformat=elf ;;
16371 version_type=freebsd-$objformat
16372 case $version_type in
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16383 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=yes
16388 freebsd3.[01]* | freebsdelf3.[01]*)
16389 shlibpath_overrides_runpath=yes
16390 hardcode_into_libs=yes
16392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16394 shlibpath_overrides_runpath=no
16395 hardcode_into_libs=yes
16397 freebsd*) # from 4.6 on
16398 shlibpath_overrides_runpath=yes
16399 hardcode_into_libs=yes
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16409 soname_spec='${libname}${release}${shared_ext}$major'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 hardcode_into_libs=yes
16414 hpux9* | hpux10* | hpux11*)
16415 # Give a soname corresponding to the major version so that dld.sl refuses to
16416 # link against other versions.
16423 hardcode_into_libs=yes
16424 dynamic_linker="$host_os dld.so"
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 if test "X$HPUX_IA64_MODE" = X32; then
16430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16438 hardcode_into_libs=yes
16439 dynamic_linker="$host_os dld.sl"
16440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16449 dynamic_linker="$host_os dld.sl"
16450 shlibpath_var=SHLIB_PATH
16451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16457 postinstall_cmds='chmod 555 $lib'
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 shlibpath_overrides_runpath=no
16469 hardcode_into_libs=yes
16472 irix5* | irix6* | nonstopux*)
16474 nonstopux*) version_type=nonstopux ;;
16476 if test "$lt_cv_prog_gnu_ld" = yes; then
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16487 irix5* | nonstopux*)
16488 libsuff= shlibsuff=
16491 case $LD in # libtool.m4 will add one of these switches to LD
16492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16493 libsuff= shlibsuff= libmagic=32-bit;;
16494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16495 libsuff=32 shlibsuff=N32 libmagic=N32;;
16496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16497 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16498 *) libsuff= shlibsuff= libmagic=never-match;;
16502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16503 shlibpath_overrides_runpath=no
16504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16506 hardcode_into_libs=yes
16509 # No shared lib support for Linux oldld, aout, or coff.
16510 linux*oldld* | linux*aout* | linux*coff*)
16514 # This must be Linux ELF.
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 shlibpath_overrides_runpath=no
16524 # This implies no fast_install, which is unacceptable.
16525 # Some rework will be needed to allow for fast_install
16526 # before this can be enabled.
16527 hardcode_into_libs=yes
16529 # find out which ABI we are using
16531 case "$host_cpu" in
16532 x86_64*|s390x*|powerpc64*)
16533 echo '#line 16533 "configure"' > conftest.$ac_ext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16535 (eval $ac_compile) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; then
16539 case `/usr/bin/file conftest.$ac_objext` in
16542 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16550 # Append ld.so.conf contents to the search path
16551 if test -f /etc/ld.so.conf; then
16552 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16553 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16556 # We used to test for /lib/ld.so.1 and disable shared libraries on
16557 # powerpc, because MkLinux only supported shared libraries with the
16558 # GNU dynamic linker. Since this was broken with cross compilers,
16559 # most powerpc-linux boxes support dynamic linking these days and
16560 # people can always --disable-shared, the test was removed, and we
16561 # assume the GNU/Linux dynamic linker is in use.
16562 dynamic_linker='GNU/Linux ld.so'
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 shlibpath_var=LD_LIBRARY_PATH
16572 shlibpath_overrides_runpath=no
16573 hardcode_into_libs=yes
16574 dynamic_linker='GNU ld.so'
16581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16584 dynamic_linker='NetBSD (a.out) ld.so'
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 dynamic_linker='NetBSD ld.elf_so'
16590 shlibpath_var=LD_LIBRARY_PATH
16591 shlibpath_overrides_runpath=yes
16592 hardcode_into_libs=yes
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=yes
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607 soname_spec='${libname}${release}${shared_ext}$major'
16608 shlibpath_var=LD_LIBRARY_PATH
16609 shlibpath_overrides_runpath=yes
16614 sys_lib_dlsearch_path_spec="/usr/lib"
16616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16619 *) need_version=no ;;
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16623 shlibpath_var=LD_LIBRARY_PATH
16624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16626 openbsd2.[89] | openbsd2.[89].*)
16627 shlibpath_overrides_runpath=no
16630 shlibpath_overrides_runpath=yes
16634 shlibpath_overrides_runpath=yes
16639 libname_spec='$name'
16642 library_names_spec='$libname${shared_ext} $libname.a'
16643 dynamic_linker='OS/2 ld.exe'
16644 shlibpath_var=LIBPATH
16647 osf3* | osf4* | osf5*)
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653 shlibpath_var=LD_LIBRARY_PATH
16654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=yes
16666 hardcode_into_libs=yes
16667 # ldd complains unless libraries are executable
16668 postinstall_cmds='chmod +x $lib'
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes
16677 if test "$with_gnu_ld" = yes; then
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 case $host_vendor in
16690 shlibpath_overrides_runpath=no
16692 export_dynamic_flag_spec='${wl}-Blargedynsym'
16693 runpath_var=LD_RUN_PATH
16701 shlibpath_overrides_runpath=no
16702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16708 if test -d /usr/nec ;then
16710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16711 soname_spec='$libname${shared_ext}.$major'
16712 shlibpath_var=LD_LIBRARY_PATH
16716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16717 version_type=freebsd-elf
16720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16721 soname_spec='${libname}${release}${shared_ext}$major'
16722 shlibpath_var=LD_LIBRARY_PATH
16723 hardcode_into_libs=yes
16724 if test "$with_gnu_ld" = yes; then
16725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16726 shlibpath_overrides_runpath=no
16728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16729 shlibpath_overrides_runpath=yes
16732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16736 sys_lib_dlsearch_path_spec='/usr/lib'
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 shlibpath_var=LD_LIBRARY_PATH
16750 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16751 echo "${ECHO_T}$dynamic_linker" >&6; }
16752 test "$dynamic_linker" = no && can_build_shared=no
16754 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16755 if test "$GCC" = yes; then
16756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16759 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16760 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16761 hardcode_action_F77=
16762 if test -n "$hardcode_libdir_flag_spec_F77" || \
16763 test -n "$runpath_var_F77" || \
16764 test "X$hardcode_automatic_F77" = "Xyes" ; then
16766 # We can hardcode non-existant directories.
16767 if test "$hardcode_direct_F77" != no &&
16768 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16769 # have to relink, otherwise we might link with an installed library
16770 # when we should be linking with a yet-to-be-installed one
16771 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16772 test "$hardcode_minus_L_F77" != no; then
16773 # Linking always hardcodes the temporary library directory.
16774 hardcode_action_F77=relink
16776 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16777 hardcode_action_F77=immediate
16780 # We cannot hardcode anything, or else we can only hardcode existing
16782 hardcode_action_F77=unsupported
16784 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16785 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16787 if test "$hardcode_action_F77" = relink; then
16788 # Fast installation is not supported
16789 enable_fast_install=no
16790 elif test "$shlibpath_overrides_runpath" = yes ||
16791 test "$enable_shared" = no; then
16792 # Fast installation is not necessary
16793 enable_fast_install=needless
16797 # The else clause should only fire when bootstrapping the
16798 # libtool distribution, otherwise you forgot to ship ltmain.sh
16799 # with your package, and you will get complaints that there are
16800 # no rules to generate ltmain.sh.
16801 if test -f "$ltmain"; then
16802 # See if we are running on zsh, and set the options which allow our commands through
16803 # without removal of \ escapes.
16804 if test -n "${ZSH_VERSION+set}" ; then
16805 setopt NO_GLOB_SUBST
16807 # Now quote all the things that may contain metacharacters while being
16808 # careful not to overquote the AC_SUBSTed values. We take copies of the
16809 # variables and quote the copies for generation of the libtool script.
16810 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16814 deplibs_check_method reload_flag reload_cmds need_locks \
16815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16816 lt_cv_sys_global_symbol_to_c_name_address \
16817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16818 old_postinstall_cmds old_postuninstall_cmds \
16822 lt_prog_compiler_wl_F77 \
16823 lt_prog_compiler_pic_F77 \
16824 lt_prog_compiler_static_F77 \
16825 lt_prog_compiler_no_builtin_flag_F77 \
16826 export_dynamic_flag_spec_F77 \
16827 thread_safe_flag_spec_F77 \
16828 whole_archive_flag_spec_F77 \
16829 enable_shared_with_static_runtimes_F77 \
16830 old_archive_cmds_F77 \
16831 old_archive_from_new_cmds_F77 \
16832 predep_objects_F77 \
16833 postdep_objects_F77 \
16836 compiler_lib_search_path_F77 \
16838 archive_expsym_cmds_F77 \
16839 postinstall_cmds_F77 \
16840 postuninstall_cmds_F77 \
16841 old_archive_from_expsyms_cmds_F77 \
16842 allow_undefined_flag_F77 \
16843 no_undefined_flag_F77 \
16844 export_symbols_cmds_F77 \
16845 hardcode_libdir_flag_spec_F77 \
16846 hardcode_libdir_flag_spec_ld_F77 \
16847 hardcode_libdir_separator_F77 \
16848 hardcode_automatic_F77 \
16850 module_expsym_cmds_F77 \
16851 lt_cv_prog_compiler_c_o_F77 \
16852 exclude_expsyms_F77 \
16853 include_expsyms_F77; do
16856 old_archive_cmds_F77 | \
16857 old_archive_from_new_cmds_F77 | \
16858 archive_cmds_F77 | \
16859 archive_expsym_cmds_F77 | \
16860 module_cmds_F77 | \
16861 module_expsym_cmds_F77 | \
16862 old_archive_from_expsyms_cmds_F77 | \
16863 export_symbols_cmds_F77 | \
16864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16865 postinstall_cmds | postuninstall_cmds | \
16866 old_postinstall_cmds | old_postuninstall_cmds | \
16867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16868 # Double-quote double-evaled strings.
16869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16878 *'\$0 --fallback-echo"')
16879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16885 cat <<__EOF__ >> "$cfgfile"
16886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16890 # Shell to use when invoking shell scripts.
16893 # Whether or not to build shared libraries.
16894 build_libtool_libs=$enable_shared
16896 # Whether or not to build static libraries.
16897 build_old_libs=$enable_static
16899 # Whether or not to add -lc for building shared libraries.
16900 build_libtool_need_lc=$archive_cmds_need_lc_F77
16902 # Whether or not to disallow shared libs when runtime libs are static
16903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16905 # Whether or not to optimize for fast installation.
16906 fast_install=$enable_fast_install
16909 host_alias=$host_alias
16913 # The build system.
16914 build_alias=$build_alias
16918 # An echo program that does not interpret backslashes.
16923 AR_FLAGS=$lt_AR_FLAGS
16928 # LTCC compiler flags.
16929 LTCFLAGS=$lt_LTCFLAGS
16931 # A language-specific compiler.
16932 CC=$lt_compiler_F77
16934 # Is the compiler the GNU C compiler?
16940 # The linker used to build libraries.
16943 # Whether we need hard or soft links.
16946 # A BSD-compatible nm program.
16949 # A symbol stripping program
16952 # Used to examine libraries when file_magic_cmd begins "file"
16953 MAGIC_CMD=$MAGIC_CMD
16955 # Used on cygwin: DLL creation program.
16958 # Used on cygwin: object dumper.
16961 # Used on cygwin: assembler.
16964 # The name of the directory that contains temporary libtool files.
16967 # How to create reloadable object files.
16968 reload_flag=$lt_reload_flag
16969 reload_cmds=$lt_reload_cmds
16971 # How to pass a linker flag through the compiler.
16972 wl=$lt_lt_prog_compiler_wl_F77
16974 # Object file suffix (normally "o").
16975 objext="$ac_objext"
16977 # Old archive suffix (normally "a").
16980 # Shared library suffix (normally ".so").
16981 shrext_cmds='$shrext_cmds'
16983 # Executable file suffix (normally "").
16986 # Additional compiler flags for building library objects.
16987 pic_flag=$lt_lt_prog_compiler_pic_F77
16990 # What is the maximum length of a command?
16991 max_cmd_len=$lt_cv_sys_max_cmd_len
16993 # Does compiler simultaneously support -c and -o options?
16994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16996 # Must we lock files when doing compilation?
16997 need_locks=$lt_need_locks
16999 # Do we need the lib prefix for modules?
17000 need_lib_prefix=$need_lib_prefix
17002 # Do we need a version for libraries?
17003 need_version=$need_version
17005 # Whether dlopen is supported.
17006 dlopen_support=$enable_dlopen
17008 # Whether dlopen of programs is supported.
17009 dlopen_self=$enable_dlopen_self
17011 # Whether dlopen of statically linked programs is supported.
17012 dlopen_self_static=$enable_dlopen_self_static
17014 # Compiler flag to prevent dynamic linking.
17015 link_static_flag=$lt_lt_prog_compiler_static_F77
17017 # Compiler flag to turn off builtin functions.
17018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17020 # Compiler flag to allow reflexive dlopens.
17021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17023 # Compiler flag to generate shared objects directly from archives.
17024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17026 # Compiler flag to generate thread-safe objects.
17027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17029 # Library versioning type.
17030 version_type=$version_type
17032 # Format of library name prefix.
17033 libname_spec=$lt_libname_spec
17035 # List of archive names. First name is the real one, the rest are links.
17036 # The last name is the one that the linker finds with -lNAME.
17037 library_names_spec=$lt_library_names_spec
17039 # The coded name of the library, if different from the real name.
17040 soname_spec=$lt_soname_spec
17042 # Commands used to build and install an old-style archive.
17044 old_archive_cmds=$lt_old_archive_cmds_F77
17045 old_postinstall_cmds=$lt_old_postinstall_cmds
17046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17048 # Create an old-style archive from a shared archive.
17049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17051 # Create a temporary old-style archive to link instead of a shared archive.
17052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17054 # Commands used to build and install a shared archive.
17055 archive_cmds=$lt_archive_cmds_F77
17056 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17057 postinstall_cmds=$lt_postinstall_cmds
17058 postuninstall_cmds=$lt_postuninstall_cmds
17060 # Commands used to build a loadable module (assumed same as above if empty)
17061 module_cmds=$lt_module_cmds_F77
17062 module_expsym_cmds=$lt_module_expsym_cmds_F77
17064 # Commands to strip libraries.
17065 old_striplib=$lt_old_striplib
17066 striplib=$lt_striplib
17068 # Dependencies to place before the objects being linked to create a
17070 predep_objects=$lt_predep_objects_F77
17072 # Dependencies to place after the objects being linked to create a
17074 postdep_objects=$lt_postdep_objects_F77
17076 # Dependencies to place before the objects being linked to create a
17078 predeps=$lt_predeps_F77
17080 # Dependencies to place after the objects being linked to create a
17082 postdeps=$lt_postdeps_F77
17084 # The library search path used internally by the compiler when linking
17085 # a shared library.
17086 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17088 # Method to check whether dependent libraries are shared objects.
17089 deplibs_check_method=$lt_deplibs_check_method
17091 # Command to use when deplibs_check_method == file_magic.
17092 file_magic_cmd=$lt_file_magic_cmd
17094 # Flag that allows shared libraries with undefined symbols to be built.
17095 allow_undefined_flag=$lt_allow_undefined_flag_F77
17097 # Flag that forces no undefined symbols.
17098 no_undefined_flag=$lt_no_undefined_flag_F77
17100 # Commands used to finish a libtool library installation in a directory.
17101 finish_cmds=$lt_finish_cmds
17103 # Same as above, but a single script fragment to be evaled but not shown.
17104 finish_eval=$lt_finish_eval
17106 # Take the output of nm and produce a listing of raw symbols and C names.
17107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17109 # Transform the output of nm in a proper C declaration
17110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17112 # Transform the output of nm in a C name address pair
17113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17115 # This is the shared library runtime path variable.
17116 runpath_var=$runpath_var
17118 # This is the shared library path variable.
17119 shlibpath_var=$shlibpath_var
17121 # Is shlibpath searched before the hard-coded library search path?
17122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17124 # How to hardcode a shared library path into an executable.
17125 hardcode_action=$hardcode_action_F77
17127 # Whether we should hardcode library paths into libraries.
17128 hardcode_into_libs=$hardcode_into_libs
17130 # Flag to hardcode \$libdir into a binary during linking.
17131 # This must work even if \$libdir does not exist.
17132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17134 # If ld is used when linking, flag to hardcode \$libdir into
17135 # a binary during linking. This must work even if \$libdir does
17137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17139 # Whether we need a single -rpath flag with a separated argument.
17140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17143 # resulting binary.
17144 hardcode_direct=$hardcode_direct_F77
17146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17147 # resulting binary.
17148 hardcode_minus_L=$hardcode_minus_L_F77
17150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17151 # the resulting binary.
17152 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17154 # Set to yes if building a shared library automatically hardcodes DIR into the library
17155 # and all subsequent libraries and executables linked against it.
17156 hardcode_automatic=$hardcode_automatic_F77
17158 # Variables whose values should be saved in libtool wrapper scripts and
17159 # restored at relink time.
17160 variables_saved_for_relink="$variables_saved_for_relink"
17162 # Whether libtool must link a program against all its dependency libraries.
17163 link_all_deplibs=$link_all_deplibs_F77
17165 # Compile-time system search path for libraries
17166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17168 # Run-time system search path for libraries
17169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17171 # Fix the shell variable \$srcfile for the compiler.
17172 fix_srcfile_path="$fix_srcfile_path_F77"
17174 # Set to yes if exported symbols are required.
17175 always_export_symbols=$always_export_symbols_F77
17177 # The commands to list exported symbols.
17178 export_symbols_cmds=$lt_export_symbols_cmds_F77
17180 # The commands to extract the exported symbol list from a shared archive.
17181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17183 # Symbols that should not be listed in the preloaded symbols.
17184 exclude_expsyms=$lt_exclude_expsyms_F77
17186 # Symbols that must always be exported.
17187 include_expsyms=$lt_include_expsyms_F77
17189 # ### END LIBTOOL TAG CONFIG: $tagname
17195 # If there is no Makefile yet, we rely on a make rule to execute
17196 # `config.status --recheck' to rerun these tests and create the
17197 # libtool script then.
17198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17199 if test -f "$ltmain_in"; then
17200 test -f Makefile && make "$ltmain"
17206 ac_cpp='$CPP $CPPFLAGS'
17207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17219 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17222 # Source file extension for Java test sources.
17225 # Object file extension for compiled Java test sources.
17229 # Code to be used in simple compile tests
17230 lt_simple_compile_test_code="class foo {}\n"
17232 # Code to be used in simple link tests
17233 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17237 # If no C compiler was specified, use CC.
17240 # If no C compiler flags were specified, use CFLAGS.
17241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17243 # Allow CC to be a program name with arguments.
17247 # save warnings/boilerplate of simple test code
17248 ac_outfile=conftest.$ac_objext
17249 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17251 _lt_compiler_boilerplate=`cat conftest.err`
17254 ac_outfile=conftest.$ac_objext
17255 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17257 _lt_linker_boilerplate=`cat conftest.err`
17261 # Allow CC to be a program name with arguments.
17266 for cc_temp in $compiler""; do
17268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17277 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17278 archive_cmds_need_lc_GCJ=no
17280 old_archive_cmds_GCJ=$old_archive_cmds
17283 lt_prog_compiler_no_builtin_flag_GCJ=
17285 if test "$GCC" = yes; then
17286 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17289 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17290 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17291 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 lt_cv_prog_compiler_rtti_exceptions=no
17295 ac_outfile=conftest.$ac_objext
17296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17297 lt_compiler_flag="-fno-rtti -fno-exceptions"
17298 # Insert the option either (1) after the last *FLAGS variable, or
17299 # (2) before a word containing "conftest.", or (3) at the end.
17300 # Note that $ac_compile itself does not contain backslashes and begins
17301 # with a dollar sign (not a hyphen), so the echo should work correctly.
17302 # The option is referenced via a variable to avoid confusing sed.
17303 lt_compile=`echo "$ac_compile" | $SED \
17304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17306 -e 's:$: $lt_compiler_flag:'`
17307 (eval echo "\"\$as_me:17307: $lt_compile\"" >&5)
17308 (eval "$lt_compile" 2>conftest.err)
17310 cat conftest.err >&5
17311 echo "$as_me:17311: \$? = $ac_status" >&5
17312 if (exit $ac_status) && test -s "$ac_outfile"; then
17313 # The compiler can only warn and ignore the option if not recognized
17314 # So say no if there are warnings other than the usual output.
17315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17318 lt_cv_prog_compiler_rtti_exceptions=yes
17324 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17325 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17327 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17328 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17335 lt_prog_compiler_wl_GCJ=
17336 lt_prog_compiler_pic_GCJ=
17337 lt_prog_compiler_static_GCJ=
17339 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17340 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17342 if test "$GCC" = yes; then
17343 lt_prog_compiler_wl_GCJ='-Wl,'
17344 lt_prog_compiler_static_GCJ='-static'
17348 # All AIX code is PIC.
17349 if test "$host_cpu" = ia64; then
17350 # AIX 5 now supports IA64 processor
17351 lt_prog_compiler_static_GCJ='-Bstatic'
17356 # FIXME: we need at least 68020 code to build shared libraries, but
17357 # adding the `-m68020' flag to GCC prevents building anything better,
17359 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17362 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17363 # PIC is the default for these OSes.
17366 mingw* | pw32* | os2*)
17367 # This hack is so that the source file can tell whether it is being
17368 # built for inclusion in a dll (and should export symbols for example).
17369 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17372 darwin* | rhapsody*)
17373 # PIC is the default on this platform
17374 # Common symbols not allowed in MH_DYLIB files
17375 lt_prog_compiler_pic_GCJ='-fno-common'
17379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17380 # Instead, we relocate shared libraries at runtime.
17384 # Just because we use GCC doesn't mean we suddenly get shared libraries
17385 # on systems that don't support them.
17386 lt_prog_compiler_can_build_shared_GCJ=no
17391 if test -d /usr/nec; then
17392 lt_prog_compiler_pic_GCJ=-Kconform_pic
17397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17398 # not for PA HP-UX.
17404 lt_prog_compiler_pic_GCJ='-fPIC'
17410 lt_prog_compiler_pic_GCJ='-fPIC'
17414 # PORTME Check for flag to pass linker flags through the system compiler.
17417 lt_prog_compiler_wl_GCJ='-Wl,'
17418 if test "$host_cpu" = ia64; then
17419 # AIX 5 now supports IA64 processor
17420 lt_prog_compiler_static_GCJ='-Bstatic'
17422 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17426 # PIC is the default on this platform
17427 # Common symbols not allowed in MH_DYLIB files
17428 case $cc_basename in
17430 lt_prog_compiler_pic_GCJ='-qnocommon'
17431 lt_prog_compiler_wl_GCJ='-Wl,'
17436 mingw* | pw32* | os2*)
17437 # This hack is so that the source file can tell whether it is being
17438 # built for inclusion in a dll (and should export symbols for example).
17439 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17442 hpux9* | hpux10* | hpux11*)
17443 lt_prog_compiler_wl_GCJ='-Wl,'
17444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17445 # not for PA HP-UX.
17451 lt_prog_compiler_pic_GCJ='+Z'
17454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17455 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17458 irix5* | irix6* | nonstopux*)
17459 lt_prog_compiler_wl_GCJ='-Wl,'
17460 # PIC (with -KPIC) is the default.
17461 lt_prog_compiler_static_GCJ='-non_shared'
17465 lt_prog_compiler_pic_GCJ='-KPIC'
17466 lt_prog_compiler_static_GCJ='-Bstatic'
17470 case $cc_basename in
17472 lt_prog_compiler_wl_GCJ='-Wl,'
17473 lt_prog_compiler_pic_GCJ='-KPIC'
17474 lt_prog_compiler_static_GCJ='-static'
17476 pgcc* | pgf77* | pgf90* | pgf95*)
17477 # Portland Group compilers (*not* the Pentium gcc compiler,
17478 # which looks to be a dead project)
17479 lt_prog_compiler_wl_GCJ='-Wl,'
17480 lt_prog_compiler_pic_GCJ='-fpic'
17481 lt_prog_compiler_static_GCJ='-Bstatic'
17484 lt_prog_compiler_wl_GCJ='-Wl,'
17485 # All Alpha code is PIC.
17486 lt_prog_compiler_static_GCJ='-non_shared'
17491 osf3* | osf4* | osf5*)
17492 lt_prog_compiler_wl_GCJ='-Wl,'
17493 # All OSF/1 code is PIC.
17494 lt_prog_compiler_static_GCJ='-non_shared'
17498 lt_prog_compiler_pic_GCJ='-KPIC'
17499 lt_prog_compiler_static_GCJ='-Bstatic'
17500 case $cc_basename in
17501 f77* | f90* | f95*)
17502 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17504 lt_prog_compiler_wl_GCJ='-Wl,';;
17509 lt_prog_compiler_wl_GCJ='-Qoption ld '
17510 lt_prog_compiler_pic_GCJ='-PIC'
17511 lt_prog_compiler_static_GCJ='-Bstatic'
17514 sysv4 | sysv4.2uw2* | sysv4.3*)
17515 lt_prog_compiler_wl_GCJ='-Wl,'
17516 lt_prog_compiler_pic_GCJ='-KPIC'
17517 lt_prog_compiler_static_GCJ='-Bstatic'
17521 if test -d /usr/nec ;then
17522 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17523 lt_prog_compiler_static_GCJ='-Bstatic'
17527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17528 lt_prog_compiler_wl_GCJ='-Wl,'
17529 lt_prog_compiler_pic_GCJ='-KPIC'
17530 lt_prog_compiler_static_GCJ='-Bstatic'
17534 lt_prog_compiler_wl_GCJ='-Wl,'
17535 lt_prog_compiler_can_build_shared_GCJ=no
17539 lt_prog_compiler_pic_GCJ='-pic'
17540 lt_prog_compiler_static_GCJ='-Bstatic'
17544 lt_prog_compiler_can_build_shared_GCJ=no
17549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17550 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17553 # Check to make sure the PIC flag actually works.
17555 if test -n "$lt_prog_compiler_pic_GCJ"; then
17557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17559 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 lt_prog_compiler_pic_works_GCJ=no
17563 ac_outfile=conftest.$ac_objext
17564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17565 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17566 # Insert the option either (1) after the last *FLAGS variable, or
17567 # (2) before a word containing "conftest.", or (3) at the end.
17568 # Note that $ac_compile itself does not contain backslashes and begins
17569 # with a dollar sign (not a hyphen), so the echo should work correctly.
17570 # The option is referenced via a variable to avoid confusing sed.
17571 lt_compile=`echo "$ac_compile" | $SED \
17572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17574 -e 's:$: $lt_compiler_flag:'`
17575 (eval echo "\"\$as_me:17575: $lt_compile\"" >&5)
17576 (eval "$lt_compile" 2>conftest.err)
17578 cat conftest.err >&5
17579 echo "$as_me:17579: \$? = $ac_status" >&5
17580 if (exit $ac_status) && test -s "$ac_outfile"; then
17581 # The compiler can only warn and ignore the option if not recognized
17582 # So say no if there are warnings other than the usual output.
17583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17586 lt_prog_compiler_pic_works_GCJ=yes
17592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17593 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17595 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17596 case $lt_prog_compiler_pic_GCJ in
17598 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17601 lt_prog_compiler_pic_GCJ=
17602 lt_prog_compiler_can_build_shared_GCJ=no
17607 # For platforms which do not support PIC, -DPIC is meaningless:
17609 lt_prog_compiler_pic_GCJ=
17612 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17617 # Check to make sure the static flag actually works.
17619 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17620 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17621 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17622 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 lt_prog_compiler_static_works_GCJ=no
17626 save_LDFLAGS="$LDFLAGS"
17627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17628 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17630 # The linker can only warn and ignore the option if not recognized
17631 # So say no if there are warnings
17632 if test -s conftest.err; then
17633 # Append any errors to the config.log.
17634 cat conftest.err 1>&5
17635 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17637 if diff conftest.exp conftest.er2 >/dev/null; then
17638 lt_prog_compiler_static_works_GCJ=yes
17641 lt_prog_compiler_static_works_GCJ=yes
17645 LDFLAGS="$save_LDFLAGS"
17648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17649 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17651 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17654 lt_prog_compiler_static_GCJ=
17658 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17660 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 lt_cv_prog_compiler_c_o_GCJ=no
17664 $rm -r conftest 2>/dev/null
17668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17670 lt_compiler_flag="-o out/conftest2.$ac_objext"
17671 # Insert the option either (1) after the last *FLAGS variable, or
17672 # (2) before a word containing "conftest.", or (3) at the end.
17673 # Note that $ac_compile itself does not contain backslashes and begins
17674 # with a dollar sign (not a hyphen), so the echo should work correctly.
17675 lt_compile=`echo "$ac_compile" | $SED \
17676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17678 -e 's:$: $lt_compiler_flag:'`
17679 (eval echo "\"\$as_me:17679: $lt_compile\"" >&5)
17680 (eval "$lt_compile" 2>out/conftest.err)
17682 cat out/conftest.err >&5
17683 echo "$as_me:17683: \$? = $ac_status" >&5
17684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17686 # The compiler can only warn and ignore the option if not recognized
17687 # So say no if there are warnings
17688 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17689 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17690 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17691 lt_cv_prog_compiler_c_o_GCJ=yes
17696 # SGI C++ compiler will create directory out/ii_files/ for
17697 # template instantiation
17698 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17699 $rm out/* && rmdir out
17705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17709 hard_links="nottested"
17710 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17711 # do not overwrite the value of need_locks provided by the user
17712 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17713 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17718 ln conftest.a conftest.b 2>&5 || hard_links=no
17719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17720 { echo "$as_me:$LINENO: result: $hard_links" >&5
17721 echo "${ECHO_T}$hard_links" >&6; }
17722 if test "$hard_links" = no; then
17723 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17724 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17731 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17732 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17735 allow_undefined_flag_GCJ=
17736 enable_shared_with_static_runtimes_GCJ=no
17738 archive_expsym_cmds_GCJ=
17739 old_archive_From_new_cmds_GCJ=
17740 old_archive_from_expsyms_cmds_GCJ=
17741 export_dynamic_flag_spec_GCJ=
17742 whole_archive_flag_spec_GCJ=
17743 thread_safe_flag_spec_GCJ=
17744 hardcode_libdir_flag_spec_GCJ=
17745 hardcode_libdir_flag_spec_ld_GCJ=
17746 hardcode_libdir_separator_GCJ=
17747 hardcode_direct_GCJ=no
17748 hardcode_minus_L_GCJ=no
17749 hardcode_shlibpath_var_GCJ=unsupported
17750 link_all_deplibs_GCJ=unknown
17751 hardcode_automatic_GCJ=no
17753 module_expsym_cmds_GCJ=
17754 always_export_symbols_GCJ=no
17755 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17756 # include_expsyms should be a list of space-separated symbols to be *always*
17757 # included in the symbol list
17758 include_expsyms_GCJ=
17759 # exclude_expsyms can be an extended regexp of symbols to exclude
17760 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17762 # as well as any symbol that contains `d'.
17763 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17765 # platforms (ab)use it in PIC code, but their linkers get confused if
17766 # the symbol is explicitly referenced. Since portable code cannot
17767 # rely on this symbol name, it's probably fine to never include it in
17768 # preloaded symbol tables.
17769 extract_expsyms_cmds=
17770 # Just being paranoid about ensuring that cc_basename is set.
17771 for cc_temp in $compiler""; do
17773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17782 cygwin* | mingw* | pw32*)
17783 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17784 # When not using gcc, we currently assume that we are using
17785 # Microsoft Visual C++.
17786 if test "$GCC" != yes; then
17791 # we just hope/assume this is gcc and not c89 (= MSVC++)
17800 if test "$with_gnu_ld" = yes; then
17801 # If archive_cmds runs LD, not CC, wlarc should be empty
17804 # Set some defaults for GNU ld with shared library support. These
17805 # are reset later if shared libraries are not supported. Putting them
17806 # here allows them to be overridden if necessary.
17807 runpath_var=LD_RUN_PATH
17808 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17809 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17810 # ancient GNU ld didn't support --whole-archive et. al.
17811 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17812 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17814 whole_archive_flag_spec_GCJ=
17816 supports_anon_versioning=no
17817 case `$LD -v 2>/dev/null` in
17818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17821 *\ 2.11.*) ;; # other 2.11 versions
17822 *) supports_anon_versioning=yes ;;
17825 # See if GNU ld supports shared libraries.
17827 aix3* | aix4* | aix5*)
17828 # On AIX/PPC, the GNU linker is very broken
17829 if test "$host_cpu" != ia64; then
17833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17834 *** to be unable to reliably create shared libraries on AIX.
17835 *** Therefore, libtool is disabling shared libraries support. If you
17836 *** really care for shared libraries, you may want to modify your PATH
17837 *** so that a non-GNU linker is found, and then restart.
17844 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)'
17845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17846 hardcode_minus_L_GCJ=yes
17848 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17849 # that the semantics of dynamic libraries on AmigaOS, at least up
17850 # to version 4, is to share data among multiple programs linked
17851 # with the same dynamic library. Since this doesn't match the
17852 # behavior of shared libraries on other platforms, we can't use
17858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17859 allow_undefined_flag_GCJ=unsupported
17860 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17861 # support --undefined. This deserves some investigation. FIXME
17862 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17868 cygwin* | mingw* | pw32*)
17869 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17870 # as there is no search path for DLLs.
17871 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17872 allow_undefined_flag_GCJ=unsupported
17873 always_export_symbols_GCJ=no
17874 enable_shared_with_static_runtimes_GCJ=yes
17875 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17877 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17879 # If the export-symbols file already is a .def file (1st line
17880 # is EXPORTS), use it as is; otherwise, prepend...
17881 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17882 cp $export_symbols $output_objdir/$soname.def;
17884 echo EXPORTS > $output_objdir/$soname.def;
17885 cat $export_symbols >> $output_objdir/$soname.def;
17887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17894 hardcode_direct_GCJ=no
17895 hardcode_shlibpath_var_GCJ=no
17896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17897 export_dynamic_flag_spec_GCJ='${wl}-E'
17898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17899 # Instead, shared libraries are loaded at an image base (0x10000000 by
17900 # default) and relocated if they conflict, which is a slow very memory
17901 # consuming and fragmenting process. To avoid this, we pick a random,
17902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17904 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'
17905 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'
17909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17911 case $cc_basename,$host_cpu in
17912 pgcc*) # Portland Group C compiler
17913 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'
17914 tmp_addflag=' $pic_flag'
17916 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17917 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'
17918 tmp_addflag=' $pic_flag -Mnomain' ;;
17919 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17920 tmp_addflag=' -i_dynamic' ;;
17921 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17922 tmp_addflag=' -i_dynamic -nofor_main' ;;
17923 ifc* | ifort*) # Intel Fortran compiler
17924 tmp_addflag=' -nofor_main' ;;
17926 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17928 if test $supports_anon_versioning = yes; then
17929 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17931 $echo "local: *; };" >> $output_objdir/$libname.ver~
17932 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17941 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17944 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17945 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17950 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17954 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17955 *** create shared libraries on Solaris systems. Therefore, libtool
17956 *** is disabling shared libraries support. We urge you to upgrade GNU
17957 *** binutils to release 2.9.1 or newer. Another option is to modify
17958 *** your PATH or compiler configuration so that the native linker is
17959 *** used, and then restart.
17962 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17963 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17964 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17971 case `$LD -v 2>&1` in
17972 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17976 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17977 *** reliably create shared libraries on SCO systems. Therefore, libtool
17978 *** is disabling shared libraries support. We urge you to upgrade GNU
17979 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17980 *** your PATH or compiler configuration so that the native linker is
17981 *** used, and then restart.
17986 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17987 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17998 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18000 hardcode_direct_GCJ=yes
18001 hardcode_shlibpath_var_GCJ=no
18005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18006 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18007 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18014 if test "$ld_shlibs_GCJ" = no; then
18016 hardcode_libdir_flag_spec_GCJ=
18017 export_dynamic_flag_spec_GCJ=
18018 whole_archive_flag_spec_GCJ=
18021 # PORTME fill in a description of your system's linker (not GNU ld)
18024 allow_undefined_flag_GCJ=unsupported
18025 always_export_symbols_GCJ=yes
18026 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'
18027 # Note: this linker hardcodes the directories in LIBPATH if there
18028 # are no directories specified by -L.
18029 hardcode_minus_L_GCJ=yes
18030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18031 # Neither direct hardcoding nor static linking is supported with a
18033 hardcode_direct_GCJ=unsupported
18038 if test "$host_cpu" = ia64; then
18039 # On IA64, the linker does run time linking by default, so we don't
18040 # have to do anything special.
18041 aix_use_runtimelinking=no
18042 exp_sym_flag='-Bexport'
18045 # If we're using GNU nm, then we don't want the "-C" option.
18046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18047 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18048 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'
18050 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'
18052 aix_use_runtimelinking=no
18054 # Test if we are trying to use run time linking or normal
18055 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18056 # need to do runtime linking.
18057 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18058 for ld_flag in $LDFLAGS; do
18059 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18060 aix_use_runtimelinking=yes
18067 exp_sym_flag='-bexport'
18068 no_entry_flag='-bnoentry'
18071 # When large executables or shared objects are built, AIX ld can
18072 # have problems creating the table of contents. If linking a library
18073 # or program results in "error TOC overflow" add -mminimal-toc to
18074 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18075 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18077 archive_cmds_GCJ=''
18078 hardcode_direct_GCJ=yes
18079 hardcode_libdir_separator_GCJ=':'
18080 link_all_deplibs_GCJ=yes
18082 if test "$GCC" = yes; then
18083 case $host_os in aix4.[012]|aix4.[012].*)
18084 # We only want to do this on AIX 4.2 and lower, the check
18085 # below for broken collect2 doesn't work under 4.3+
18086 collect2name=`${CC} -print-prog-name=collect2`
18087 if test -f "$collect2name" && \
18088 strings "$collect2name" | grep resolve_lib_name >/dev/null
18090 # We have reworked collect2
18091 hardcode_direct_GCJ=yes
18093 # We have old collect2
18094 hardcode_direct_GCJ=unsupported
18095 # It fails to find uninstalled libraries when the uninstalled
18096 # path is not listed in the libpath. Setting hardcode_minus_L
18097 # to unsupported forces relinking
18098 hardcode_minus_L_GCJ=yes
18099 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18100 hardcode_libdir_separator_GCJ=
18104 shared_flag='-shared'
18105 if test "$aix_use_runtimelinking" = yes; then
18106 shared_flag="$shared_flag "'${wl}-G'
18110 if test "$host_cpu" = ia64; then
18111 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18112 # chokes on -Wl,-G. The following line is correct:
18115 if test "$aix_use_runtimelinking" = yes; then
18116 shared_flag='${wl}-G'
18118 shared_flag='${wl}-bM:SRE'
18123 # It seems that -bexpall does not export symbols beginning with
18124 # underscore (_), so it is better to generate a list of symbols to export.
18125 always_export_symbols_GCJ=yes
18126 if test "$aix_use_runtimelinking" = yes; then
18127 # Warning - without using the other runtime loading flags (-brtl),
18128 # -berok will link without error, but may produce a broken library.
18129 allow_undefined_flag_GCJ='-berok'
18130 # Determine the default libpath from the value encoded in an empty executable.
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_link") 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest$ac_exeext'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18183 # Check for a 64-bit object if we didn't find anything.
18184 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; }
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18197 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18198 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"
18200 if test "$host_cpu" = ia64; then
18201 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18202 allow_undefined_flag_GCJ="-z nodefs"
18203 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"
18205 # Determine the default libpath from the value encoded in an empty executable.
18206 cat >conftest.$ac_ext <<_ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (ac_try="$ac_link"
18223 case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_link") 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18236 { (case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_try") 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest$ac_exeext'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18258 # Check for a 64-bit object if we didn't find anything.
18259 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; }
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18272 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18273 # Warning - without using the other run time loading flags,
18274 # -berok will link without error, but may produce a broken library.
18275 no_undefined_flag_GCJ=' ${wl}-bernotok'
18276 allow_undefined_flag_GCJ=' ${wl}-berok'
18277 # Exported symbols can be pulled into shared objects from archives
18278 whole_archive_flag_spec_GCJ='$convenience'
18279 archive_cmds_need_lc_GCJ=yes
18280 # This is similar to how AIX traditionally builds its shared libraries.
18281 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'
18287 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)'
18288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18289 hardcode_minus_L_GCJ=yes
18290 # see comment about different semantics on the GNU ld section
18295 export_dynamic_flag_spec_GCJ=-rdynamic
18298 cygwin* | mingw* | pw32*)
18299 # When not using gcc, we currently assume that we are using
18300 # Microsoft Visual C++.
18301 # hardcode_libdir_flag_spec is actually meaningless, as there is
18302 # no search path for DLLs.
18303 hardcode_libdir_flag_spec_GCJ=' '
18304 allow_undefined_flag_GCJ=unsupported
18305 # Tell ltmain to make .lib files, not .a files.
18307 # Tell ltmain to make .dll files, not .so files.
18309 # FIXME: Setting linknames here is a bad hack.
18310 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18311 # The linker will automatically build a .lib file if we build a DLL.
18312 old_archive_From_new_cmds_GCJ='true'
18313 # FIXME: Should let the user specify the lib program.
18314 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18315 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18316 enable_shared_with_static_runtimes_GCJ=yes
18319 darwin* | rhapsody*)
18321 rhapsody* | darwin1.[012])
18322 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18326 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18328 case ${MACOSX_DEPLOYMENT_TARGET} in
18330 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18333 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18339 archive_cmds_need_lc_GCJ=no
18340 hardcode_direct_GCJ=no
18341 hardcode_automatic_GCJ=yes
18342 hardcode_shlibpath_var_GCJ=unsupported
18343 whole_archive_flag_spec_GCJ=''
18344 link_all_deplibs_GCJ=yes
18345 if test "$GCC" = yes ; then
18346 output_verbose_link_cmd='echo'
18347 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18348 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18350 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}'
18351 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}'
18353 case $cc_basename in
18355 output_verbose_link_cmd='echo'
18356 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18357 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18359 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}'
18360 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}'
18370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18371 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18372 hardcode_shlibpath_var_GCJ=no
18379 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18380 # support. Future versions do this automatically, but an explicit c++rt0.o
18381 # does not break anything, and helps significantly (at the cost of a little
18384 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18385 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18386 hardcode_direct_GCJ=yes
18387 hardcode_shlibpath_var_GCJ=no
18390 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18392 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18393 hardcode_direct_GCJ=yes
18394 hardcode_minus_L_GCJ=yes
18395 hardcode_shlibpath_var_GCJ=no
18398 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18399 freebsd* | kfreebsd*-gnu | dragonfly*)
18400 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18401 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18402 hardcode_direct_GCJ=yes
18403 hardcode_shlibpath_var_GCJ=no
18407 if test "$GCC" = yes; then
18408 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'
18410 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'
18412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18413 hardcode_libdir_separator_GCJ=:
18414 hardcode_direct_GCJ=yes
18416 # hardcode_minus_L: Not really in the search PATH,
18417 # but as the default location of the library.
18418 hardcode_minus_L_GCJ=yes
18419 export_dynamic_flag_spec_GCJ='${wl}-E'
18423 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18424 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18426 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18428 if test "$with_gnu_ld" = no; then
18429 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18430 hardcode_libdir_separator_GCJ=:
18432 hardcode_direct_GCJ=yes
18433 export_dynamic_flag_spec_GCJ='${wl}-E'
18435 # hardcode_minus_L: Not really in the search PATH,
18436 # but as the default location of the library.
18437 hardcode_minus_L_GCJ=yes
18442 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18445 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18448 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18451 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18457 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18460 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18463 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18467 if test "$with_gnu_ld" = no; then
18468 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18469 hardcode_libdir_separator_GCJ=:
18473 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18474 hardcode_direct_GCJ=no
18475 hardcode_shlibpath_var_GCJ=no
18478 hardcode_direct_GCJ=yes
18479 export_dynamic_flag_spec_GCJ='${wl}-E'
18481 # hardcode_minus_L: Not really in the search PATH,
18482 # but as the default location of the library.
18483 hardcode_minus_L_GCJ=yes
18489 irix5* | irix6* | nonstopux*)
18490 if test "$GCC" = yes; then
18491 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'
18493 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'
18494 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18496 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18497 hardcode_libdir_separator_GCJ=:
18498 link_all_deplibs_GCJ=yes
18502 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18503 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18505 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18507 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18508 hardcode_direct_GCJ=yes
18509 hardcode_shlibpath_var_GCJ=no
18513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18514 hardcode_direct_GCJ=yes
18515 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18516 hardcode_libdir_separator_GCJ=:
18517 hardcode_shlibpath_var_GCJ=no
18521 hardcode_direct_GCJ=yes
18522 hardcode_shlibpath_var_GCJ=no
18523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18524 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18525 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18526 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18527 export_dynamic_flag_spec_GCJ='${wl}-E'
18530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18531 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18535 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18536 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18544 hardcode_minus_L_GCJ=yes
18545 allow_undefined_flag_GCJ=unsupported
18546 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'
18547 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18551 if test "$GCC" = yes; then
18552 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18553 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'
18555 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18556 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'
18558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18559 hardcode_libdir_separator_GCJ=:
18562 osf4* | osf5*) # as osf3* with the addition of -msym flag
18563 if test "$GCC" = yes; then
18564 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18565 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'
18566 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18568 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18569 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'
18570 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~
18571 $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'
18573 # Both c and cxx compiler support -rpath directly
18574 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18576 hardcode_libdir_separator_GCJ=:
18580 no_undefined_flag_GCJ=' -z text'
18581 if test "$GCC" = yes; then
18583 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18584 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18585 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18588 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18589 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18593 hardcode_shlibpath_var_GCJ=no
18595 solaris2.[0-5] | solaris2.[0-5].*) ;;
18597 # The compiler driver will combine linker options so we
18598 # cannot just pass the convience library names through
18599 # without $wl, iff we do not link with $LD.
18600 # Luckily, gcc supports the same syntax we need for Sun Studio.
18601 # Supported since Solaris 2.6 (maybe 2.5.1?)
18604 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18606 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' ;;
18609 link_all_deplibs_GCJ=yes
18613 if test "x$host_vendor" = xsequent; then
18614 # Use $CC to link under sequent, because it throws in some extra .o
18615 # files that make .init and .fini sections work.
18616 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18618 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18621 hardcode_direct_GCJ=yes
18622 hardcode_minus_L_GCJ=yes
18623 hardcode_shlibpath_var_GCJ=no
18627 case $host_vendor in
18629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18630 hardcode_direct_GCJ=yes # is this really true???
18633 ## LD is ld it makes a PLAMLIB
18634 ## CC just makes a GrossModule.
18635 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18636 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18637 hardcode_direct_GCJ=no
18640 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18641 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18644 runpath_var='LD_RUN_PATH'
18645 hardcode_shlibpath_var_GCJ=no
18649 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18650 hardcode_shlibpath_var_GCJ=no
18651 export_dynamic_flag_spec_GCJ='-Bexport'
18655 if test -d /usr/nec; then
18656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18657 hardcode_shlibpath_var_GCJ=no
18658 runpath_var=LD_RUN_PATH
18659 hardcode_runpath_var=yes
18664 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18665 no_undefined_flag_GCJ='${wl}-z,text'
18666 archive_cmds_need_lc_GCJ=no
18667 hardcode_shlibpath_var_GCJ=no
18668 runpath_var='LD_RUN_PATH'
18670 if test "$GCC" = yes; then
18671 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18672 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18674 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18675 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18679 sysv5* | sco3.2v5* | sco5v6*)
18680 # Note: We can NOT use -z defs as we might desire, because we do not
18681 # link with -lc, and that would cause any symbols used from libc to
18682 # always be unresolved, which means just about no library would
18683 # ever link correctly. If we're not using GNU ld we use -z text
18684 # though, which does catch some bad symbols but isn't as heavy-handed
18686 no_undefined_flag_GCJ='${wl}-z,text'
18687 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18688 archive_cmds_need_lc_GCJ=no
18689 hardcode_shlibpath_var_GCJ=no
18690 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18691 hardcode_libdir_separator_GCJ=':'
18692 link_all_deplibs_GCJ=yes
18693 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18694 runpath_var='LD_RUN_PATH'
18696 if test "$GCC" = yes; then
18697 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18698 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18700 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18701 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18706 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18707 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18708 hardcode_shlibpath_var_GCJ=no
18717 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18718 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18719 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18722 # Do we need to explicitly link libc?
18724 case "x$archive_cmds_need_lc_GCJ" in
18726 # Assume -lc should be added
18727 archive_cmds_need_lc_GCJ=yes
18729 if test "$enable_shared" = yes && test "$GCC" = yes; then
18730 case $archive_cmds_GCJ in
18732 # FIXME: we may have to deal with multi-command sequences.
18735 # Test whether the compiler implicitly links with -lc since on some
18736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18737 # to ld, don't add -lc before -lgcc.
18738 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18739 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18744 (eval $ac_compile) 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } 2>conftest.err; then
18750 libobjs=conftest.$ac_objext
18752 wl=$lt_prog_compiler_wl_GCJ
18753 pic_flag=$lt_prog_compiler_pic_GCJ
18759 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18760 allow_undefined_flag_GCJ=
18761 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18762 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }
18767 archive_cmds_need_lc_GCJ=no
18769 archive_cmds_need_lc_GCJ=yes
18771 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18773 cat conftest.err 1>&5
18776 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18777 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18784 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18786 library_names_spec=
18787 libname_spec='lib$name'
18791 postuninstall_cmds=
18795 shlibpath_overrides_runpath=unknown
18797 dynamic_linker="$host_os ld.so"
18798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18799 if test "$GCC" = yes; then
18800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18801 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18802 # if the path contains ";" then we assume it to be the separator
18803 # otherwise default to the standard path separator (i.e. ":") - it is
18804 # assumed that no part of a normal pathname contains ";" but that should
18805 # okay in the real world where ";" in dirpaths is itself problematic.
18806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18813 need_lib_prefix=unknown
18814 hardcode_into_libs=no
18816 # when you set need_version to no, make sure it does not cause -set_version
18817 # flags to be left without arguments
18818 need_version=unknown
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18824 shlibpath_var=LIBPATH
18826 # AIX 3 has no versioning support, so we append a major version to the name.
18827 soname_spec='${libname}${release}${shared_ext}$major'
18834 hardcode_into_libs=yes
18835 if test "$host_cpu" = ia64; then
18836 # AIX 5 supports IA64
18837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18838 shlibpath_var=LD_LIBRARY_PATH
18840 # With GCC up to 2.95.x, collect2 would create an import file
18841 # for dependence libraries. The import file would start with
18842 # the line `#! .'. This would cause the generated library to
18843 # depend on `.', always an invalid library. This was fixed in
18844 # development snapshots of GCC prior to 3.0.
18846 aix4 | aix4.[01] | aix4.[01].*)
18847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18852 can_build_shared=no
18856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18857 # soname into executable. Probably we can add versioning support to
18858 # collect2, so additional links can be useful in future.
18859 if test "$aix_use_runtimelinking" = yes; then
18860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18861 # instead of lib<name>.a to let people know that these are not
18862 # typical AIX shared libraries.
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18865 # We preserve .a as extension for shared libraries through AIX4.2
18866 # and later when we are not doing run time linking.
18867 library_names_spec='${libname}${release}.a $libname.a'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18870 shlibpath_var=LIBPATH
18875 library_names_spec='$libname.ixlibrary $libname.a'
18876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18877 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'
18881 library_names_spec='${libname}${shared_ext}'
18882 dynamic_linker="$host_os ld.so"
18883 shlibpath_var=LIBRARY_PATH
18889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890 soname_spec='${libname}${release}${shared_ext}$major'
18891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18892 shlibpath_var=LD_LIBRARY_PATH
18893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18895 # the default ld.so.conf also contains /usr/contrib/lib and
18896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18897 # libtool to hard-code these into programs
18900 cygwin* | mingw* | pw32*)
18901 version_type=windows
18906 case $GCC,$host_os in
18907 yes,cygwin* | yes,mingw* | yes,pw32*)
18908 library_names_spec='$libname.dll.a'
18909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18910 postinstall_cmds='base_file=`basename \${file}`~
18911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18912 dldir=$destdir/`dirname \$dlpath`~
18913 test -d \$dldir || mkdir -p \$dldir~
18914 $install_prog $dir/$dlname \$dldir/$dlname~
18915 chmod a+x \$dldir/$dlname'
18916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18917 dlpath=$dir/\$dldll~
18919 shlibpath_overrides_runpath=yes
18923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18925 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18928 # MinGW DLLs use traditional 'lib' prefix
18929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18930 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18931 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18932 # It is most probably a Windows format PATH printed by
18933 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18934 # path with ; separators, and with drive letters. We can handle the
18935 # drive letters (cygwin fileutils understands them), so leave them,
18936 # especially as we might pass files found there to a mingw objdump,
18937 # which wouldn't understand a cygwinified path. Ahh.
18938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18944 # pw32 DLLs use 'pw' prefix rather than 'lib'
18945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18951 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18954 dynamic_linker='Win32 ld.exe'
18955 # FIXME: first we should search . and the directory the executable is in
18959 darwin* | rhapsody*)
18960 dynamic_linker="$host_os dyld"
18961 version_type=darwin
18964 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18965 soname_spec='${libname}${release}${major}$shared_ext'
18966 shlibpath_overrides_runpath=yes
18967 shlibpath_var=DYLD_LIBRARY_PATH
18968 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18969 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18970 if test "$GCC" = yes; then
18971 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"`
18973 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18983 soname_spec='${libname}${release}${shared_ext}$major'
18984 shlibpath_var=LD_LIBRARY_PATH
18995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18996 soname_spec='${libname}${release}${shared_ext}$major'
18997 shlibpath_var=LD_LIBRARY_PATH
18998 shlibpath_overrides_runpath=no
18999 hardcode_into_libs=yes
19000 dynamic_linker='GNU ld.so'
19003 freebsd* | dragonfly*)
19004 # DragonFly does not have aout. When/if they implement a new
19005 # versioning mechanism, adjust this.
19006 if test -x /usr/bin/objformat; then
19007 objformat=`/usr/bin/objformat`
19010 freebsd[123]*) objformat=aout ;;
19011 *) objformat=elf ;;
19014 version_type=freebsd-$objformat
19015 case $version_type in
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19026 shlibpath_var=LD_LIBRARY_PATH
19029 shlibpath_overrides_runpath=yes
19031 freebsd3.[01]* | freebsdelf3.[01]*)
19032 shlibpath_overrides_runpath=yes
19033 hardcode_into_libs=yes
19035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19037 shlibpath_overrides_runpath=no
19038 hardcode_into_libs=yes
19040 freebsd*) # from 4.6 on
19041 shlibpath_overrides_runpath=yes
19042 hardcode_into_libs=yes
19051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19052 soname_spec='${libname}${release}${shared_ext}$major'
19053 shlibpath_var=LD_LIBRARY_PATH
19054 hardcode_into_libs=yes
19057 hpux9* | hpux10* | hpux11*)
19058 # Give a soname corresponding to the major version so that dld.sl refuses to
19059 # link against other versions.
19066 hardcode_into_libs=yes
19067 dynamic_linker="$host_os dld.so"
19068 shlibpath_var=LD_LIBRARY_PATH
19069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19071 soname_spec='${libname}${release}${shared_ext}$major'
19072 if test "X$HPUX_IA64_MODE" = X32; then
19073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19081 hardcode_into_libs=yes
19082 dynamic_linker="$host_os dld.sl"
19083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086 soname_spec='${libname}${release}${shared_ext}$major'
19087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19092 dynamic_linker="$host_os dld.sl"
19093 shlibpath_var=SHLIB_PATH
19094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19096 soname_spec='${libname}${release}${shared_ext}$major'
19099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19100 postinstall_cmds='chmod 555 $lib'
19107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19108 soname_spec='${libname}${release}${shared_ext}$major'
19109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19110 shlibpath_var=LD_LIBRARY_PATH
19111 shlibpath_overrides_runpath=no
19112 hardcode_into_libs=yes
19115 irix5* | irix6* | nonstopux*)
19117 nonstopux*) version_type=nonstopux ;;
19119 if test "$lt_cv_prog_gnu_ld" = yes; then
19127 soname_spec='${libname}${release}${shared_ext}$major'
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19130 irix5* | nonstopux*)
19131 libsuff= shlibsuff=
19134 case $LD in # libtool.m4 will add one of these switches to LD
19135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19136 libsuff= shlibsuff= libmagic=32-bit;;
19137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19138 libsuff=32 shlibsuff=N32 libmagic=N32;;
19139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19141 *) libsuff= shlibsuff= libmagic=never-match;;
19145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19146 shlibpath_overrides_runpath=no
19147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19149 hardcode_into_libs=yes
19152 # No shared lib support for Linux oldld, aout, or coff.
19153 linux*oldld* | linux*aout* | linux*coff*)
19157 # This must be Linux ELF.
19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163 soname_spec='${libname}${release}${shared_ext}$major'
19164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19165 shlibpath_var=LD_LIBRARY_PATH
19166 shlibpath_overrides_runpath=no
19167 # This implies no fast_install, which is unacceptable.
19168 # Some rework will be needed to allow for fast_install
19169 # before this can be enabled.
19170 hardcode_into_libs=yes
19172 # find out which ABI we are using
19174 case "$host_cpu" in
19175 x86_64*|s390x*|powerpc64*)
19176 echo '#line 19176 "configure"' > conftest.$ac_ext
19177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19178 (eval $ac_compile) 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; then
19182 case `/usr/bin/file conftest.$ac_objext` in
19185 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19193 # Append ld.so.conf contents to the search path
19194 if test -f /etc/ld.so.conf; then
19195 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19196 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19199 # We used to test for /lib/ld.so.1 and disable shared libraries on
19200 # powerpc, because MkLinux only supported shared libraries with the
19201 # GNU dynamic linker. Since this was broken with cross compilers,
19202 # most powerpc-linux boxes support dynamic linking these days and
19203 # people can always --disable-shared, the test was removed, and we
19204 # assume the GNU/Linux dynamic linker is in use.
19205 dynamic_linker='GNU/Linux ld.so'
19212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19213 soname_spec='${libname}${release}${shared_ext}$major'
19214 shlibpath_var=LD_LIBRARY_PATH
19215 shlibpath_overrides_runpath=no
19216 hardcode_into_libs=yes
19217 dynamic_linker='GNU ld.so'
19224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19227 dynamic_linker='NetBSD (a.out) ld.so'
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 dynamic_linker='NetBSD ld.elf_so'
19233 shlibpath_var=LD_LIBRARY_PATH
19234 shlibpath_overrides_runpath=yes
19235 hardcode_into_libs=yes
19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19241 shlibpath_var=LD_LIBRARY_PATH
19242 shlibpath_overrides_runpath=yes
19249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250 soname_spec='${libname}${release}${shared_ext}$major'
19251 shlibpath_var=LD_LIBRARY_PATH
19252 shlibpath_overrides_runpath=yes
19257 sys_lib_dlsearch_path_spec="/usr/lib"
19259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19261 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19262 *) need_version=no ;;
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19266 shlibpath_var=LD_LIBRARY_PATH
19267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19269 openbsd2.[89] | openbsd2.[89].*)
19270 shlibpath_overrides_runpath=no
19273 shlibpath_overrides_runpath=yes
19277 shlibpath_overrides_runpath=yes
19282 libname_spec='$name'
19285 library_names_spec='$libname${shared_ext} $libname.a'
19286 dynamic_linker='OS/2 ld.exe'
19287 shlibpath_var=LIBPATH
19290 osf3* | osf4* | osf5*)
19294 soname_spec='${libname}${release}${shared_ext}$major'
19295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19296 shlibpath_var=LD_LIBRARY_PATH
19297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19306 soname_spec='${libname}${release}${shared_ext}$major'
19307 shlibpath_var=LD_LIBRARY_PATH
19308 shlibpath_overrides_runpath=yes
19309 hardcode_into_libs=yes
19310 # ldd complains unless libraries are executable
19311 postinstall_cmds='chmod +x $lib'
19316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19318 shlibpath_var=LD_LIBRARY_PATH
19319 shlibpath_overrides_runpath=yes
19320 if test "$with_gnu_ld" = yes; then
19328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19329 soname_spec='${libname}${release}${shared_ext}$major'
19330 shlibpath_var=LD_LIBRARY_PATH
19331 case $host_vendor in
19333 shlibpath_overrides_runpath=no
19335 export_dynamic_flag_spec='${wl}-Blargedynsym'
19336 runpath_var=LD_RUN_PATH
19344 shlibpath_overrides_runpath=no
19345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19351 if test -d /usr/nec ;then
19353 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19354 soname_spec='$libname${shared_ext}.$major'
19355 shlibpath_var=LD_LIBRARY_PATH
19359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19360 version_type=freebsd-elf
19363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19364 soname_spec='${libname}${release}${shared_ext}$major'
19365 shlibpath_var=LD_LIBRARY_PATH
19366 hardcode_into_libs=yes
19367 if test "$with_gnu_ld" = yes; then
19368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19369 shlibpath_overrides_runpath=no
19371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19372 shlibpath_overrides_runpath=yes
19375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19379 sys_lib_dlsearch_path_spec='/usr/lib'
19384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19385 soname_spec='${libname}${release}${shared_ext}$major'
19386 shlibpath_var=LD_LIBRARY_PATH
19393 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19394 echo "${ECHO_T}$dynamic_linker" >&6; }
19395 test "$dynamic_linker" = no && can_build_shared=no
19397 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19398 if test "$GCC" = yes; then
19399 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19402 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19403 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19404 hardcode_action_GCJ=
19405 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19406 test -n "$runpath_var_GCJ" || \
19407 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19409 # We can hardcode non-existant directories.
19410 if test "$hardcode_direct_GCJ" != no &&
19411 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19412 # have to relink, otherwise we might link with an installed library
19413 # when we should be linking with a yet-to-be-installed one
19414 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19415 test "$hardcode_minus_L_GCJ" != no; then
19416 # Linking always hardcodes the temporary library directory.
19417 hardcode_action_GCJ=relink
19419 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19420 hardcode_action_GCJ=immediate
19423 # We cannot hardcode anything, or else we can only hardcode existing
19425 hardcode_action_GCJ=unsupported
19427 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19428 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19430 if test "$hardcode_action_GCJ" = relink; then
19431 # Fast installation is not supported
19432 enable_fast_install=no
19433 elif test "$shlibpath_overrides_runpath" = yes ||
19434 test "$enable_shared" = no; then
19435 # Fast installation is not necessary
19436 enable_fast_install=needless
19440 # The else clause should only fire when bootstrapping the
19441 # libtool distribution, otherwise you forgot to ship ltmain.sh
19442 # with your package, and you will get complaints that there are
19443 # no rules to generate ltmain.sh.
19444 if test -f "$ltmain"; then
19445 # See if we are running on zsh, and set the options which allow our commands through
19446 # without removal of \ escapes.
19447 if test -n "${ZSH_VERSION+set}" ; then
19448 setopt NO_GLOB_SUBST
19450 # Now quote all the things that may contain metacharacters while being
19451 # careful not to overquote the AC_SUBSTed values. We take copies of the
19452 # variables and quote the copies for generation of the libtool script.
19453 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19457 deplibs_check_method reload_flag reload_cmds need_locks \
19458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19459 lt_cv_sys_global_symbol_to_c_name_address \
19460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19461 old_postinstall_cmds old_postuninstall_cmds \
19465 lt_prog_compiler_wl_GCJ \
19466 lt_prog_compiler_pic_GCJ \
19467 lt_prog_compiler_static_GCJ \
19468 lt_prog_compiler_no_builtin_flag_GCJ \
19469 export_dynamic_flag_spec_GCJ \
19470 thread_safe_flag_spec_GCJ \
19471 whole_archive_flag_spec_GCJ \
19472 enable_shared_with_static_runtimes_GCJ \
19473 old_archive_cmds_GCJ \
19474 old_archive_from_new_cmds_GCJ \
19475 predep_objects_GCJ \
19476 postdep_objects_GCJ \
19479 compiler_lib_search_path_GCJ \
19481 archive_expsym_cmds_GCJ \
19482 postinstall_cmds_GCJ \
19483 postuninstall_cmds_GCJ \
19484 old_archive_from_expsyms_cmds_GCJ \
19485 allow_undefined_flag_GCJ \
19486 no_undefined_flag_GCJ \
19487 export_symbols_cmds_GCJ \
19488 hardcode_libdir_flag_spec_GCJ \
19489 hardcode_libdir_flag_spec_ld_GCJ \
19490 hardcode_libdir_separator_GCJ \
19491 hardcode_automatic_GCJ \
19493 module_expsym_cmds_GCJ \
19494 lt_cv_prog_compiler_c_o_GCJ \
19495 exclude_expsyms_GCJ \
19496 include_expsyms_GCJ; do
19499 old_archive_cmds_GCJ | \
19500 old_archive_from_new_cmds_GCJ | \
19501 archive_cmds_GCJ | \
19502 archive_expsym_cmds_GCJ | \
19503 module_cmds_GCJ | \
19504 module_expsym_cmds_GCJ | \
19505 old_archive_from_expsyms_cmds_GCJ | \
19506 export_symbols_cmds_GCJ | \
19507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19508 postinstall_cmds | postuninstall_cmds | \
19509 old_postinstall_cmds | old_postuninstall_cmds | \
19510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19511 # Double-quote double-evaled strings.
19512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19521 *'\$0 --fallback-echo"')
19522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19528 cat <<__EOF__ >> "$cfgfile"
19529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19533 # Shell to use when invoking shell scripts.
19536 # Whether or not to build shared libraries.
19537 build_libtool_libs=$enable_shared
19539 # Whether or not to build static libraries.
19540 build_old_libs=$enable_static
19542 # Whether or not to add -lc for building shared libraries.
19543 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19545 # Whether or not to disallow shared libs when runtime libs are static
19546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19548 # Whether or not to optimize for fast installation.
19549 fast_install=$enable_fast_install
19552 host_alias=$host_alias
19556 # The build system.
19557 build_alias=$build_alias
19561 # An echo program that does not interpret backslashes.
19566 AR_FLAGS=$lt_AR_FLAGS
19571 # LTCC compiler flags.
19572 LTCFLAGS=$lt_LTCFLAGS
19574 # A language-specific compiler.
19575 CC=$lt_compiler_GCJ
19577 # Is the compiler the GNU C compiler?
19583 # The linker used to build libraries.
19586 # Whether we need hard or soft links.
19589 # A BSD-compatible nm program.
19592 # A symbol stripping program
19595 # Used to examine libraries when file_magic_cmd begins "file"
19596 MAGIC_CMD=$MAGIC_CMD
19598 # Used on cygwin: DLL creation program.
19601 # Used on cygwin: object dumper.
19604 # Used on cygwin: assembler.
19607 # The name of the directory that contains temporary libtool files.
19610 # How to create reloadable object files.
19611 reload_flag=$lt_reload_flag
19612 reload_cmds=$lt_reload_cmds
19614 # How to pass a linker flag through the compiler.
19615 wl=$lt_lt_prog_compiler_wl_GCJ
19617 # Object file suffix (normally "o").
19618 objext="$ac_objext"
19620 # Old archive suffix (normally "a").
19623 # Shared library suffix (normally ".so").
19624 shrext_cmds='$shrext_cmds'
19626 # Executable file suffix (normally "").
19629 # Additional compiler flags for building library objects.
19630 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19633 # What is the maximum length of a command?
19634 max_cmd_len=$lt_cv_sys_max_cmd_len
19636 # Does compiler simultaneously support -c and -o options?
19637 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19639 # Must we lock files when doing compilation?
19640 need_locks=$lt_need_locks
19642 # Do we need the lib prefix for modules?
19643 need_lib_prefix=$need_lib_prefix
19645 # Do we need a version for libraries?
19646 need_version=$need_version
19648 # Whether dlopen is supported.
19649 dlopen_support=$enable_dlopen
19651 # Whether dlopen of programs is supported.
19652 dlopen_self=$enable_dlopen_self
19654 # Whether dlopen of statically linked programs is supported.
19655 dlopen_self_static=$enable_dlopen_self_static
19657 # Compiler flag to prevent dynamic linking.
19658 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19660 # Compiler flag to turn off builtin functions.
19661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19663 # Compiler flag to allow reflexive dlopens.
19664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19666 # Compiler flag to generate shared objects directly from archives.
19667 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19669 # Compiler flag to generate thread-safe objects.
19670 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19672 # Library versioning type.
19673 version_type=$version_type
19675 # Format of library name prefix.
19676 libname_spec=$lt_libname_spec
19678 # List of archive names. First name is the real one, the rest are links.
19679 # The last name is the one that the linker finds with -lNAME.
19680 library_names_spec=$lt_library_names_spec
19682 # The coded name of the library, if different from the real name.
19683 soname_spec=$lt_soname_spec
19685 # Commands used to build and install an old-style archive.
19687 old_archive_cmds=$lt_old_archive_cmds_GCJ
19688 old_postinstall_cmds=$lt_old_postinstall_cmds
19689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19691 # Create an old-style archive from a shared archive.
19692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19694 # Create a temporary old-style archive to link instead of a shared archive.
19695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19697 # Commands used to build and install a shared archive.
19698 archive_cmds=$lt_archive_cmds_GCJ
19699 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19700 postinstall_cmds=$lt_postinstall_cmds
19701 postuninstall_cmds=$lt_postuninstall_cmds
19703 # Commands used to build a loadable module (assumed same as above if empty)
19704 module_cmds=$lt_module_cmds_GCJ
19705 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19707 # Commands to strip libraries.
19708 old_striplib=$lt_old_striplib
19709 striplib=$lt_striplib
19711 # Dependencies to place before the objects being linked to create a
19713 predep_objects=$lt_predep_objects_GCJ
19715 # Dependencies to place after the objects being linked to create a
19717 postdep_objects=$lt_postdep_objects_GCJ
19719 # Dependencies to place before the objects being linked to create a
19721 predeps=$lt_predeps_GCJ
19723 # Dependencies to place after the objects being linked to create a
19725 postdeps=$lt_postdeps_GCJ
19727 # The library search path used internally by the compiler when linking
19728 # a shared library.
19729 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19731 # Method to check whether dependent libraries are shared objects.
19732 deplibs_check_method=$lt_deplibs_check_method
19734 # Command to use when deplibs_check_method == file_magic.
19735 file_magic_cmd=$lt_file_magic_cmd
19737 # Flag that allows shared libraries with undefined symbols to be built.
19738 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19740 # Flag that forces no undefined symbols.
19741 no_undefined_flag=$lt_no_undefined_flag_GCJ
19743 # Commands used to finish a libtool library installation in a directory.
19744 finish_cmds=$lt_finish_cmds
19746 # Same as above, but a single script fragment to be evaled but not shown.
19747 finish_eval=$lt_finish_eval
19749 # Take the output of nm and produce a listing of raw symbols and C names.
19750 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19752 # Transform the output of nm in a proper C declaration
19753 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19755 # Transform the output of nm in a C name address pair
19756 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19758 # This is the shared library runtime path variable.
19759 runpath_var=$runpath_var
19761 # This is the shared library path variable.
19762 shlibpath_var=$shlibpath_var
19764 # Is shlibpath searched before the hard-coded library search path?
19765 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19767 # How to hardcode a shared library path into an executable.
19768 hardcode_action=$hardcode_action_GCJ
19770 # Whether we should hardcode library paths into libraries.
19771 hardcode_into_libs=$hardcode_into_libs
19773 # Flag to hardcode \$libdir into a binary during linking.
19774 # This must work even if \$libdir does not exist.
19775 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19777 # If ld is used when linking, flag to hardcode \$libdir into
19778 # a binary during linking. This must work even if \$libdir does
19780 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19782 # Whether we need a single -rpath flag with a separated argument.
19783 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19785 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19786 # resulting binary.
19787 hardcode_direct=$hardcode_direct_GCJ
19789 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19790 # resulting binary.
19791 hardcode_minus_L=$hardcode_minus_L_GCJ
19793 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19794 # the resulting binary.
19795 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19797 # Set to yes if building a shared library automatically hardcodes DIR into the library
19798 # and all subsequent libraries and executables linked against it.
19799 hardcode_automatic=$hardcode_automatic_GCJ
19801 # Variables whose values should be saved in libtool wrapper scripts and
19802 # restored at relink time.
19803 variables_saved_for_relink="$variables_saved_for_relink"
19805 # Whether libtool must link a program against all its dependency libraries.
19806 link_all_deplibs=$link_all_deplibs_GCJ
19808 # Compile-time system search path for libraries
19809 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19811 # Run-time system search path for libraries
19812 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19814 # Fix the shell variable \$srcfile for the compiler.
19815 fix_srcfile_path="$fix_srcfile_path_GCJ"
19817 # Set to yes if exported symbols are required.
19818 always_export_symbols=$always_export_symbols_GCJ
19820 # The commands to list exported symbols.
19821 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19823 # The commands to extract the exported symbol list from a shared archive.
19824 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19826 # Symbols that should not be listed in the preloaded symbols.
19827 exclude_expsyms=$lt_exclude_expsyms_GCJ
19829 # Symbols that must always be exported.
19830 include_expsyms=$lt_include_expsyms_GCJ
19832 # ### END LIBTOOL TAG CONFIG: $tagname
19838 # If there is no Makefile yet, we rely on a make rule to execute
19839 # `config.status --recheck' to rerun these tests and create the
19840 # libtool script then.
19841 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19842 if test -f "$ltmain_in"; then
19843 test -f Makefile && make "$ltmain"
19849 ac_cpp='$CPP $CPPFLAGS'
19850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19864 # Source file extension for RC test sources.
19867 # Object file extension for compiled RC test sources.
19871 # Code to be used in simple compile tests
19872 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19874 # Code to be used in simple link tests
19875 lt_simple_link_test_code="$lt_simple_compile_test_code"
19877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19879 # If no C compiler was specified, use CC.
19882 # If no C compiler flags were specified, use CFLAGS.
19883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19885 # Allow CC to be a program name with arguments.
19889 # save warnings/boilerplate of simple test code
19890 ac_outfile=conftest.$ac_objext
19891 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19893 _lt_compiler_boilerplate=`cat conftest.err`
19896 ac_outfile=conftest.$ac_objext
19897 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19899 _lt_linker_boilerplate=`cat conftest.err`
19903 # Allow CC to be a program name with arguments.
19908 for cc_temp in $compiler""; do
19910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19918 lt_cv_prog_compiler_c_o_RC=yes
19920 # The else clause should only fire when bootstrapping the
19921 # libtool distribution, otherwise you forgot to ship ltmain.sh
19922 # with your package, and you will get complaints that there are
19923 # no rules to generate ltmain.sh.
19924 if test -f "$ltmain"; then
19925 # See if we are running on zsh, and set the options which allow our commands through
19926 # without removal of \ escapes.
19927 if test -n "${ZSH_VERSION+set}" ; then
19928 setopt NO_GLOB_SUBST
19930 # Now quote all the things that may contain metacharacters while being
19931 # careful not to overquote the AC_SUBSTed values. We take copies of the
19932 # variables and quote the copies for generation of the libtool script.
19933 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19935 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19936 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19937 deplibs_check_method reload_flag reload_cmds need_locks \
19938 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19939 lt_cv_sys_global_symbol_to_c_name_address \
19940 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19941 old_postinstall_cmds old_postuninstall_cmds \
19945 lt_prog_compiler_wl_RC \
19946 lt_prog_compiler_pic_RC \
19947 lt_prog_compiler_static_RC \
19948 lt_prog_compiler_no_builtin_flag_RC \
19949 export_dynamic_flag_spec_RC \
19950 thread_safe_flag_spec_RC \
19951 whole_archive_flag_spec_RC \
19952 enable_shared_with_static_runtimes_RC \
19953 old_archive_cmds_RC \
19954 old_archive_from_new_cmds_RC \
19955 predep_objects_RC \
19956 postdep_objects_RC \
19959 compiler_lib_search_path_RC \
19961 archive_expsym_cmds_RC \
19962 postinstall_cmds_RC \
19963 postuninstall_cmds_RC \
19964 old_archive_from_expsyms_cmds_RC \
19965 allow_undefined_flag_RC \
19966 no_undefined_flag_RC \
19967 export_symbols_cmds_RC \
19968 hardcode_libdir_flag_spec_RC \
19969 hardcode_libdir_flag_spec_ld_RC \
19970 hardcode_libdir_separator_RC \
19971 hardcode_automatic_RC \
19973 module_expsym_cmds_RC \
19974 lt_cv_prog_compiler_c_o_RC \
19975 exclude_expsyms_RC \
19976 include_expsyms_RC; do
19979 old_archive_cmds_RC | \
19980 old_archive_from_new_cmds_RC | \
19981 archive_cmds_RC | \
19982 archive_expsym_cmds_RC | \
19984 module_expsym_cmds_RC | \
19985 old_archive_from_expsyms_cmds_RC | \
19986 export_symbols_cmds_RC | \
19987 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19988 postinstall_cmds | postuninstall_cmds | \
19989 old_postinstall_cmds | old_postuninstall_cmds | \
19990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19991 # Double-quote double-evaled strings.
19992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20001 *'\$0 --fallback-echo"')
20002 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20008 cat <<__EOF__ >> "$cfgfile"
20009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20013 # Shell to use when invoking shell scripts.
20016 # Whether or not to build shared libraries.
20017 build_libtool_libs=$enable_shared
20019 # Whether or not to build static libraries.
20020 build_old_libs=$enable_static
20022 # Whether or not to add -lc for building shared libraries.
20023 build_libtool_need_lc=$archive_cmds_need_lc_RC
20025 # Whether or not to disallow shared libs when runtime libs are static
20026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20028 # Whether or not to optimize for fast installation.
20029 fast_install=$enable_fast_install
20032 host_alias=$host_alias
20036 # The build system.
20037 build_alias=$build_alias
20041 # An echo program that does not interpret backslashes.
20046 AR_FLAGS=$lt_AR_FLAGS
20051 # LTCC compiler flags.
20052 LTCFLAGS=$lt_LTCFLAGS
20054 # A language-specific compiler.
20057 # Is the compiler the GNU C compiler?
20063 # The linker used to build libraries.
20066 # Whether we need hard or soft links.
20069 # A BSD-compatible nm program.
20072 # A symbol stripping program
20075 # Used to examine libraries when file_magic_cmd begins "file"
20076 MAGIC_CMD=$MAGIC_CMD
20078 # Used on cygwin: DLL creation program.
20081 # Used on cygwin: object dumper.
20084 # Used on cygwin: assembler.
20087 # The name of the directory that contains temporary libtool files.
20090 # How to create reloadable object files.
20091 reload_flag=$lt_reload_flag
20092 reload_cmds=$lt_reload_cmds
20094 # How to pass a linker flag through the compiler.
20095 wl=$lt_lt_prog_compiler_wl_RC
20097 # Object file suffix (normally "o").
20098 objext="$ac_objext"
20100 # Old archive suffix (normally "a").
20103 # Shared library suffix (normally ".so").
20104 shrext_cmds='$shrext_cmds'
20106 # Executable file suffix (normally "").
20109 # Additional compiler flags for building library objects.
20110 pic_flag=$lt_lt_prog_compiler_pic_RC
20113 # What is the maximum length of a command?
20114 max_cmd_len=$lt_cv_sys_max_cmd_len
20116 # Does compiler simultaneously support -c and -o options?
20117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20119 # Must we lock files when doing compilation?
20120 need_locks=$lt_need_locks
20122 # Do we need the lib prefix for modules?
20123 need_lib_prefix=$need_lib_prefix
20125 # Do we need a version for libraries?
20126 need_version=$need_version
20128 # Whether dlopen is supported.
20129 dlopen_support=$enable_dlopen
20131 # Whether dlopen of programs is supported.
20132 dlopen_self=$enable_dlopen_self
20134 # Whether dlopen of statically linked programs is supported.
20135 dlopen_self_static=$enable_dlopen_self_static
20137 # Compiler flag to prevent dynamic linking.
20138 link_static_flag=$lt_lt_prog_compiler_static_RC
20140 # Compiler flag to turn off builtin functions.
20141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20143 # Compiler flag to allow reflexive dlopens.
20144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20146 # Compiler flag to generate shared objects directly from archives.
20147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20149 # Compiler flag to generate thread-safe objects.
20150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20152 # Library versioning type.
20153 version_type=$version_type
20155 # Format of library name prefix.
20156 libname_spec=$lt_libname_spec
20158 # List of archive names. First name is the real one, the rest are links.
20159 # The last name is the one that the linker finds with -lNAME.
20160 library_names_spec=$lt_library_names_spec
20162 # The coded name of the library, if different from the real name.
20163 soname_spec=$lt_soname_spec
20165 # Commands used to build and install an old-style archive.
20167 old_archive_cmds=$lt_old_archive_cmds_RC
20168 old_postinstall_cmds=$lt_old_postinstall_cmds
20169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20171 # Create an old-style archive from a shared archive.
20172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20174 # Create a temporary old-style archive to link instead of a shared archive.
20175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20177 # Commands used to build and install a shared archive.
20178 archive_cmds=$lt_archive_cmds_RC
20179 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20180 postinstall_cmds=$lt_postinstall_cmds
20181 postuninstall_cmds=$lt_postuninstall_cmds
20183 # Commands used to build a loadable module (assumed same as above if empty)
20184 module_cmds=$lt_module_cmds_RC
20185 module_expsym_cmds=$lt_module_expsym_cmds_RC
20187 # Commands to strip libraries.
20188 old_striplib=$lt_old_striplib
20189 striplib=$lt_striplib
20191 # Dependencies to place before the objects being linked to create a
20193 predep_objects=$lt_predep_objects_RC
20195 # Dependencies to place after the objects being linked to create a
20197 postdep_objects=$lt_postdep_objects_RC
20199 # Dependencies to place before the objects being linked to create a
20201 predeps=$lt_predeps_RC
20203 # Dependencies to place after the objects being linked to create a
20205 postdeps=$lt_postdeps_RC
20207 # The library search path used internally by the compiler when linking
20208 # a shared library.
20209 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20211 # Method to check whether dependent libraries are shared objects.
20212 deplibs_check_method=$lt_deplibs_check_method
20214 # Command to use when deplibs_check_method == file_magic.
20215 file_magic_cmd=$lt_file_magic_cmd
20217 # Flag that allows shared libraries with undefined symbols to be built.
20218 allow_undefined_flag=$lt_allow_undefined_flag_RC
20220 # Flag that forces no undefined symbols.
20221 no_undefined_flag=$lt_no_undefined_flag_RC
20223 # Commands used to finish a libtool library installation in a directory.
20224 finish_cmds=$lt_finish_cmds
20226 # Same as above, but a single script fragment to be evaled but not shown.
20227 finish_eval=$lt_finish_eval
20229 # Take the output of nm and produce a listing of raw symbols and C names.
20230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20232 # Transform the output of nm in a proper C declaration
20233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20235 # Transform the output of nm in a C name address pair
20236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20238 # This is the shared library runtime path variable.
20239 runpath_var=$runpath_var
20241 # This is the shared library path variable.
20242 shlibpath_var=$shlibpath_var
20244 # Is shlibpath searched before the hard-coded library search path?
20245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20247 # How to hardcode a shared library path into an executable.
20248 hardcode_action=$hardcode_action_RC
20250 # Whether we should hardcode library paths into libraries.
20251 hardcode_into_libs=$hardcode_into_libs
20253 # Flag to hardcode \$libdir into a binary during linking.
20254 # This must work even if \$libdir does not exist.
20255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20257 # If ld is used when linking, flag to hardcode \$libdir into
20258 # a binary during linking. This must work even if \$libdir does
20260 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20262 # Whether we need a single -rpath flag with a separated argument.
20263 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20265 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20266 # resulting binary.
20267 hardcode_direct=$hardcode_direct_RC
20269 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20270 # resulting binary.
20271 hardcode_minus_L=$hardcode_minus_L_RC
20273 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20274 # the resulting binary.
20275 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20277 # Set to yes if building a shared library automatically hardcodes DIR into the library
20278 # and all subsequent libraries and executables linked against it.
20279 hardcode_automatic=$hardcode_automatic_RC
20281 # Variables whose values should be saved in libtool wrapper scripts and
20282 # restored at relink time.
20283 variables_saved_for_relink="$variables_saved_for_relink"
20285 # Whether libtool must link a program against all its dependency libraries.
20286 link_all_deplibs=$link_all_deplibs_RC
20288 # Compile-time system search path for libraries
20289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20291 # Run-time system search path for libraries
20292 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20294 # Fix the shell variable \$srcfile for the compiler.
20295 fix_srcfile_path="$fix_srcfile_path_RC"
20297 # Set to yes if exported symbols are required.
20298 always_export_symbols=$always_export_symbols_RC
20300 # The commands to list exported symbols.
20301 export_symbols_cmds=$lt_export_symbols_cmds_RC
20303 # The commands to extract the exported symbol list from a shared archive.
20304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20306 # Symbols that should not be listed in the preloaded symbols.
20307 exclude_expsyms=$lt_exclude_expsyms_RC
20309 # Symbols that must always be exported.
20310 include_expsyms=$lt_include_expsyms_RC
20312 # ### END LIBTOOL TAG CONFIG: $tagname
20318 # If there is no Makefile yet, we rely on a make rule to execute
20319 # `config.status --recheck' to rerun these tests and create the
20320 # libtool script then.
20321 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20322 if test -f "$ltmain_in"; then
20323 test -f Makefile && make "$ltmain"
20329 ac_cpp='$CPP $CPPFLAGS'
20330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20340 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20341 { (exit 1); exit 1; }; }
20345 # Append the new tag name to the list of available tags.
20346 if test -n "$tagname" ; then
20347 available_tags="$available_tags $tagname"
20353 # Now substitute the updated list of available tags.
20354 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20355 mv "${ofile}T" "$ofile"
20359 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20360 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20361 { (exit 1); exit 1; }; }
20367 # This can be used to rebuild libtool when needed
20368 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20370 # Always use our own libtool.
20371 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20373 # Prevent multiple expansion
20394 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
20395 set dummy glib-genmarshal; ac_word=$2
20396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20398 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 case $GLIB_GENMARSHAL in
20403 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
20406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20407 for as_dir in $PATH
20410 test -z "$as_dir" && as_dir=.
20411 for ac_exec_ext in '' $ac_executable_extensions; do
20412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20413 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
20414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20424 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
20425 if test -n "$GLIB_GENMARSHAL"; then
20426 { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
20427 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; }
20429 { echo "$as_me:$LINENO: result: no" >&5
20430 echo "${ECHO_T}no" >&6; }
20435 if test "x$GCC" = "xyes"; then
20436 case " $CFLAGS " in
20437 *[\ \ ]-Wall[\ \ ]*) ;;
20438 *) CFLAGS="$CFLAGS -Wall" ;;
20441 if test "x$enable_ansi" = "xyes"; then
20442 case " $CFLAGS " in
20443 *[\ \ ]-ansi[\ \ ]*) ;;
20444 *) CFLAGS="$CFLAGS -ansi" ;;
20447 case " $CFLAGS " in
20448 *[\ \ ]-pedantic[\ \ ]*) ;;
20449 *) CFLAGS="$CFLAGS -pedantic" ;;
20457 GETTEXT_PACKAGE=GConf$MAJOR_VERSION
20460 cat >>confdefs.h <<_ACEOF
20461 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20476 # find the actual value for $prefix that we'll end up with
20478 if test "x$prefix" = "xNONE"; then
20479 REAL_PREFIX=$ac_default_prefix
20481 REAL_PREFIX=$prefix
20485 # Check whether --with-sysconfsubdir was given.
20486 if test "${with_sysconfsubdir+set}" = set; then
20487 withval=$with_sysconfsubdir; sysconfsubdir=${withval}
20489 sysconfsubdir=gconf
20493 if test x"${sysconfsubdir}" != x; then
20494 sysgconfdir='${sysconfdir}/${sysconfsubdir}'
20496 sysgconfdir='${sysconfdir}'
20500 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
20502 # Check whether --enable-debug was given.
20503 if test "${enable_debug+set}" = set; then
20504 enableval=$enable_debug;
20506 enable_debug=minimum
20510 if test "x$enable_debug" = "xyes"; then
20511 CFLAGS="$CFLAGS -DGCONF_ENABLE_DEBUG=1"
20512 echo "FYI: " "Will build with debugging spew and checks"
20514 if test "x$enable_debug" = "xno"; then
20515 CFLAGS="$CFLAGS -DG_DISABLE_CHECKS=1 -DG_DISABLE_ASSERT=1"
20516 echo "FYI: " "Will build without *any* debugging code"
20518 echo "FYI: " "Will build with debug checks but no debug spew"
20524 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20525 if test -n "$ac_tool_prefix"; then
20526 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20527 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20530 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 case $PKG_CONFIG in
20535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20539 for as_dir in $PATH
20542 test -z "$as_dir" && as_dir=.
20543 for ac_exec_ext in '' $ac_executable_extensions; do
20544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20556 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20557 if test -n "$PKG_CONFIG"; then
20558 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20559 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20561 { echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6; }
20567 if test -z "$ac_cv_path_PKG_CONFIG"; then
20568 ac_pt_PKG_CONFIG=$PKG_CONFIG
20569 # Extract the first word of "pkg-config", so it can be a program name with args.
20570 set dummy pkg-config; ac_word=$2
20571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20573 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 case $ac_pt_PKG_CONFIG in
20578 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20582 for as_dir in $PATH
20585 test -z "$as_dir" && as_dir=.
20586 for ac_exec_ext in '' $ac_executable_extensions; do
20587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20588 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20599 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20600 if test -n "$ac_pt_PKG_CONFIG"; then
20601 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20602 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20604 { echo "$as_me:$LINENO: result: no" >&5
20605 echo "${ECHO_T}no" >&6; }
20608 if test "x$ac_pt_PKG_CONFIG" = x; then
20611 case $cross_compiling:$ac_tool_warned in
20613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20614 whose name does not start with the host triplet. If you think this
20615 configuration is useful to you, please write to autoconf@gnu.org." >&5
20616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20617 whose name does not start with the host triplet. If you think this
20618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20619 ac_tool_warned=yes ;;
20621 PKG_CONFIG=$ac_pt_PKG_CONFIG
20624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20628 if test -n "$PKG_CONFIG"; then
20629 _pkg_min_version=0.9.0
20630 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20631 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20632 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20633 { echo "$as_me:$LINENO: result: yes" >&5
20634 echo "${ECHO_T}yes" >&6; }
20636 { echo "$as_me:$LINENO: result: no" >&5
20637 echo "${ECHO_T}no" >&6; }
20644 # Check whether --with-html-dir was given.
20645 if test "${with_html_dir+set}" = set; then
20646 withval=$with_html_dir;
20648 with_html_dir='${datadir}/gtk-doc/html'
20651 HTML_DIR="$with_html_dir"
20654 # Check whether --enable-gtk-doc was given.
20655 if test "${enable_gtk_doc+set}" = set; then
20656 enableval=$enable_gtk_doc;
20662 if test x$enable_gtk_doc = xyes; then
20663 if test -n "$PKG_CONFIG" && \
20664 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\"") >&5
20665 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; then
20671 { { echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&5
20672 echo "$as_me: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&2;}
20673 { (exit 1); exit 1; }; }
20677 { echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
20678 echo $ECHO_N "checking whether to build gtk-doc documentation... $ECHO_C" >&6; }
20679 { echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
20680 echo "${ECHO_T}$enable_gtk_doc" >&6; }
20682 for ac_prog in gtkdoc-check
20684 # Extract the first word of "$ac_prog", so it can be a program name with args.
20685 set dummy $ac_prog; ac_word=$2
20686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20688 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 case $GTKDOC_CHECK in
20693 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
20696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20697 for as_dir in $PATH
20700 test -z "$as_dir" && as_dir=.
20701 for ac_exec_ext in '' $ac_executable_extensions; do
20702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20703 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20714 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
20715 if test -n "$GTKDOC_CHECK"; then
20716 { echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
20717 echo "${ECHO_T}$GTKDOC_CHECK" >&6; }
20719 { echo "$as_me:$LINENO: result: no" >&5
20720 echo "${ECHO_T}no" >&6; }
20724 test -n "$GTKDOC_CHECK" && break
20730 if test x$enable_gtk_doc = xyes; then
20731 ENABLE_GTK_DOC_TRUE=
20732 ENABLE_GTK_DOC_FALSE='#'
20734 ENABLE_GTK_DOC_TRUE='#'
20735 ENABLE_GTK_DOC_FALSE=
20740 if test -n "$LIBTOOL"; then
20741 GTK_DOC_USE_LIBTOOL_TRUE=
20742 GTK_DOC_USE_LIBTOOL_FALSE='#'
20744 GTK_DOC_USE_LIBTOOL_TRUE='#'
20745 GTK_DOC_USE_LIBTOOL_FALSE=
20750 # Check whether --enable-gtk was given.
20751 if test "${enable_gtk+set}" = set; then
20752 enableval=$enable_gtk; enable_gtk="$enableval"
20758 # Check whether --enable-system-bus was given.
20759 if test "${enable_system_bus+set}" = set; then
20760 enableval=$enable_system_bus; enable_system_bus="$enableval"
20762 enable_system_bus=no
20768 if test x$enable_system_bus = xyes; then
20769 USE_SYSTEM_BUS_TRUE=
20770 USE_SYSTEM_BUS_FALSE='#'
20772 USE_SYSTEM_BUS_TRUE='#'
20773 USE_SYSTEM_BUS_FALSE=
20776 if test x$enable_system_bus = xyes; then
20778 cat >>confdefs.h <<\_ACEOF
20779 #define USE_SYSTEM_BUS 1
20785 # Check whether --with-dbus_service_dir was given.
20786 if test "${with_dbus_service_dir+set}" = set; then
20787 withval=$with_dbus_service_dir; with_dbus_service_dir="$withval"
20789 with_dbus_service_dir=$datadir/dbus-1/services
20793 DBUS_SERVICE_DIR=$with_dbus_service_dir
20796 PKGCONFIG_MODULES='glib-2.0 > 2.8.0 gmodule-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0 dbus-glib-1 >= 0.60'
20797 PKGCONFIG_MODULES_WITH_XML="$PKGCONFIG_MODULES libxml-2.0"
20798 PKGCONFIG_MODULES_WITH_GTK=" $PKGCONFIG_MODULES gtk+-2.0 >= 2.0.0"
20799 PKGCONFIG_MODULES_WITH_XML_AND_GTK=" $PKGCONFIG_MODULES gtk+-2.0 libxml-2.0"
20803 { echo "$as_me:$LINENO: checking for DEPENDENT" >&5
20804 echo $ECHO_N "checking for DEPENDENT... $ECHO_C" >&6; }
20806 if test -n "$PKG_CONFIG"; then
20807 if test -n "$DEPENDENT_CFLAGS"; then
20808 pkg_cv_DEPENDENT_CFLAGS="$DEPENDENT_CFLAGS"
20810 if test -n "$PKG_CONFIG" && \
20811 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES\"") >&5
20812 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES") 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; then
20816 pkg_cv_DEPENDENT_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES" 2>/dev/null`
20824 if test -n "$PKG_CONFIG"; then
20825 if test -n "$DEPENDENT_LIBS"; then
20826 pkg_cv_DEPENDENT_LIBS="$DEPENDENT_LIBS"
20828 if test -n "$PKG_CONFIG" && \
20829 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES\"") >&5
20830 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES") 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; then
20834 pkg_cv_DEPENDENT_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES" 2>/dev/null`
20845 if test $pkg_failed = yes; then
20847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20848 _pkg_short_errors_supported=yes
20850 _pkg_short_errors_supported=no
20852 if test $_pkg_short_errors_supported = yes; then
20853 DEPENDENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES"`
20855 DEPENDENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES"`
20857 # Put the nasty error message in config.log where it belongs
20858 echo "$DEPENDENT_PKG_ERRORS" >&5
20860 { { echo "$as_me:$LINENO: error: Package requirements ($PKGCONFIG_MODULES) were not met:
20862 $DEPENDENT_PKG_ERRORS
20864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20865 installed software in a non-standard prefix.
20867 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20868 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20869 See the pkg-config man page for more details.
20871 echo "$as_me: error: Package requirements ($PKGCONFIG_MODULES) were not met:
20873 $DEPENDENT_PKG_ERRORS
20875 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20876 installed software in a non-standard prefix.
20878 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20879 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20880 See the pkg-config man page for more details.
20882 { (exit 1); exit 1; }; }
20883 elif test $pkg_failed = untried; then
20884 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20885 is in your PATH or set the PKG_CONFIG environment variable to the full
20886 path to pkg-config.
20888 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20889 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20890 See the pkg-config man page for more details.
20892 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20893 See \`config.log' for more details." >&5
20894 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20895 is in your PATH or set the PKG_CONFIG environment variable to the full
20896 path to pkg-config.
20898 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20899 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20900 See the pkg-config man page for more details.
20902 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20903 See \`config.log' for more details." >&2;}
20904 { (exit 1); exit 1; }; }
20906 DEPENDENT_CFLAGS=$pkg_cv_DEPENDENT_CFLAGS
20907 DEPENDENT_LIBS=$pkg_cv_DEPENDENT_LIBS
20908 { echo "$as_me:$LINENO: result: yes" >&5
20909 echo "${ECHO_T}yes" >&6; }
20914 { echo "$as_me:$LINENO: checking for DEPENDENT_WITH_XML" >&5
20915 echo $ECHO_N "checking for DEPENDENT_WITH_XML... $ECHO_C" >&6; }
20917 if test -n "$PKG_CONFIG"; then
20918 if test -n "$DEPENDENT_WITH_XML_CFLAGS"; then
20919 pkg_cv_DEPENDENT_WITH_XML_CFLAGS="$DEPENDENT_WITH_XML_CFLAGS"
20921 if test -n "$PKG_CONFIG" && \
20922 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML\"") >&5
20923 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML") 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; then
20927 pkg_cv_DEPENDENT_WITH_XML_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES_WITH_XML" 2>/dev/null`
20935 if test -n "$PKG_CONFIG"; then
20936 if test -n "$DEPENDENT_WITH_XML_LIBS"; then
20937 pkg_cv_DEPENDENT_WITH_XML_LIBS="$DEPENDENT_WITH_XML_LIBS"
20939 if test -n "$PKG_CONFIG" && \
20940 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML\"") >&5
20941 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML") 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; then
20945 pkg_cv_DEPENDENT_WITH_XML_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES_WITH_XML" 2>/dev/null`
20956 if test $pkg_failed = yes; then
20958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20959 _pkg_short_errors_supported=yes
20961 _pkg_short_errors_supported=no
20963 if test $_pkg_short_errors_supported = yes; then
20964 DEPENDENT_WITH_XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML"`
20966 DEPENDENT_WITH_XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML"`
20968 # Put the nasty error message in config.log where it belongs
20969 echo "$DEPENDENT_WITH_XML_PKG_ERRORS" >&5
20971 { { echo "$as_me:$LINENO: error: Package requirements ($PKGCONFIG_MODULES_WITH_XML) were not met:
20973 $DEPENDENT_WITH_XML_PKG_ERRORS
20975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20976 installed software in a non-standard prefix.
20978 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
20979 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
20980 See the pkg-config man page for more details.
20982 echo "$as_me: error: Package requirements ($PKGCONFIG_MODULES_WITH_XML) were not met:
20984 $DEPENDENT_WITH_XML_PKG_ERRORS
20986 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20987 installed software in a non-standard prefix.
20989 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
20990 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
20991 See the pkg-config man page for more details.
20993 { (exit 1); exit 1; }; }
20994 elif test $pkg_failed = untried; then
20995 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20996 is in your PATH or set the PKG_CONFIG environment variable to the full
20997 path to pkg-config.
20999 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
21000 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
21001 See the pkg-config man page for more details.
21003 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21004 See \`config.log' for more details." >&5
21005 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21006 is in your PATH or set the PKG_CONFIG environment variable to the full
21007 path to pkg-config.
21009 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
21010 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
21011 See the pkg-config man page for more details.
21013 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21014 See \`config.log' for more details." >&2;}
21015 { (exit 1); exit 1; }; }
21017 DEPENDENT_WITH_XML_CFLAGS=$pkg_cv_DEPENDENT_WITH_XML_CFLAGS
21018 DEPENDENT_WITH_XML_LIBS=$pkg_cv_DEPENDENT_WITH_XML_LIBS
21019 { echo "$as_me:$LINENO: result: yes" >&5
21020 echo "${ECHO_T}yes" >&6; }
21024 if test "x$enable_gtk" != "xno"; then
21027 { echo "$as_me:$LINENO: checking for DEPENDENT_WITH_GTK" >&5
21028 echo $ECHO_N "checking for DEPENDENT_WITH_GTK... $ECHO_C" >&6; }
21030 if test -n "$PKG_CONFIG"; then
21031 if test -n "$DEPENDENT_WITH_GTK_CFLAGS"; then
21032 pkg_cv_DEPENDENT_WITH_GTK_CFLAGS="$DEPENDENT_WITH_GTK_CFLAGS"
21034 if test -n "$PKG_CONFIG" && \
21035 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_GTK\"") >&5
21036 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_GTK") 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; then
21040 pkg_cv_DEPENDENT_WITH_GTK_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES_WITH_GTK" 2>/dev/null`
21048 if test -n "$PKG_CONFIG"; then
21049 if test -n "$DEPENDENT_WITH_GTK_LIBS"; then
21050 pkg_cv_DEPENDENT_WITH_GTK_LIBS="$DEPENDENT_WITH_GTK_LIBS"
21052 if test -n "$PKG_CONFIG" && \
21053 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_GTK\"") >&5
21054 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_GTK") 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; then
21058 pkg_cv_DEPENDENT_WITH_GTK_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES_WITH_GTK" 2>/dev/null`
21069 if test $pkg_failed = yes; then
21071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21072 _pkg_short_errors_supported=yes
21074 _pkg_short_errors_supported=no
21076 if test $_pkg_short_errors_supported = yes; then
21077 DEPENDENT_WITH_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_GTK"`
21079 DEPENDENT_WITH_GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_GTK"`
21081 # Put the nasty error message in config.log where it belongs
21082 echo "$DEPENDENT_WITH_GTK_PKG_ERRORS" >&5
21085 elif test $pkg_failed = untried; then
21088 DEPENDENT_WITH_GTK_CFLAGS=$pkg_cv_DEPENDENT_WITH_GTK_CFLAGS
21089 DEPENDENT_WITH_GTK_LIBS=$pkg_cv_DEPENDENT_WITH_GTK_LIBS
21090 { echo "$as_me:$LINENO: result: yes" >&5
21091 echo "${ECHO_T}yes" >&6; }
21096 { echo "$as_me:$LINENO: checking for DEPENDENT_WITH_XML_AND_GTK" >&5
21097 echo $ECHO_N "checking for DEPENDENT_WITH_XML_AND_GTK... $ECHO_C" >&6; }
21099 if test -n "$PKG_CONFIG"; then
21100 if test -n "$DEPENDENT_WITH_XML_AND_GTK_CFLAGS"; then
21101 pkg_cv_DEPENDENT_WITH_XML_AND_GTK_CFLAGS="$DEPENDENT_WITH_XML_AND_GTK_CFLAGS"
21103 if test -n "$PKG_CONFIG" && \
21104 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML_AND_GTK\"") >&5
21105 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK") 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; then
21109 pkg_cv_DEPENDENT_WITH_XML_AND_GTK_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES_WITH_XML_AND_GTK" 2>/dev/null`
21117 if test -n "$PKG_CONFIG"; then
21118 if test -n "$DEPENDENT_WITH_XML_AND_GTK_LIBS"; then
21119 pkg_cv_DEPENDENT_WITH_XML_AND_GTK_LIBS="$DEPENDENT_WITH_XML_AND_GTK_LIBS"
21121 if test -n "$PKG_CONFIG" && \
21122 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML_AND_GTK\"") >&5
21123 ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK") 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; then
21127 pkg_cv_DEPENDENT_WITH_XML_AND_GTK_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES_WITH_XML_AND_GTK" 2>/dev/null`
21138 if test $pkg_failed = yes; then
21140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21141 _pkg_short_errors_supported=yes
21143 _pkg_short_errors_supported=no
21145 if test $_pkg_short_errors_supported = yes; then
21146 DEPENDENT_WITH_XML_AND_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK"`
21148 DEPENDENT_WITH_XML_AND_GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK"`
21150 # Put the nasty error message in config.log where it belongs
21151 echo "$DEPENDENT_WITH_XML_AND_GTK_PKG_ERRORS" >&5
21153 DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$DEPENDENT_WITH_XML_CFLAGS DEPENDENT_WITH_XML_AND_GTK_LIBS=$DEPENDENT_WITH_XML_LIBS
21154 elif test $pkg_failed = untried; then
21155 DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$DEPENDENT_WITH_XML_CFLAGS DEPENDENT_WITH_XML_AND_GTK_LIBS=$DEPENDENT_WITH_XML_LIBS
21157 DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$pkg_cv_DEPENDENT_WITH_XML_AND_GTK_CFLAGS
21158 DEPENDENT_WITH_XML_AND_GTK_LIBS=$pkg_cv_DEPENDENT_WITH_XML_AND_GTK_LIBS
21159 { echo "$as_me:$LINENO: result: yes" >&5
21160 echo "${ECHO_T}yes" >&6; }
21164 if test "x$enable_gtk" = "xyes" && test "x$HAVE_GTK" = "xno"; then
21165 { { echo "$as_me:$LINENO: error:
21166 *** Could not find GTK+ 2.0 or greater.
21167 *** Go to http://www.gtk.org/ to get it." >&5
21168 echo "$as_me: error:
21169 *** Could not find GTK+ 2.0 or greater.
21170 *** Go to http://www.gtk.org/ to get it." >&2;}
21171 { (exit 1); exit 1; }; }
21175 DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$DEPENDENT_WITH_XML_CFLAGS
21176 DEPENDENT_WITH_XML_AND_GTK_LIBS=$DEPENDENT_WITH_XML_LIBS
21181 if test x$HAVE_GTK != xno; then
21200 #ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
21201 #AC_SUBST(ORBIT_IDL)
21203 if test "${ac_cv_header_popt_h+set}" = set; then
21204 { echo "$as_me:$LINENO: checking for popt.h" >&5
21205 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21206 if test "${ac_cv_header_popt_h+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21210 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21212 # Is the header compilable?
21213 { echo "$as_me:$LINENO: checking popt.h usability" >&5
21214 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 $ac_includes_default
21224 rm -f conftest.$ac_objext
21225 if { (ac_try="$ac_compile"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_compile") 2>conftest.er1
21233 grep -v '^ *+' conftest.er1 >conftest.err
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21239 { (case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_try") 2>&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; } &&
21248 { ac_try='test -s conftest.$ac_objext'
21249 { (case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_try") 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 ac_header_compiler=yes
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ac_header_compiler=no
21266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21268 echo "${ECHO_T}$ac_header_compiler" >&6; }
21270 # Is the header present?
21271 { echo "$as_me:$LINENO: checking popt.h presence" >&5
21272 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21281 if { (ac_try="$ac_cpp conftest.$ac_ext"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } >/dev/null; then
21294 if test -s conftest.err; then
21295 ac_cpp_err=$ac_c_preproc_warn_flag
21296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21303 if test -z "$ac_cpp_err"; then
21304 ac_header_preproc=yes
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_header_preproc=no
21312 rm -f conftest.err conftest.$ac_ext
21313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21314 echo "${ECHO_T}$ac_header_preproc" >&6; }
21316 # So? What about this header?
21317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21319 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21320 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
21322 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
21323 ac_header_preproc=yes
21326 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21327 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
21329 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21331 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21332 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
21333 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21334 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
21335 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21336 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21337 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21341 { echo "$as_me:$LINENO: checking for popt.h" >&5
21342 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21343 if test "${ac_cv_header_popt_h+set}" = set; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 ac_cv_header_popt_h=$ac_header_preproc
21348 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21349 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21352 if test $ac_cv_header_popt_h = yes; then
21355 { { echo "$as_me:$LINENO: error:
21356 *** Couldn't find popt. Please download and install from
21357 *** ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ and try again." >&5
21358 echo "$as_me: error:
21359 *** Couldn't find popt. Please download and install from
21360 *** ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ and try again." >&2;}
21361 { (exit 1); exit 1; }; }
21366 if test "${ac_cv_header_pthread_h+set}" = set; then
21367 { echo "$as_me:$LINENO: checking for pthread.h" >&5
21368 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21369 if test "${ac_cv_header_pthread_h+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21373 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21375 # Is the header compilable?
21376 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
21377 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
21378 cat >conftest.$ac_ext <<_ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 $ac_includes_default
21385 #include <pthread.h>
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_compile") 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
21401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21402 { (case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_try") 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; } &&
21411 { ac_try='test -s conftest.$ac_objext'
21412 { (case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_try") 2>&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_header_compiler=yes
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_header_compiler=no
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431 echo "${ECHO_T}$ac_header_compiler" >&6; }
21433 # Is the header present?
21434 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
21435 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <pthread.h>
21444 if { (ac_try="$ac_cpp conftest.$ac_ext"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21452 grep -v '^ *+' conftest.er1 >conftest.err
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } >/dev/null; then
21457 if test -s conftest.err; then
21458 ac_cpp_err=$ac_c_preproc_warn_flag
21459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21466 if test -z "$ac_cpp_err"; then
21467 ac_header_preproc=yes
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 ac_header_preproc=no
21475 rm -f conftest.err conftest.$ac_ext
21476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21477 echo "${ECHO_T}$ac_header_preproc" >&6; }
21479 # So? What about this header?
21480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21482 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21483 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21485 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21486 ac_header_preproc=yes
21489 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21490 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
21492 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21494 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
21496 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21498 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21500 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21504 { echo "$as_me:$LINENO: checking for pthread.h" >&5
21505 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21506 if test "${ac_cv_header_pthread_h+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 ac_cv_header_pthread_h=$ac_header_preproc
21511 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21512 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21515 if test $ac_cv_header_pthread_h = yes; then
21522 if test -n "$have_pthreads"; then
21533 for ac_header in syslog.h sys/wait.h
21535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 ac_res=`eval echo '${'$as_ac_Header'}'`
21543 { echo "$as_me:$LINENO: result: $ac_res" >&5
21544 echo "${ECHO_T}$ac_res" >&6; }
21546 # Is the header compilable?
21547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 $ac_includes_default
21556 #include <$ac_header>
21558 rm -f conftest.$ac_objext
21559 if { (ac_try="$ac_compile"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_compile") 2>conftest.er1
21567 grep -v '^ *+' conftest.er1 >conftest.err
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
21572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21573 { (case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_try") 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest.$ac_objext'
21583 { (case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_try") 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_header_compiler=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ac_header_compiler=no
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21602 echo "${ECHO_T}$ac_header_compiler" >&6; }
21604 # Is the header present?
21605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 #include <$ac_header>
21615 if { (ac_try="$ac_cpp conftest.$ac_ext"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21623 grep -v '^ *+' conftest.er1 >conftest.err
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } >/dev/null; then
21628 if test -s conftest.err; then
21629 ac_cpp_err=$ac_c_preproc_warn_flag
21630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21637 if test -z "$ac_cpp_err"; then
21638 ac_header_preproc=yes
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_header_preproc=no
21646 rm -f conftest.err conftest.$ac_ext
21647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21648 echo "${ECHO_T}$ac_header_preproc" >&6; }
21650 # So? What about this header?
21651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21657 ac_header_preproc=yes
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 eval "$as_ac_Header=\$ac_header_preproc"
21682 ac_res=`eval echo '${'$as_ac_Header'}'`
21683 { echo "$as_me:$LINENO: result: $ac_res" >&5
21684 echo "${ECHO_T}$ac_res" >&6; }
21687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21688 cat >>confdefs.h <<_ACEOF
21689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21701 for ac_func in getuid sigaction fsync fchmod
21703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 cat >conftest.$ac_ext <<_ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21717 #define $ac_func innocuous_$ac_func
21719 /* System header to define __stub macros and hopefully few prototypes,
21720 which can conflict with char $ac_func (); below.
21721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21722 <limits.h> exists even on freestanding compilers. */
21725 # include <limits.h>
21727 # include <assert.h>
21732 /* Override any GCC internal prototype to avoid an error.
21733 Use char because int might match the return type of a GCC
21734 builtin and then its argument prototype would still apply. */
21739 /* The GNU C library defines this for functions which it implements
21740 to always fail with ENOSYS. Some functions are actually named
21741 something starting with __ and the normal name is an alias. */
21742 #if defined __stub_$ac_func || defined __stub___$ac_func
21749 return $ac_func ();
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (ac_try="$ac_link"
21756 case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_link") 2>conftest.er1
21763 grep -v '^ *+' conftest.er1 >conftest.err
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } &&
21768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21769 { (case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_try") 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; } &&
21778 { ac_try='test -s conftest$ac_exeext'
21779 { (case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_try") 2>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 eval "$as_ac_var=yes"
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21793 eval "$as_ac_var=no"
21796 rm -f core conftest.err conftest.$ac_objext \
21797 conftest$ac_exeext conftest.$ac_ext
21799 ac_res=`eval echo '${'$as_ac_var'}'`
21800 { echo "$as_me:$LINENO: result: $ac_res" >&5
21801 echo "${ECHO_T}$ac_res" >&6; }
21802 if test `eval echo '${'$as_ac_var'}'` = yes; then
21803 cat >>confdefs.h <<_ACEOF
21804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21813 if test "${ac_cv_header_ldap_h+set}" = set; then
21814 { echo "$as_me:$LINENO: checking for ldap.h" >&5
21815 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
21816 if test "${ac_cv_header_ldap_h+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
21820 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
21822 # Is the header compilable?
21823 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
21824 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 $ac_includes_default
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } &&
21848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21849 { (case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_try") 2>&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; } &&
21858 { ac_try='test -s conftest.$ac_objext'
21859 { (case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_try") 2>&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_header_compiler=yes
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ac_header_compiler=no
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21878 echo "${ECHO_T}$ac_header_compiler" >&6; }
21880 # Is the header present?
21881 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
21882 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21891 if { (ac_try="$ac_cpp conftest.$ac_ext"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } >/dev/null; then
21904 if test -s conftest.err; then
21905 ac_cpp_err=$ac_c_preproc_warn_flag
21906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21913 if test -z "$ac_cpp_err"; then
21914 ac_header_preproc=yes
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ac_header_preproc=no
21922 rm -f conftest.err conftest.$ac_ext
21923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21924 echo "${ECHO_T}$ac_header_preproc" >&6; }
21926 # So? What about this header?
21927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21929 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
21930 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21931 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
21932 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
21933 ac_header_preproc=yes
21936 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
21937 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
21939 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
21941 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
21943 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
21945 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
21947 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
21951 { echo "$as_me:$LINENO: checking for ldap.h" >&5
21952 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
21953 if test "${ac_cv_header_ldap_h+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 ac_cv_header_ldap_h=$ac_header_preproc
21958 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
21959 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
21962 if test $ac_cv_header_ldap_h = yes; then
21964 { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
21965 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
21966 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21969 ac_check_lib_save_LIBS=$LIBS
21970 LIBS="-lldap $LIBS"
21971 cat >conftest.$ac_ext <<_ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21978 /* Override any GCC internal prototype to avoid an error.
21979 Use char because int might match the return type of a GCC
21980 builtin and then its argument prototype would still apply. */
21988 return ldap_init ();
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (ac_try="$ac_link"
21995 case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_link") 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22008 { (case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_try") 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; } &&
22017 { ac_try='test -s conftest$ac_exeext'
22018 { (case "(($ac_try" in
22019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020 *) ac_try_echo=$ac_try;;
22022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22023 (eval "$ac_try") 2>&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22027 ac_cv_lib_ldap_ldap_init=yes
22029 echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22032 ac_cv_lib_ldap_ldap_init=no
22035 rm -f core conftest.err conftest.$ac_objext \
22036 conftest$ac_exeext conftest.$ac_ext
22037 LIBS=$ac_check_lib_save_LIBS
22039 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
22040 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
22041 if test $ac_cv_lib_ldap_ldap_init = yes; then
22052 if test -n "$LDAP_LIBS"; then
22054 LDAP_SUPPORT_FALSE='#'
22056 LDAP_SUPPORT_TRUE='#'
22057 LDAP_SUPPORT_FALSE=
22061 if test "$os_win32" != yes; then
22063 SAVE_CFLAGS="$CFLAGS"
22065 LDAP_CFLAGS="-DLDAP_DEPRECATED"
22066 CFLAGS="$CFLAGS $LDAP_CFLAGS"
22067 LIBS="$LIBS $LDAP_LIBS"
22069 for ac_func in ldap_ntlm_bind
22071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22085 #define $ac_func innocuous_$ac_func
22087 /* System header to define __stub macros and hopefully few prototypes,
22088 which can conflict with char $ac_func (); below.
22089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22090 <limits.h> exists even on freestanding compilers. */
22093 # include <limits.h>
22095 # include <assert.h>
22100 /* Override any GCC internal prototype to avoid an error.
22101 Use char because int might match the return type of a GCC
22102 builtin and then its argument prototype would still apply. */
22107 /* The GNU C library defines this for functions which it implements
22108 to always fail with ENOSYS. Some functions are actually named
22109 something starting with __ and the normal name is an alias. */
22110 #if defined __stub_$ac_func || defined __stub___$ac_func
22117 return $ac_func ();
22122 rm -f conftest.$ac_objext conftest$ac_exeext
22123 if { (ac_try="$ac_link"
22124 case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_link") 2>conftest.er1
22131 grep -v '^ *+' conftest.er1 >conftest.err
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } &&
22136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22137 { (case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_try") 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest$ac_exeext'
22147 { (case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_try") 2>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; }; then
22156 eval "$as_ac_var=yes"
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 eval "$as_ac_var=no"
22164 rm -f core conftest.err conftest.$ac_objext \
22165 conftest$ac_exeext conftest.$ac_ext
22167 ac_res=`eval echo '${'$as_ac_var'}'`
22168 { echo "$as_me:$LINENO: result: $ac_res" >&5
22169 echo "${ECHO_T}$ac_res" >&6; }
22170 if test `eval echo '${'$as_ac_var'}'` = yes; then
22171 cat >>confdefs.h <<_ACEOF
22172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22178 CFLAGS="$SAVE_CFLAGS"
22182 LDAP_CFLAGS="-DLDAP_DEPRECATED"
22183 LDAP_LIBS="-lwldap32"
22187 cat >>confdefs.h <<\_ACEOF
22188 #define HAVE_LDAP 1
22195 case "$am__api_version" in
22197 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
22198 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
22199 { (exit 1); exit 1; }; }
22205 if test -n "0.33"; then
22206 { echo "$as_me:$LINENO: checking for intltool >= 0.33" >&5
22207 echo $ECHO_N "checking for intltool >= 0.33... $ECHO_C" >&6; }
22209 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.33 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
22210 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
22211 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
22213 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
22214 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
22215 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
22216 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.33 or later." >&5
22217 echo "$as_me: error: Your intltool is too old. You need intltool 0.33 or later." >&2;}
22218 { (exit 1); exit 1; }; }
22221 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22222 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22223 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22224 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22225 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
22226 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22227 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22228 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22229 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22230 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22231 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22232 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
22233 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22234 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22235 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22236 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22237 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22238 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22239 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22261 # Use the tools built into the package, not the ones that are installed.
22262 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
22264 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
22266 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
22269 # Extract the first word of "perl", so it can be a program name with args.
22270 set dummy perl; ac_word=$2
22271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22273 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 case $INTLTOOL_PERL in
22278 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
22281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22282 for as_dir in $PATH
22285 test -z "$as_dir" && as_dir=.
22286 for ac_exec_ext in '' $ac_executable_extensions; do
22287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22288 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
22289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22299 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
22300 if test -n "$INTLTOOL_PERL"; then
22301 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
22302 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
22304 { echo "$as_me:$LINENO: result: no" >&5
22305 echo "${ECHO_T}no" >&6; }
22309 if test -z "$INTLTOOL_PERL"; then
22310 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
22311 echo "$as_me: error: perl not found; required for intltool" >&2;}
22312 { (exit 1); exit 1; }; }
22314 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
22315 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
22316 echo "$as_me: error: perl 5.x required for intltool" >&2;}
22317 { (exit 1); exit 1; }; }
22319 if test "x" != "xno-xml"; then
22320 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
22321 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
22322 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
22323 { echo "$as_me:$LINENO: result: ok" >&5
22324 echo "${ECHO_T}ok" >&6; }
22326 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
22327 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
22328 { (exit 1); exit 1; }; }
22332 # Substitute ALL_LINGUAS so we can use it in po/Makefile
22335 # Set DATADIRNAME correctly if it is not set yet
22336 # (copied from glib-gettext.m4)
22337 if test -z "$DATADIRNAME"; then
22338 cat >conftest.$ac_ext <<_ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h. */
22348 extern int _nl_msg_cat_cntr;
22349 return _nl_msg_cat_cntr
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_link") 2>conftest.er1
22363 grep -v '^ *+' conftest.er1 >conftest.err
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
22368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22369 { (case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_try") 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; } &&
22378 { ac_try='test -s conftest$ac_exeext'
22379 { (case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22390 echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22395 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22396 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
22397 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 cat >conftest.$ac_ext <<_ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22408 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22410 /* System header to define __stub macros and hopefully few prototypes,
22411 which can conflict with char bind_textdomain_codeset (); below.
22412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22413 <limits.h> exists even on freestanding compilers. */
22416 # include <limits.h>
22418 # include <assert.h>
22421 #undef bind_textdomain_codeset
22423 /* Override any GCC internal prototype to avoid an error.
22424 Use char because int might match the return type of a GCC
22425 builtin and then its argument prototype would still apply. */
22429 char bind_textdomain_codeset ();
22430 /* The GNU C library defines this for functions which it implements
22431 to always fail with ENOSYS. Some functions are actually named
22432 something starting with __ and the normal name is an alias. */
22433 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
22440 return bind_textdomain_codeset ();
22445 rm -f conftest.$ac_objext conftest$ac_exeext
22446 if { (ac_try="$ac_link"
22447 case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_link") 2>conftest.er1
22454 grep -v '^ *+' conftest.er1 >conftest.err
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
22459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22460 { (case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_try") 2>&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; } &&
22469 { ac_try='test -s conftest$ac_exeext'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22479 ac_cv_func_bind_textdomain_codeset=yes
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_func_bind_textdomain_codeset=no
22487 rm -f core conftest.err conftest.$ac_objext \
22488 conftest$ac_exeext conftest.$ac_ext
22490 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22491 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
22492 if test $ac_cv_func_bind_textdomain_codeset = yes; then
22505 rm -f core conftest.err conftest.$ac_objext \
22506 conftest$ac_exeext conftest.$ac_ext
22513 ac_config_commands="$ac_config_commands intltool"
22520 for ac_header in locale.h
22522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 ac_res=`eval echo '${'$as_ac_Header'}'`
22530 { echo "$as_me:$LINENO: result: $ac_res" >&5
22531 echo "${ECHO_T}$ac_res" >&6; }
22533 # Is the header compilable?
22534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 $ac_includes_default
22543 #include <$ac_header>
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_compile") 2>conftest.er1
22554 grep -v '^ *+' conftest.er1 >conftest.err
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } &&
22559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22560 { (case "(($ac_try" in
22561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22562 *) ac_try_echo=$ac_try;;
22564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22565 (eval "$ac_try") 2>&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; } &&
22569 { ac_try='test -s conftest.$ac_objext'
22570 { (case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_try") 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 ac_header_compiler=yes
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ac_header_compiler=no
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22589 echo "${ECHO_T}$ac_header_compiler" >&6; }
22591 # Is the header present?
22592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600 #include <$ac_header>
22602 if { (ac_try="$ac_cpp conftest.$ac_ext"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22610 grep -v '^ *+' conftest.er1 >conftest.err
22612 cat conftest.err >&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } >/dev/null; then
22615 if test -s conftest.err; then
22616 ac_cpp_err=$ac_c_preproc_warn_flag
22617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22624 if test -z "$ac_cpp_err"; then
22625 ac_header_preproc=yes
22627 echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22630 ac_header_preproc=no
22633 rm -f conftest.err conftest.$ac_ext
22634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22635 echo "${ECHO_T}$ac_header_preproc" >&6; }
22637 # So? What about this header?
22638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22644 ac_header_preproc=yes
22647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 eval "$as_ac_Header=\$ac_header_preproc"
22669 ac_res=`eval echo '${'$as_ac_Header'}'`
22670 { echo "$as_me:$LINENO: result: $ac_res" >&5
22671 echo "${ECHO_T}$ac_res" >&6; }
22674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22675 cat >>confdefs.h <<_ACEOF
22676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22683 if test $ac_cv_header_locale_h = yes; then
22684 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22685 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22686 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <locale.h>
22704 rm -f conftest.$ac_objext conftest$ac_exeext
22705 if { (ac_try="$ac_link"
22706 case "(($ac_try" in
22707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708 *) ac_try_echo=$ac_try;;
22710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22711 (eval "$ac_link") 2>conftest.er1
22713 grep -v '^ *+' conftest.er1 >conftest.err
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } &&
22718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22719 { (case "(($ac_try" in
22720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721 *) ac_try_echo=$ac_try;;
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724 (eval "$ac_try") 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; } &&
22728 { ac_try='test -s conftest$ac_exeext'
22729 { (case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_try") 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738 am_cv_val_LC_MESSAGES=yes
22740 echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22743 am_cv_val_LC_MESSAGES=no
22746 rm -f core conftest.err conftest.$ac_objext \
22747 conftest$ac_exeext conftest.$ac_ext
22749 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22750 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22751 if test $am_cv_val_LC_MESSAGES = yes; then
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_LC_MESSAGES 1
22762 gt_cv_have_gettext=no
22768 if test "${ac_cv_header_libintl_h+set}" = set; then
22769 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22770 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22771 if test "${ac_cv_header_libintl_h+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22775 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22777 # Is the header compilable?
22778 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
22779 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 $ac_includes_default
22787 #include <libintl.h>
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_compile") 2>conftest.er1
22798 grep -v '^ *+' conftest.er1 >conftest.err
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } &&
22803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22804 { (case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_try") 2>&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; } &&
22813 { ac_try='test -s conftest.$ac_objext'
22814 { (case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_try") 2>&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 ac_header_compiler=yes
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 ac_header_compiler=no
22831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22833 echo "${ECHO_T}$ac_header_compiler" >&6; }
22835 # Is the header present?
22836 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
22837 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
22838 cat >conftest.$ac_ext <<_ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h. */
22844 #include <libintl.h>
22846 if { (ac_try="$ac_cpp conftest.$ac_ext"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22854 grep -v '^ *+' conftest.er1 >conftest.err
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } >/dev/null; then
22859 if test -s conftest.err; then
22860 ac_cpp_err=$ac_c_preproc_warn_flag
22861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22868 if test -z "$ac_cpp_err"; then
22869 ac_header_preproc=yes
22871 echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22874 ac_header_preproc=no
22877 rm -f conftest.err conftest.$ac_ext
22878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22879 echo "${ECHO_T}$ac_header_preproc" >&6; }
22881 # So? What about this header?
22882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22884 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22885 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22886 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22887 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22888 ac_header_preproc=yes
22891 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22892 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22893 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
22894 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22896 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
22898 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22899 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22900 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22901 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22902 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22906 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22907 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22908 if test "${ac_cv_header_libintl_h+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 ac_cv_header_libintl_h=$ac_header_preproc
22913 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22914 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22917 if test $ac_cv_header_libintl_h = yes; then
22918 gt_cv_func_dgettext_libintl="no"
22919 libintl_extra_libs=""
22922 # First check in libc
22924 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
22925 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
22926 if test "${gt_cv_func_ngettext_libc+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22936 #include <libintl.h>
22941 return !ngettext ("","", 1)
22946 rm -f conftest.$ac_objext conftest$ac_exeext
22947 if { (ac_try="$ac_link"
22948 case "(($ac_try" in
22949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950 *) ac_try_echo=$ac_try;;
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953 (eval "$ac_link") 2>conftest.er1
22955 grep -v '^ *+' conftest.er1 >conftest.err
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } &&
22960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22961 { (case "(($ac_try" in
22962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963 *) ac_try_echo=$ac_try;;
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966 (eval "$ac_try") 2>&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; } &&
22970 { ac_try='test -s conftest$ac_exeext'
22971 { (case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_try") 2>&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 gt_cv_func_ngettext_libc=yes
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 gt_cv_func_ngettext_libc=no
22988 rm -f core conftest.err conftest.$ac_objext \
22989 conftest$ac_exeext conftest.$ac_ext
22992 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
22993 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
22995 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22996 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
22997 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
22998 if test "${gt_cv_func_dgettext_libc+set}" = set; then
22999 echo $ECHO_N "(cached) $ECHO_C" >&6
23001 cat >conftest.$ac_ext <<_ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23008 #include <libintl.h>
23013 return !dgettext ("","")
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (ac_try="$ac_link"
23020 case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025 (eval "$ac_link") 2>conftest.er1
23027 grep -v '^ *+' conftest.er1 >conftest.err
23029 cat conftest.err >&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } &&
23032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23033 { (case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_try") 2>&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; } &&
23042 { ac_try='test -s conftest$ac_exeext'
23043 { (case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_try") 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 gt_cv_func_dgettext_libc=yes
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 gt_cv_func_dgettext_libc=no
23060 rm -f core conftest.err conftest.$ac_objext \
23061 conftest$ac_exeext conftest.$ac_ext
23064 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
23065 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
23068 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23070 for ac_func in bind_textdomain_codeset
23072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23086 #define $ac_func innocuous_$ac_func
23088 /* System header to define __stub macros and hopefully few prototypes,
23089 which can conflict with char $ac_func (); below.
23090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23091 <limits.h> exists even on freestanding compilers. */
23094 # include <limits.h>
23096 # include <assert.h>
23101 /* Override any GCC internal prototype to avoid an error.
23102 Use char because int might match the return type of a GCC
23103 builtin and then its argument prototype would still apply. */
23108 /* The GNU C library defines this for functions which it implements
23109 to always fail with ENOSYS. Some functions are actually named
23110 something starting with __ and the normal name is an alias. */
23111 #if defined __stub_$ac_func || defined __stub___$ac_func
23118 return $ac_func ();
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_link") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } &&
23137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23138 { (case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_try") 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; } &&
23147 { ac_try='test -s conftest$ac_exeext'
23148 { (case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_try") 2>&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 eval "$as_ac_var=yes"
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 eval "$as_ac_var=no"
23165 rm -f core conftest.err conftest.$ac_objext \
23166 conftest$ac_exeext conftest.$ac_ext
23168 ac_res=`eval echo '${'$as_ac_var'}'`
23169 { echo "$as_me:$LINENO: result: $ac_res" >&5
23170 echo "${ECHO_T}$ac_res" >&6; }
23171 if test `eval echo '${'$as_ac_var'}'` = yes; then
23172 cat >>confdefs.h <<_ACEOF
23173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23182 # If we don't have everything we want, check in libintl
23184 if test "$gt_cv_func_dgettext_libc" != "yes" \
23185 || test "$gt_cv_func_ngettext_libc" != "yes" \
23186 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
23188 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
23189 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
23190 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23193 ac_check_lib_save_LIBS=$LIBS
23194 LIBS="-lintl $LIBS"
23195 cat >conftest.$ac_ext <<_ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23202 /* Override any GCC internal prototype to avoid an error.
23203 Use char because int might match the return type of a GCC
23204 builtin and then its argument prototype would still apply. */
23208 char bindtextdomain ();
23212 return bindtextdomain ();
23217 rm -f conftest.$ac_objext conftest$ac_exeext
23218 if { (ac_try="$ac_link"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_link") 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } &&
23231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23232 { (case "(($ac_try" in
23233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237 (eval "$ac_try") 2>&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; } &&
23241 { ac_try='test -s conftest$ac_exeext'
23242 { (case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247 (eval "$ac_try") 2>&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; }; then
23251 ac_cv_lib_intl_bindtextdomain=yes
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23256 ac_cv_lib_intl_bindtextdomain=no
23259 rm -f core conftest.err conftest.$ac_objext \
23260 conftest$ac_exeext conftest.$ac_ext
23261 LIBS=$ac_check_lib_save_LIBS
23263 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
23264 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
23265 if test $ac_cv_lib_intl_bindtextdomain = yes; then
23266 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23267 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23268 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lintl $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23280 /* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23290 return ngettext ();
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_link") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1 >conftest.err
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } &&
23309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23310 { (case "(($ac_try" in
23311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312 *) ac_try_echo=$ac_try;;
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315 (eval "$ac_try") 2>&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; } &&
23319 { ac_try='test -s conftest$ac_exeext'
23320 { (case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_try") 2>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); }; }; then
23329 ac_cv_lib_intl_ngettext=yes
23331 echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23334 ac_cv_lib_intl_ngettext=no
23337 rm -f core conftest.err conftest.$ac_objext \
23338 conftest$ac_exeext conftest.$ac_ext
23339 LIBS=$ac_check_lib_save_LIBS
23341 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23342 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23343 if test $ac_cv_lib_intl_ngettext = yes; then
23344 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23345 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
23346 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23347 echo $ECHO_N "(cached) $ECHO_C" >&6
23349 ac_check_lib_save_LIBS=$LIBS
23350 LIBS="-lintl $LIBS"
23351 cat >conftest.$ac_ext <<_ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23358 /* Override any GCC internal prototype to avoid an error.
23359 Use char because int might match the return type of a GCC
23360 builtin and then its argument prototype would still apply. */
23368 return dgettext ();
23373 rm -f conftest.$ac_objext conftest$ac_exeext
23374 if { (ac_try="$ac_link"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380 (eval "$ac_link") 2>conftest.er1
23382 grep -v '^ *+' conftest.er1 >conftest.err
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } &&
23387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23388 { (case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_try") 2>&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; } &&
23397 { ac_try='test -s conftest$ac_exeext'
23398 { (case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_try") 2>&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23407 ac_cv_lib_intl_dgettext=yes
23409 echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23412 ac_cv_lib_intl_dgettext=no
23415 rm -f core conftest.err conftest.$ac_objext \
23416 conftest$ac_exeext conftest.$ac_ext
23417 LIBS=$ac_check_lib_save_LIBS
23419 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23420 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23421 if test $ac_cv_lib_intl_dgettext = yes; then
23422 gt_cv_func_dgettext_libintl=yes
23430 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
23431 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
23432 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
23433 { echo "$as_me:$LINENO: result: " >&5
23434 echo "${ECHO_T}" >&6; }
23435 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23436 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23437 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 ac_check_lib_save_LIBS=$LIBS
23441 LIBS="-lintl -liconv $LIBS"
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23449 /* Override any GCC internal prototype to avoid an error.
23450 Use char because int might match the return type of a GCC
23451 builtin and then its argument prototype would still apply. */
23459 return ngettext ();
23464 rm -f conftest.$ac_objext conftest$ac_exeext
23465 if { (ac_try="$ac_link"
23466 case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471 (eval "$ac_link") 2>conftest.er1
23473 grep -v '^ *+' conftest.er1 >conftest.err
23475 cat conftest.err >&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); } &&
23478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23479 { (case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484 (eval "$ac_try") 2>&5
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; } &&
23488 { ac_try='test -s conftest$ac_exeext'
23489 { (case "(($ac_try" in
23490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23491 *) ac_try_echo=$ac_try;;
23493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23494 (eval "$ac_try") 2>&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 ac_cv_lib_intl_ngettext=yes
23500 echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.$ac_ext >&5
23503 ac_cv_lib_intl_ngettext=no
23506 rm -f core conftest.err conftest.$ac_objext \
23507 conftest$ac_exeext conftest.$ac_ext
23508 LIBS=$ac_check_lib_save_LIBS
23510 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23511 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23512 if test $ac_cv_lib_intl_ngettext = yes; then
23513 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
23514 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
23515 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
23516 echo $ECHO_N "(cached) $ECHO_C" >&6
23518 ac_check_lib_save_LIBS=$LIBS
23519 LIBS="-lintl -liconv $LIBS"
23520 cat >conftest.$ac_ext <<_ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23527 /* Override any GCC internal prototype to avoid an error.
23528 Use char because int might match the return type of a GCC
23529 builtin and then its argument prototype would still apply. */
23537 return dcgettext ();
23542 rm -f conftest.$ac_objext conftest$ac_exeext
23543 if { (ac_try="$ac_link"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549 (eval "$ac_link") 2>conftest.er1
23551 grep -v '^ *+' conftest.er1 >conftest.err
23553 cat conftest.err >&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } &&
23556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23557 { (case "(($ac_try" in
23558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562 (eval "$ac_try") 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_try") 2>&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; }; then
23576 ac_cv_lib_intl_dcgettext=yes
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_cv_lib_intl_dcgettext=no
23584 rm -f core conftest.err conftest.$ac_objext \
23585 conftest$ac_exeext conftest.$ac_ext
23586 LIBS=$ac_check_lib_save_LIBS
23588 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
23589 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
23590 if test $ac_cv_lib_intl_dcgettext = yes; then
23591 gt_cv_func_dgettext_libintl=yes
23592 libintl_extra_libs=-liconv
23604 # If we found libintl, then check in it for bind_textdomain_codeset();
23605 # we'll prefer libc if neither have bind_textdomain_codeset(),
23606 # and both have dgettext and ngettext
23608 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
23609 glib_save_LIBS="$LIBS"
23610 LIBS="$LIBS -lintl $libintl_extra_libs"
23611 unset ac_cv_func_bind_textdomain_codeset
23613 for ac_func in bind_textdomain_codeset
23615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23629 #define $ac_func innocuous_$ac_func
23631 /* System header to define __stub macros and hopefully few prototypes,
23632 which can conflict with char $ac_func (); below.
23633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23634 <limits.h> exists even on freestanding compilers. */
23637 # include <limits.h>
23639 # include <assert.h>
23644 /* Override any GCC internal prototype to avoid an error.
23645 Use char because int might match the return type of a GCC
23646 builtin and then its argument prototype would still apply. */
23651 /* The GNU C library defines this for functions which it implements
23652 to always fail with ENOSYS. Some functions are actually named
23653 something starting with __ and the normal name is an alias. */
23654 #if defined __stub_$ac_func || defined __stub___$ac_func
23661 return $ac_func ();
23666 rm -f conftest.$ac_objext conftest$ac_exeext
23667 if { (ac_try="$ac_link"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_link") 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } &&
23680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23681 { (case "(($ac_try" in
23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683 *) ac_try_echo=$ac_try;;
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686 (eval "$ac_try") 2>&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; } &&
23690 { ac_try='test -s conftest$ac_exeext'
23691 { (case "(($ac_try" in
23692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696 (eval "$ac_try") 2>&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
23700 eval "$as_ac_var=yes"
23702 echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705 eval "$as_ac_var=no"
23708 rm -f core conftest.err conftest.$ac_objext \
23709 conftest$ac_exeext conftest.$ac_ext
23711 ac_res=`eval echo '${'$as_ac_var'}'`
23712 { echo "$as_me:$LINENO: result: $ac_res" >&5
23713 echo "${ECHO_T}$ac_res" >&6; }
23714 if test `eval echo '${'$as_ac_var'}'` = yes; then
23715 cat >>confdefs.h <<_ACEOF
23716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23722 LIBS="$glib_save_LIBS"
23724 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
23725 gt_cv_func_dgettext_libc=no
23727 if test "$gt_cv_func_dgettext_libc" = "yes" \
23728 && test "$gt_cv_func_ngettext_libc" = "yes"; then
23729 gt_cv_func_dgettext_libintl=no
23735 if test "$gt_cv_func_dgettext_libc" = "yes" \
23736 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
23737 gt_cv_have_gettext=yes
23740 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
23741 INTLLIBS="-lintl $libintl_extra_libs"
23744 if test "$gt_cv_have_gettext" = "yes"; then
23746 cat >>confdefs.h <<\_ACEOF
23747 #define HAVE_GETTEXT 1
23750 # Extract the first word of "msgfmt", so it can be a program name with args.
23751 set dummy msgfmt; ac_word=$2
23752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23754 if test "${ac_cv_path_MSGFMT+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23759 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23763 for ac_dir in $PATH; do
23764 test -z "$ac_dir" && ac_dir=.
23765 if test -f $ac_dir/$ac_word; then
23766 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
23767 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
23773 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
23777 MSGFMT="$ac_cv_path_MSGFMT"
23778 if test "$MSGFMT" != "no"; then
23779 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
23780 echo "${ECHO_T}$MSGFMT" >&6; }
23782 { echo "$as_me:$LINENO: result: no" >&5
23783 echo "${ECHO_T}no" >&6; }
23785 if test "$MSGFMT" != "no"; then
23786 glib_save_LIBS="$LIBS"
23787 LIBS="$LIBS $INTLLIBS"
23789 for ac_func in dcgettext
23791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23795 echo $ECHO_N "(cached) $ECHO_C" >&6
23797 cat >conftest.$ac_ext <<_ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23805 #define $ac_func innocuous_$ac_func
23807 /* System header to define __stub macros and hopefully few prototypes,
23808 which can conflict with char $ac_func (); below.
23809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23810 <limits.h> exists even on freestanding compilers. */
23813 # include <limits.h>
23815 # include <assert.h>
23820 /* Override any GCC internal prototype to avoid an error.
23821 Use char because int might match the return type of a GCC
23822 builtin and then its argument prototype would still apply. */
23827 /* The GNU C library defines this for functions which it implements
23828 to always fail with ENOSYS. Some functions are actually named
23829 something starting with __ and the normal name is an alias. */
23830 #if defined __stub_$ac_func || defined __stub___$ac_func
23837 return $ac_func ();
23842 rm -f conftest.$ac_objext conftest$ac_exeext
23843 if { (ac_try="$ac_link"
23844 case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849 (eval "$ac_link") 2>conftest.er1
23851 grep -v '^ *+' conftest.er1 >conftest.err
23853 cat conftest.err >&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } &&
23856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23857 { (case "(($ac_try" in
23858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23859 *) ac_try_echo=$ac_try;;
23861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23862 (eval "$ac_try") 2>&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; } &&
23866 { ac_try='test -s conftest$ac_exeext'
23867 { (case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872 (eval "$ac_try") 2>&5
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); }; }; then
23876 eval "$as_ac_var=yes"
23878 echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23881 eval "$as_ac_var=no"
23884 rm -f core conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
23887 ac_res=`eval echo '${'$as_ac_var'}'`
23888 { echo "$as_me:$LINENO: result: $ac_res" >&5
23889 echo "${ECHO_T}$ac_res" >&6; }
23890 if test `eval echo '${'$as_ac_var'}'` = yes; then
23891 cat >>confdefs.h <<_ACEOF
23892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23899 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
23900 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
23901 cat >conftest.foo <<_ACEOF
23905 "Content-Type: text/plain; charset=UTF-8\n"
23906 "Project-Id-Version: test 1.0\n"
23907 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
23908 "Last-Translator: test <foo@bar.xx>\n"
23909 "Language-Team: C <LL@li.org>\n"
23910 "MIME-Version: 1.0\n"
23911 "Content-Transfer-Encoding: 8bit\n"
23914 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
23915 (msgfmt -c -o /dev/null conftest.foo) 2>&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; then
23919 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
23920 echo "${ECHO_T}yes" >&6; }
23921 else { echo "$as_me:$LINENO: result: no" >&5
23922 echo "${ECHO_T}no" >&6; }
23923 echo "$as_me: failed input was:" >&5
23924 sed 's/^/| /' conftest.foo >&5
23927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
23928 set dummy gmsgfmt; ac_word=$2
23929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23931 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23936 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23940 for as_dir in $PATH
23943 test -z "$as_dir" && as_dir=.
23944 for ac_exec_ext in '' $ac_executable_extensions; do
23945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23946 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23954 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23958 GMSGFMT=$ac_cv_path_GMSGFMT
23959 if test -n "$GMSGFMT"; then
23960 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23961 echo "${ECHO_T}$GMSGFMT" >&6; }
23963 { echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6; }
23968 # Extract the first word of "xgettext", so it can be a program name with args.
23969 set dummy xgettext; ac_word=$2
23970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23972 if test "${ac_cv_path_XGETTEXT+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23975 case "$XGETTEXT" in
23977 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23981 for ac_dir in $PATH; do
23982 test -z "$ac_dir" && ac_dir=.
23983 if test -f $ac_dir/$ac_word; then
23984 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23985 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23991 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23995 XGETTEXT="$ac_cv_path_XGETTEXT"
23996 if test "$XGETTEXT" != ":"; then
23997 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23998 echo "${ECHO_T}$XGETTEXT" >&6; }
24000 { echo "$as_me:$LINENO: result: no" >&5
24001 echo "${ECHO_T}no" >&6; }
24004 cat >conftest.$ac_ext <<_ACEOF
24007 cat confdefs.h >>conftest.$ac_ext
24008 cat >>conftest.$ac_ext <<_ACEOF
24009 /* end confdefs.h. */
24014 extern int _nl_msg_cat_cntr;
24015 return _nl_msg_cat_cntr
24020 rm -f conftest.$ac_objext conftest$ac_exeext
24021 if { (ac_try="$ac_link"
24022 case "(($ac_try" in
24023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024 *) ac_try_echo=$ac_try;;
24026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24027 (eval "$ac_link") 2>conftest.er1
24029 grep -v '^ *+' conftest.er1 >conftest.err
24031 cat conftest.err >&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } &&
24034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24035 { (case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040 (eval "$ac_try") 2>&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); }; } &&
24044 { ac_try='test -s conftest$ac_exeext'
24045 { (case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24050 (eval "$ac_try") 2>&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; }; then
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24062 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
24063 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
24064 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
24065 echo $ECHO_N "(cached) $ECHO_C" >&6
24067 cat >conftest.$ac_ext <<_ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h. */
24073 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
24074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24075 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
24077 /* System header to define __stub macros and hopefully few prototypes,
24078 which can conflict with char bind_textdomain_codeset (); below.
24079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24080 <limits.h> exists even on freestanding compilers. */
24083 # include <limits.h>
24085 # include <assert.h>
24088 #undef bind_textdomain_codeset
24090 /* Override any GCC internal prototype to avoid an error.
24091 Use char because int might match the return type of a GCC
24092 builtin and then its argument prototype would still apply. */
24096 char bind_textdomain_codeset ();
24097 /* The GNU C library defines this for functions which it implements
24098 to always fail with ENOSYS. Some functions are actually named
24099 something starting with __ and the normal name is an alias. */
24100 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
24107 return bind_textdomain_codeset ();
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (ac_try="$ac_link"
24114 case "(($ac_try" in
24115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116 *) ac_try_echo=$ac_try;;
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119 (eval "$ac_link") 2>conftest.er1
24121 grep -v '^ *+' conftest.er1 >conftest.err
24123 cat conftest.err >&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } &&
24126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24127 { (case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132 (eval "$ac_try") 2>&5
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; } &&
24136 { ac_try='test -s conftest$ac_exeext'
24137 { (case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24142 (eval "$ac_try") 2>&5
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); }; }; then
24146 ac_cv_func_bind_textdomain_codeset=yes
24148 echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24151 ac_cv_func_bind_textdomain_codeset=no
24154 rm -f core conftest.err conftest.$ac_objext \
24155 conftest$ac_exeext conftest.$ac_ext
24157 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
24158 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
24159 if test $ac_cv_func_bind_textdomain_codeset = yes; then
24175 rm -f core conftest.err conftest.$ac_objext \
24176 conftest$ac_exeext conftest.$ac_ext
24177 LIBS="$glib_save_LIBS"
24180 gt_cv_have_gettext=no
24188 if test "$gt_cv_have_gettext" = "yes" ; then
24190 cat >>confdefs.h <<\_ACEOF
24191 #define ENABLE_NLS 1
24196 if test "$XGETTEXT" != ":"; then
24197 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
24200 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24201 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
24206 # We need to process the po/ directory.
24209 ac_config_commands="$ac_config_commands default-1"
24212 for lang in $ALL_LINGUAS; do
24213 GMOFILES="$GMOFILES $lang.gmo"
24214 POFILES="$POFILES $lang.po"
24229 if test "$gt_cv_have_gettext" = "yes"; then
24230 if test "x$ALL_LINGUAS" = "x"; then
24233 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
24234 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
24236 for presentlang in $ALL_LINGUAS; do
24238 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
24239 desiredlanguages="$LINGUAS"
24241 desiredlanguages="$ALL_LINGUAS"
24243 for desiredlang in $desiredlanguages; do
24244 # Use the presentlang catalog if desiredlang is
24245 # a. equal to presentlang, or
24246 # b. a variant of presentlang (because in this case,
24247 # presentlang can be used as a fallback for messages
24248 # which are not translated in the desiredlang catalog).
24249 case "$desiredlang" in
24250 "$presentlang"*) useit=yes;;
24253 if test $useit = yes; then
24254 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
24257 LINGUAS=$NEW_LINGUAS
24258 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
24259 echo "${ECHO_T}$LINGUAS" >&6; }
24262 if test -n "$LINGUAS"; then
24263 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
24268 if test -n "$ac_aux_dir"; then
24269 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
24271 if test -z "$MKINSTALLDIRS"; then
24272 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24276 test -d po || mkdir po
24277 if test "x$srcdir" != "x."; then
24278 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
24279 posrcprefix="$srcdir/"
24281 posrcprefix="../$srcdir/"
24287 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
24288 < $srcdir/po/POTFILES.in > po/POTFILES
24291 # AM_GNU_GETTEXT above substs $DATADIRNAME
24292 # this is the directory where the *.{mo,gmo} files are installed
24293 gconflocaledir='${prefix}/${DATADIRNAME}/locale'
24297 for ac_func in bind_textdomain_codeset
24299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24305 cat >conftest.$ac_ext <<_ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24313 #define $ac_func innocuous_$ac_func
24315 /* System header to define __stub macros and hopefully few prototypes,
24316 which can conflict with char $ac_func (); below.
24317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24318 <limits.h> exists even on freestanding compilers. */
24321 # include <limits.h>
24323 # include <assert.h>
24328 /* Override any GCC internal prototype to avoid an error.
24329 Use char because int might match the return type of a GCC
24330 builtin and then its argument prototype would still apply. */
24335 /* The GNU C library defines this for functions which it implements
24336 to always fail with ENOSYS. Some functions are actually named
24337 something starting with __ and the normal name is an alias. */
24338 #if defined __stub_$ac_func || defined __stub___$ac_func
24345 return $ac_func ();
24350 rm -f conftest.$ac_objext conftest$ac_exeext
24351 if { (ac_try="$ac_link"
24352 case "(($ac_try" in
24353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354 *) ac_try_echo=$ac_try;;
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357 (eval "$ac_link") 2>conftest.er1
24359 grep -v '^ *+' conftest.er1 >conftest.err
24361 cat conftest.err >&5
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); } &&
24364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24365 { (case "(($ac_try" in
24366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367 *) ac_try_echo=$ac_try;;
24369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24370 (eval "$ac_try") 2>&5
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); }; } &&
24374 { ac_try='test -s conftest$ac_exeext'
24375 { (case "(($ac_try" in
24376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377 *) ac_try_echo=$ac_try;;
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380 (eval "$ac_try") 2>&5
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; }; then
24384 eval "$as_ac_var=yes"
24386 echo "$as_me: failed program was:" >&5
24387 sed 's/^/| /' conftest.$ac_ext >&5
24389 eval "$as_ac_var=no"
24392 rm -f core conftest.err conftest.$ac_objext \
24393 conftest$ac_exeext conftest.$ac_ext
24395 ac_res=`eval echo '${'$as_ac_var'}'`
24396 { echo "$as_me:$LINENO: result: $ac_res" >&5
24397 echo "${ECHO_T}$ac_res" >&6; }
24398 if test `eval echo '${'$as_ac_var'}'` = yes; then
24399 cat >>confdefs.h <<_ACEOF
24400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24411 ## Just for debugging purposes
24412 absolute_top_srcdir=`pwd`
24415 # define a MAINT-like variable REBUILD which is set if Perl
24416 # and awk are found, so autogenerated sources can be rebuilt
24418 for ac_prog in gawk mawk nawk awk
24420 # Extract the first word of "$ac_prog", so it can be a program name with args.
24421 set dummy $ac_prog; ac_word=$2
24422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24424 if test "${ac_cv_prog_AWK+set}" = set; then
24425 echo $ECHO_N "(cached) $ECHO_C" >&6
24427 if test -n "$AWK"; then
24428 ac_cv_prog_AWK="$AWK" # Let the user override the test.
24430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24431 for as_dir in $PATH
24434 test -z "$as_dir" && as_dir=.
24435 for ac_exec_ext in '' $ac_executable_extensions; do
24436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24437 ac_cv_prog_AWK="$ac_prog"
24438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24447 AWK=$ac_cv_prog_AWK
24448 if test -n "$AWK"; then
24449 { echo "$as_me:$LINENO: result: $AWK" >&5
24450 echo "${ECHO_T}$AWK" >&6; }
24452 { echo "$as_me:$LINENO: result: no" >&5
24453 echo "${ECHO_T}no" >&6; }
24457 test -n "$AWK" && break
24460 for ac_prog in perl5 perl
24462 # Extract the first word of "$ac_prog", so it can be a program name with args.
24463 set dummy $ac_prog; ac_word=$2
24464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24466 if test "${ac_cv_prog_PERL+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 if test -n "$PERL"; then
24470 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24473 for as_dir in $PATH
24476 test -z "$as_dir" && as_dir=.
24477 for ac_exec_ext in '' $ac_executable_extensions; do
24478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24479 ac_cv_prog_PERL="$ac_prog"
24480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24489 PERL=$ac_cv_prog_PERL
24490 if test -n "$PERL"; then
24491 { echo "$as_me:$LINENO: result: $PERL" >&5
24492 echo "${ECHO_T}$PERL" >&6; }
24494 { echo "$as_me:$LINENO: result: no" >&5
24495 echo "${ECHO_T}no" >&6; }
24499 test -n "$PERL" && break
24503 # We would like indent, but don't require it.
24504 # Extract the first word of "indent", so it can be a program name with args.
24505 set dummy indent; ac_word=$2
24506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24508 if test "${ac_cv_prog_INDENT+set}" = set; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24511 if test -n "$INDENT"; then
24512 ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
24514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24515 for as_dir in $PATH
24518 test -z "$as_dir" && as_dir=.
24519 for ac_exec_ext in '' $ac_executable_extensions; do
24520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24521 ac_cv_prog_INDENT="indent"
24522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24531 INDENT=$ac_cv_prog_INDENT
24532 if test -n "$INDENT"; then
24533 { echo "$as_me:$LINENO: result: $INDENT" >&5
24534 echo "${ECHO_T}$INDENT" >&6; }
24536 { echo "$as_me:$LINENO: result: no" >&5
24537 echo "${ECHO_T}no" >&6; }
24543 if test -n "$PERL" && $PERL -v | grep 'version 5.' > /dev/null ; then
24546 # The version string for perl changed for 'version 5' to 'v5' in
24547 # perl 5.6 or therabouts
24548 if test -n "$PERL" && $PERL -v | grep 'v5.' > /dev/null ; then
24554 if test $_found_perl -eq 1; then
24555 if test -n "$AWK" ; then
24561 ac_config_files="$ac_config_files Makefile gconf-2.m4 gconf-zip gconf/Makefile backends/Makefile po/Makefile.in doc/Makefile doc/gconf/Makefile examples/Makefile tests/Makefile dbus-tests/Makefile gconf-2.0.pc"
24563 cat >confcache <<\_ACEOF
24564 # This file is a shell script that caches the results of configure
24565 # tests run on this system so they can be shared between configure
24566 # scripts and configure runs, see configure's option --config-cache.
24567 # It is not useful on other systems. If it contains results you don't
24568 # want to keep, you may remove or edit it.
24570 # config.status only pays attention to the cache file if you give it
24571 # the --recheck option to rerun configure.
24573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24575 # following values.
24579 # The following way of writing the cache mishandles newlines in values,
24580 # but we know of no workaround that is simple, portable, and efficient.
24581 # So, we kill variables containing newlines.
24582 # Ultrix sh set writes to stderr and can't be redirected directly,
24583 # and sets the high bit in the cache file unless we assign to the vars.
24585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24586 eval ac_val=\$$ac_var
24590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24594 _ | IFS | as_nl) ;; #(
24595 *) $as_unset $ac_var ;;
24601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24602 *${as_nl}ac_space=\ *)
24603 # `set' does not quote correctly, so add quotes (double-quote
24604 # substitution turns \\\\ into \\, and sed turns \\ into \).
24607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24610 # `set' quotes correctly as required by POSIX, so do not add quotes.
24611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24625 if test -w "$cache_file"; then
24626 test "x$cache_file" != "x/dev/null" &&
24627 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24628 echo "$as_me: updating cache $cache_file" >&6;}
24629 cat confcache >$cache_file
24631 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24632 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24638 # Let make expand exec_prefix.
24639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24641 DEFS=-DHAVE_CONFIG_H
24645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24646 # 1. Remove the extension, and $U if already installed.
24647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24648 ac_i=`echo "$ac_i" | sed "$ac_script"`
24649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24650 # will be set to the directory where LIBOBJS objects are built.
24651 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24652 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24654 LIBOBJS=$ac_libobjs
24656 LTLIBOBJS=$ac_ltlibobjs
24659 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24660 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24661 Usually this means the macro was only invoked conditionally." >&5
24662 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24663 Usually this means the macro was only invoked conditionally." >&2;}
24664 { (exit 1); exit 1; }; }
24666 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
24667 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
24668 Usually this means the macro was only invoked conditionally." >&5
24669 echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
24670 Usually this means the macro was only invoked conditionally." >&2;}
24671 { (exit 1); exit 1; }; }
24673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24674 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24675 Usually this means the macro was only invoked conditionally." >&5
24676 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24677 Usually this means the macro was only invoked conditionally." >&2;}
24678 { (exit 1); exit 1; }; }
24680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24681 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24682 Usually this means the macro was only invoked conditionally." >&5
24683 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24684 Usually this means the macro was only invoked conditionally." >&2;}
24685 { (exit 1); exit 1; }; }
24687 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24688 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24689 Usually this means the macro was only invoked conditionally." >&5
24690 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24691 Usually this means the macro was only invoked conditionally." >&2;}
24692 { (exit 1); exit 1; }; }
24694 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
24695 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24696 Usually this means the macro was only invoked conditionally." >&5
24697 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24698 Usually this means the macro was only invoked conditionally." >&2;}
24699 { (exit 1); exit 1; }; }
24701 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
24702 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24703 Usually this means the macro was only invoked conditionally." >&5
24704 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24705 Usually this means the macro was only invoked conditionally." >&2;}
24706 { (exit 1); exit 1; }; }
24708 if test -z "${USE_SYSTEM_BUS_TRUE}" && test -z "${USE_SYSTEM_BUS_FALSE}"; then
24709 { { echo "$as_me:$LINENO: error: conditional \"USE_SYSTEM_BUS\" was never defined.
24710 Usually this means the macro was only invoked conditionally." >&5
24711 echo "$as_me: error: conditional \"USE_SYSTEM_BUS\" was never defined.
24712 Usually this means the macro was only invoked conditionally." >&2;}
24713 { (exit 1); exit 1; }; }
24715 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
24716 { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined.
24717 Usually this means the macro was only invoked conditionally." >&5
24718 echo "$as_me: error: conditional \"GTK\" was never defined.
24719 Usually this means the macro was only invoked conditionally." >&2;}
24720 { (exit 1); exit 1; }; }
24722 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
24723 { { echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
24724 Usually this means the macro was only invoked conditionally." >&5
24725 echo "$as_me: error: conditional \"PTHREADS\" was never defined.
24726 Usually this means the macro was only invoked conditionally." >&2;}
24727 { (exit 1); exit 1; }; }
24729 if test -z "${LDAP_SUPPORT_TRUE}" && test -z "${LDAP_SUPPORT_FALSE}"; then
24730 { { echo "$as_me:$LINENO: error: conditional \"LDAP_SUPPORT\" was never defined.
24731 Usually this means the macro was only invoked conditionally." >&5
24732 echo "$as_me: error: conditional \"LDAP_SUPPORT\" was never defined.
24733 Usually this means the macro was only invoked conditionally." >&2;}
24734 { (exit 1); exit 1; }; }
24737 ac_config_commands="$ac_config_commands po/stamp-it"
24741 : ${CONFIG_STATUS=./config.status}
24742 ac_clean_files_save=$ac_clean_files
24743 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24744 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24745 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24746 cat >$CONFIG_STATUS <<_ACEOF
24748 # Generated by $as_me.
24749 # Run this file to recreate the current configuration.
24750 # Compiler output produced by configure, useful for debugging
24751 # configure, is in config.log if it exists.
24754 ac_cs_recheck=false
24756 SHELL=\${CONFIG_SHELL-$SHELL}
24759 cat >>$CONFIG_STATUS <<\_ACEOF
24760 ## --------------------- ##
24761 ## M4sh Initialization. ##
24762 ## --------------------- ##
24764 # Be Bourne compatible
24765 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24768 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24769 # is contrary to our usage. Disable this feature.
24770 alias -g '${1+"$@"}'='"$@"'
24771 setopt NO_GLOB_SUBST
24773 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24775 BIN_SH=xpg4; export BIN_SH # for Tru64
24776 DUALCASE=1; export DUALCASE # for MKS sh
24780 # Avoid depending upon Character Ranges.
24781 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24782 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24783 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24784 as_cr_digits='0123456789'
24785 as_cr_alnum=$as_cr_Letters$as_cr_digits
24787 # The user is always right.
24788 if test "${PATH_SEPARATOR+set}" != set; then
24789 echo "#! /bin/sh" >conf$$.sh
24790 echo "exit 0" >>conf$$.sh
24792 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24800 # Support unset when possible.
24801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24809 # We need space, tab and new line, in precisely that order. Quoting is
24810 # there to prevent editors from complaining about space-tab.
24811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24812 # splitting by setting IFS to empty value.)
24817 # Find who we are. Look in the path if we contain no directory separator.
24819 *[\\/]* ) as_myself=$0 ;;
24820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24821 for as_dir in $PATH
24824 test -z "$as_dir" && as_dir=.
24825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24831 # We did not find ourselves, most probably we were run as `sh COMMAND'
24832 # in which case we are not to be found in the path.
24833 if test "x$as_myself" = x; then
24836 if test ! -f "$as_myself"; then
24837 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24838 { (exit 1); exit 1; }
24841 # Work around bugs in pre-3.0 UWIN ksh.
24842 for as_var in ENV MAIL MAILPATH
24843 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24851 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24852 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24853 LC_TELEPHONE LC_TIME
24855 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24856 eval $as_var=C; export $as_var
24858 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24862 # Required to use basename.
24863 if expr a : '\(a\)' >/dev/null 2>&1 &&
24864 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24871 as_basename=basename
24877 # Name of the executable.
24878 as_me=`$as_basename -- "$0" ||
24879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24880 X"$0" : 'X\(//\)$' \| \
24881 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24883 sed '/^.*\/\([^/][^/]*\)\/*$/{
24902 as_lineno_1=$LINENO
24903 as_lineno_2=$LINENO
24904 test "x$as_lineno_1" != "x$as_lineno_2" &&
24905 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24907 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24908 # uniformly replaced by the line number. The first 'sed' inserts a
24909 # line-number line after each line using $LINENO; the second 'sed'
24910 # does the real work. The second script uses 'N' to pair each
24911 # line-number line with the line containing $LINENO, and appends
24912 # trailing '-' during substitution so that $LINENO is not a special
24913 # case at line end.
24914 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24915 # scripts with optimization help from Paolo Bonzini. Blame Lee
24916 # E. McMahon (1931-1989) for sed's syntax. :-)
24928 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24931 ' >$as_me.lineno &&
24932 chmod +x "$as_me.lineno" ||
24933 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24934 { (exit 1); exit 1; }; }
24936 # Don't try to exec as it changes $[0], causing all sort of problems
24937 # (the dirname of $[0] is not the place where we might find the
24938 # original and so on. Autoconf is especially sensitive to this).
24939 . "./$as_me.lineno"
24940 # Exit status is that of the last command.
24945 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24951 ECHO_C= ECHO_N= ECHO_T=
24952 case `echo -n x` in
24954 case `echo 'x\c'` in
24955 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24962 if expr a : '\(a\)' >/dev/null 2>&1 &&
24963 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24969 rm -f conf$$ conf$$.exe conf$$.file
24970 if test -d conf$$.dir; then
24971 rm -f conf$$.dir/conf$$.file
24977 if ln -s conf$$.file conf$$ 2>/dev/null; then
24979 # ... but there are two gotchas:
24980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24982 # In both cases, we have to default to `cp -p'.
24983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24985 elif ln conf$$.file conf$$ 2>/dev/null; then
24990 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24991 rmdir conf$$.dir 2>/dev/null
24993 if mkdir -p . 2>/dev/null; then
24996 test -d ./-p && rmdir ./-p
25000 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
25001 # systems may use methods other than mode bits to determine executability.
25002 cat >conf$$.file <<_ASEOF
25006 chmod +x conf$$.file
25007 if test -x conf$$.file >/dev/null 2>&1; then
25008 as_executable_p="test -x"
25014 # Sed expression to map a string onto a valid CPP name.
25015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25017 # Sed expression to map a string onto a valid variable name.
25018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25023 # Save the log message, to keep $[0] and so on meaningful, and to
25024 # report actual input values of CONFIG_FILES etc. instead of their
25025 # values after options handling.
25027 This file was extended by $as_me, which was
25028 generated by GNU Autoconf 2.60. Invocation command line was
25030 CONFIG_FILES = $CONFIG_FILES
25031 CONFIG_HEADERS = $CONFIG_HEADERS
25032 CONFIG_LINKS = $CONFIG_LINKS
25033 CONFIG_COMMANDS = $CONFIG_COMMANDS
25036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25041 cat >>$CONFIG_STATUS <<_ACEOF
25042 # Files that config.status was made for.
25043 config_files="$ac_config_files"
25044 config_headers="$ac_config_headers"
25045 config_commands="$ac_config_commands"
25049 cat >>$CONFIG_STATUS <<\_ACEOF
25051 \`$as_me' instantiates files from templates according to the
25052 current configuration.
25054 Usage: $0 [OPTIONS] [FILE]...
25056 -h, --help print this help, then exit
25057 -V, --version print version number, then exit
25058 -q, --quiet do not print progress messages
25059 -d, --debug don't remove temporary files
25060 --recheck update $as_me by reconfiguring in the same conditions
25061 --file=FILE[:TEMPLATE]
25062 instantiate the configuration file FILE
25063 --header=FILE[:TEMPLATE]
25064 instantiate the configuration header FILE
25066 Configuration files:
25069 Configuration headers:
25072 Configuration commands:
25075 Report bugs to <bug-autoconf@gnu.org>."
25078 cat >>$CONFIG_STATUS <<_ACEOF
25081 configured by $0, generated by GNU Autoconf 2.60,
25082 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25084 Copyright (C) 2006 Free Software Foundation, Inc.
25085 This config.status script is free software; the Free Software Foundation
25086 gives unlimited permission to copy, distribute and modify it."
25093 cat >>$CONFIG_STATUS <<\_ACEOF
25094 # If no file are specified by the user, then we need to provide default
25095 # value. By we need to know if files were specified by the user.
25101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25113 # Handling of the options.
25114 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25116 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25117 echo "$ac_cs_version"; exit ;;
25118 --debug | --debu | --deb | --de | --d | -d )
25120 --file | --fil | --fi | --f )
25122 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25123 ac_need_defaults=false;;
25124 --header | --heade | --head | --hea )
25126 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25127 ac_need_defaults=false;;
25129 # Conflict between --help and --header
25130 { echo "$as_me: error: ambiguous option: $1
25131 Try \`$0 --help' for more information." >&2
25132 { (exit 1); exit 1; }; };;
25133 --help | --hel | -h )
25134 echo "$ac_cs_usage"; exit ;;
25135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25139 # This is an error.
25140 -*) { echo "$as_me: error: unrecognized option: $1
25141 Try \`$0 --help' for more information." >&2
25142 { (exit 1); exit 1; }; } ;;
25144 *) ac_config_targets="$ac_config_targets $1"
25145 ac_need_defaults=false ;;
25151 ac_configure_extra_args=
25153 if $ac_cs_silent; then
25155 ac_configure_extra_args="$ac_configure_extra_args --silent"
25159 cat >>$CONFIG_STATUS <<_ACEOF
25160 if \$ac_cs_recheck; then
25161 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25162 CONFIG_SHELL=$SHELL
25163 export CONFIG_SHELL
25164 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25168 cat >>$CONFIG_STATUS <<\_ACEOF
25172 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25173 ## Running $as_me. ##
25179 cat >>$CONFIG_STATUS <<_ACEOF
25183 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25184 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
25185 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
25186 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
25191 cat >>$CONFIG_STATUS <<\_ACEOF
25193 # Handling of arguments.
25194 for ac_config_target in $ac_config_targets
25196 case $ac_config_target in
25197 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25198 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25199 "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
25200 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25202 "gconf-2.m4") CONFIG_FILES="$CONFIG_FILES gconf-2.m4" ;;
25203 "gconf-zip") CONFIG_FILES="$CONFIG_FILES gconf-zip" ;;
25204 "gconf/Makefile") CONFIG_FILES="$CONFIG_FILES gconf/Makefile" ;;
25205 "backends/Makefile") CONFIG_FILES="$CONFIG_FILES backends/Makefile" ;;
25206 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25207 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25208 "doc/gconf/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gconf/Makefile" ;;
25209 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25210 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25211 "dbus-tests/Makefile") CONFIG_FILES="$CONFIG_FILES dbus-tests/Makefile" ;;
25212 "gconf-2.0.pc") CONFIG_FILES="$CONFIG_FILES gconf-2.0.pc" ;;
25213 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
25215 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25216 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25217 { (exit 1); exit 1; }; };;
25222 # If the user did not use the arguments to specify the items to instantiate,
25223 # then the envvar interface is used. Set only those that are not.
25224 # We use the long form for the default assignment because of an extremely
25225 # bizarre bug on SunOS 4.1.3.
25226 if $ac_need_defaults; then
25227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25232 # Have a temporary directory for convenience. Make it in the build tree
25233 # simply because there is no reason against having it here, and in addition,
25234 # creating and moving files from /tmp can sometimes cause problems.
25235 # Hook for its removal unless debugging.
25236 # Note that there is a small window in which the directory will not be cleaned:
25237 # after its creation but before its name has been assigned to `$tmp'.
25241 trap 'exit_status=$?
25242 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25244 trap '{ (exit 1); exit 1; }' 1 2 13 15
25246 # Create a (secure) tmp directory for tmp files.
25249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25250 test -n "$tmp" && test -d "$tmp"
25253 tmp=./conf$$-$RANDOM
25254 (umask 077 && mkdir "$tmp")
25257 echo "$me: cannot create a temporary directory in ." >&2
25258 { (exit 1); exit 1; }
25262 # Set up the sed scripts for CONFIG_FILES section.
25265 # No need to generate the scripts if there are no CONFIG_FILES.
25266 # This happens for instance when ./config.status config.h
25267 if test -n "$CONFIG_FILES"; then
25274 for ac_last_try in false false false false false :; do
25275 cat >conf$$subs.sed <<_ACEOF
25276 SHELL!$SHELL$ac_delim
25277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25283 exec_prefix!$exec_prefix$ac_delim
25284 prefix!$prefix$ac_delim
25285 program_transform_name!$program_transform_name$ac_delim
25286 bindir!$bindir$ac_delim
25287 sbindir!$sbindir$ac_delim
25288 libexecdir!$libexecdir$ac_delim
25289 datarootdir!$datarootdir$ac_delim
25290 datadir!$datadir$ac_delim
25291 sysconfdir!$sysconfdir$ac_delim
25292 sharedstatedir!$sharedstatedir$ac_delim
25293 localstatedir!$localstatedir$ac_delim
25294 includedir!$includedir$ac_delim
25295 oldincludedir!$oldincludedir$ac_delim
25296 docdir!$docdir$ac_delim
25297 infodir!$infodir$ac_delim
25298 htmldir!$htmldir$ac_delim
25299 dvidir!$dvidir$ac_delim
25300 pdfdir!$pdfdir$ac_delim
25301 psdir!$psdir$ac_delim
25302 libdir!$libdir$ac_delim
25303 localedir!$localedir$ac_delim
25304 mandir!$mandir$ac_delim
25305 DEFS!$DEFS$ac_delim
25306 ECHO_C!$ECHO_C$ac_delim
25307 ECHO_N!$ECHO_N$ac_delim
25308 ECHO_T!$ECHO_T$ac_delim
25309 LIBS!$LIBS$ac_delim
25310 build_alias!$build_alias$ac_delim
25311 host_alias!$host_alias$ac_delim
25312 target_alias!$target_alias$ac_delim
25313 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25314 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25315 INSTALL_DATA!$INSTALL_DATA$ac_delim
25316 CYGPATH_W!$CYGPATH_W$ac_delim
25317 PACKAGE!$PACKAGE$ac_delim
25318 VERSION!$VERSION$ac_delim
25319 ACLOCAL!$ACLOCAL$ac_delim
25320 AUTOCONF!$AUTOCONF$ac_delim
25321 AUTOMAKE!$AUTOMAKE$ac_delim
25322 AUTOHEADER!$AUTOHEADER$ac_delim
25323 MAKEINFO!$MAKEINFO$ac_delim
25324 AMTAR!$AMTAR$ac_delim
25325 install_sh!$install_sh$ac_delim
25326 STRIP!$STRIP$ac_delim
25327 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25329 SET_MAKE!$SET_MAKE$ac_delim
25330 am__leading_dot!$am__leading_dot$ac_delim
25331 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25332 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25333 MAINT!$MAINT$ac_delim
25334 build!$build$ac_delim
25335 build_cpu!$build_cpu$ac_delim
25336 build_vendor!$build_vendor$ac_delim
25337 build_os!$build_os$ac_delim
25338 host!$host$ac_delim
25339 host_cpu!$host_cpu$ac_delim
25340 host_vendor!$host_vendor$ac_delim
25341 host_os!$host_os$ac_delim
25342 OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
25343 OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
25345 CFLAGS!$CFLAGS$ac_delim
25346 LDFLAGS!$LDFLAGS$ac_delim
25347 CPPFLAGS!$CPPFLAGS$ac_delim
25348 ac_ct_CC!$ac_ct_CC$ac_delim
25349 EXEEXT!$EXEEXT$ac_delim
25350 OBJEXT!$OBJEXT$ac_delim
25351 DEPDIR!$DEPDIR$ac_delim
25352 am__include!$am__include$ac_delim
25353 am__quote!$am__quote$ac_delim
25354 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25355 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25356 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25357 CCDEPMODE!$CCDEPMODE$ac_delim
25358 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25359 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25361 CXXFLAGS!$CXXFLAGS$ac_delim
25362 ac_ct_CXX!$ac_ct_CXX$ac_delim
25363 CXXDEPMODE!$CXXDEPMODE$ac_delim
25364 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25365 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25367 GREP!$GREP$ac_delim
25368 EGREP!$EGREP$ac_delim
25369 LN_S!$LN_S$ac_delim
25370 ECHO!$ECHO$ac_delim
25372 RANLIB!$RANLIB$ac_delim
25375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25377 elif $ac_last_try; then
25378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25380 { (exit 1); exit 1; }; }
25382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25387 if test -n "$ac_eof"; then
25388 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25389 ac_eof=`expr $ac_eof + 1`
25392 cat >>$CONFIG_STATUS <<_ACEOF
25393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25398 s/^/s,@/; s/!/@,|#_!!_#|/
25401 s/'"$ac_delim"'$/,g/; t
25403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25404 ' >>$CONFIG_STATUS <conf$$subs.sed
25405 rm -f conf$$subs.sed
25406 cat >>$CONFIG_STATUS <<_ACEOF
25412 for ac_last_try in false false false false false :; do
25413 cat >conf$$subs.sed <<_ACEOF
25414 DLLTOOL!$DLLTOOL$ac_delim
25416 OBJDUMP!$OBJDUMP$ac_delim
25417 CXXCPP!$CXXCPP$ac_delim
25419 FFLAGS!$FFLAGS$ac_delim
25420 ac_ct_F77!$ac_ct_F77$ac_delim
25421 LIBTOOL!$LIBTOOL$ac_delim
25422 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
25423 MAJOR_VERSION!$MAJOR_VERSION$ac_delim
25424 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
25425 GCONF_CURRENT!$GCONF_CURRENT$ac_delim
25426 GCONF_REVISION!$GCONF_REVISION$ac_delim
25427 GCONF_AGE!$GCONF_AGE$ac_delim
25428 sysconfsubdir!$sysconfsubdir$ac_delim
25429 sysgconfdir!$sysgconfdir$ac_delim
25430 HTML_DIR!$HTML_DIR$ac_delim
25431 PKG_CONFIG!$PKG_CONFIG$ac_delim
25432 GTKDOC_CHECK!$GTKDOC_CHECK$ac_delim
25433 ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
25434 ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
25435 GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
25436 GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim
25437 USE_SYSTEM_BUS_TRUE!$USE_SYSTEM_BUS_TRUE$ac_delim
25438 USE_SYSTEM_BUS_FALSE!$USE_SYSTEM_BUS_FALSE$ac_delim
25439 DBUS_SERVICE_DIR!$DBUS_SERVICE_DIR$ac_delim
25440 DEPENDENT_CFLAGS!$DEPENDENT_CFLAGS$ac_delim
25441 DEPENDENT_LIBS!$DEPENDENT_LIBS$ac_delim
25442 DEPENDENT_WITH_XML_CFLAGS!$DEPENDENT_WITH_XML_CFLAGS$ac_delim
25443 DEPENDENT_WITH_XML_LIBS!$DEPENDENT_WITH_XML_LIBS$ac_delim
25444 DEPENDENT_WITH_GTK_CFLAGS!$DEPENDENT_WITH_GTK_CFLAGS$ac_delim
25445 DEPENDENT_WITH_GTK_LIBS!$DEPENDENT_WITH_GTK_LIBS$ac_delim
25446 DEPENDENT_WITH_XML_AND_GTK_CFLAGS!$DEPENDENT_WITH_XML_AND_GTK_CFLAGS$ac_delim
25447 DEPENDENT_WITH_XML_AND_GTK_LIBS!$DEPENDENT_WITH_XML_AND_GTK_LIBS$ac_delim
25448 GTK_TRUE!$GTK_TRUE$ac_delim
25449 GTK_FALSE!$GTK_FALSE$ac_delim
25450 PTHREADS_TRUE!$PTHREADS_TRUE$ac_delim
25451 PTHREADS_FALSE!$PTHREADS_FALSE$ac_delim
25452 LDAP_LIBS!$LDAP_LIBS$ac_delim
25453 LDAP_SUPPORT_TRUE!$LDAP_SUPPORT_TRUE$ac_delim
25454 LDAP_SUPPORT_FALSE!$LDAP_SUPPORT_FALSE$ac_delim
25455 LDAP_CFLAGS!$LDAP_CFLAGS$ac_delim
25456 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
25457 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
25458 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
25459 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
25460 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
25461 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
25462 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
25463 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
25464 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
25465 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
25466 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
25467 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
25468 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
25469 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
25470 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
25471 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
25472 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
25473 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
25474 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
25475 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
25476 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
25477 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
25478 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
25479 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
25480 DATADIRNAME!$DATADIRNAME$ac_delim
25481 USE_NLS!$USE_NLS$ac_delim
25482 MSGFMT!$MSGFMT$ac_delim
25483 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
25484 GMSGFMT!$GMSGFMT$ac_delim
25485 XGETTEXT!$XGETTEXT$ac_delim
25486 CATALOGS!$CATALOGS$ac_delim
25487 CATOBJEXT!$CATOBJEXT$ac_delim
25488 GMOFILES!$GMOFILES$ac_delim
25489 INSTOBJEXT!$INSTOBJEXT$ac_delim
25490 INTLLIBS!$INTLLIBS$ac_delim
25491 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
25492 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
25493 POFILES!$POFILES$ac_delim
25494 POSUB!$POSUB$ac_delim
25495 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
25496 gconflocaledir!$gconflocaledir$ac_delim
25497 absolute_top_srcdir!$absolute_top_srcdir$ac_delim
25498 PERL!$PERL$ac_delim
25499 INDENT!$INDENT$ac_delim
25500 REBUILD!$REBUILD$ac_delim
25501 LIBOBJS!$LIBOBJS$ac_delim
25502 LTLIBOBJS!$LTLIBOBJS$ac_delim
25505 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
25507 elif $ac_last_try; then
25508 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25509 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25510 { (exit 1); exit 1; }; }
25512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25516 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25517 if test -n "$ac_eof"; then
25518 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25519 ac_eof=`expr $ac_eof + 1`
25522 cat >>$CONFIG_STATUS <<_ACEOF
25523 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25527 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25528 s/^/s,@/; s/!/@,|#_!!_#|/
25531 s/'"$ac_delim"'$/,g/; t
25533 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25534 ' >>$CONFIG_STATUS <conf$$subs.sed
25535 rm -f conf$$subs.sed
25536 cat >>$CONFIG_STATUS <<_ACEOF
25543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25545 # trailing colons and then remove the whole line if VPATH becomes empty
25546 # (actually we leave an empty line to preserve line numbers).
25547 if test "x$srcdir" = x.; then
25548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25549 s/:*\$(srcdir):*/:/
25550 s/:*\${srcdir}:*/:/
25552 s/^\([^=]*=[ ]*\):*/\1/
25558 cat >>$CONFIG_STATUS <<\_ACEOF
25559 fi # test -n "$CONFIG_FILES"
25562 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25565 :[FHLC]) ac_mode=$ac_tag; continue;;
25567 case $ac_mode$ac_tag in
25569 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25570 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25571 { (exit 1); exit 1; }; };;
25572 :[FH]-) ac_tag=-:-;;
25573 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25590 -) ac_f="$tmp/stdin";;
25591 *) # Look for the file first in the build tree, then in the source tree
25592 # (if the path is not absolute). The absolute path cannot be DOS-style,
25593 # because $ac_f cannot contain `:'.
25597 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25599 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25600 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25601 { (exit 1); exit 1; }; };;
25603 ac_file_inputs="$ac_file_inputs $ac_f"
25606 # Let's still pretend it is `configure' which instantiates (i.e., don't
25607 # use $as_me), people would be surprised to read:
25608 # /* config.h. Generated by config.status. */
25609 configure_input="Generated from "`IFS=:
25610 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25611 if test x"$ac_file" != x-; then
25612 configure_input="$ac_file. $configure_input"
25613 { echo "$as_me:$LINENO: creating $ac_file" >&5
25614 echo "$as_me: creating $ac_file" >&6;}
25618 *:-:* | *:-) cat >"$tmp/stdin";;
25623 ac_dir=`$as_dirname -- "$ac_file" ||
25624 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25625 X"$ac_file" : 'X\(//\)[^/]' \| \
25626 X"$ac_file" : 'X\(//\)$' \| \
25627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25633 /^X\(\/\/\)[^/].*/{
25648 -*) as_dir=./$as_dir;;
25650 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25654 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25655 *) as_qdir=$as_dir;;
25657 as_dirs="'$as_qdir' $as_dirs"
25658 as_dir=`$as_dirname -- "$as_dir" ||
25659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25660 X"$as_dir" : 'X\(//\)[^/]' \| \
25661 X"$as_dir" : 'X\(//\)$' \| \
25662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25668 /^X\(\/\/\)[^/].*/{
25681 test -d "$as_dir" && break
25683 test -z "$as_dirs" || eval "mkdir $as_dirs"
25684 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25685 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25686 { (exit 1); exit 1; }; }; }
25690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25693 # A ".." for each directory in $ac_dir_suffix.
25694 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25695 case $ac_top_builddir_sub in
25696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25700 ac_abs_top_builddir=$ac_pwd
25701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25702 # for backward compatibility:
25703 ac_top_builddir=$ac_top_build_prefix
25706 .) # We are building in place.
25708 ac_top_srcdir=$ac_top_builddir_sub
25709 ac_abs_top_srcdir=$ac_pwd ;;
25710 [\\/]* | ?:[\\/]* ) # Absolute name.
25711 ac_srcdir=$srcdir$ac_dir_suffix;
25712 ac_top_srcdir=$srcdir
25713 ac_abs_top_srcdir=$srcdir ;;
25714 *) # Relative name.
25715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25716 ac_top_srcdir=$ac_top_build_prefix$srcdir
25717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25729 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25730 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25734 cat >>$CONFIG_STATUS <<\_ACEOF
25735 # If the template does not know about datarootdir, expand it.
25736 # FIXME: This hack should be removed a few years after 2.60.
25737 ac_datarootdir_hack=; ac_datarootdir_seen=
25739 case `sed -n '/datarootdir/ {
25748 ' $ac_file_inputs` in
25749 *datarootdir*) ac_datarootdir_seen=yes;;
25750 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25751 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25752 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25754 cat >>$CONFIG_STATUS <<_ACEOF
25755 ac_datarootdir_hack='
25756 s&@datadir@&$datadir&g
25757 s&@docdir@&$docdir&g
25758 s&@infodir@&$infodir&g
25759 s&@localedir@&$localedir&g
25760 s&@mandir@&$mandir&g
25761 s&\\\${datarootdir}&$datarootdir&g' ;;
25765 # Neutralize VPATH when `$srcdir' = `.'.
25766 # Shell code in configure.ac might set extrasub.
25767 # FIXME: do we really want to maintain this feature?
25768 cat >>$CONFIG_STATUS <<_ACEOF
25772 cat >>$CONFIG_STATUS <<\_ACEOF
25774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25775 s&@configure_input@&$configure_input&;t t
25776 s&@top_builddir@&$ac_top_builddir_sub&;t t
25777 s&@srcdir@&$ac_srcdir&;t t
25778 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25779 s&@top_srcdir@&$ac_top_srcdir&;t t
25780 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25781 s&@builddir@&$ac_builddir&;t t
25782 s&@abs_builddir@&$ac_abs_builddir&;t t
25783 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25784 s&@INSTALL@&$ac_INSTALL&;t t
25785 $ac_datarootdir_hack
25786 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25791 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25792 which seems to be undefined. Please make sure it is defined." >&5
25793 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25794 which seems to be undefined. Please make sure it is defined." >&2;}
25798 -) cat "$tmp/out"; rm -f "$tmp/out";;
25799 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25808 # Transform confdefs.h into a sed script `conftest.defines', that
25809 # substitutes the proper values into config.h.in to produce config.h.
25810 rm -f conftest.defines conftest.tail
25811 # First, append a space to every undef/define line, to ease matching.
25812 echo 's/$/ /' >conftest.defines
25813 # Then, protect against being on the right side of a sed subst, or in
25814 # an unquoted here document, in config.status. If some macros were
25815 # called several times there might be several #defines for the same
25816 # symbol, which is useless. But do not sort them, since the last
25817 # AC_DEFINE must be honored.
25818 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25819 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25820 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25821 # PARAMS is the parameter list in the macro definition--in most cases, it's
25822 # just an empty string.
25823 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25824 ac_dB='\\)[ (].*,\\1define\\2'
25832 s/^[ ]*#[ ]*define[ ][ ]*//
25837 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25838 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25839 ' >>conftest.defines
25841 # Remove the space that was appended to ease matching.
25842 # Then replace #undef with comments. This is necessary, for
25843 # example, in the case of _POSIX_SOURCE, which is predefined and required
25844 # on some systems where configure will not decide to define it.
25845 # (The regexp can be short, since the line contains either #define or #undef.)
25847 s,^[ #]*u.*,/* & */,' >>conftest.defines
25849 # Break up conftest.defines:
25850 ac_max_sed_lines=50
25852 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25853 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25854 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25856 ac_in='$ac_file_inputs'
25857 ac_out='"$tmp/out1"'
25858 ac_nxt='"$tmp/out2"'
25862 # Write a here document:
25863 cat >>$CONFIG_STATUS <<_ACEOF
25864 # First, check the format of the line:
25865 cat >"\$tmp/defines.sed" <<\\CEOF
25866 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25867 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25871 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25873 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25874 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25875 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25876 grep . conftest.tail >/dev/null || break
25877 rm -f conftest.defines
25878 mv conftest.tail conftest.defines
25880 rm -f conftest.defines conftest.tail
25882 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25883 cat >>$CONFIG_STATUS <<\_ACEOF
25884 if test x"$ac_file" != x-; then
25885 echo "/* $configure_input */" >"$tmp/config.h"
25886 cat "$ac_result" >>"$tmp/config.h"
25887 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25888 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25889 echo "$as_me: $ac_file is unchanged" >&6;}
25892 mv "$tmp/config.h" $ac_file
25895 echo "/* $configure_input */"
25899 # Compute $ac_file's index in $config_headers.
25901 for _am_header in $config_headers :; do
25902 case $_am_header in
25903 $ac_file | $ac_file:* )
25906 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25909 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25910 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25911 X$ac_file : 'X\(//\)[^/]' \| \
25912 X$ac_file : 'X\(//\)$' \| \
25913 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25919 /^X\(\/\/\)[^/].*/{
25931 s/.*/./; q'`/stamp-h$_am_stamp_count
25934 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25935 echo "$as_me: executing $ac_file commands" >&6;}
25940 case $ac_file$ac_mode in
25941 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25942 # Strip MF so we end up with the name of the file.
25943 mf=`echo "$mf" | sed -e 's/:.*$//'`
25944 # Check whether this is an Automake generated Makefile or not.
25945 # We used to match only the files named `Makefile.in', but
25946 # some people rename them; so instead we look at the file content.
25947 # Grep'ing the first line is not enough: some people post-process
25948 # each Makefile.in and add a new line on top of each file to say so.
25949 # So let's grep whole file.
25950 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25951 dirpart=`$as_dirname -- "$mf" ||
25952 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25953 X"$mf" : 'X\(//\)[^/]' \| \
25954 X"$mf" : 'X\(//\)$' \| \
25955 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25961 /^X\(\/\/\)[^/].*/{
25977 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25978 # Extract the definition of DEP_FILES from the Makefile without
25980 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
25981 test -z "$DEPDIR" && continue
25982 # When using ansi2knr, U may be empty or an underscore; expand it
25983 U=`sed -n -e '/^U = / s///p' < "$mf"`
25984 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25985 # We invoke sed twice because it is the simplest approach to
25986 # changing $(DEPDIR) to its actual value in the expansion.
25987 for file in `sed -n -e '
25988 /^DEP_FILES = .*\\\\$/ {
25997 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25998 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25999 # Make sure the directory exists.
26000 test -f "$dirpart/$file" && continue
26001 fdir=`$as_dirname -- "$file" ||
26002 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26003 X"$file" : 'X\(//\)[^/]' \| \
26004 X"$file" : 'X\(//\)$' \| \
26005 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26011 /^X\(\/\/\)[^/].*/{
26024 { as_dir=$dirpart/$fdir
26026 -*) as_dir=./$as_dir;;
26028 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26032 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26033 *) as_qdir=$as_dir;;
26035 as_dirs="'$as_qdir' $as_dirs"
26036 as_dir=`$as_dirname -- "$as_dir" ||
26037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26038 X"$as_dir" : 'X\(//\)[^/]' \| \
26039 X"$as_dir" : 'X\(//\)$' \| \
26040 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26046 /^X\(\/\/\)[^/].*/{
26059 test -d "$as_dir" && break
26061 test -z "$as_dirs" || eval "mkdir $as_dirs"
26062 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26063 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26064 { (exit 1); exit 1; }; }; }
26065 # echo "creating $dirpart/$file"
26066 echo '# dummy' > "$dirpart/$file"
26072 for file in intltool-extract intltool-merge intltool-update; do
26073 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
26074 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
26075 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
26076 < ${ac_aux_dir}/${file}.in > ${file}.out
26077 if cmp -s ${file} ${file}.out 2>/dev/null; then
26080 mv -f ${file}.out ${file}
26082 chmod ugo+x ${file}
26087 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
26088 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
26091 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
26096 '"s|^| $ac_top_srcdir/|" \
26097 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
26099 if test ! -f "po/Makefile"; then
26100 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
26101 echo "$as_me: error: po/Makefile is not ready." >&2;}
26102 { (exit 1); exit 1; }; }
26104 mv "po/Makefile" "po/Makefile.tmp"
26105 sed '/^POTFILES =/,/[^\\]$/ {
26109 ' "po/Makefile.tmp" >"po/Makefile"
26110 rm -f "po/Makefile.tmp"
26111 mv "po/stamp-it.tmp" "po/stamp-it"
26118 { (exit 0); exit 0; }
26120 chmod +x $CONFIG_STATUS
26121 ac_clean_files=$ac_clean_files_save
26124 # configure is writing to config.log, and then calls config.status.
26125 # config.status does its own redirection, appending to config.log.
26126 # Unfortunately, on DOS this fails, as config.log is still kept open
26127 # by configure, so config.status won't be able to write to it; its
26128 # output is simply discarded. So we exec the FD to /dev/null,
26129 # effectively closing config.log, so it can be properly (re)opened and
26130 # appended to by config.status. When coming back to configure, we
26131 # need to make the FD available again.
26132 if test "$no_create" != yes; then
26134 ac_config_status_args=
26135 test "$silent" = yes &&
26136 ac_config_status_args="$ac_config_status_args --quiet"
26138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26141 # would make configure fail if this is the last instruction.
26142 $ac_cs_success || { (exit 1); exit 1; }