2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libgpg-error 1.7.
5 # Report bugs to <bug-gnupg@gnupg.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 tagnames=${tagnames+${tagnames},}RC
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
601 echo_test_string="`eval $cmd`" &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 tagnames=${tagnames+${tagnames},}CXX
708 tagnames=${tagnames+${tagnames},}F77
710 exec 7<&0 </dev/null 6>&1
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
720 ac_default_prefix=/usr/local
722 ac_config_libobj_dir=.
728 SHELL=${CONFIG_SHELL-/bin/sh}
730 # Identity of this package.
731 PACKAGE_NAME='libgpg-error'
732 PACKAGE_TARNAME='libgpg-error'
733 PACKAGE_VERSION='1.7'
734 PACKAGE_STRING='libgpg-error 1.7'
735 PACKAGE_BUGREPORT='bug-gnupg@gnupg.org'
737 ac_unique_file="src/err-sources.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
811 LIBGPG_ERROR_LT_CURRENT
813 LIBGPG_ERROR_LT_REVISION
828 INSTALL_STRIP_PROGRAM
837 MAINTAINER_MODE_FALSE
901 GPG_ERROR_CONFIG_LIBS
902 GPG_ERROR_CONFIG_CFLAGS
906 HAVE_W32_SYSTEM_FALSE
912 ac_precious_vars='build_alias
930 # Initialize some variables set by options.
932 ac_init_version=false
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
942 program_transform_name=s,x,x,
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 # Accept the important Cygnus configure options, so we can diagnose typos.
994 case $ac_dashdash$ac_option in
998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 bindir=$ac_optarg ;;
1003 -build | --build | --buil | --bui | --bu)
1004 ac_prev=build_alias ;;
1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006 build_alias=$ac_optarg ;;
1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010 ac_prev=cache_file ;;
1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013 cache_file=$ac_optarg ;;
1015 --config-cache | -C)
1016 cache_file=config.cache ;;
1018 -datadir | --datadir | --datadi | --datad)
1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021 datadir=$ac_optarg ;;
1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024 | --dataroo | --dataro | --datar)
1025 ac_prev=datarootdir ;;
1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028 datarootdir=$ac_optarg ;;
1030 -disable-* | --disable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056 eval enable_$ac_feature=\$ac_optarg ;;
1058 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060 | --exec | --exe | --ex)
1061 ac_prev=exec_prefix ;;
1062 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064 | --exec=* | --exe=* | --ex=*)
1065 exec_prefix=$ac_optarg ;;
1067 -gas | --gas | --ga | --g)
1068 # Obsolete; use --with-gas.
1071 -help | --help | --hel | --he | -h)
1072 ac_init_help=long ;;
1073 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074 ac_init_help=recursive ;;
1075 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076 ac_init_help=short ;;
1078 -host | --host | --hos | --ho)
1079 ac_prev=host_alias ;;
1080 -host=* | --host=* | --hos=* | --ho=*)
1081 host_alias=$ac_optarg ;;
1083 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 htmldir=$ac_optarg ;;
1089 -includedir | --includedir | --includedi | --included | --include \
1090 | --includ | --inclu | --incl | --inc)
1091 ac_prev=includedir ;;
1092 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093 | --includ=* | --inclu=* | --incl=* | --inc=*)
1094 includedir=$ac_optarg ;;
1096 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099 infodir=$ac_optarg ;;
1101 -libdir | --libdir | --libdi | --libd)
1103 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104 libdir=$ac_optarg ;;
1106 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107 | --libexe | --libex | --libe)
1108 ac_prev=libexecdir ;;
1109 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110 | --libexe=* | --libex=* | --libe=*)
1111 libexecdir=$ac_optarg ;;
1113 -localedir | --localedir | --localedi | --localed | --locale)
1114 ac_prev=localedir ;;
1115 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116 localedir=$ac_optarg ;;
1118 -localstatedir | --localstatedir | --localstatedi | --localstated \
1119 | --localstate | --localstat | --localsta | --localst | --locals)
1120 ac_prev=localstatedir ;;
1121 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123 localstatedir=$ac_optarg ;;
1125 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128 mandir=$ac_optarg ;;
1130 -nfp | --nfp | --nf)
1131 # Obsolete; use --without-fp.
1134 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135 | --no-cr | --no-c | -n)
1138 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144 | --oldin | --oldi | --old | --ol | --o)
1145 ac_prev=oldincludedir ;;
1146 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149 oldincludedir=$ac_optarg ;;
1151 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154 prefix=$ac_optarg ;;
1156 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157 | --program-pre | --program-pr | --program-p)
1158 ac_prev=program_prefix ;;
1159 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161 program_prefix=$ac_optarg ;;
1163 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164 | --program-suf | --program-su | --program-s)
1165 ac_prev=program_suffix ;;
1166 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168 program_suffix=$ac_optarg ;;
1170 -program-transform-name | --program-transform-name \
1171 | --program-transform-nam | --program-transform-na \
1172 | --program-transform-n | --program-transform- \
1173 | --program-transform | --program-transfor \
1174 | --program-transfo | --program-transf \
1175 | --program-trans | --program-tran \
1176 | --progr-tra | --program-tr | --program-t)
1177 ac_prev=program_transform_name ;;
1178 -program-transform-name=* | --program-transform-name=* \
1179 | --program-transform-nam=* | --program-transform-na=* \
1180 | --program-transform-n=* | --program-transform-=* \
1181 | --program-transform=* | --program-transfor=* \
1182 | --program-transfo=* | --program-transf=* \
1183 | --program-trans=* | --program-tran=* \
1184 | --progr-tra=* | --program-tr=* | --program-t=*)
1185 program_transform_name=$ac_optarg ;;
1187 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190 pdfdir=$ac_optarg ;;
1192 -psdir | --psdir | --psdi | --psd | --ps)
1194 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198 | -silent | --silent | --silen | --sile | --sil)
1201 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 sbindir=$ac_optarg ;;
1207 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209 | --sharedst | --shareds | --shared | --share | --shar \
1211 ac_prev=sharedstatedir ;;
1212 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 sharedstatedir=$ac_optarg ;;
1218 -site | --site | --sit)
1220 -site=* | --site=* | --sit=*)
1223 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226 srcdir=$ac_optarg ;;
1228 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229 | --syscon | --sysco | --sysc | --sys | --sy)
1230 ac_prev=sysconfdir ;;
1231 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233 sysconfdir=$ac_optarg ;;
1235 -target | --target | --targe | --targ | --tar | --ta | --t)
1236 ac_prev=target_alias ;;
1237 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238 target_alias=$ac_optarg ;;
1240 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 -version | --version | --versio | --versi | --vers | -V)
1244 ac_init_version=: ;;
1247 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid package name: $ac_package" >&2
1251 { (exit 1); exit 1; }; }
1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253 eval with_$ac_package=\$ac_optarg ;;
1255 -without-* | --without-*)
1256 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid package name: $ac_package" >&2
1260 { (exit 1); exit 1; }; }
1261 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262 eval with_$ac_package=no ;;
1265 # Obsolete; use --with-x.
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1282 -*) { echo "$as_me: error: unrecognized option: $ac_option
1283 Try \`$0 --help' for more information." >&2
1284 { (exit 1); exit 1; }; }
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292 { (exit 1); exit 1; }; }
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1297 # FIXME: should be removed in autoconf 3.0.
1298 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 { echo "$as_me: error: missing argument to $ac_option" >&2
1310 { (exit 1); exit 1; }; }
1313 # Be sure to have absolute directory names.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1333 target=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 { echo "$as_me: error: Working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$0" ||
1367 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$0" : 'X\(//\)[^/]' \| \
1369 X"$0" : 'X\(//\)$' \| \
1370 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1430 \`configure' configures libgpg-error 1.7 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/libgpg-error]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 if test -n "$ac_init_help"; then
1499 case $ac_init_help in
1500 short | recursive ) echo "Configuration of libgpg-error 1.7:";;
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-maintainer-mode enable make rules and dependencies not useful
1508 (and sometimes confusing) to the casual installer
1509 --disable-dependency-tracking speeds up one-time build
1510 --enable-dependency-tracking do not reject slow dependency extractors
1511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-static[=PKGS] build static libraries [default=yes]
1513 --enable-fast-install[=PKGS]
1514 optimize for fast installation [default=yes]
1515 --disable-libtool-lock avoid locking (might break parallel builds)
1516 --disable-nls do not use Native Language Support
1517 --disable-rpath do not hardcode runtime library paths
1518 --disable-languages do not build support for other languages than C
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-pic try to use only PIC/non-PIC objects [default=use
1526 --with-tags[=TAGS] include additional configurations [automatic]
1527 --with-gnu-ld assume the C compiler uses GNU ld default=no
1528 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1529 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1530 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1531 --without-libintl-prefix don't search for libintl in includedir and libdir
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1542 CXX C++ compiler command
1543 CXXFLAGS C++ compiler flags
1544 CXXCPP C++ preprocessor
1545 F77 Fortran 77 compiler command
1546 FFLAGS Fortran 77 compiler flags
1548 build system C compiler
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1553 Report bugs to <bug-gnupg@gnupg.org>.
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" || continue
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1568 # A ".." for each directory in $ac_dir_suffix.
1569 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1581 .) # We are building in place.
1583 ac_top_srcdir=$ac_top_builddir_sub
1584 ac_abs_top_srcdir=$ac_pwd ;;
1585 [\\/]* | ?:[\\/]* ) # Absolute name.
1586 ac_srcdir=$srcdir$ac_dir_suffix;
1587 ac_top_srcdir=$srcdir
1588 ac_abs_top_srcdir=$srcdir ;;
1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596 cd "$ac_dir" || { ac_status=$?; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1605 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1614 libgpg-error configure 1.7
1615 generated by GNU Autoconf 2.61
1617 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1618 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1624 cat >config.log <<_ACEOF
1625 This file contains any messages produced by compilers while
1626 running configure, to aid debugging if configure makes a mistake.
1628 It was created by libgpg-error $as_me 1.7, which was
1629 generated by GNU Autoconf 2.61. Invocation command line was
1641 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1642 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1643 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1644 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1645 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1647 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1648 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1650 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1651 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1652 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1653 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1654 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1655 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1656 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 echo "PATH: $as_dir"
1681 # Keep a trace of the command line.
1682 # Strip out --no-create and --no-recursion so they do not pile up.
1683 # Strip out --silent because we don't want to record it for future runs.
1684 # Also quote any args containing shell meta-characters.
1685 # Make two passes to allow for proper duplicate-argument suppression.
1689 ac_must_keep_next=false
1695 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1697 | -silent | --silent | --silen | --sile | --sil)
1700 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1705 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1706 if test $ac_must_keep_next = true; then
1707 ac_must_keep_next=false # Got value, back to normal.
1710 *=* | --config-cache | -C | -disable-* | --disable-* \
1711 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1712 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1713 | -with-* | --with-* | -without-* | --without-* | --x)
1714 case "$ac_configure_args0 " in
1715 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718 -* ) ac_must_keep_next=true ;;
1721 ac_configure_args="$ac_configure_args '$ac_arg'"
1726 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1727 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1729 # When interrupted or exit'd, cleanup temporary files, and complete
1730 # config.log. We remove comments because anyway the quotes in there
1731 # would cause problems or look ugly.
1732 # WARNING: Use '\'' to represent an apostrophe within the trap.
1733 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1734 trap 'exit_status=$?
1735 # Save into config.log some information that might help in debugging.
1740 ## ---------------- ##
1741 ## Cache variables. ##
1742 ## ---------------- ##
1745 # The following way of writing the cache mishandles newlines in values,
1747 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1748 eval ac_val=\$$ac_var
1752 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1753 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1756 _ | IFS | as_nl) ;; #(
1757 *) $as_unset $ac_var ;;
1762 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1763 *${as_nl}ac_space=\ *)
1765 "s/'\''/'\''\\\\'\'''\''/g;
1766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1777 ## ----------------- ##
1778 ## Output variables. ##
1779 ## ----------------- ##
1782 for ac_var in $ac_subst_vars
1784 eval ac_val=\$$ac_var
1786 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 echo "$ac_var='\''$ac_val'\''"
1792 if test -n "$ac_subst_files"; then
1794 ## ------------------- ##
1795 ## File substitutions. ##
1796 ## ------------------- ##
1799 for ac_var in $ac_subst_files
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 echo "$ac_var='\''$ac_val'\''"
1810 if test -s confdefs.h; then
1820 test "$ac_signal" != 0 &&
1821 echo "$as_me: caught signal $ac_signal"
1822 echo "$as_me: exit $exit_status"
1824 rm -f core *.core core.conftest.* &&
1825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828 for ac_signal in 1 2 13 15; do
1829 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1834 rm -f -r conftest* confdefs.h
1836 # Predefined preprocessor variables.
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_NAME "$PACKAGE_NAME"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_STRING "$PACKAGE_STRING"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863 # Let the site file select an alternate cache file if it wants to.
1864 # Prefer explicitly selected file to automatically selected ones.
1865 if test -n "$CONFIG_SITE"; then
1866 set x "$CONFIG_SITE"
1867 elif test "x$prefix" != xNONE; then
1868 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1870 set x "$ac_default_prefix/share/config.site" \
1871 "$ac_default_prefix/etc/config.site"
1876 if test -r "$ac_site_file"; then
1877 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1878 echo "$as_me: loading site script $ac_site_file" >&6;}
1879 sed 's/^/| /' "$ac_site_file" >&5
1884 if test -r "$cache_file"; then
1885 # Some versions of bash will fail to source /dev/null (special
1886 # files actually), so we avoid doing that.
1887 if test -f "$cache_file"; then
1888 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1889 echo "$as_me: loading cache $cache_file" >&6;}
1891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1892 *) . "./$cache_file";;
1896 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1897 echo "$as_me: creating cache $cache_file" >&6;}
1901 # Check that the precious variables saved in the cache have kept the same
1903 ac_cache_corrupted=false
1904 for ac_var in $ac_precious_vars; do
1905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1906 eval ac_new_set=\$ac_env_${ac_var}_set
1907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1908 eval ac_new_val=\$ac_env_${ac_var}_value
1909 case $ac_old_set,$ac_new_set in
1911 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1913 ac_cache_corrupted=: ;;
1915 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1917 ac_cache_corrupted=: ;;
1920 if test "x$ac_old_val" != "x$ac_new_val"; then
1921 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1923 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1924 echo "$as_me: former value: $ac_old_val" >&2;}
1925 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1926 echo "$as_me: current value: $ac_new_val" >&2;}
1927 ac_cache_corrupted=:
1930 # Pass precious variables to config.status.
1931 if test "$ac_new_set" = set; then
1933 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1934 *) ac_arg=$ac_var=$ac_new_val ;;
1936 case " $ac_configure_args " in
1937 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1938 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1942 if $ac_cache_corrupted; then
1943 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1947 { (exit 1); exit 1; }; }
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 # LT Version numbers, remember to change them just *before* a release.
1982 # (Code changed: REVISION++)
1983 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
1984 # (Interfaces added: AGE++)
1985 # (Interfaces removed: AGE=0)
1986 # Note that added error codes don't constitute an interface change.
1987 LIBGPG_ERROR_LT_CURRENT=5
1988 LIBGPG_ERROR_LT_AGE=5
1989 LIBGPG_ERROR_LT_REVISION=0
1994 am__api_version='1.10'
1997 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1998 if test -f "$ac_dir/install-sh"; then
2000 ac_install_sh="$ac_aux_dir/install-sh -c"
2002 elif test -f "$ac_dir/install.sh"; then
2004 ac_install_sh="$ac_aux_dir/install.sh -c"
2006 elif test -f "$ac_dir/shtool"; then
2008 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 if test -z "$ac_aux_dir"; then
2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2015 { (exit 1); exit 1; }; }
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 # Find a good install program. We prefer a C program (faster),
2028 # so one script is as good as another. But avoid the broken or
2029 # incompatible versions:
2030 # SysV /etc/install, /usr/sbin/install
2031 # SunOS /usr/etc/install
2032 # IRIX /sbin/install
2034 # AmigaOS /C/install, which installs bootblocks on floppy discs
2035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2038 # OS/2's system install, which has a completely different semantic
2039 # ./install, which can be erroneously created by make from ./install.sh.
2040 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2042 if test -z "$INSTALL"; then
2043 if test "${ac_cv_path_install+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 # Account for people who put trailing slashes in PATH elements.
2053 ./ | .// | /cC/* | \
2054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2058 # OSF1 and SCO ODT 3.0 have their own names for install.
2059 # Don't use installbsd from OSF since it installs stuff as root
2061 for ac_prog in ginstall scoinst install; do
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064 if test $ac_prog = install &&
2065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066 # AIX install. It has an incompatible calling convention.
2068 elif test $ac_prog = install &&
2069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070 # program-specific install script used by HP pwplus--don't use.
2073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2086 if test "${ac_cv_path_install+set}" = set; then
2087 INSTALL=$ac_cv_path_install
2089 # As a last resort, use the slow shell script. Don't cache a
2090 # value for INSTALL within a source directory, because that will
2091 # break other packages using the cache if that directory is
2092 # removed, or if the value is a relative name.
2093 INSTALL=$ac_install_sh
2096 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2097 echo "${ECHO_T}$INSTALL" >&6; }
2099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100 # It thinks the first close brace ends the variable substitution.
2101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2107 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2111 echo timestamp > conftest.file
2112 # Do `set' in a subshell so we don't clobber the current shell's
2113 # arguments. Must try -L first in case configure is actually a
2114 # symlink; some systems play weird games with the mod time of symlinks
2115 # (eg FreeBSD returns the mod time of the symlink's containing
2118 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2119 if test "$*" = "X"; then
2121 set X `ls -t $srcdir/configure conftest.file`
2124 if test "$*" != "X $srcdir/configure conftest.file" \
2125 && test "$*" != "X conftest.file $srcdir/configure"; then
2127 # If neither matched, then we have a broken ls. This can happen
2128 # if, for instance, CONFIG_SHELL is bash and it inherits a
2129 # broken ls alias from the environment. This has actually
2130 # happened. Such a system could not be considered "sane".
2131 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2132 alias in your environment" >&5
2133 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2134 alias in your environment" >&2;}
2135 { (exit 1); exit 1; }; }
2138 test "$2" = conftest.file
2144 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2145 Check your system clock" >&5
2146 echo "$as_me: error: newly created file is older than distributed files!
2147 Check your system clock" >&2;}
2148 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6; }
2152 test "$program_prefix" != NONE &&
2153 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2154 # Use a double $ so make ignores it.
2155 test "$program_suffix" != NONE &&
2156 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2157 # Double any \ or $. echo might interpret backslashes.
2158 # By default was `s,x,x', remove it if useless.
2159 cat <<\_ACEOF >conftest.sed
2160 s/[\\$]/&&/g;s/;s,x,x,$//
2162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2165 # expand $ac_aux_dir to an absolute path
2166 am_aux_dir=`cd $ac_aux_dir && pwd`
2168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2169 # Use eval to expand $SHELL
2170 if eval "$MISSING --run true"; then
2171 am_missing_run="$MISSING --run "
2174 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2178 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2179 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2180 if test -z "$MKDIR_P"; then
2181 if test "${ac_cv_path_mkdir+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2188 test -z "$as_dir" && as_dir=.
2189 for ac_prog in mkdir gmkdir; do
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2192 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2193 'mkdir (GNU coreutils) '* | \
2194 'mkdir (coreutils) '* | \
2195 'mkdir (fileutils) '4.1*)
2196 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2206 if test "${ac_cv_path_mkdir+set}" = set; then
2207 MKDIR_P="$ac_cv_path_mkdir -p"
2209 # As a last resort, use the slow shell script. Don't cache a
2210 # value for MKDIR_P within a source directory, because that will
2211 # break other packages using the cache if that directory is
2212 # removed, or if the value is a relative name.
2213 test -d ./--version && rmdir ./--version
2214 MKDIR_P="$ac_install_sh -d"
2217 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2218 echo "${ECHO_T}$MKDIR_P" >&6; }
2222 [\\/$]* | ?:[\\/]*) ;;
2223 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2226 for ac_prog in gawk mawk nawk awk
2228 # Extract the first word of "$ac_prog", so it can be a program name with args.
2229 set dummy $ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_AWK+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$AWK"; then
2236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_AWK="$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 if test -n "$AWK"; then
2257 { echo "$as_me:$LINENO: result: $AWK" >&5
2258 echo "${ECHO_T}$AWK" >&6; }
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2265 test -n "$AWK" && break
2268 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2269 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2270 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2271 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 cat >conftest.make <<\_ACEOF
2277 @echo '@@@%%%=$(MAKE)=@@@%%%'
2279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2282 eval ac_cv_prog_make_${ac_make}_set=yes;;
2284 eval ac_cv_prog_make_${ac_make}_set=no;;
2288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2289 { echo "$as_me:$LINENO: result: yes" >&5
2290 echo "${ECHO_T}yes" >&6; }
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 SET_MAKE="MAKE=${MAKE-make}"
2298 rm -rf .tst 2>/dev/null
2299 mkdir .tst 2>/dev/null
2300 if test -d .tst; then
2305 rmdir .tst 2>/dev/null
2307 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2308 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2309 # is not polluted with repeated "-I."
2310 am__isrc=' -I$(srcdir)'
2311 # test to see if srcdir already configured
2312 if test -f $srcdir/config.status; then
2313 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2314 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2315 { (exit 1); exit 1; }; }
2319 # test whether we have cygpath
2320 if test -z "$CYGPATH_W"; then
2321 if (cygpath --version) >/dev/null 2>/dev/null; then
2322 CYGPATH_W='cygpath -w'
2329 # Define the identity of the package.
2330 PACKAGE='libgpg-error'
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE "$PACKAGE"
2339 cat >>confdefs.h <<_ACEOF
2340 #define VERSION "$VERSION"
2343 # Some tools Automake needs.
2345 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2348 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2351 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2354 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2357 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2359 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2361 # Installed binaries are usually stripped using `strip' when the user
2362 # run `make install-strip'. However `strip' might not be the right
2363 # tool to use in cross-compilation environments, therefore Automake
2364 # will honor the `STRIP' environment variable to overrule this program.
2365 if test "$cross_compiling" != no; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}strip; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_STRIP+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$STRIP"; then
2375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 STRIP=$ac_cv_prog_STRIP
2395 if test -n "$STRIP"; then
2396 { echo "$as_me:$LINENO: result: $STRIP" >&5
2397 echo "${ECHO_T}$STRIP" >&6; }
2399 { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2405 if test -z "$ac_cv_prog_STRIP"; then
2407 # Extract the first word of "strip", so it can be a program name with args.
2408 set dummy strip; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$ac_ct_STRIP"; then
2415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_ac_ct_STRIP="strip"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2435 if test -n "$ac_ct_STRIP"; then
2436 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2437 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2439 { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2443 if test "x$ac_ct_STRIP" = x; then
2446 case $cross_compiling:$ac_tool_warned in
2448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet. If you think this
2450 configuration is useful to you, please write to autoconf@gnu.org." >&5
2451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet. If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454 ac_tool_warned=yes ;;
2459 STRIP="$ac_cv_prog_STRIP"
2463 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2465 # We need awk for the "check" target. The system "awk" is bad on
2467 # Always define AMTAR for backward compatibility.
2469 AMTAR=${AMTAR-"${am_missing_run}tar"}
2471 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2477 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2478 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2479 # Check whether --enable-maintainer-mode was given.
2480 if test "${enable_maintainer_mode+set}" = set; then
2481 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2483 USE_MAINTAINER_MODE=no
2486 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2487 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2488 if test $USE_MAINTAINER_MODE = yes; then
2489 MAINTAINER_MODE_TRUE=
2490 MAINTAINER_MODE_FALSE='#'
2492 MAINTAINER_MODE_TRUE='#'
2493 MAINTAINER_MODE_FALSE=
2496 MAINT=$MAINTAINER_MODE_TRUE
2500 ac_config_headers="$ac_config_headers config.h"
2503 # We need to know about the host architecture to avoid spurious
2505 # Make sure we can run config.sub.
2506 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2507 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2508 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2509 { (exit 1); exit 1; }; }
2511 { echo "$as_me:$LINENO: checking build system type" >&5
2512 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2513 if test "${ac_cv_build+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 ac_build_alias=$build_alias
2517 test "x$ac_build_alias" = x &&
2518 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2519 test "x$ac_build_alias" = x &&
2520 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2522 { (exit 1); exit 1; }; }
2523 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2524 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2525 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2526 { (exit 1); exit 1; }; }
2529 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2530 echo "${ECHO_T}$ac_cv_build" >&6; }
2531 case $ac_cv_build in
2533 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2534 echo "$as_me: error: invalid value of canonical build" >&2;}
2535 { (exit 1); exit 1; }; };;
2538 ac_save_IFS=$IFS; IFS='-'
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2548 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2551 { echo "$as_me:$LINENO: checking host system type" >&5
2552 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2553 if test "${ac_cv_host+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test "x$host_alias" = x; then
2557 ac_cv_host=$ac_cv_build
2559 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2560 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2561 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2562 { (exit 1); exit 1; }; }
2566 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2567 echo "${ECHO_T}$ac_cv_host" >&6; }
2570 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2571 echo "$as_me: error: invalid value of canonical host" >&2;}
2572 { (exit 1); exit 1; }; };;
2575 ac_save_IFS=$IFS; IFS='-'
2581 # Remember, the first character of IFS is used to create $*,
2582 # except with old shells:
2585 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2592 { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2593 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2594 { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2595 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2597 if test "$hostname"; then
2598 { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2599 echo "$as_me: autobuild hostname... $hostname" >&6;}
2602 date=`date +%Y%m%d-%H%M%S`
2603 if test "$?" != 0; then
2606 if test "$date"; then
2607 { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2608 echo "$as_me: autobuild timestamp... $date" >&6;}
2612 # Checks for programs.
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2657 if test -z "$ac_cv_prog_CC"; then
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_ac_ct_CC="gcc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2689 echo "${ECHO_T}$ac_ct_CC" >&6; }
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2695 if test "x$ac_ct_CC" = x; then
2698 case $cross_compiling:$ac_tool_warned in
2700 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701 whose name does not start with the host triplet. If you think this
2702 configuration is useful to you, please write to autoconf@gnu.org." >&5
2703 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704 whose name does not start with the host triplet. If you think this
2705 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706 ac_tool_warned=yes ;;
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2755 if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2801 if test -n "$CC"; then
2802 { echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6; }
2805 { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in cl.exe
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test -n "$CC"; then
2844 { echo "$as_me:$LINENO: result: $CC" >&5
2845 echo "${ECHO_T}$CC" >&6; }
2847 { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2852 test -n "$CC" && break
2855 if test -z "$CC"; then
2857 for ac_prog in cl.exe
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_ac_ct_CC="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887 if test -n "$ac_ct_CC"; then
2888 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2889 echo "${ECHO_T}$ac_ct_CC" >&6; }
2891 { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2896 test -n "$ac_ct_CC" && break
2899 if test "x$ac_ct_CC" = x; then
2902 case $cross_compiling:$ac_tool_warned in
2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905 whose name does not start with the host triplet. If you think this
2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet. If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2910 ac_tool_warned=yes ;;
2919 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: no acceptable C compiler found in \$PATH
2922 See \`config.log' for more details." >&2;}
2923 { (exit 1); exit 1; }; }
2925 # Provide some information about the compiler.
2926 echo "$as_me:$LINENO: checking for C compiler version" >&5
2927 ac_compiler=`set X $ac_compile; echo $2`
2928 { (ac_try="$ac_compiler --version >&5"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compiler --version >&5") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2938 { (ac_try="$ac_compiler -v >&5"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compiler -v >&5") 2>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2948 { (ac_try="$ac_compiler -V >&5"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compiler -V >&5") 2>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2974 ac_clean_files_save=$ac_clean_files
2975 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2976 # Try to create an executable without -o first, disregard a.out.
2977 # It will help us diagnose broken compilers, and finding out an intuition
2979 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2980 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2981 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 # List of possible output files, starting from the most likely.
2984 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2985 # only as a last resort. b.out is created by i960 compilers.
2986 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2988 # The IRIX 6 linker writes into existing files which may not be
2989 # executable, retaining their permissions. Remove them first so a
2990 # subsequent execution test works.
2992 for ac_file in $ac_files
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2996 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3001 if { (ac_try="$ac_link_default"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_link_default") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3016 for ac_file in $ac_files ''
3018 test -f "$ac_file" || continue
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3023 # We found the default executable, but exeext='' is most
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3041 test "$ac_cv_exeext" = no && ac_cv_exeext=
3047 { echo "$as_me:$LINENO: result: $ac_file" >&5
3048 echo "${ECHO_T}$ac_file" >&6; }
3049 if test -z "$ac_file"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&2;}
3057 { (exit 77); exit 77; }; }
3060 ac_exeext=$ac_cv_exeext
3062 # Check that the compiler produces executables we can run. If not, either
3063 # the compiler is broken, or we cross compile.
3064 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3065 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3066 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3067 # If not cross compiling, check that we can run a simple program.
3068 if test "$cross_compiling" != yes; then
3069 if { ac_try='./$ac_file'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3081 if test "$cross_compiling" = maybe; then
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 { echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6; }
3097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3098 ac_clean_files=$ac_clean_files_save
3099 # Check that the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3103 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6; }
3106 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3108 if { (ac_try="$ac_link"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_link") 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; then
3118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3122 for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3139 rm -f conftest$ac_cv_exeext
3140 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3141 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3143 rm -f conftest.$ac_ext
3144 EXEEXT=$ac_cv_exeext
3146 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3147 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3148 if test "${ac_cv_objext+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3166 rm -f conftest.o conftest.obj
3167 if { (ac_try="$ac_compile"
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
3177 for ac_file in conftest.o conftest.obj conftest.*; do
3178 test -f "$ac_file" || continue;
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3198 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3199 echo "${ECHO_T}$ac_cv_objext" >&6; }
3200 OBJEXT=$ac_cv_objext
3202 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3203 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3204 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3254 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3256 GCC=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CFLAGS=${CFLAGS+set}
3258 ac_save_CFLAGS=$CFLAGS
3259 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_g+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_save_c_werror_flag=$ac_c_werror_flag
3265 ac_c_werror_flag=yes
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3396 if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3405 if test "$GCC" = yes; then
3411 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3412 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_cc_c89+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 ac_cv_prog_cc_c89=no
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3442 s = g (p, va_arg (v,int));
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 CC="$ac_save_CC $ac_arg"
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_compile") 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } && {
3493 test -z "$ac_c_werror_flag" ||
3494 test ! -s conftest.err
3495 } && test -s conftest.$ac_objext; then
3496 ac_cv_prog_cc_c89=$ac_arg
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 rm -f conftest.$ac_ext
3512 case "x$ac_cv_prog_cc_c89" in
3514 { echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6; } ;;
3517 { echo "$as_me:$LINENO: result: unsupported" >&5
3518 echo "${ECHO_T}unsupported" >&6; } ;;
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3522 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 DEPDIR="${am__leading_dot}deps"
3533 ac_config_commands="$ac_config_commands depfiles"
3536 am_make=${MAKE-make}
3537 cat > confinc << 'END'
3542 # If we don't find an include directive, just comment out the code.
3543 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3544 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3548 # First try GNU make style include.
3549 echo "include confinc" > confmf
3550 # We grep out `Entering directory' and `Leaving directory'
3551 # messages which can occur if `w' ends up in MAKEFLAGS.
3552 # In particular we don't look at `^make:' because GNU make might
3553 # be invoked under some other name (usually "gmake"), in which
3554 # case it prints its new name instead of `make'.
3555 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562 echo '.include "confinc"' > confmf
3563 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3564 am__include=.include
3571 { echo "$as_me:$LINENO: result: $_am_result" >&5
3572 echo "${ECHO_T}$_am_result" >&6; }
3573 rm -f confinc confmf
3575 # Check whether --enable-dependency-tracking was given.
3576 if test "${enable_dependency_tracking+set}" = set; then
3577 enableval=$enable_dependency_tracking;
3580 if test "x$enable_dependency_tracking" != xno; then
3581 am_depcomp="$ac_aux_dir/depcomp"
3584 if test "x$enable_dependency_tracking" != xno; then
3594 depcc="$CC" am_compiler_list=
3596 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3597 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3598 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3602 # We make a subdir and do the tests there. Otherwise we can end up
3603 # making bogus files that we don't know about and never remove. For
3604 # instance it was reported that on HP-UX the gcc test will end up
3605 # making a dummy file named `D' -- because `-MD' means `put the output
3608 # Copy depcomp to subdir because otherwise we won't find it if we're
3609 # using a relative directory.
3610 cp "$am_depcomp" conftest.dir
3612 # We will build objects and dependencies in a subdirectory because
3613 # it helps to detect inapplicable dependency modes. For instance
3614 # both Tru64's cc and ICC support -MD to output dependencies as a
3615 # side effect of compilation, but ICC will put the dependencies in
3616 # the current directory while Tru64 will put them in the object
3620 am_cv_CC_dependencies_compiler_type=none
3621 if test "$am_compiler_list" = ""; then
3622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3624 for depmode in $am_compiler_list; do
3625 # Setup a source with many dependencies, because some compilers
3626 # like to wrap large dependency lists on column 80 (with \), and
3627 # we should not choose a depcomp mode which is confused by this.
3629 # We need to recreate these files for each test, as the compiler may
3630 # overwrite some of them when testing with obscure command lines.
3631 # This happens at least with the AIX C compiler.
3633 for i in 1 2 3 4 5 6; do
3634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3635 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3636 # Solaris 8's {/usr,}/bin/sh.
3637 touch sub/conftst$i.h
3639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3643 # after this tag, mechanisms are not by side-effect, so they'll
3644 # only be used when explicitly requested
3645 if test "x$enable_dependency_tracking" = xyes; then
3653 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3654 # mode. It turns out that the SunPro C++ compiler does not properly
3655 # handle `-M -o', and we need to detect this.
3656 if depmode=$depmode \
3657 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3658 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3659 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3660 >/dev/null 2>conftest.err &&
3661 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3662 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3663 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3664 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3665 # icc doesn't choke on unknown options, it will just issue warnings
3666 # or remarks (even with -Werror). So we grep stderr for any message
3667 # that says an option was ignored or not supported.
3668 # When given -MP, icc 7.0 and 7.1 complain thusly:
3669 # icc: Command line warning: ignoring option '-M'; no argument required
3670 # The diagnosis changed in icc 8.0:
3671 # icc: Command line remark: option '-MP' not supported
3672 if (grep 'ignoring option' conftest.err ||
3673 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3674 am_cv_CC_dependencies_compiler_type=$depmode
3683 am_cv_CC_dependencies_compiler_type=none
3687 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3688 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3689 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3692 test "x$enable_dependency_tracking" != xno \
3693 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3695 am__fastdepCC_FALSE='#'
3697 am__fastdepCC_TRUE='#'
3698 am__fastdepCC_FALSE=
3702 if test "x$CC" != xcc; then
3703 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3704 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3706 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3707 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3709 set dummy $CC; ac_cc=`echo $2 |
3710 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3711 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3729 # Make sure it works both with $CC and with simple cc.
3730 # We do the test twice because some compilers refuse to overwrite an
3731 # existing .o file with -o, though they will create one.
3732 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3734 if { (case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_try") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_try") 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); };
3753 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3754 if test "x$CC" != xcc; then
3755 # Test first that cc exists at all.
3756 if { ac_try='cc -c conftest.$ac_ext >&5'
3757 { (case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_try") 2>&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3768 if { (case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_try") 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3782 (eval "$ac_try") 2>&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); };
3790 # cc exists but doesn't like -o.
3791 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3796 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3798 rm -f core conftest*
3801 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3802 { echo "$as_me:$LINENO: result: yes" >&5
3803 echo "${ECHO_T}yes" >&6; }
3805 { echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6; }
3808 cat >>confdefs.h <<\_ACEOF
3809 #define NO_MINUS_C_MINUS_O 1
3814 # FIXME: we rely on the cache variable name because
3815 # there is no other way.
3817 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3819 # Losing compiler, so override with the script.
3820 # FIXME: It is wrong to rewrite CC.
3821 # But if we don't then we get into trouble of one sort or another.
3822 # A longer-term fix would be to have automake use am__CC in this case,
3823 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3824 CC="$am_aux_dir/compile $CC"
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3834 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3835 # On Suns, sometimes $CPP names a directory.
3836 if test -n "$CPP" && test -d "$CPP"; then
3839 if test -z "$CPP"; then
3840 if test "${ac_cv_prog_CPP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 # Double quotes because CPP needs to be expanded
3844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3847 for ac_c_preproc_warn_flag in '' yes
3849 # Use a header file that comes with gcc, so configuring glibc
3850 # with a fresh cross-compiler works.
3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852 # <limits.h> exists even on freestanding compilers.
3853 # On the NeXT, cc -E runs the code through the compiler's parser,
3854 # not just through cpp. "Syntax error" is here to catch this case.
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3862 # include <limits.h>
3864 # include <assert.h>
3868 if { (ac_try="$ac_cpp conftest.$ac_ext"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3876 grep -v '^ *+' conftest.er1 >conftest.err
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } >/dev/null && {
3881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 # Broken: fails on valid input.
3893 rm -f conftest.err conftest.$ac_ext
3895 # OK, works on sane cases. Now check whether nonexistent headers
3896 # can be detected and how.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 #include <ac_nonexistent.h>
3905 if { (ac_try="$ac_cpp conftest.$ac_ext"
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } >/dev/null && {
3918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3921 # Broken: success on invalid input.
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 # Passes both tests.
3932 rm -f conftest.err conftest.$ac_ext
3935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3936 rm -f conftest.err conftest.$ac_ext
3937 if $ac_preproc_ok; then
3949 { echo "$as_me:$LINENO: result: $CPP" >&5
3950 echo "${ECHO_T}$CPP" >&6; }
3952 for ac_c_preproc_warn_flag in '' yes
3954 # Use a header file that comes with gcc, so configuring glibc
3955 # with a fresh cross-compiler works.
3956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957 # <limits.h> exists even on freestanding compilers.
3958 # On the NeXT, cc -E runs the code through the compiler's parser,
3959 # not just through cpp. "Syntax error" is here to catch this case.
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3967 # include <limits.h>
3969 # include <assert.h>
3973 if { (ac_try="$ac_cpp conftest.$ac_ext"
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev/null && {
3986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3987 test ! -s conftest.err
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 # Broken: fails on valid input.
3998 rm -f conftest.err conftest.$ac_ext
4000 # OK, works on sane cases. Now check whether nonexistent headers
4001 # can be detected and how.
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 #include <ac_nonexistent.h>
4010 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
4023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4026 # Broken: success on invalid input.
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 # Passes both tests.
4037 rm -f conftest.err conftest.$ac_ext
4040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041 rm -f conftest.err conftest.$ac_ext
4042 if $ac_preproc_ok; then
4045 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4046 See \`config.log' for more details." >&5
4047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details." >&2;}
4049 { (exit 1); exit 1; }; }
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 for ac_prog in gawk mawk nawk awk
4060 # Extract the first word of "$ac_prog", so it can be a program name with args.
4061 set dummy $ac_prog; ac_word=$2
4062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4064 if test "${ac_cv_prog_AWK+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if test -n "$AWK"; then
4068 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077 ac_cv_prog_AWK="$ac_prog"
4078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 if test -n "$AWK"; then
4089 { echo "$as_me:$LINENO: result: $AWK" >&5
4090 echo "${ECHO_T}$AWK" >&6; }
4092 { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4097 test -n "$AWK" && break
4100 if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}ar; ac_word=$2
4103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4105 if test "${ac_cv_prog_AR+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 if test -n "$AR"; then
4109 ac_cv_prog_AR="$AR" # Let the user override the test.
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_AR="${ac_tool_prefix}ar"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 if test -n "$AR"; then
4130 { echo "$as_me:$LINENO: result: $AR" >&5
4131 echo "${ECHO_T}$AR" >&6; }
4133 { echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6; }
4139 if test -z "$ac_cv_prog_AR"; then
4141 # Extract the first word of "ar", so it can be a program name with args.
4142 set dummy ar; ac_word=$2
4143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4145 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -n "$ac_ct_AR"; then
4149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_ac_ct_AR="ar"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4169 if test -n "$ac_ct_AR"; then
4170 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4171 echo "${ECHO_T}$ac_ct_AR" >&6; }
4173 { echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6; }
4177 if test "x$ac_ct_AR" = x; then
4180 case $cross_compiling:$ac_tool_warned in
4182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4183 whose name does not start with the host triplet. If you think this
4184 configuration is useful to you, please write to autoconf@gnu.org." >&5
4185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet. If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4188 ac_tool_warned=yes ;;
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}windres; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_prog_RC+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 if test -n "$RC"; then
4207 ac_cv_prog_RC="$RC" # Let the user override the test.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_RC="${ac_tool_prefix}windres"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 if test -n "$RC"; then
4228 { echo "$as_me:$LINENO: result: $RC" >&5
4229 echo "${ECHO_T}$RC" >&6; }
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4237 if test -z "$ac_cv_prog_RC"; then
4239 # Extract the first word of "windres", so it can be a program name with args.
4240 set dummy windres; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 if test -n "$ac_ct_RC"; then
4247 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_ac_ct_RC="windres"
4257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 ac_ct_RC=$ac_cv_prog_ac_ct_RC
4267 if test -n "$ac_ct_RC"; then
4268 { echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
4269 echo "${ECHO_T}$ac_ct_RC" >&6; }
4271 { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4275 if test "x$ac_ct_RC" = x; then
4278 case $cross_compiling:$ac_tool_warned in
4280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet. If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&5
4283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4284 whose name does not start with the host triplet. If you think this
4285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4286 ac_tool_warned=yes ;;
4300 cat >>confdefs.h <<\_ACEOF
4301 #define _GNU_SOURCE 1
4306 # Check whether --enable-shared was given.
4307 if test "${enable_shared+set}" = set; then
4308 enableval=$enable_shared; p=${PACKAGE-default}
4310 yes) enable_shared=yes ;;
4311 no) enable_shared=no ;;
4314 # Look at the argument we got. We use all the common list separators.
4315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4316 for pkg in $enableval; do
4318 if test "X$pkg" = "X$p"; then
4330 # Check whether --enable-static was given.
4331 if test "${enable_static+set}" = set; then
4332 enableval=$enable_static; p=${PACKAGE-default}
4334 yes) enable_static=yes ;;
4335 no) enable_static=no ;;
4338 # Look at the argument we got. We use all the common list separators.
4339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4340 for pkg in $enableval; do
4342 if test "X$pkg" = "X$p"; then
4354 # Check whether --enable-fast-install was given.
4355 if test "${enable_fast_install+set}" = set; then
4356 enableval=$enable_fast_install; p=${PACKAGE-default}
4358 yes) enable_fast_install=yes ;;
4359 no) enable_fast_install=no ;;
4361 enable_fast_install=no
4362 # Look at the argument we got. We use all the common list separators.
4363 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4364 for pkg in $enableval; do
4366 if test "X$pkg" = "X$p"; then
4367 enable_fast_install=yes
4374 enable_fast_install=yes
4378 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4379 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4380 if test "${lt_cv_path_SED+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 # Loop through the user's path and test for sed and gsed.
4384 # Then use that list of sed's as ones to test for truncation.
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 test -z "$as_dir" && as_dir=.
4390 for lt_ac_prog in sed gsed; do
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4393 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4400 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4401 # along with /bin/sed that truncates output.
4402 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4403 test ! -f $lt_ac_sed && break
4404 cat /dev/null > conftest.in
4406 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4407 # Check for GNU sed and select it if it is found.
4408 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4409 lt_cv_path_SED=$lt_ac_sed
4413 cat conftest.in conftest.in >conftest.tmp
4414 mv conftest.tmp conftest.in
4415 cp conftest.in conftest.nl
4417 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4418 cmp -s conftest.out conftest.nl || break
4419 # 10000 chars as input seems more than enough
4420 test $lt_ac_count -gt 10 && break
4421 lt_ac_count=`expr $lt_ac_count + 1`
4422 if test $lt_ac_count -gt $lt_ac_max; then
4423 lt_ac_max=$lt_ac_count
4424 lt_cv_path_SED=$lt_ac_sed
4432 { echo "$as_me:$LINENO: result: $SED" >&5
4433 echo "${ECHO_T}$SED" >&6; }
4435 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4436 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4437 if test "${ac_cv_path_GREP+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 # Extract the first word of "grep ggrep" to use in msg output
4441 if test -z "$GREP"; then
4442 set dummy grep ggrep; ac_prog_name=$2
4443 if test "${ac_cv_path_GREP+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 ac_path_GREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452 test -z "$as_dir" && as_dir=.
4453 for ac_prog in grep ggrep; do
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4456 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4457 # Check for GNU ac_path_GREP and select it if it is found.
4458 # Check for GNU $ac_path_GREP
4459 case `"$ac_path_GREP" --version 2>&1` in
4461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4464 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4467 cat "conftest.in" "conftest.in" >"conftest.tmp"
4468 mv "conftest.tmp" "conftest.in"
4469 cp "conftest.in" "conftest.nl"
4470 echo 'GREP' >> "conftest.nl"
4471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473 ac_count=`expr $ac_count + 1`
4474 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4475 # Best one so far, save it but keep looking for a better one
4476 ac_cv_path_GREP="$ac_path_GREP"
4477 ac_path_GREP_max=$ac_count
4479 # 10*(2^10) chars as input seems more than enough
4480 test $ac_count -gt 10 && break
4482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486 $ac_path_GREP_found && break 3
4496 GREP="$ac_cv_path_GREP"
4497 if test -z "$GREP"; then
4498 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500 { (exit 1); exit 1; }; }
4504 ac_cv_path_GREP=$GREP
4509 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4510 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4511 GREP="$ac_cv_path_GREP"
4514 { echo "$as_me:$LINENO: checking for egrep" >&5
4515 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4516 if test "${ac_cv_path_EGREP+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520 then ac_cv_path_EGREP="$GREP -E"
4522 # Extract the first word of "egrep" to use in msg output
4523 if test -z "$EGREP"; then
4524 set dummy egrep; ac_prog_name=$2
4525 if test "${ac_cv_path_EGREP+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 ac_path_EGREP_found=false
4529 # Loop through the user's path and test for each of PROGNAME-LIST
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4534 test -z "$as_dir" && as_dir=.
4535 for ac_prog in egrep; do
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4538 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4539 # Check for GNU ac_path_EGREP and select it if it is found.
4540 # Check for GNU $ac_path_EGREP
4541 case `"$ac_path_EGREP" --version 2>&1` in
4543 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4546 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4549 cat "conftest.in" "conftest.in" >"conftest.tmp"
4550 mv "conftest.tmp" "conftest.in"
4551 cp "conftest.in" "conftest.nl"
4552 echo 'EGREP' >> "conftest.nl"
4553 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555 ac_count=`expr $ac_count + 1`
4556 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4557 # Best one so far, save it but keep looking for a better one
4558 ac_cv_path_EGREP="$ac_path_EGREP"
4559 ac_path_EGREP_max=$ac_count
4561 # 10*(2^10) chars as input seems more than enough
4562 test $ac_count -gt 10 && break
4564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 $ac_path_EGREP_found && break 3
4578 EGREP="$ac_cv_path_EGREP"
4579 if test -z "$EGREP"; then
4580 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4581 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4582 { (exit 1); exit 1; }; }
4586 ac_cv_path_EGREP=$EGREP
4592 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4593 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4594 EGREP="$ac_cv_path_EGREP"
4598 # Check whether --with-gnu-ld was given.
4599 if test "${with_gnu_ld+set}" = set; then
4600 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4606 if test "$GCC" = yes; then
4607 # Check if gcc -print-prog-name=ld gives a path.
4608 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4609 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4612 # gcc leaves a trailing carriage return which upsets mingw
4613 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4615 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4618 # Accept absolute paths.
4620 re_direlt='/[^/][^/]*/\.\./'
4621 # Canonicalize the pathname of ld
4622 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4623 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4624 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4626 test -z "$LD" && LD="$ac_prog"
4629 # If it fails, then pretend we aren't using GCC.
4633 # If it is relative, then search for the first ld in PATH.
4637 elif test "$with_gnu_ld" = yes; then
4638 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4639 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4641 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4642 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4644 if test "${lt_cv_path_LD+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 if test -z "$LD"; then
4648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4649 for ac_dir in $PATH; do
4651 test -z "$ac_dir" && ac_dir=.
4652 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4653 lt_cv_path_LD="$ac_dir/$ac_prog"
4654 # Check to see if the program is GNU ld. I'd rather use --version,
4655 # but apparently some GNU ld's only accept -v.
4656 # Break only if it was the GNU/non-GNU ld that we prefer.
4657 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4658 *GNU* | *'with BFD'*)
4659 test "$with_gnu_ld" != no && break
4662 test "$with_gnu_ld" != yes && break
4669 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4674 if test -n "$LD"; then
4675 { echo "$as_me:$LINENO: result: $LD" >&5
4676 echo "${ECHO_T}$LD" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4681 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4682 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4683 { (exit 1); exit 1; }; }
4684 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4685 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4686 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4690 case `$LD -v 2>&1 </dev/null` in
4691 *GNU* | *'with BFD'*)
4692 lt_cv_prog_gnu_ld=yes
4695 lt_cv_prog_gnu_ld=no
4699 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4700 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4701 with_gnu_ld=$lt_cv_prog_gnu_ld
4704 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4705 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4706 if test "${lt_cv_ld_reload_flag+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 lt_cv_ld_reload_flag='-r'
4711 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4712 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4713 reload_flag=$lt_cv_ld_reload_flag
4714 case $reload_flag in
4716 *) reload_flag=" $reload_flag" ;;
4718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4720 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4721 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4722 if test "${lt_cv_path_NM+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 if test -n "$NM"; then
4726 # Let the user override the test.
4729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4730 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4732 test -z "$ac_dir" && ac_dir=.
4733 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4734 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4735 # Check to see if the nm accepts a BSD-compat flag.
4736 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4737 # nm: unknown option "B" ignored
4738 # Tru64's nm complains that /dev/null is an invalid object file
4739 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4740 */dev/null* | *'Invalid file or object type'*)
4741 lt_cv_path_NM="$tmp_nm -B"
4745 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4747 lt_cv_path_NM="$tmp_nm -p"
4751 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4752 continue # so that we can try to find one that supports BSD flags
4759 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4762 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4763 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4766 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4767 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4769 if test "$LN_S" = "ln -s"; then
4770 { echo "$as_me:$LINENO: result: yes" >&5
4771 echo "${ECHO_T}yes" >&6; }
4773 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4774 echo "${ECHO_T}no, using $LN_S" >&6; }
4777 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4778 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4779 if test "${lt_cv_deplibs_check_method+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 lt_cv_file_magic_cmd='$MAGIC_CMD'
4783 lt_cv_file_magic_test_file=
4784 lt_cv_deplibs_check_method='unknown'
4785 # Need to set the preceding variable on all platforms that support
4786 # interlibrary dependencies.
4787 # 'none' -- dependencies not supported.
4788 # `unknown' -- same as none, but documents that we really don't know.
4789 # 'pass_all' -- all dependencies passed with no checks.
4790 # 'test_compile' -- check by making test program.
4791 # 'file_magic [[regex]]' -- check by looking for files in library path
4792 # which responds to the $file_magic_cmd with a given extended regex.
4793 # If you have `file' or equivalent on your system and you're not sure
4794 # whether `pass_all' will *always* work, you probably want this one.
4798 lt_cv_deplibs_check_method=pass_all
4802 lt_cv_deplibs_check_method=pass_all
4806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4807 lt_cv_file_magic_cmd='/usr/bin/file -L'
4808 lt_cv_file_magic_test_file=/shlib/libc.so
4812 # func_win32_libid is a shell function defined in ltmain.sh
4813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4814 lt_cv_file_magic_cmd='func_win32_libid'
4818 # Base MSYS/MinGW do not provide the 'file' command needed by
4819 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4820 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4821 lt_cv_file_magic_cmd='$OBJDUMP -f'
4824 darwin* | rhapsody*)
4825 lt_cv_deplibs_check_method=pass_all
4828 freebsd* | kfreebsd*-gnu)
4829 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4832 # Not sure whether the presence of OpenBSD here was a mistake.
4833 # Let's accept both of them until this is cleared up.
4834 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4835 lt_cv_file_magic_cmd=/usr/bin/file
4836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4840 lt_cv_deplibs_check_method=pass_all
4845 lt_cv_deplibs_check_method=pass_all
4848 hpux10.20* | hpux11*)
4849 lt_cv_file_magic_cmd=/usr/bin/file
4852 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4853 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4856 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]'
4857 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4861 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4866 irix5* | irix6* | nonstopux*)
4868 *-32|*"-32 ") libmagic=32-bit;;
4869 *-n32|*"-n32 ") libmagic=N32;;
4870 *-64|*"-64 ") libmagic=64-bit;;
4871 *) libmagic=never-match;;
4873 lt_cv_deplibs_check_method=pass_all
4876 # This must be Linux ELF.
4878 lt_cv_deplibs_check_method=pass_all
4881 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4882 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4890 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4891 lt_cv_file_magic_cmd=/usr/bin/file
4892 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4896 lt_cv_deplibs_check_method=unknown
4900 lt_cv_file_magic_cmd=/usr/bin/file
4901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4905 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4909 osf3* | osf4* | osf5*)
4910 lt_cv_deplibs_check_method=pass_all
4914 lt_cv_deplibs_check_method=pass_all
4918 lt_cv_deplibs_check_method=pass_all
4921 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4922 case $host_vendor in
4924 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]'
4925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4928 lt_cv_deplibs_check_method=pass_all
4931 lt_cv_file_magic_cmd='/bin/file'
4932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4935 lt_cv_file_magic_cmd='/bin/file'
4936 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4937 lt_cv_file_magic_test_file=/lib/libc.so
4940 lt_cv_deplibs_check_method=pass_all
4945 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4946 lt_cv_deplibs_check_method=pass_all
4951 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4952 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4953 file_magic_cmd=$lt_cv_file_magic_cmd
4954 deplibs_check_method=$lt_cv_deplibs_check_method
4955 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4960 # If no C compiler was specified, use CC.
4963 # Allow CC to be a program name with arguments.
4967 # Check whether --enable-libtool-lock was given.
4968 if test "${enable_libtool_lock+set}" = set; then
4969 enableval=$enable_libtool_lock;
4972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4974 # Some flags need to be propagated to the compiler or linker for good
4978 # Find out which ABI we are using.
4979 echo 'int i;' > conftest.$ac_ext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; then
4985 case `/usr/bin/file conftest.$ac_objext` in
4997 # Find out which ABI we are using.
4998 echo '#line 4998 "configure"' > conftest.$ac_ext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; then
5004 if test "$lt_cv_prog_gnu_ld" = yes; then
5005 case `/usr/bin/file conftest.$ac_objext` in
5007 LD="${LD-ld} -melf32bsmip"
5010 LD="${LD-ld} -melf32bmipn32"
5013 LD="${LD-ld} -melf64bmip"
5017 case `/usr/bin/file conftest.$ac_objext` in
5033 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5034 # Find out which ABI we are using.
5035 echo 'int i;' > conftest.$ac_ext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 case "`/usr/bin/file conftest.o`" in
5045 LD="${LD-ld} -m elf_i386"
5047 ppc64-*linux*|powerpc64-*linux*)
5048 LD="${LD-ld} -m elf32ppclinux"
5051 LD="${LD-ld} -m elf_s390"
5054 LD="${LD-ld} -m elf32_sparc"
5061 LD="${LD-ld} -m elf_x86_64"
5063 ppc*-*linux*|powerpc*-*linux*)
5064 LD="${LD-ld} -m elf64ppc"
5067 LD="${LD-ld} -m elf64_s390"
5070 LD="${LD-ld} -m elf64_sparc"
5080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5081 SAVE_CFLAGS="$CFLAGS"
5082 CFLAGS="$CFLAGS -belf"
5083 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5084 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5085 if test "${lt_cv_cc_needs_belf+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 cat >conftest.$ac_ext <<_ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && {
5123 test -z "$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 } && test -s conftest$ac_exeext &&
5126 $as_test_x conftest$ac_exeext; then
5127 lt_cv_cc_needs_belf=yes
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 lt_cv_cc_needs_belf=no
5135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5136 conftest$ac_exeext conftest.$ac_ext
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5145 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5146 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5147 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5148 CFLAGS="$SAVE_CFLAGS"
5151 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 if test -n "$DLLTOOL"; then
5161 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 DLLTOOL=$ac_cv_prog_DLLTOOL
5181 if test -n "$DLLTOOL"; then
5182 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5183 echo "${ECHO_T}$DLLTOOL" >&6; }
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5191 if test -z "$ac_cv_prog_DLLTOOL"; then
5192 ac_ct_DLLTOOL=$DLLTOOL
5193 # Extract the first word of "dlltool", so it can be a program name with args.
5194 set dummy dlltool; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 if test -n "$ac_ct_DLLTOOL"; then
5201 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5221 if test -n "$ac_ct_DLLTOOL"; then
5222 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5223 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5229 if test "x$ac_ct_DLLTOOL" = x; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5235 whose name does not start with the host triplet. If you think this
5236 configuration is useful to you, please write to autoconf@gnu.org." >&5
5237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5238 whose name does not start with the host triplet. If you think this
5239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5240 ac_tool_warned=yes ;;
5242 DLLTOOL=$ac_ct_DLLTOOL
5245 DLLTOOL="$ac_cv_prog_DLLTOOL"
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}as; ac_word=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_prog_AS+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test -n "$AS"; then
5257 ac_cv_prog_AS="$AS" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_AS="${ac_tool_prefix}as"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 if test -n "$AS"; then
5278 { echo "$as_me:$LINENO: result: $AS" >&5
5279 echo "${ECHO_T}$AS" >&6; }
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5287 if test -z "$ac_cv_prog_AS"; then
5289 # Extract the first word of "as", so it can be a program name with args.
5290 set dummy as; ac_word=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 if test -n "$ac_ct_AS"; then
5297 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_ac_ct_AS="as"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5317 if test -n "$ac_ct_AS"; then
5318 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5319 echo "${ECHO_T}$ac_ct_AS" >&6; }
5321 { echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6; }
5325 if test "x$ac_ct_AS" = x; then
5328 case $cross_compiling:$ac_tool_warned in
5330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5331 whose name does not start with the host triplet. If you think this
5332 configuration is useful to you, please write to autoconf@gnu.org." >&5
5333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5334 whose name does not start with the host triplet. If you think this
5335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5336 ac_tool_warned=yes ;;
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 if test -n "$OBJDUMP"; then
5353 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 OBJDUMP=$ac_cv_prog_OBJDUMP
5373 if test -n "$OBJDUMP"; then
5374 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5375 echo "${ECHO_T}$OBJDUMP" >&6; }
5377 { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5383 if test -z "$ac_cv_prog_OBJDUMP"; then
5384 ac_ct_OBJDUMP=$OBJDUMP
5385 # Extract the first word of "objdump", so it can be a program name with args.
5386 set dummy objdump; ac_word=$2
5387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5389 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 if test -n "$ac_ct_OBJDUMP"; then
5393 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5413 if test -n "$ac_ct_OBJDUMP"; then
5414 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5415 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5417 { echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6; }
5421 if test "x$ac_ct_OBJDUMP" = x; then
5424 case $cross_compiling:$ac_tool_warned in
5426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427 whose name does not start with the host triplet. If you think this
5428 configuration is useful to you, please write to autoconf@gnu.org." >&5
5429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430 whose name does not start with the host triplet. If you think this
5431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432 ac_tool_warned=yes ;;
5434 OBJDUMP=$ac_ct_OBJDUMP
5437 OBJDUMP="$ac_cv_prog_OBJDUMP"
5444 need_locks="$enable_libtool_lock"
5448 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5449 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5450 if test "${ac_cv_header_stdc+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compile") 2>conftest.er1
5481 grep -v '^ *+' conftest.er1 >conftest.err
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && {
5486 test -z "$ac_c_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest.$ac_objext; then
5489 ac_cv_header_stdc=yes
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 ac_cv_header_stdc=no
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 if test $ac_cv_header_stdc = yes; then
5500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5501 cat >conftest.$ac_ext <<_ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511 $EGREP "memchr" >/dev/null 2>&1; then
5514 ac_cv_header_stdc=no
5520 if test $ac_cv_header_stdc = yes; then
5521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5522 cat >conftest.$ac_ext <<_ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532 $EGREP "free" >/dev/null 2>&1; then
5535 ac_cv_header_stdc=no
5541 if test $ac_cv_header_stdc = yes; then
5542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5543 if test "$cross_compiling" = yes; then
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558 # define ISLOWER(c) \
5559 (('a' <= (c) && (c) <= 'i') \
5560 || ('j' <= (c) && (c) <= 'r') \
5561 || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570 for (i = 0; i < 256; i++)
5571 if (XOR (islower (i), ISLOWER (i))
5572 || toupper (i) != TOUPPER (i))
5577 rm -f conftest$ac_exeext
5578 if { (ac_try="$ac_link"
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_link") 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5588 { (case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_try") 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5599 echo "$as_me: program exited with status $ac_status" >&5
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5604 ac_cv_header_stdc=no
5606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5613 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5614 if test $ac_cv_header_stdc = yes; then
5616 cat >>confdefs.h <<\_ACEOF
5617 #define STDC_HEADERS 1
5622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5633 inttypes.h stdint.h unistd.h
5635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5649 #include <$ac_header>
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 eval "$as_ac_Header=yes"
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 eval "$as_ac_Header=no"
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 ac_res=`eval echo '${'$as_ac_Header'}'`
5679 { echo "$as_me:$LINENO: result: $ac_res" >&5
5680 echo "${ECHO_T}$ac_res" >&6; }
5681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5682 cat >>confdefs.h <<_ACEOF
5683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5692 for ac_header in dlfcn.h
5694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 ac_res=`eval echo '${'$as_ac_Header'}'`
5702 { echo "$as_me:$LINENO: result: $ac_res" >&5
5703 echo "${ECHO_T}$ac_res" >&6; }
5705 # Is the header compilable?
5706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5708 cat >conftest.$ac_ext <<_ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 $ac_includes_default
5715 #include <$ac_header>
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_header_compiler=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_header_compiler=no
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5744 echo "${ECHO_T}$ac_header_compiler" >&6; }
5746 # Is the header present?
5747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <$ac_header>
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null && {
5770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5773 ac_header_preproc=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 ac_header_preproc=no
5781 rm -f conftest.err conftest.$ac_ext
5782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5783 echo "${ECHO_T}$ac_header_preproc" >&6; }
5785 # So? What about this header?
5786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5792 ac_header_preproc=yes
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5808 ## ---------------------------------- ##
5809 ## Report this to bug-gnupg@gnupg.org ##
5810 ## ---------------------------------- ##
5812 ) | sed "s/^/$as_me: WARNING: /" >&2
5815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 eval "$as_ac_Header=\$ac_header_preproc"
5822 ac_res=`eval echo '${'$as_ac_Header'}'`
5823 { echo "$as_me:$LINENO: result: $ac_res" >&5
5824 echo "${ECHO_T}$ac_res" >&6; }
5827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5828 cat >>confdefs.h <<_ACEOF
5829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5837 ac_cpp='$CXXCPP $CPPFLAGS'
5838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841 if test -z "$CXX"; then
5842 if test -n "$CCC"; then
5845 if test -n "$ac_tool_prefix"; then
5846 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_CXX+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$CXX"; then
5856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 if test -n "$CXX"; then
5877 { echo "$as_me:$LINENO: result: $CXX" >&5
5878 echo "${ECHO_T}$CXX" >&6; }
5880 { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5885 test -n "$CXX" && break
5888 if test -z "$CXX"; then
5890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5892 # Extract the first word of "$ac_prog", so it can be a program name with args.
5893 set dummy $ac_prog; ac_word=$2
5894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 if test -n "$ac_ct_CXX"; then
5900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_prog_ac_ct_CXX="$ac_prog"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5920 if test -n "$ac_ct_CXX"; then
5921 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5922 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5924 { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5929 test -n "$ac_ct_CXX" && break
5932 if test "x$ac_ct_CXX" = x; then
5935 case $cross_compiling:$ac_tool_warned in
5937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5938 whose name does not start with the host triplet. If you think this
5939 configuration is useful to you, please write to autoconf@gnu.org." >&5
5940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5941 whose name does not start with the host triplet. If you think this
5942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5943 ac_tool_warned=yes ;;
5951 # Provide some information about the compiler.
5952 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5953 ac_compiler=`set X $ac_compile; echo $2`
5954 { (ac_try="$ac_compiler --version >&5"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compiler --version >&5") 2>&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }
5964 { (ac_try="$ac_compiler -v >&5"
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compiler -v >&5") 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }
5974 { (ac_try="$ac_compiler -V >&5"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compiler -V >&5") 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }
5985 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5986 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5987 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_cxx_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.$ac_objext; then
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6039 GXX=`test $ac_compiler_gnu = yes && echo yes`
6040 ac_test_CXXFLAGS=${CXXFLAGS+set}
6041 ac_save_CXXFLAGS=$CXXFLAGS
6042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_cxx_g+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6048 ac_cxx_werror_flag=yes
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6066 rm -f conftest.$ac_objext
6067 if { (ac_try="$ac_compile"
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6075 grep -v '^ *+' conftest.er1 >conftest.err
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_cxx_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
6083 ac_cv_prog_cxx_g=yes
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6104 rm -f conftest.$ac_objext
6105 if { (ac_try="$ac_compile"
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_compile") 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_cxx_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest.$ac_objext; then
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6143 rm -f conftest.$ac_objext
6144 if { (ac_try="$ac_compile"
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_compile") 2>conftest.er1
6152 grep -v '^ *+' conftest.er1 >conftest.err
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && {
6157 test -z "$ac_cxx_werror_flag" ||
6158 test ! -s conftest.err
6159 } && test -s conftest.$ac_objext; then
6160 ac_cv_prog_cxx_g=yes
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6178 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6179 if test "$ac_test_CXXFLAGS" = set; then
6180 CXXFLAGS=$ac_save_CXXFLAGS
6181 elif test $ac_cv_prog_cxx_g = yes; then
6182 if test "$GXX" = yes; then
6188 if test "$GXX" = yes; then
6195 ac_cpp='$CXXCPP $CPPFLAGS'
6196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6200 depcc="$CXX" am_compiler_list=
6202 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6203 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6204 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6208 # We make a subdir and do the tests there. Otherwise we can end up
6209 # making bogus files that we don't know about and never remove. For
6210 # instance it was reported that on HP-UX the gcc test will end up
6211 # making a dummy file named `D' -- because `-MD' means `put the output
6214 # Copy depcomp to subdir because otherwise we won't find it if we're
6215 # using a relative directory.
6216 cp "$am_depcomp" conftest.dir
6218 # We will build objects and dependencies in a subdirectory because
6219 # it helps to detect inapplicable dependency modes. For instance
6220 # both Tru64's cc and ICC support -MD to output dependencies as a
6221 # side effect of compilation, but ICC will put the dependencies in
6222 # the current directory while Tru64 will put them in the object
6226 am_cv_CXX_dependencies_compiler_type=none
6227 if test "$am_compiler_list" = ""; then
6228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6230 for depmode in $am_compiler_list; do
6231 # Setup a source with many dependencies, because some compilers
6232 # like to wrap large dependency lists on column 80 (with \), and
6233 # we should not choose a depcomp mode which is confused by this.
6235 # We need to recreate these files for each test, as the compiler may
6236 # overwrite some of them when testing with obscure command lines.
6237 # This happens at least with the AIX C compiler.
6239 for i in 1 2 3 4 5 6; do
6240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6242 # Solaris 8's {/usr,}/bin/sh.
6243 touch sub/conftst$i.h
6245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6249 # after this tag, mechanisms are not by side-effect, so they'll
6250 # only be used when explicitly requested
6251 if test "x$enable_dependency_tracking" = xyes; then
6259 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6260 # mode. It turns out that the SunPro C++ compiler does not properly
6261 # handle `-M -o', and we need to detect this.
6262 if depmode=$depmode \
6263 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6265 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6266 >/dev/null 2>conftest.err &&
6267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6271 # icc doesn't choke on unknown options, it will just issue warnings
6272 # or remarks (even with -Werror). So we grep stderr for any message
6273 # that says an option was ignored or not supported.
6274 # When given -MP, icc 7.0 and 7.1 complain thusly:
6275 # icc: Command line warning: ignoring option '-M'; no argument required
6276 # The diagnosis changed in icc 8.0:
6277 # icc: Command line remark: option '-MP' not supported
6278 if (grep 'ignoring option' conftest.err ||
6279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6280 am_cv_CXX_dependencies_compiler_type=$depmode
6289 am_cv_CXX_dependencies_compiler_type=none
6293 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6294 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6295 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6298 test "x$enable_dependency_tracking" != xno \
6299 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6300 am__fastdepCXX_TRUE=
6301 am__fastdepCXX_FALSE='#'
6303 am__fastdepCXX_TRUE='#'
6304 am__fastdepCXX_FALSE=
6309 ac_cpp='$CXXCPP $CPPFLAGS'
6310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6313 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6314 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6315 if test -z "$CXXCPP"; then
6316 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 # Double quotes because CXXCPP needs to be expanded
6320 for CXXCPP in "$CXX -E" "/lib/cpp"
6323 for ac_cxx_preproc_warn_flag in '' yes
6325 # Use a header file that comes with gcc, so configuring glibc
6326 # with a fresh cross-compiler works.
6327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6328 # <limits.h> exists even on freestanding compilers.
6329 # On the NeXT, cc -E runs the code through the compiler's parser,
6330 # not just through cpp. "Syntax error" is here to catch this case.
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6338 # include <limits.h>
6340 # include <assert.h>
6344 if { (ac_try="$ac_cpp conftest.$ac_ext"
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null && {
6357 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6358 test ! -s conftest.err
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 # Broken: fails on valid input.
6369 rm -f conftest.err conftest.$ac_ext
6371 # OK, works on sane cases. Now check whether nonexistent headers
6372 # can be detected and how.
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <ac_nonexistent.h>
6381 if { (ac_try="$ac_cpp conftest.$ac_ext"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } >/dev/null && {
6394 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6395 test ! -s conftest.err
6397 # Broken: success on invalid input.
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 # Passes both tests.
6408 rm -f conftest.err conftest.$ac_ext
6411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412 rm -f conftest.err conftest.$ac_ext
6413 if $ac_preproc_ok; then
6418 ac_cv_prog_CXXCPP=$CXXCPP
6421 CXXCPP=$ac_cv_prog_CXXCPP
6423 ac_cv_prog_CXXCPP=$CXXCPP
6425 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6426 echo "${ECHO_T}$CXXCPP" >&6; }
6428 for ac_cxx_preproc_warn_flag in '' yes
6430 # Use a header file that comes with gcc, so configuring glibc
6431 # with a fresh cross-compiler works.
6432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6433 # <limits.h> exists even on freestanding compilers.
6434 # On the NeXT, cc -E runs the code through the compiler's parser,
6435 # not just through cpp. "Syntax error" is here to catch this case.
6436 cat >conftest.$ac_ext <<_ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6443 # include <limits.h>
6445 # include <assert.h>
6449 if { (ac_try="$ac_cpp conftest.$ac_ext"
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6457 grep -v '^ *+' conftest.er1 >conftest.err
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } >/dev/null && {
6462 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6463 test ! -s conftest.err
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6470 # Broken: fails on valid input.
6474 rm -f conftest.err conftest.$ac_ext
6476 # OK, works on sane cases. Now check whether nonexistent headers
6477 # can be detected and how.
6478 cat >conftest.$ac_ext <<_ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #include <ac_nonexistent.h>
6486 if { (ac_try="$ac_cpp conftest.$ac_ext"
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } >/dev/null && {
6499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6500 test ! -s conftest.err
6502 # Broken: success on invalid input.
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 # Passes both tests.
6513 rm -f conftest.err conftest.$ac_ext
6516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6517 rm -f conftest.err conftest.$ac_ext
6518 if $ac_preproc_ok; then
6521 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6522 See \`config.log' for more details." >&5
6523 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6524 See \`config.log' for more details." >&2;}
6525 { (exit 1); exit 1; }; }
6529 ac_cpp='$CXXCPP $CPPFLAGS'
6530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6536 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6537 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6539 if test -n "$ac_tool_prefix"; then
6540 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_prog_F77+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 if test -n "$F77"; then
6550 ac_cv_prog_F77="$F77" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 if test -n "$F77"; then
6571 { echo "$as_me:$LINENO: result: $F77" >&5
6572 echo "${ECHO_T}$F77" >&6; }
6574 { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6579 test -n "$F77" && break
6582 if test -z "$F77"; then
6584 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6586 # Extract the first word of "$ac_prog", so it can be a program name with args.
6587 set dummy $ac_prog; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 if test -n "$ac_ct_F77"; then
6594 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_F77="$ac_prog"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6614 if test -n "$ac_ct_F77"; then
6615 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6616 echo "${ECHO_T}$ac_ct_F77" >&6; }
6618 { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6623 test -n "$ac_ct_F77" && break
6626 if test "x$ac_ct_F77" = x; then
6629 case $cross_compiling:$ac_tool_warned in
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet. If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet. If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6644 # Provide some information about the compiler.
6645 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6646 ac_compiler=`set X $ac_compile; echo $2`
6647 { (ac_try="$ac_compiler --version >&5"
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_compiler --version >&5") 2>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }
6657 { (ac_try="$ac_compiler -v >&5"
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_compiler -v >&5") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }
6667 { (ac_try="$ac_compiler -V >&5"
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_compiler -V >&5") 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }
6679 # If we don't use `.F' as extension, the preprocessor is not run on the
6680 # input file. (Note that this only needs to work for GNU compilers.)
6683 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6684 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6685 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 cat >conftest.$ac_ext <<_ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_compile") 2>conftest.er1
6705 grep -v '^ *+' conftest.er1 >conftest.err
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && {
6710 test -z "$ac_f77_werror_flag" ||
6711 test ! -s conftest.err
6712 } && test -s conftest.$ac_objext; then
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6725 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6726 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6728 ac_test_FFLAGS=${FFLAGS+set}
6729 ac_save_FFLAGS=$FFLAGS
6731 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6732 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6733 if test "${ac_cv_prog_f77_g+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_compile") 2>conftest.er1
6751 grep -v '^ *+' conftest.er1 >conftest.err
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_f77_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest.$ac_objext; then
6759 ac_cv_prog_f77_g=yes
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6771 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6772 if test "$ac_test_FFLAGS" = set; then
6773 FFLAGS=$ac_save_FFLAGS
6774 elif test $ac_cv_prog_f77_g = yes; then
6775 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6781 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6788 G77=`test $ac_compiler_gnu = yes && echo yes`
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6799 # find the maximum length of command line arguments
6800 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6801 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6802 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 # On DJGPP, this test can blow up pretty badly due to problems in libc
6811 # (any single argument exceeding 2000 bytes causes a buffer overrun
6812 # during glob expansion). Even if it were fixed, the result of this
6813 # check would be larger than it should be.
6814 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6818 # Under GNU Hurd, this test is not required because there is
6819 # no limit to the length of command line arguments.
6820 # Libtool will interpret -1 as no limit whatsoever
6821 lt_cv_sys_max_cmd_len=-1;
6825 # On Win9x/ME, this test blows up -- it succeeds, but takes
6826 # about 5 minutes as the teststring grows exponentially.
6827 # Worse, since 9x/ME are not pre-emptively multitasking,
6828 # you end up with a "frozen" computer, even though with patience
6829 # the test eventually succeeds (with a max line length of 256k).
6830 # Instead, let's just punt: use the minimum linelength reported by
6831 # all of the supported platforms: 8192 (on NT/2K/XP).
6832 lt_cv_sys_max_cmd_len=8192;
6836 # On AmigaOS with pdksh, this test takes hours, literally.
6837 # So we just punt and use a minimum line length of 8192.
6838 lt_cv_sys_max_cmd_len=8192;
6842 # If test is not a shell built-in, we'll probably end up computing a
6843 # maximum length that is only half of the actual maximum length, but
6845 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6846 = "XX$teststring") >/dev/null 2>&1 &&
6847 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6848 lt_cv_sys_max_cmd_len=$new_result &&
6849 test $i != 17 # 1/2 MB should be enough
6852 teststring=$teststring$teststring
6855 # Add a significant safety factor because C++ compilers can tack on massive
6856 # amounts of additional arguments before passing them to the linker.
6857 # It appears as though 1/2 is a usable value.
6858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6864 if test -n $lt_cv_sys_max_cmd_len ; then
6865 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6866 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6868 { echo "$as_me:$LINENO: result: none" >&5
6869 echo "${ECHO_T}none" >&6; }
6875 # Check for command to grab the raw symbol name followed by C symbol from nm.
6876 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6877 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 # These are sane defaults that work on at least a few old systems.
6883 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6885 # Character class describing NM global symbol codes.
6886 symcode='[BCDEGRST]'
6888 # Regexp to match symbols that can be accessed directly from C.
6889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6891 # Transform the above into a raw symbol and a C symbol.
6892 symxfrm='\1 \2\3 \3'
6894 # Transform an extracted symbol line into a proper C declaration
6895 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6897 # Transform an extracted symbol line into symbol name and symbol address
6898 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'"
6900 # Define system-specific variables.
6905 cygwin* | mingw* | pw32*)
6906 symcode='[ABCDGISTW]'
6908 hpux*) # Its linker distinguishes data from code symbols
6909 if test "$host_cpu" = ia64; then
6910 symcode='[ABCDEGRST]'
6912 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6913 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'"
6916 symcode='[BCDEGRST]'
6919 symcode='[BCDEGQRST]'
6929 # Handle CRLF in mingw tool chain
6933 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6937 # If we're using GNU nm, then use its standard symbol codes.
6938 case `$NM -V 2>&1` in
6939 *GNU* | *'with BFD'*)
6940 symcode='[ABCDGIRSTW]' ;;
6943 # Try without a prefix undercore, then with it.
6944 for ac_symprfx in "" "_"; do
6946 # Write the raw and C identifiers.
6947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6949 # Check to see that the pipe works correctly.
6953 cat > conftest.$ac_ext <<EOF
6958 void nm_test_func(){}
6962 int main(){nm_test_var='a';nm_test_func();return(0);}
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; then
6970 # Now try to grab the symbols.
6972 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6973 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } && test -s "$nlist"; then
6977 # Try sorting and uniquifying the output.
6978 if sort "$nlist" | uniq > "$nlist"T; then
6979 mv -f "$nlist"T "$nlist"
6984 # Make sure that we snagged all the symbols we need.
6985 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6986 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6987 cat <<EOF > conftest.$ac_ext
6993 # Now generate the symbol file.
6994 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6996 cat <<EOF >> conftest.$ac_ext
6997 #if defined (__STDC__) && __STDC__
6998 # define lt_ptr_t void *
7000 # define lt_ptr_t char *
7004 /* The mapping between symbol names and symbols. */
7009 lt_preloaded_symbols[] =
7012 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7013 cat <<\EOF >> conftest.$ac_ext
7021 # Now try linking the two files.
7022 mv conftest.$ac_objext conftstm.$ac_objext
7023 lt_save_LIBS="$LIBS"
7024 lt_save_CFLAGS="$CFLAGS"
7025 LIBS="conftstm.$ac_objext"
7026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7028 (eval $ac_link) 2>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7034 LIBS="$lt_save_LIBS"
7035 CFLAGS="$lt_save_CFLAGS"
7037 echo "cannot find nm_test_func in $nlist" >&5
7040 echo "cannot find nm_test_var in $nlist" >&5
7043 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7046 echo "$progname: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7049 rm -f conftest* conftst*
7051 # Do not use the global_symbol_pipe unless it works.
7052 if test "$pipe_works" = yes; then
7055 lt_cv_sys_global_symbol_pipe=
7061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7062 lt_cv_sys_global_symbol_to_cdecl=
7064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7065 { echo "$as_me:$LINENO: result: failed" >&5
7066 echo "${ECHO_T}failed" >&6; }
7068 { echo "$as_me:$LINENO: result: ok" >&5
7069 echo "${ECHO_T}ok" >&6; }
7072 { echo "$as_me:$LINENO: checking for objdir" >&5
7073 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7074 if test "${lt_cv_objdir+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 rm -f .libs 2>/dev/null
7078 mkdir .libs 2>/dev/null
7079 if test -d .libs; then
7082 # MS-DOS does not allow filenames that begin with a dot.
7085 rmdir .libs 2>/dev/null
7087 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7088 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7089 objdir=$lt_cv_objdir
7097 # AIX sometimes has problems with the GCC collect2 program. For some
7098 # reason, if we set the COLLECT_NAMES environment variable, the problems
7099 # vanish in a puff of smoke.
7100 if test "X${COLLECT_NAMES+set}" != Xset; then
7102 export COLLECT_NAMES
7107 # Sed substitution that helps us do robust quoting. It backslashifies
7108 # metacharacters that are still active within double-quoted strings.
7109 Xsed='sed -e s/^X//'
7110 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7112 # Same as above, but do not quote variable references.
7113 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7115 # Sed substitution to delay expansion of an escaped shell variable in a
7116 # double_quote_subst'ed string.
7117 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7119 # Sed substitution to avoid accidental globbing in evaled expressions
7120 no_glob_subst='s/\*/\\\*/g'
7126 default_ofile=libtool
7127 can_build_shared=yes
7129 # All known linkers require a `.a' archive for static linking (except M$VC,
7130 # which needs '.lib').
7132 ltmain="$ac_aux_dir/ltmain.sh"
7133 ofile="$default_ofile"
7134 with_gnu_ld="$lt_cv_prog_gnu_ld"
7136 if test -n "$ac_tool_prefix"; then
7137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}ar; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_prog_AR+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 if test -n "$AR"; then
7145 ac_cv_prog_AR="$AR" # Let the user override the test.
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_AR="${ac_tool_prefix}ar"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 if test -n "$AR"; then
7166 { echo "$as_me:$LINENO: result: $AR" >&5
7167 echo "${ECHO_T}$AR" >&6; }
7169 { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7175 if test -z "$ac_cv_prog_AR"; then
7177 # Extract the first word of "ar", so it can be a program name with args.
7178 set dummy ar; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 if test -n "$ac_ct_AR"; then
7185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_ac_ct_AR="ar"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7205 if test -n "$ac_ct_AR"; then
7206 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7207 echo "${ECHO_T}$ac_ct_AR" >&6; }
7209 { echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6; }
7213 if test "x$ac_ct_AR" = x; then
7216 case $cross_compiling:$ac_tool_warned in
7218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7219 whose name does not start with the host triplet. If you think this
7220 configuration is useful to you, please write to autoconf@gnu.org." >&5
7221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7222 whose name does not start with the host triplet. If you think this
7223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7224 ac_tool_warned=yes ;;
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237 if test "${ac_cv_prog_RANLIB+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 if test -n "$RANLIB"; then
7241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 RANLIB=$ac_cv_prog_RANLIB
7261 if test -n "$RANLIB"; then
7262 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7263 echo "${ECHO_T}$RANLIB" >&6; }
7265 { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7271 if test -z "$ac_cv_prog_RANLIB"; then
7272 ac_ct_RANLIB=$RANLIB
7273 # Extract the first word of "ranlib", so it can be a program name with args.
7274 set dummy ranlib; ac_word=$2
7275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 if test -n "$ac_ct_RANLIB"; then
7281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_ac_ct_RANLIB="ranlib"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7301 if test -n "$ac_ct_RANLIB"; then
7302 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7303 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7309 if test "x$ac_ct_RANLIB" = x; then
7312 case $cross_compiling:$ac_tool_warned in
7314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7315 whose name does not start with the host triplet. If you think this
7316 configuration is useful to you, please write to autoconf@gnu.org." >&5
7317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7318 whose name does not start with the host triplet. If you think this
7319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7320 ac_tool_warned=yes ;;
7322 RANLIB=$ac_ct_RANLIB
7325 RANLIB="$ac_cv_prog_RANLIB"
7328 if test -n "$ac_tool_prefix"; then
7329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7330 set dummy ${ac_tool_prefix}strip; ac_word=$2
7331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7333 if test "${ac_cv_prog_STRIP+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 if test -n "$STRIP"; then
7337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 STRIP=$ac_cv_prog_STRIP
7357 if test -n "$STRIP"; then
7358 { echo "$as_me:$LINENO: result: $STRIP" >&5
7359 echo "${ECHO_T}$STRIP" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7367 if test -z "$ac_cv_prog_STRIP"; then
7369 # Extract the first word of "strip", so it can be a program name with args.
7370 set dummy strip; ac_word=$2
7371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 if test -n "$ac_ct_STRIP"; then
7377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_prog_ac_ct_STRIP="strip"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7397 if test -n "$ac_ct_STRIP"; then
7398 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7399 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7401 { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7405 if test "x$ac_ct_STRIP" = x; then
7408 case $cross_compiling:$ac_tool_warned in
7410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7411 whose name does not start with the host triplet. If you think this
7412 configuration is useful to you, please write to autoconf@gnu.org." >&5
7413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7414 whose name does not start with the host triplet. If you think this
7415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7416 ac_tool_warned=yes ;;
7421 STRIP="$ac_cv_prog_STRIP"
7426 old_CFLAGS="$CFLAGS"
7428 # Set sane defaults for various variables
7429 test -z "$AR" && AR=ar
7430 test -z "$AR_FLAGS" && AR_FLAGS=cru
7431 test -z "$AS" && AS=as
7432 test -z "$CC" && CC=cc
7433 test -z "$LTCC" && LTCC=$CC
7434 test -z "$DLLTOOL" && DLLTOOL=dlltool
7435 test -z "$LD" && LD=ld
7436 test -z "$LN_S" && LN_S="ln -s"
7437 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7438 test -z "$NM" && NM=nm
7439 test -z "$SED" && SED=sed
7440 test -z "$OBJDUMP" && OBJDUMP=objdump
7441 test -z "$RANLIB" && RANLIB=:
7442 test -z "$STRIP" && STRIP=:
7443 test -z "$ac_objext" && ac_objext=o
7445 # Determine commands to create old-style static archives.
7446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7447 old_postinstall_cmds='chmod 644 $oldlib'
7448 old_postuninstall_cmds=
7450 if test -n "$RANLIB"; then
7453 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7456 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7462 # Only perform the check for file, if the check method requires it
7463 case $deplibs_check_method in
7465 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7466 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7467 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7476 lt_save_MAGIC_CMD="$MAGIC_CMD"
7477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7479 for ac_dir in $ac_dummy; do
7481 test -z "$ac_dir" && ac_dir=.
7482 if test -f $ac_dir/${ac_tool_prefix}file; then
7483 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7484 if test -n "$file_magic_test_file"; then
7485 case $deplibs_check_method in
7487 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7490 $EGREP "$file_magic_regex" > /dev/null; then
7495 *** Warning: the command libtool uses to detect shared libraries,
7496 *** $file_magic_cmd, produces output that libtool cannot recognize.
7497 *** The result is that libtool may fail to recognize shared libraries
7498 *** as such. This will affect the creation of libtool libraries that
7499 *** depend on shared libraries, but programs linked with such libtool
7500 *** libraries will work regardless of this problem. Nevertheless, you
7501 *** may want to report the problem to your system manager and/or to
7502 *** bug-libtool@gnu.org
7512 MAGIC_CMD="$lt_save_MAGIC_CMD"
7517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7518 if test -n "$MAGIC_CMD"; then
7519 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7520 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7526 if test -z "$lt_cv_path_MAGIC_CMD"; then
7527 if test -n "$ac_tool_prefix"; then
7528 { echo "$as_me:$LINENO: checking for file" >&5
7529 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7530 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7538 lt_save_MAGIC_CMD="$MAGIC_CMD"
7539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7541 for ac_dir in $ac_dummy; do
7543 test -z "$ac_dir" && ac_dir=.
7544 if test -f $ac_dir/file; then
7545 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7546 if test -n "$file_magic_test_file"; then
7547 case $deplibs_check_method in
7549 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7552 $EGREP "$file_magic_regex" > /dev/null; then
7557 *** Warning: the command libtool uses to detect shared libraries,
7558 *** $file_magic_cmd, produces output that libtool cannot recognize.
7559 *** The result is that libtool may fail to recognize shared libraries
7560 *** as such. This will affect the creation of libtool libraries that
7561 *** depend on shared libraries, but programs linked with such libtool
7562 *** libraries will work regardless of this problem. Nevertheless, you
7563 *** may want to report the problem to your system manager and/or to
7564 *** bug-libtool@gnu.org
7574 MAGIC_CMD="$lt_save_MAGIC_CMD"
7579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580 if test -n "$MAGIC_CMD"; then
7581 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7582 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7584 { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7598 enable_win32_dll=yes
7600 # Check whether --enable-libtool-lock was given.
7601 if test "${enable_libtool_lock+set}" = set; then
7602 enableval=$enable_libtool_lock;
7605 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7608 # Check whether --with-pic was given.
7609 if test "${with_pic+set}" = set; then
7610 withval=$with_pic; pic_mode="$withval"
7615 test -z "$pic_mode" && pic_mode=default
7617 # Use C for the default configuration in the libtool script
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7627 # Source file extension for C test sources.
7630 # Object file extension for compiled C test sources.
7634 # Code to be used in simple compile tests
7635 lt_simple_compile_test_code="int some_variable = 0;\n"
7637 # Code to be used in simple link tests
7638 lt_simple_link_test_code='int main(){return(0);}\n'
7641 # If no C compiler was specified, use CC.
7644 # Allow CC to be a program name with arguments.
7649 # Check for any special shared library compilation flags.
7652 if test "$GCC" = no; then
7655 lt_prog_cc_shlib='-belf'
7659 if test -n "$lt_prog_cc_shlib"; then
7660 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7661 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7662 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7664 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7665 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7666 lt_cv_prog_cc_can_build_shared=no
7672 # Check to make sure the static flag actually works.
7674 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7675 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7676 if test "${lt_prog_compiler_static_works+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 lt_prog_compiler_static_works=no
7680 save_LDFLAGS="$LDFLAGS"
7681 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7682 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7684 # The compiler can only warn and ignore the option if not recognized
7685 # So say no if there are warnings
7686 if test -s conftest.err; then
7687 # Append any errors to the config.log.
7688 cat conftest.err 1>&5
7690 lt_prog_compiler_static_works=yes
7694 LDFLAGS="$save_LDFLAGS"
7697 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7698 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7700 if test x"$lt_prog_compiler_static_works" = xyes; then
7703 lt_prog_compiler_static=
7709 ## There is no encapsulation within the following macros, do not change
7710 ## the running order or otherwise move them around unless you know exactly
7711 ## what you are doing...
7713 lt_prog_compiler_no_builtin_flag=
7715 if test "$GCC" = yes; then
7716 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7719 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7721 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 lt_cv_prog_compiler_rtti_exceptions=no
7725 ac_outfile=conftest.$ac_objext
7726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7727 lt_compiler_flag="-fno-rtti -fno-exceptions"
7728 # Insert the option either (1) after the last *FLAGS variable, or
7729 # (2) before a word containing "conftest.", or (3) at the end.
7730 # Note that $ac_compile itself does not contain backslashes and begins
7731 # with a dollar sign (not a hyphen), so the echo should work correctly.
7732 # The option is referenced via a variable to avoid confusing sed.
7733 lt_compile=`echo "$ac_compile" | $SED \
7734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736 -e 's:$: $lt_compiler_flag:'`
7737 (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738 (eval "$lt_compile" 2>conftest.err)
7740 cat conftest.err >&5
7741 echo "$as_me:7741: \$? = $ac_status" >&5
7742 if (exit $ac_status) && test -s "$ac_outfile"; then
7743 # The compiler can only warn and ignore the option if not recognized
7744 # So say no if there are warnings
7745 if test ! -s conftest.err; then
7746 lt_cv_prog_compiler_rtti_exceptions=yes
7752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7756 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7763 lt_prog_compiler_wl=
7764 lt_prog_compiler_pic=
7765 lt_prog_compiler_static=
7767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7770 if test "$GCC" = yes; then
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_static='-static'
7776 # All AIX code is PIC.
7777 if test "$host_cpu" = ia64; then
7778 # AIX 5 now supports IA64 processor
7779 lt_prog_compiler_static='-Bstatic'
7784 # FIXME: we need at least 68020 code to build shared libraries, but
7785 # adding the `-m68020' flag to GCC prevents building anything better,
7787 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7790 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7791 # PIC is the default for these OSes.
7794 mingw* | pw32* | os2*)
7795 # This hack is so that the source file can tell whether it is being
7796 # built for inclusion in a dll (and should export symbols for example).
7797 lt_prog_compiler_pic='-DDLL_EXPORT'
7800 darwin* | rhapsody*)
7801 # PIC is the default on this platform
7802 # Common symbols not allowed in MH_DYLIB files
7803 lt_prog_compiler_pic='-fno-common'
7807 # Just because we use GCC doesn't mean we suddenly get shared libraries
7808 # on systems that don't support them.
7809 lt_prog_compiler_can_build_shared=no
7814 if test -d /usr/nec; then
7815 lt_prog_compiler_pic=-Kconform_pic
7820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7827 lt_prog_compiler_pic='-fPIC'
7833 lt_prog_compiler_pic='-fPIC'
7837 # PORTME Check for flag to pass linker flags through the system compiler.
7840 lt_prog_compiler_wl='-Wl,'
7841 if test "$host_cpu" = ia64; then
7842 # AIX 5 now supports IA64 processor
7843 lt_prog_compiler_static='-Bstatic'
7845 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7849 mingw* | pw32* | os2*)
7850 # This hack is so that the source file can tell whether it is being
7851 # built for inclusion in a dll (and should export symbols for example).
7852 lt_prog_compiler_pic='-DDLL_EXPORT'
7855 hpux9* | hpux10* | hpux11*)
7856 lt_prog_compiler_wl='-Wl,'
7857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7864 lt_prog_compiler_pic='+Z'
7867 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7868 lt_prog_compiler_static='${wl}-a ${wl}archive'
7871 irix5* | irix6* | nonstopux*)
7872 lt_prog_compiler_wl='-Wl,'
7873 # PIC (with -KPIC) is the default.
7874 lt_prog_compiler_static='-non_shared'
7878 lt_prog_compiler_pic='-KPIC'
7879 lt_prog_compiler_static='-Bstatic'
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_pic='-KPIC'
7887 lt_prog_compiler_static='-static'
7890 lt_prog_compiler_wl='-Wl,'
7891 # All Alpha code is PIC.
7892 lt_prog_compiler_static='-non_shared'
7897 osf3* | osf4* | osf5*)
7898 lt_prog_compiler_wl='-Wl,'
7899 # All OSF/1 code is PIC.
7900 lt_prog_compiler_static='-non_shared'
7904 lt_prog_compiler_pic='-Kpic'
7905 lt_prog_compiler_static='-dn'
7909 lt_prog_compiler_wl='-Wl,'
7910 lt_prog_compiler_pic='-KPIC'
7911 lt_prog_compiler_static='-Bstatic'
7915 lt_prog_compiler_wl='-Qoption ld '
7916 lt_prog_compiler_pic='-PIC'
7917 lt_prog_compiler_static='-Bstatic'
7920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7921 lt_prog_compiler_wl='-Wl,'
7922 lt_prog_compiler_pic='-KPIC'
7923 lt_prog_compiler_static='-Bstatic'
7927 if test -d /usr/nec ;then
7928 lt_prog_compiler_pic='-Kconform_pic'
7929 lt_prog_compiler_static='-Bstatic'
7934 lt_prog_compiler_pic='-pic'
7935 lt_prog_compiler_static='-Bstatic'
7939 lt_prog_compiler_can_build_shared=no
7944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7945 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7948 # Check to make sure the PIC flag actually works.
7950 if test -n "$lt_prog_compiler_pic"; then
7952 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7953 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7954 if test "${lt_prog_compiler_pic_works+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 lt_prog_compiler_pic_works=no
7958 ac_outfile=conftest.$ac_objext
7959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7961 # Insert the option either (1) after the last *FLAGS variable, or
7962 # (2) before a word containing "conftest.", or (3) at the end.
7963 # Note that $ac_compile itself does not contain backslashes and begins
7964 # with a dollar sign (not a hyphen), so the echo should work correctly.
7965 # The option is referenced via a variable to avoid confusing sed.
7966 lt_compile=`echo "$ac_compile" | $SED \
7967 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7969 -e 's:$: $lt_compiler_flag:'`
7970 (eval echo "\"\$as_me:7970: $lt_compile\"" >&5)
7971 (eval "$lt_compile" 2>conftest.err)
7973 cat conftest.err >&5
7974 echo "$as_me:7974: \$? = $ac_status" >&5
7975 if (exit $ac_status) && test -s "$ac_outfile"; then
7976 # The compiler can only warn and ignore the option if not recognized
7977 # So say no if there are warnings
7978 if test ! -s conftest.err; then
7979 lt_prog_compiler_pic_works=yes
7985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7986 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7988 if test x"$lt_prog_compiler_pic_works" = xyes; then
7989 case $lt_prog_compiler_pic in
7991 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7994 lt_prog_compiler_pic=
7995 lt_prog_compiler_can_build_shared=no
8000 # For platforms which do not support PIC, -DPIC is meaningless:
8002 lt_prog_compiler_pic=
8005 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8009 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8011 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 lt_cv_prog_compiler_c_o=no
8015 $rm -r conftest 2>/dev/null
8019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8021 lt_compiler_flag="-o out/conftest2.$ac_objext"
8022 # Insert the option either (1) after the last *FLAGS variable, or
8023 # (2) before a word containing "conftest.", or (3) at the end.
8024 # Note that $ac_compile itself does not contain backslashes and begins
8025 # with a dollar sign (not a hyphen), so the echo should work correctly.
8026 lt_compile=`echo "$ac_compile" | $SED \
8027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8029 -e 's:$: $lt_compiler_flag:'`
8030 (eval echo "\"\$as_me:8030: $lt_compile\"" >&5)
8031 (eval "$lt_compile" 2>out/conftest.err)
8033 cat out/conftest.err >&5
8034 echo "$as_me:8034: \$? = $ac_status" >&5
8035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8037 # The compiler can only warn and ignore the option if not recognized
8038 # So say no if there are warnings
8039 if test ! -s out/conftest.err; then
8040 lt_cv_prog_compiler_c_o=yes
8045 # SGI C++ compiler will create directory out/ii_files/ for
8046 # template instantiation
8047 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8048 $rm out/* && rmdir out
8054 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8055 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8058 hard_links="nottested"
8059 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8060 # do not overwrite the value of need_locks provided by the user
8061 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067 ln conftest.a conftest.b 2>&5 || hard_links=no
8068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069 { echo "$as_me:$LINENO: result: $hard_links" >&5
8070 echo "${ECHO_T}$hard_links" >&6; }
8071 if test "$hard_links" = no; then
8072 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8080 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8084 allow_undefined_flag=
8085 enable_shared_with_static_runtimes=no
8087 archive_expsym_cmds=
8088 old_archive_From_new_cmds=
8089 old_archive_from_expsyms_cmds=
8090 export_dynamic_flag_spec=
8091 whole_archive_flag_spec=
8092 thread_safe_flag_spec=
8093 hardcode_libdir_flag_spec=
8094 hardcode_libdir_flag_spec_ld=
8095 hardcode_libdir_separator=
8098 hardcode_shlibpath_var=unsupported
8099 link_all_deplibs=unknown
8100 hardcode_automatic=no
8103 always_export_symbols=no
8104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8105 # include_expsyms should be a list of space-separated symbols to be *always*
8106 # included in the symbol list
8108 # exclude_expsyms can be an extended regexp of symbols to exclude
8109 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8110 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8111 # as well as any symbol that contains `d'.
8112 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8113 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8114 # platforms (ab)use it in PIC code, but their linkers get confused if
8115 # the symbol is explicitly referenced. Since portable code cannot
8116 # rely on this symbol name, it's probably fine to never include it in
8117 # preloaded symbol tables.
8118 extract_expsyms_cmds=
8121 cygwin* | mingw* | pw32*)
8122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8123 # When not using gcc, we currently assume that we are using
8124 # Microsoft Visual C++.
8125 if test "$GCC" != yes; then
8135 if test "$with_gnu_ld" = yes; then
8136 # If archive_cmds runs LD, not CC, wlarc should be empty
8139 # See if GNU ld supports shared libraries.
8141 aix3* | aix4* | aix5*)
8142 # On AIX/PPC, the GNU linker is very broken
8143 if test "$host_cpu" != ia64; then
8147 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8148 *** to be unable to reliably create shared libraries on AIX.
8149 *** Therefore, libtool is disabling shared libraries support. If you
8150 *** really care for shared libraries, you may want to modify your PATH
8151 *** so that a non-GNU linker is found, and then restart.
8158 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)'
8159 hardcode_libdir_flag_spec='-L$libdir'
8160 hardcode_minus_L=yes
8162 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8163 # that the semantics of dynamic libraries on AmigaOS, at least up
8164 # to version 4, is to share data among multiple programs linked
8165 # with the same dynamic library. Since this doesn't match the
8166 # behavior of shared libraries on other platforms, we can't use
8172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8173 allow_undefined_flag=unsupported
8174 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8175 # support --undefined. This deserves some investigation. FIXME
8176 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182 cygwin* | mingw* | pw32*)
8183 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8184 # as there is no search path for DLLs.
8185 hardcode_libdir_flag_spec='-L$libdir'
8186 allow_undefined_flag=unsupported
8187 always_export_symbols=no
8188 enable_shared_with_static_runtimes=yes
8189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8193 # If the export-symbols file already is a .def file (1st line
8194 # is EXPORTS), use it as is; otherwise, prepend...
8195 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8196 cp $export_symbols $output_objdir/$soname.def;
8198 echo EXPORTS > $output_objdir/$soname.def;
8199 cat $export_symbols >> $output_objdir/$soname.def;
8201 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8207 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8209 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8218 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8223 *** create shared libraries on Solaris systems. Therefore, libtool
8224 *** is disabling shared libraries support. We urge you to upgrade GNU
8225 *** binutils to release 2.9.1 or newer. Another option is to modify
8226 *** your PATH or compiler configuration so that the native linker is
8227 *** used, and then restart.
8230 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8242 hardcode_shlibpath_var=no
8246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8247 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248 archive_cmds="$tmp_archive_cmds"
8249 supports_anon_versioning=no
8250 case `$LD -v 2>/dev/null` in
8251 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8254 *\ 2.11.*) ;; # other 2.11 versions
8255 *) supports_anon_versioning=yes ;;
8257 if test $supports_anon_versioning = yes; then
8258 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8260 $echo "local: *; };" >> $output_objdir/$libname.ver~
8261 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8263 archive_expsym_cmds="$tmp_archive_cmds"
8272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281 if test "$ld_shlibs" = yes; then
8282 runpath_var=LD_RUN_PATH
8283 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8284 export_dynamic_flag_spec='${wl}--export-dynamic'
8285 # ancient GNU ld didn't support --whole-archive et. al.
8286 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8287 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8289 whole_archive_flag_spec=
8293 # PORTME fill in a description of your system's linker (not GNU ld)
8296 allow_undefined_flag=unsupported
8297 always_export_symbols=yes
8298 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'
8299 # Note: this linker hardcodes the directories in LIBPATH if there
8300 # are no directories specified by -L.
8301 hardcode_minus_L=yes
8302 if test "$GCC" = yes && test -z "$link_static_flag"; then
8303 # Neither direct hardcoding nor static linking is supported with a
8305 hardcode_direct=unsupported
8310 if test "$host_cpu" = ia64; then
8311 # On IA64, the linker does run time linking by default, so we don't
8312 # have to do anything special.
8313 aix_use_runtimelinking=no
8314 exp_sym_flag='-Bexport'
8317 # If we're using GNU nm, then we don't want the "-C" option.
8318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8319 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8320 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'
8322 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'
8324 aix_use_runtimelinking=no
8326 # Test if we are trying to use run time linking or normal
8327 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8328 # need to do runtime linking.
8329 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8330 for ld_flag in $LDFLAGS; do
8331 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8332 aix_use_runtimelinking=yes
8338 exp_sym_flag='-bexport'
8339 no_entry_flag='-bnoentry'
8342 # When large executables or shared objects are built, AIX ld can
8343 # have problems creating the table of contents. If linking a library
8344 # or program results in "error TOC overflow" add -mminimal-toc to
8345 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8346 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8350 hardcode_libdir_separator=':'
8351 link_all_deplibs=yes
8353 if test "$GCC" = yes; then
8354 case $host_os in aix4.012|aix4.012.*)
8355 # We only want to do this on AIX 4.2 and lower, the check
8356 # below for broken collect2 doesn't work under 4.3+
8357 collect2name=`${CC} -print-prog-name=collect2`
8358 if test -f "$collect2name" && \
8359 strings "$collect2name" | grep resolve_lib_name >/dev/null
8361 # We have reworked collect2
8364 # We have old collect2
8365 hardcode_direct=unsupported
8366 # It fails to find uninstalled libraries when the uninstalled
8367 # path is not listed in the libpath. Setting hardcode_minus_L
8368 # to unsupported forces relinking
8369 hardcode_minus_L=yes
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_libdir_separator=
8374 shared_flag='-shared'
8377 if test "$host_cpu" = ia64; then
8378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8379 # chokes on -Wl,-G. The following line is correct:
8382 if test "$aix_use_runtimelinking" = yes; then
8383 shared_flag='${wl}-G'
8385 shared_flag='${wl}-bM:SRE'
8390 # It seems that -bexpall does not export symbols beginning with
8391 # underscore (_), so it is better to generate a list of symbols to export.
8392 always_export_symbols=yes
8393 if test "$aix_use_runtimelinking" = yes; then
8394 # Warning - without using the other runtime loading flags (-brtl),
8395 # -berok will link without error, but may produce a broken library.
8396 allow_undefined_flag='-berok'
8397 # Determine the default libpath from the value encoded in an empty executable.
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (ac_try="$ac_link"
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_link") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest$ac_exeext &&
8430 $as_test_x conftest$ac_exeext; then
8432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8434 # Check for a 64-bit object if we didn't find anything.
8435 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; }
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8445 conftest$ac_exeext conftest.$ac_ext
8446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8449 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8451 if test "$host_cpu" = ia64; then
8452 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8453 allow_undefined_flag="-z nodefs"
8454 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8456 # Determine the default libpath from the value encoded in an empty executable.
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest$ac_exeext &&
8489 $as_test_x conftest$ac_exeext; then
8491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8493 # Check for a 64-bit object if we didn't find anything.
8494 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; }
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504 conftest$ac_exeext conftest.$ac_ext
8505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508 # Warning - without using the other run time loading flags,
8509 # -berok will link without error, but may produce a broken library.
8510 no_undefined_flag=' ${wl}-bernotok'
8511 allow_undefined_flag=' ${wl}-berok'
8512 # -bexpall does not export symbols beginning with underscore (_)
8513 always_export_symbols=yes
8514 # Exported symbols can be pulled into shared objects from archives
8515 whole_archive_flag_spec=' '
8516 archive_cmds_need_lc=yes
8517 # This is similar to how AIX traditionally builds it's shared libraries.
8518 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8524 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)'
8525 hardcode_libdir_flag_spec='-L$libdir'
8526 hardcode_minus_L=yes
8527 # see comment about different semantics on the GNU ld section
8532 export_dynamic_flag_spec=-rdynamic
8535 cygwin* | mingw* | pw32*)
8536 # When not using gcc, we currently assume that we are using
8537 # Microsoft Visual C++.
8538 # hardcode_libdir_flag_spec is actually meaningless, as there is
8539 # no search path for DLLs.
8540 hardcode_libdir_flag_spec=' '
8541 allow_undefined_flag=unsupported
8542 # Tell ltmain to make .lib files, not .a files.
8544 # Tell ltmain to make .dll files, not .so files.
8546 # FIXME: Setting linknames here is a bad hack.
8547 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8548 # The linker will automatically build a .lib file if we build a DLL.
8549 old_archive_From_new_cmds='true'
8550 # FIXME: Should let the user specify the lib program.
8551 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8552 fix_srcfile_path='`cygpath -w "$srcfile"`'
8553 enable_shared_with_static_runtimes=yes
8556 darwin* | rhapsody*)
8557 if test "$GXX" = yes ; then
8558 archive_cmds_need_lc=no
8560 rhapsody* | darwin1.[012])
8561 allow_undefined_flag='-undefined suppress'
8564 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8565 allow_undefined_flag='-flat_namespace -undefined suppress'
8567 case ${MACOSX_DEPLOYMENT_TARGET} in
8569 allow_undefined_flag='-flat_namespace -undefined suppress'
8572 allow_undefined_flag='-undefined dynamic_lookup'
8578 lt_int_apple_cc_single_mod=no
8579 output_verbose_link_cmd='echo'
8580 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8581 lt_int_apple_cc_single_mod=yes
8583 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8584 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8586 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8591 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8593 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8595 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}'
8597 hardcode_automatic=yes
8598 hardcode_shlibpath_var=unsupported
8599 whole_archive_flag_spec='-all_load $convenience'
8600 link_all_deplibs=yes
8607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8608 hardcode_libdir_flag_spec='-L$libdir'
8609 hardcode_shlibpath_var=no
8616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8617 # support. Future versions do this automatically, but an explicit c++rt0.o
8618 # does not break anything, and helps significantly (at the cost of a little
8621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8622 hardcode_libdir_flag_spec='-R$libdir'
8624 hardcode_shlibpath_var=no
8627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8631 hardcode_minus_L=yes
8632 hardcode_shlibpath_var=no
8635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8636 freebsd* | kfreebsd*-gnu)
8637 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8638 hardcode_libdir_flag_spec='-R$libdir'
8640 hardcode_shlibpath_var=no
8644 if test "$GCC" = yes; then
8645 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'
8647 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'
8649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650 hardcode_libdir_separator=:
8653 # hardcode_minus_L: Not really in the search PATH,
8654 # but as the default location of the library.
8655 hardcode_minus_L=yes
8656 export_dynamic_flag_spec='${wl}-E'
8660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8663 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8666 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8672 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8679 if test "$with_gnu_ld" = no; then
8682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8683 hardcode_libdir_flag_spec_ld='+b $libdir'
8684 hardcode_libdir_separator=:
8686 hardcode_shlibpath_var=no
8689 hardcode_libdir_flag_spec='-L$libdir'
8691 hardcode_shlibpath_var=no
8693 # hardcode_minus_L: Not really in the search PATH,
8694 # but as the default location of the library.
8695 hardcode_minus_L=yes
8698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8699 hardcode_libdir_separator=:
8701 export_dynamic_flag_spec='${wl}-E'
8703 # hardcode_minus_L: Not really in the search PATH,
8704 # but as the default location of the library.
8705 hardcode_minus_L=yes
8711 irix5* | irix6* | nonstopux*)
8712 if test "$GCC" = yes; then
8713 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'
8715 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'
8716 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719 hardcode_libdir_separator=:
8720 link_all_deplibs=yes
8723 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8727 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8729 hardcode_libdir_flag_spec='-R$libdir'
8731 hardcode_shlibpath_var=no
8735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8738 hardcode_libdir_separator=:
8739 hardcode_shlibpath_var=no
8744 hardcode_shlibpath_var=no
8745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8746 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8747 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8748 export_dynamic_flag_spec='${wl}-E'
8751 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753 hardcode_libdir_flag_spec='-R$libdir'
8756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8764 hardcode_libdir_flag_spec='-L$libdir'
8765 hardcode_minus_L=yes
8766 allow_undefined_flag=unsupported
8767 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'
8768 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8772 if test "$GCC" = yes; then
8773 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8774 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'
8776 allow_undefined_flag=' -expect_unresolved \*'
8777 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'
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 hardcode_libdir_separator=:
8783 osf4* | osf5*) # as osf3* with the addition of -msym flag
8784 if test "$GCC" = yes; then
8785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8786 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'
8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 allow_undefined_flag=' -expect_unresolved \*'
8790 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'
8791 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8792 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8794 # Both c and cxx compiler support -rpath directly
8795 hardcode_libdir_flag_spec='-rpath $libdir'
8797 hardcode_libdir_separator=:
8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_shlibpath_var=no
8803 export_dynamic_flag_spec='${wl}-Bexport'
8804 runpath_var=LD_RUN_PATH
8805 hardcode_runpath_var=yes
8809 no_undefined_flag=' -z text'
8810 if test "$GCC" = yes; then
8811 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8813 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8815 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8819 hardcode_libdir_flag_spec='-R$libdir'
8820 hardcode_shlibpath_var=no
8822 solaris2.[0-5] | solaris2.[0-5].*) ;;
8823 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8824 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8826 link_all_deplibs=yes
8830 if test "x$host_vendor" = xsequent; then
8831 # Use $CC to link under sequent, because it throws in some extra .o
8832 # files that make .init and .fini sections work.
8833 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8837 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_minus_L=yes
8840 hardcode_shlibpath_var=no
8844 case $host_vendor in
8846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847 hardcode_direct=yes # is this really true???
8850 ## LD is ld it makes a PLAMLIB
8851 ## CC just makes a GrossModule.
8852 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8853 reload_cmds='$CC -r -o $output$reload_objs'
8857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8861 runpath_var='LD_RUN_PATH'
8862 hardcode_shlibpath_var=no
8866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 hardcode_shlibpath_var=no
8868 export_dynamic_flag_spec='-Bexport'
8872 if test -d /usr/nec; then
8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874 hardcode_shlibpath_var=no
8875 runpath_var=LD_RUN_PATH
8876 hardcode_runpath_var=yes
8882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_shlibpath_var=no
8886 hardcode_runpath_var=yes
8887 runpath_var=LD_RUN_PATH
8890 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8891 no_undefined_flag='${wl}-z ${wl}text'
8892 if test "$GCC" = yes; then
8893 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8895 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8897 runpath_var='LD_RUN_PATH'
8898 hardcode_shlibpath_var=no
8902 no_undefined_flag=' -z text'
8903 # $CC -shared without GNU ld will not create a library from C++
8904 # object files and a static libstdc++, better avoid it by now
8905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8908 hardcode_libdir_flag_spec=
8909 hardcode_shlibpath_var=no
8910 runpath_var='LD_RUN_PATH'
8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_libdir_flag_spec='-L$libdir'
8916 hardcode_shlibpath_var=no
8925 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8926 echo "${ECHO_T}$ld_shlibs" >&6; }
8927 test "$ld_shlibs" = no && can_build_shared=no
8929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8930 if test "$GCC" = yes; then
8931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8935 # Do we need to explicitly link libc?
8937 case "x$archive_cmds_need_lc" in
8939 # Assume -lc should be added
8940 archive_cmds_need_lc=yes
8942 if test "$enable_shared" = yes && test "$GCC" = yes; then
8943 case $archive_cmds in
8945 # FIXME: we may have to deal with multi-command sequences.
8948 # Test whether the compiler implicitly links with -lc since on some
8949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8950 # to ld, don't add -lc before -lgcc.
8951 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8957 (eval $ac_compile) 2>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } 2>conftest.err; then
8963 libobjs=conftest.$ac_objext
8965 wl=$lt_prog_compiler_wl
8971 lt_save_allow_undefined_flag=$allow_undefined_flag
8972 allow_undefined_flag=
8973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8974 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }
8979 archive_cmds_need_lc=no
8981 archive_cmds_need_lc=yes
8983 allow_undefined_flag=$lt_save_allow_undefined_flag
8985 cat conftest.err 1>&5
8988 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8989 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8999 libname_spec='lib$name'
9007 shlibpath_overrides_runpath=unknown
9009 dynamic_linker="$host_os ld.so"
9010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9011 if test "$GCC" = yes; then
9012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9014 # if the path contains ";" then we assume it to be the separator
9015 # otherwise default to the standard path separator (i.e. ":") - it is
9016 # assumed that no part of a normal pathname contains ";" but that should
9017 # okay in the real world where ";" in dirpaths is itself problematic.
9018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9025 need_lib_prefix=unknown
9026 hardcode_into_libs=no
9028 # when you set need_version to no, make sure it does not cause -set_version
9029 # flags to be left without arguments
9030 need_version=unknown
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9036 shlibpath_var=LIBPATH
9038 # AIX 3 has no versioning support, so we append a major version to the name.
9039 soname_spec='${libname}${release}${shared_ext}$major'
9046 hardcode_into_libs=yes
9047 if test "$host_cpu" = ia64; then
9048 # AIX 5 supports IA64
9049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9050 shlibpath_var=LD_LIBRARY_PATH
9052 # With GCC up to 2.95.x, collect2 would create an import file
9053 # for dependence libraries. The import file would start with
9054 # the line `#! .'. This would cause the generated library to
9055 # depend on `.', always an invalid library. This was fixed in
9056 # development snapshots of GCC prior to 3.0.
9058 aix4 | aix4.[01] | aix4.[01].*)
9059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9069 # soname into executable. Probably we can add versioning support to
9070 # collect2, so additional links can be useful in future.
9071 if test "$aix_use_runtimelinking" = yes; then
9072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9073 # instead of lib<name>.a to let people know that these are not
9074 # typical AIX shared libraries.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 # We preserve .a as extension for shared libraries through AIX4.2
9078 # and later when we are not doing run time linking.
9079 library_names_spec='${libname}${release}.a $libname.a'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LIBPATH
9087 library_names_spec='$libname.ixlibrary $libname.a'
9088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9089 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'
9093 library_names_spec='${libname}${shared_ext}'
9094 dynamic_linker="$host_os ld.so"
9095 shlibpath_var=LIBRARY_PATH
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9107 # the default ld.so.conf also contains /usr/contrib/lib and
9108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9109 # libtool to hard-code these into programs
9112 cygwin* | mingw* | pw32*)
9113 version_type=windows
9118 case $GCC,$host_os in
9119 yes,cygwin* | yes,mingw* | yes,pw32*)
9120 library_names_spec='$libname.dll.a'
9121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9122 postinstall_cmds='base_file=`basename \${file}`~
9123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9124 dldir=$destdir/`dirname \$dlpath`~
9125 test -d \$dldir || mkdir -p \$dldir~
9126 $install_prog $dir/$dlname \$dldir/$dlname'
9127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9128 dlpath=$dir/\$dldll~
9130 shlibpath_overrides_runpath=yes
9134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9136 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9139 # MinGW DLLs use traditional 'lib' prefix
9140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9141 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9142 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9143 # It is most probably a Windows format PATH printed by
9144 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9145 # path with ; separators, and with drive letters. We can handle the
9146 # drive letters (cygwin fileutils understands them), so leave them,
9147 # especially as we might pass files found there to a mingw objdump,
9148 # which wouldn't understand a cygwinified path. Ahh.
9149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9155 # pw32 DLLs use 'pw' prefix rather than 'lib'
9156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9162 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9165 dynamic_linker='Win32 ld.exe'
9166 # FIXME: first we should search . and the directory the executable is in
9170 darwin* | rhapsody*)
9171 dynamic_linker="$host_os dyld"
9175 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9176 soname_spec='${libname}${release}${major}$shared_ext'
9177 shlibpath_overrides_runpath=yes
9178 shlibpath_var=DYLD_LIBRARY_PATH
9179 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9180 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9181 if test "$GCC" = yes; then
9182 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"`
9184 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 shlibpath_var=LD_LIBRARY_PATH
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=no
9210 hardcode_into_libs=yes
9211 dynamic_linker='GNU ld.so'
9215 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9216 version_type=freebsd-$objformat
9217 case $version_type in
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9228 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes
9233 freebsd3.01* | freebsdelf3.01*)
9234 shlibpath_overrides_runpath=yes
9235 hardcode_into_libs=yes
9238 shlibpath_overrides_runpath=no
9239 hardcode_into_libs=yes
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 hardcode_into_libs=yes
9254 hpux9* | hpux10* | hpux11*)
9255 # Give a soname corresponding to the major version so that dld.sl refuses to
9256 # link against other versions.
9263 hardcode_into_libs=yes
9264 dynamic_linker="$host_os dld.so"
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 if test "X$HPUX_IA64_MODE" = X32; then
9270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9278 hardcode_into_libs=yes
9279 dynamic_linker="$host_os dld.sl"
9280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9289 dynamic_linker="$host_os dld.sl"
9290 shlibpath_var=SHLIB_PATH
9291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9297 postinstall_cmds='chmod 555 $lib'
9300 irix5* | irix6* | nonstopux*)
9302 nonstopux*) version_type=nonstopux ;;
9304 if test "$lt_cv_prog_gnu_ld" = yes; then
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9315 irix5* | nonstopux*)
9319 case $LD in # libtool.m4 will add one of these switches to LD
9320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9321 libsuff= shlibsuff= libmagic=32-bit;;
9322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9323 libsuff=32 shlibsuff=N32 libmagic=N32;;
9324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9326 *) libsuff= shlibsuff= libmagic=never-match;;
9330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9331 shlibpath_overrides_runpath=no
9332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9334 hardcode_into_libs=yes
9337 # No shared lib support for Linux oldld, aout, or coff.
9338 linux*oldld* | linux*aout* | linux*coff*)
9342 # This must be Linux ELF.
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=no
9352 # This implies no fast_install, which is unacceptable.
9353 # Some rework will be needed to allow for fast_install
9354 # before this can be enabled.
9355 hardcode_into_libs=yes
9357 # Append ld.so.conf contents to the search path
9358 if test -f /etc/ld.so.conf; then
9359 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9363 # We used to test for /lib/ld.so.1 and disable shared libraries on
9364 # powerpc, because MkLinux only supported shared libraries with the
9365 # GNU dynamic linker. Since this was broken with cross compilers,
9366 # most powerpc-linux boxes support dynamic linking these days and
9367 # people can always --disable-shared, the test was removed, and we
9368 # assume the GNU/Linux dynamic linker is in use.
9369 dynamic_linker='GNU/Linux ld.so'
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 shlibpath_overrides_runpath=no
9380 hardcode_into_libs=yes
9381 dynamic_linker='NetBSD ld.elf_so'
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 shlibpath_overrides_runpath=no
9392 hardcode_into_libs=yes
9393 dynamic_linker='GNU ld.so'
9400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403 dynamic_linker='NetBSD (a.out) ld.so'
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 dynamic_linker='NetBSD ld.elf_so'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 shlibpath_overrides_runpath=yes
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=yes
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9440 openbsd2.[89] | openbsd2.[89].*)
9441 shlibpath_overrides_runpath=no
9444 shlibpath_overrides_runpath=yes
9448 shlibpath_overrides_runpath=yes
9453 libname_spec='$name'
9456 library_names_spec='$libname${shared_ext} $libname.a'
9457 dynamic_linker='OS/2 ld.exe'
9458 shlibpath_var=LIBPATH
9461 osf3* | osf4* | osf5*)
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 shlibpath_var=LD_LIBRARY_PATH
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes
9487 hardcode_into_libs=yes
9488 # ldd complains unless libraries are executable
9489 postinstall_cmds='chmod +x $lib'
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9496 shlibpath_var=LD_LIBRARY_PATH
9497 shlibpath_overrides_runpath=yes
9498 if test "$with_gnu_ld" = yes; then
9504 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 case $host_vendor in
9511 shlibpath_overrides_runpath=no
9513 export_dynamic_flag_spec='${wl}-Blargedynsym'
9514 runpath_var=LD_RUN_PATH
9522 shlibpath_overrides_runpath=no
9523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9529 if test -d /usr/nec ;then
9531 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9532 soname_spec='$libname${shared_ext}.$major'
9533 shlibpath_var=LD_LIBRARY_PATH
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9548 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9549 echo "${ECHO_T}$dynamic_linker" >&6; }
9550 test "$dynamic_linker" = no && can_build_shared=no
9552 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9553 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9555 if test -n "$hardcode_libdir_flag_spec" || \
9556 test -n "$runpath_var " || \
9557 test "X$hardcode_automatic"="Xyes" ; then
9559 # We can hardcode non-existant directories.
9560 if test "$hardcode_direct" != no &&
9561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9562 # have to relink, otherwise we might link with an installed library
9563 # when we should be linking with a yet-to-be-installed one
9564 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9565 test "$hardcode_minus_L" != no; then
9566 # Linking always hardcodes the temporary library directory.
9567 hardcode_action=relink
9569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9570 hardcode_action=immediate
9573 # We cannot hardcode anything, or else we can only hardcode existing
9575 hardcode_action=unsupported
9577 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9578 echo "${ECHO_T}$hardcode_action" >&6; }
9580 if test "$hardcode_action" = relink; then
9581 # Fast installation is not supported
9582 enable_fast_install=no
9583 elif test "$shlibpath_overrides_runpath" = yes ||
9584 test "$enable_shared" = no; then
9585 # Fast installation is not necessary
9586 enable_fast_install=needless
9591 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9592 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9593 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9594 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9595 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9596 { echo "$as_me:$LINENO: result: yes" >&5
9597 echo "${ECHO_T}yes" >&6; }
9599 # FIXME - insert some real tests, host_os isn't really good enough
9602 if test -n "$STRIP" ; then
9603 striplib="$STRIP -x"
9604 { echo "$as_me:$LINENO: result: yes" >&5
9605 echo "${ECHO_T}yes" >&6; }
9607 { echo "$as_me:$LINENO: result: no" >&5
9608 echo "${ECHO_T}no" >&6; }
9612 { echo "$as_me:$LINENO: result: no" >&5
9613 echo "${ECHO_T}no" >&6; }
9618 if test "x$enable_dlopen" != xyes; then
9619 enable_dlopen=unknown
9620 enable_dlopen_self=unknown
9621 enable_dlopen_self_static=unknown
9628 lt_cv_dlopen="load_add_on"
9630 lt_cv_dlopen_self=yes
9634 lt_cv_dlopen="LoadLibrary"
9639 lt_cv_dlopen="dlopen"
9644 # if libdl is installed we need to link against it
9645 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 ac_check_lib_save_LIBS=$LIBS
9652 cat >conftest.$ac_ext <<_ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9683 grep -v '^ *+' conftest.er1 >conftest.err
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest$ac_exeext &&
9691 $as_test_x conftest$ac_exeext; then
9692 ac_cv_lib_dl_dlopen=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_lib_dl_dlopen=no
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9706 if test $ac_cv_lib_dl_dlopen = yes; then
9707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9712 lt_cv_dlopen_self=yes
9719 { echo "$as_me:$LINENO: checking for shl_load" >&5
9720 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9721 if test "${ac_cv_func_shl_load+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9732 #define shl_load innocuous_shl_load
9734 /* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char shl_load (); below.
9736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 <limits.h> exists even on freestanding compilers. */
9740 # include <limits.h>
9742 # include <assert.h>
9747 /* Override any GCC internal prototype to avoid an error.
9748 Use char because int might match the return type of a GCC
9749 builtin and then its argument prototype would still apply. */
9754 /* The GNU C library defines this for functions which it implements
9755 to always fail with ENOSYS. Some functions are actually named
9756 something starting with __ and the normal name is an alias. */
9757 #if defined __stub_shl_load || defined __stub___shl_load
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest$ac_exeext &&
9786 $as_test_x conftest$ac_exeext; then
9787 ac_cv_func_shl_load=yes
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_func_shl_load=no
9795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9796 conftest$ac_exeext conftest.$ac_ext
9798 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9799 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9800 if test $ac_cv_func_shl_load = yes; then
9801 lt_cv_dlopen="shl_load"
9803 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9804 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9805 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 ac_check_lib_save_LIBS=$LIBS
9810 cat >conftest.$ac_ext <<_ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9817 /* Override any GCC internal prototype to avoid an error.
9818 Use char because int might match the return type of a GCC
9819 builtin and then its argument prototype would still apply. */
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_link") 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && {
9846 test -z "$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 } && test -s conftest$ac_exeext &&
9849 $as_test_x conftest$ac_exeext; then
9850 ac_cv_lib_dld_shl_load=yes
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 ac_cv_lib_dld_shl_load=no
9858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9862 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9864 if test $ac_cv_lib_dld_shl_load = yes; then
9865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9867 { echo "$as_me:$LINENO: checking for dlopen" >&5
9868 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9869 if test "${ac_cv_func_dlopen+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9880 #define dlopen innocuous_dlopen
9882 /* System header to define __stub macros and hopefully few prototypes,
9883 which can conflict with char dlopen (); below.
9884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9885 <limits.h> exists even on freestanding compilers. */
9888 # include <limits.h>
9890 # include <assert.h>
9895 /* Override any GCC internal prototype to avoid an error.
9896 Use char because int might match the return type of a GCC
9897 builtin and then its argument prototype would still apply. */
9902 /* The GNU C library defines this for functions which it implements
9903 to always fail with ENOSYS. Some functions are actually named
9904 something starting with __ and the normal name is an alias. */
9905 #if defined __stub_dlopen || defined __stub___dlopen
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_link") 2>conftest.er1
9926 grep -v '^ *+' conftest.er1 >conftest.err
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
9933 } && test -s conftest$ac_exeext &&
9934 $as_test_x conftest$ac_exeext; then
9935 ac_cv_func_dlopen=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_func_dlopen=no
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944 conftest$ac_exeext conftest.$ac_ext
9946 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9948 if test $ac_cv_func_dlopen = yes; then
9949 lt_cv_dlopen="dlopen"
9951 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 ac_check_lib_save_LIBS=$LIBS
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_link") 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest$ac_exeext &&
9997 $as_test_x conftest$ac_exeext; then
9998 ac_cv_lib_dl_dlopen=yes
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_lib_dl_dlopen=no
10006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10012 if test $ac_cv_lib_dl_dlopen = yes; then
10013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10015 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10016 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-lsvld $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest$ac_exeext &&
10061 $as_test_x conftest$ac_exeext; then
10062 ac_cv_lib_svld_dlopen=yes
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_lib_svld_dlopen=no
10070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10074 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10075 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10076 if test $ac_cv_lib_svld_dlopen = yes; then
10077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10079 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10080 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10081 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 ac_check_lib_save_LIBS=$LIBS
10086 cat >conftest.$ac_ext <<_ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10093 /* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
10103 return dld_link ();
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_link") 2>conftest.er1
10117 grep -v '^ *+' conftest.er1 >conftest.err
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && {
10122 test -z "$ac_c_werror_flag" ||
10123 test ! -s conftest.err
10124 } && test -s conftest$ac_exeext &&
10125 $as_test_x conftest$ac_exeext; then
10126 ac_cv_lib_dld_dld_link=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_cv_lib_dld_dld_link=no
10134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10138 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10140 if test $ac_cv_lib_dld_dld_link = yes; then
10141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10162 if test "x$lt_cv_dlopen" != xno; then
10168 case $lt_cv_dlopen in
10170 save_CPPFLAGS="$CPPFLAGS"
10171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10173 save_LDFLAGS="$LDFLAGS"
10174 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10177 LIBS="$lt_cv_dlopen_libs $LIBS"
10179 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10180 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10181 if test "${lt_cv_dlopen_self+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 if test "$cross_compiling" = yes; then :
10185 lt_cv_dlopen_self=cross
10187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10188 lt_status=$lt_dlunknown
10189 cat > conftest.$ac_ext <<EOF
10190 #line 10190 "configure"
10191 #include "confdefs.h"
10200 # define LT_DLGLOBAL RTLD_GLOBAL
10203 # define LT_DLGLOBAL DL_GLOBAL
10205 # define LT_DLGLOBAL 0
10209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10210 find out it does not work in some platform. */
10211 #ifndef LT_DLLAZY_OR_NOW
10213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10216 # define LT_DLLAZY_OR_NOW DL_LAZY
10219 # define LT_DLLAZY_OR_NOW RTLD_NOW
10222 # define LT_DLLAZY_OR_NOW DL_NOW
10224 # define LT_DLLAZY_OR_NOW 0
10232 extern "C" void exit (int);
10235 void fnord() { int i=42;}
10238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10239 int status = $lt_dlunknown;
10243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10245 /* dlclose (self); */
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252 (eval $ac_link) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10256 (./conftest; exit; ) 2>/dev/null
10258 case x$lt_status in
10259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10261 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10264 # compilation failed
10265 lt_cv_dlopen_self=no
10272 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10275 if test "x$lt_cv_dlopen_self" = xyes; then
10276 LDFLAGS="$LDFLAGS $link_static_flag"
10277 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10279 if test "${lt_cv_dlopen_self_static+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 if test "$cross_compiling" = yes; then :
10283 lt_cv_dlopen_self_static=cross
10285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286 lt_status=$lt_dlunknown
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10298 # define LT_DLGLOBAL RTLD_GLOBAL
10301 # define LT_DLGLOBAL DL_GLOBAL
10303 # define LT_DLGLOBAL 0
10307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10308 find out it does not work in some platform. */
10309 #ifndef LT_DLLAZY_OR_NOW
10311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10314 # define LT_DLLAZY_OR_NOW DL_LAZY
10317 # define LT_DLLAZY_OR_NOW RTLD_NOW
10320 # define LT_DLLAZY_OR_NOW DL_NOW
10322 # define LT_DLLAZY_OR_NOW 0
10330 extern "C" void exit (int);
10333 void fnord() { int i=42;}
10336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337 int status = $lt_dlunknown;
10341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343 /* dlclose (self); */
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10354 (./conftest; exit; ) 2>/dev/null
10356 case x$lt_status in
10357 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10358 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10359 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10362 # compilation failed
10363 lt_cv_dlopen_self_static=no
10370 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10371 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10374 CPPFLAGS="$save_CPPFLAGS"
10375 LDFLAGS="$save_LDFLAGS"
10380 case $lt_cv_dlopen_self in
10381 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10382 *) enable_dlopen_self=unknown ;;
10385 case $lt_cv_dlopen_self_static in
10386 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10387 *) enable_dlopen_self_static=unknown ;;
10392 # Report which librarie types wil actually be built
10393 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10395 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396 echo "${ECHO_T}$can_build_shared" >&6; }
10398 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10400 test "$can_build_shared" = "no" && enable_shared=no
10402 # On AIX, shared libraries and static libraries use the same namespace, and
10403 # are all built from PIC.
10406 test "$enable_shared" = yes && enable_static=no
10407 if test -n "$RANLIB"; then
10408 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409 postinstall_cmds='$RANLIB $lib'
10414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10415 test "$enable_shared" = yes && enable_static=no
10418 darwin* | rhapsody*)
10419 if test "$GCC" = yes; then
10420 archive_cmds_need_lc=no
10422 rhapsody* | darwin1.[012])
10423 allow_undefined_flag='-undefined suppress'
10426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10427 allow_undefined_flag='-flat_namespace -undefined suppress'
10429 case ${MACOSX_DEPLOYMENT_TARGET} in
10431 allow_undefined_flag='-flat_namespace -undefined suppress'
10434 allow_undefined_flag='-undefined dynamic_lookup'
10440 output_verbose_link_cmd='echo'
10441 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10442 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10444 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}'
10445 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}'
10447 hardcode_automatic=yes
10448 hardcode_shlibpath_var=unsupported
10449 whole_archive_flag_spec='-all_load $convenience'
10450 link_all_deplibs=yes
10456 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10457 echo "${ECHO_T}$enable_shared" >&6; }
10459 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10460 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10461 # Make sure either enable_shared or enable_static is yes.
10462 test "$enable_shared" = yes || enable_static=yes
10463 { echo "$as_me:$LINENO: result: $enable_static" >&5
10464 echo "${ECHO_T}$enable_static" >&6; }
10466 # The else clause should only fire when bootstrapping the
10467 # libtool distribution, otherwise you forgot to ship ltmain.sh
10468 # with your package, and you will get complaints that there are
10469 # no rules to generate ltmain.sh.
10470 if test -f "$ltmain"; then
10471 # See if we are running on zsh, and set the options which allow our commands through
10472 # without removal of \ escapes.
10473 if test -n "${ZSH_VERSION+set}" ; then
10474 setopt NO_GLOB_SUBST
10476 # Now quote all the things that may contain metacharacters while being
10477 # careful not to overquote the AC_SUBSTed values. We take copies of the
10478 # variables and quote the copies for generation of the libtool script.
10479 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10483 deplibs_check_method reload_flag reload_cmds need_locks \
10484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10485 lt_cv_sys_global_symbol_to_c_name_address \
10486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10487 old_postinstall_cmds old_postuninstall_cmds \
10491 lt_prog_compiler_wl \
10492 lt_prog_compiler_pic \
10493 lt_prog_compiler_static \
10494 lt_prog_compiler_no_builtin_flag \
10495 export_dynamic_flag_spec \
10496 thread_safe_flag_spec \
10497 whole_archive_flag_spec \
10498 enable_shared_with_static_runtimes \
10500 old_archive_from_new_cmds \
10505 compiler_lib_search_path \
10507 archive_expsym_cmds \
10509 postuninstall_cmds \
10510 old_archive_from_expsyms_cmds \
10511 allow_undefined_flag \
10512 no_undefined_flag \
10513 export_symbols_cmds \
10514 hardcode_libdir_flag_spec \
10515 hardcode_libdir_flag_spec_ld \
10516 hardcode_libdir_separator \
10517 hardcode_automatic \
10519 module_expsym_cmds \
10520 lt_cv_prog_compiler_c_o \
10522 include_expsyms; do
10525 old_archive_cmds | \
10526 old_archive_from_new_cmds | \
10528 archive_expsym_cmds | \
10530 module_expsym_cmds | \
10531 old_archive_from_expsyms_cmds | \
10532 export_symbols_cmds | \
10533 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10534 postinstall_cmds | postuninstall_cmds | \
10535 old_postinstall_cmds | old_postuninstall_cmds | \
10536 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10537 # Double-quote double-evaled strings.
10538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10541 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10547 *'\$0 --fallback-echo"')
10548 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10552 cfgfile="${ofile}T"
10553 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10555 { echo "$as_me:$LINENO: creating $ofile" >&5
10556 echo "$as_me: creating $ofile" >&6;}
10558 cat <<__EOF__ >> "$cfgfile"
10561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10566 # Free Software Foundation, Inc.
10568 # This file is part of GNU Libtool:
10569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10571 # This program is free software; you can redistribute it and/or modify
10572 # it under the terms of the GNU General Public License as published by
10573 # the Free Software Foundation; either version 2 of the License, or
10574 # (at your option) any later version.
10576 # This program is distributed in the hope that it will be useful, but
10577 # WITHOUT ANY WARRANTY; without even the implied warranty of
10578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10579 # General Public License for more details.
10581 # You should have received a copy of the GNU General Public License
10582 # along with this program; if not, write to the Free Software
10583 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10585 # As a special exception to the GNU General Public License, if you
10586 # distribute this file as part of a program that contains a
10587 # configuration script generated by Autoconf, you may include it under
10588 # the same distribution terms that you use for the rest of that program.
10590 # A sed program that does not truncate output.
10593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10594 Xsed="$SED -e s/^X//"
10596 # The HP-UX ksh and POSIX shell print the target directory to stdout
10597 # if CDPATH is set.
10598 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10600 # The names of the tagged configurations supported by this script.
10603 # ### BEGIN LIBTOOL CONFIG
10605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10607 # Shell to use when invoking shell scripts.
10610 # Whether or not to build shared libraries.
10611 build_libtool_libs=$enable_shared
10613 # Whether or not to build static libraries.
10614 build_old_libs=$enable_static
10616 # Whether or not to add -lc for building shared libraries.
10617 build_libtool_need_lc=$archive_cmds_need_lc
10619 # Whether or not to disallow shared libs when runtime libs are static
10620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10622 # Whether or not to optimize for fast installation.
10623 fast_install=$enable_fast_install
10626 host_alias=$host_alias
10629 # An echo program that does not interpret backslashes.
10634 AR_FLAGS=$lt_AR_FLAGS
10639 # A language-specific compiler.
10642 # Is the compiler the GNU C compiler?
10648 # The linker used to build libraries.
10651 # Whether we need hard or soft links.
10654 # A BSD-compatible nm program.
10657 # A symbol stripping program
10660 # Used to examine libraries when file_magic_cmd begins "file"
10661 MAGIC_CMD=$MAGIC_CMD
10663 # Used on cygwin: DLL creation program.
10666 # Used on cygwin: object dumper.
10669 # Used on cygwin: assembler.
10672 # The name of the directory that contains temporary libtool files.
10675 # How to create reloadable object files.
10676 reload_flag=$lt_reload_flag
10677 reload_cmds=$lt_reload_cmds
10679 # How to pass a linker flag through the compiler.
10680 wl=$lt_lt_prog_compiler_wl
10682 # Object file suffix (normally "o").
10683 objext="$ac_objext"
10685 # Old archive suffix (normally "a").
10688 # Shared library suffix (normally ".so").
10689 shrext_cmds='$shrext_cmds'
10691 # Executable file suffix (normally "").
10694 # Additional compiler flags for building library objects.
10695 pic_flag=$lt_lt_prog_compiler_pic
10698 # What is the maximum length of a command?
10699 max_cmd_len=$lt_cv_sys_max_cmd_len
10701 # Does compiler simultaneously support -c and -o options?
10702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10704 # Must we lock files when doing compilation ?
10705 need_locks=$lt_need_locks
10707 # Do we need the lib prefix for modules?
10708 need_lib_prefix=$need_lib_prefix
10710 # Do we need a version for libraries?
10711 need_version=$need_version
10713 # Whether dlopen is supported.
10714 dlopen_support=$enable_dlopen
10716 # Whether dlopen of programs is supported.
10717 dlopen_self=$enable_dlopen_self
10719 # Whether dlopen of statically linked programs is supported.
10720 dlopen_self_static=$enable_dlopen_self_static
10722 # Compiler flag to prevent dynamic linking.
10723 link_static_flag=$lt_lt_prog_compiler_static
10725 # Compiler flag to turn off builtin functions.
10726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10728 # Compiler flag to allow reflexive dlopens.
10729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10731 # Compiler flag to generate shared objects directly from archives.
10732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10734 # Compiler flag to generate thread-safe objects.
10735 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10737 # Library versioning type.
10738 version_type=$version_type
10740 # Format of library name prefix.
10741 libname_spec=$lt_libname_spec
10743 # List of archive names. First name is the real one, the rest are links.
10744 # The last name is the one that the linker finds with -lNAME.
10745 library_names_spec=$lt_library_names_spec
10747 # The coded name of the library, if different from the real name.
10748 soname_spec=$lt_soname_spec
10750 # Commands used to build and install an old-style archive.
10752 old_archive_cmds=$lt_old_archive_cmds
10753 old_postinstall_cmds=$lt_old_postinstall_cmds
10754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10756 # Create an old-style archive from a shared archive.
10757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10759 # Create a temporary old-style archive to link instead of a shared archive.
10760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10762 # Commands used to build and install a shared archive.
10763 archive_cmds=$lt_archive_cmds
10764 archive_expsym_cmds=$lt_archive_expsym_cmds
10765 postinstall_cmds=$lt_postinstall_cmds
10766 postuninstall_cmds=$lt_postuninstall_cmds
10768 # Commands used to build a loadable module (assumed same as above if empty)
10769 module_cmds=$lt_module_cmds
10770 module_expsym_cmds=$lt_module_expsym_cmds
10772 # Commands to strip libraries.
10773 old_striplib=$lt_old_striplib
10774 striplib=$lt_striplib
10776 # Dependencies to place before the objects being linked to create a
10778 predep_objects=$lt_predep_objects
10780 # Dependencies to place after the objects being linked to create a
10782 postdep_objects=$lt_postdep_objects
10784 # Dependencies to place before the objects being linked to create a
10786 predeps=$lt_predeps
10788 # Dependencies to place after the objects being linked to create a
10790 postdeps=$lt_postdeps
10792 # The library search path used internally by the compiler when linking
10793 # a shared library.
10794 compiler_lib_search_path=$lt_compiler_lib_search_path
10796 # Method to check whether dependent libraries are shared objects.
10797 deplibs_check_method=$lt_deplibs_check_method
10799 # Command to use when deplibs_check_method == file_magic.
10800 file_magic_cmd=$lt_file_magic_cmd
10802 # Flag that allows shared libraries with undefined symbols to be built.
10803 allow_undefined_flag=$lt_allow_undefined_flag
10805 # Flag that forces no undefined symbols.
10806 no_undefined_flag=$lt_no_undefined_flag
10808 # Commands used to finish a libtool library installation in a directory.
10809 finish_cmds=$lt_finish_cmds
10811 # Same as above, but a single script fragment to be evaled but not shown.
10812 finish_eval=$lt_finish_eval
10814 # Take the output of nm and produce a listing of raw symbols and C names.
10815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10817 # Transform the output of nm in a proper C declaration
10818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10820 # Transform the output of nm in a C name address pair
10821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10823 # This is the shared library runtime path variable.
10824 runpath_var=$runpath_var
10826 # This is the shared library path variable.
10827 shlibpath_var=$shlibpath_var
10829 # Is shlibpath searched before the hard-coded library search path?
10830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10832 # How to hardcode a shared library path into an executable.
10833 hardcode_action=$hardcode_action
10835 # Whether we should hardcode library paths into libraries.
10836 hardcode_into_libs=$hardcode_into_libs
10838 # Flag to hardcode \$libdir into a binary during linking.
10839 # This must work even if \$libdir does not exist.
10840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10842 # If ld is used when linking, flag to hardcode \$libdir into
10843 # a binary during linking. This must work even if \$libdir does
10845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10847 # Whether we need a single -rpath flag with a separated argument.
10848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10851 # resulting binary.
10852 hardcode_direct=$hardcode_direct
10854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10855 # resulting binary.
10856 hardcode_minus_L=$hardcode_minus_L
10858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10859 # the resulting binary.
10860 hardcode_shlibpath_var=$hardcode_shlibpath_var
10862 # Set to yes if building a shared library automatically hardcodes DIR into the library
10863 # and all subsequent libraries and executables linked against it.
10864 hardcode_automatic=$hardcode_automatic
10866 # Variables whose values should be saved in libtool wrapper scripts and
10867 # restored at relink time.
10868 variables_saved_for_relink="$variables_saved_for_relink"
10870 # Whether libtool must link a program against all its dependency libraries.
10871 link_all_deplibs=$link_all_deplibs
10873 # Compile-time system search path for libraries
10874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10876 # Run-time system search path for libraries
10877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10879 # Fix the shell variable \$srcfile for the compiler.
10880 fix_srcfile_path="$fix_srcfile_path"
10882 # Set to yes if exported symbols are required.
10883 always_export_symbols=$always_export_symbols
10885 # The commands to list exported symbols.
10886 export_symbols_cmds=$lt_export_symbols_cmds
10888 # The commands to extract the exported symbol list from a shared archive.
10889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10891 # Symbols that should not be listed in the preloaded symbols.
10892 exclude_expsyms=$lt_exclude_expsyms
10894 # Symbols that must always be exported.
10895 include_expsyms=$lt_include_expsyms
10897 # ### END LIBTOOL CONFIG
10904 cat <<\EOF >> "$cfgfile"
10906 # AIX sometimes has problems with the GCC collect2 program. For some
10907 # reason, if we set the COLLECT_NAMES environment variable, the problems
10908 # vanish in a puff of smoke.
10909 if test "X${COLLECT_NAMES+set}" != Xset; then
10911 export COLLECT_NAMES
10917 # We use sed instead of cat because bash on DJGPP gets confused if
10918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10919 # text mode, it properly converts lines to CR/LF. This bash problem
10920 # is reportedly fixed, but why not run on old versions too?
10921 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10923 mv -f "$cfgfile" "$ofile" || \
10924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10928 # If there is no Makefile yet, we rely on a make rule to execute
10929 # `config.status --recheck' to rerun these tests and create the
10930 # libtool script then.
10931 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10932 if test -f "$ltmain_in"; then
10933 test -f Makefile && make "$ltmain"
10939 ac_cpp='$CPP $CPPFLAGS'
10940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10947 # Check whether --with-tags was given.
10948 if test "${with_tags+set}" = set; then
10949 withval=$with_tags; tagnames="$withval"
10953 if test -f "$ltmain" && test -n "$tagnames"; then
10954 if test ! -f "${ofile}"; then
10955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10956 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10959 if test -z "$LTCC"; then
10960 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10961 if test -z "$LTCC"; then
10962 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10963 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10966 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10970 # Extract list of available tagged configurations in $ofile.
10971 # Note that this assumes the entire list is on one line.
10972 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10975 for tagname in $tagnames; do
10977 # Check whether tagname contains only valid characters
10978 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10980 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10981 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10982 { (exit 1); exit 1; }; }
10986 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10988 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10989 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10990 { (exit 1); exit 1; }; }
10993 # Update the list of available tags.
10994 if test -n "$tagname"; then
10995 echo appending configuration tag \"$tagname\" to $ofile
10999 if test -n "$CXX" && test "X$CXX" != "Xno"; then
11001 ac_cpp='$CXXCPP $CPPFLAGS'
11002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11009 archive_cmds_need_lc_CXX=no
11010 allow_undefined_flag_CXX=
11011 always_export_symbols_CXX=no
11012 archive_expsym_cmds_CXX=
11013 export_dynamic_flag_spec_CXX=
11014 hardcode_direct_CXX=no
11015 hardcode_libdir_flag_spec_CXX=
11016 hardcode_libdir_flag_spec_ld_CXX=
11017 hardcode_libdir_separator_CXX=
11018 hardcode_minus_L_CXX=no
11019 hardcode_automatic_CXX=no
11021 module_expsym_cmds_CXX=
11022 link_all_deplibs_CXX=unknown
11023 old_archive_cmds_CXX=$old_archive_cmds
11024 no_undefined_flag_CXX=
11025 whole_archive_flag_spec_CXX=
11026 enable_shared_with_static_runtimes_CXX=no
11028 # Dependencies to place before and after the object being linked:
11029 predep_objects_CXX=
11030 postdep_objects_CXX=
11033 compiler_lib_search_path_CXX=
11035 # Source file extension for C++ test sources.
11038 # Object file extension for compiled C++ test sources.
11042 # Code to be used in simple compile tests
11043 lt_simple_compile_test_code="int some_variable = 0;\n"
11045 # Code to be used in simple link tests
11046 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11050 # If no C compiler was specified, use CC.
11053 # Allow CC to be a program name with arguments.
11057 # Allow CC to be a program name with arguments.
11062 lt_save_with_gnu_ld=$with_gnu_ld
11063 lt_save_path_LD=$lt_cv_path_LD
11064 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11065 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11067 unset lt_cv_prog_gnu_ld
11069 if test -n "${lt_cv_path_LDCXX+set}"; then
11070 lt_cv_path_LD=$lt_cv_path_LDCXX
11072 unset lt_cv_path_LD
11074 test -z "${LDCXX+set}" || LD=$LDCXX
11078 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11080 # We don't want -fno-exception wen compiling C++ code, so set the
11081 # no_builtin_flag separately
11082 if test "$GXX" = yes; then
11083 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11085 lt_prog_compiler_no_builtin_flag_CXX=
11088 if test "$GXX" = yes; then
11089 # Set up default GNU C++ configuration
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then
11094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11100 if test "$GCC" = yes; then
11101 # Check if gcc -print-prog-name=ld gives a path.
11102 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11103 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11106 # gcc leaves a trailing carriage return which upsets mingw
11107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11112 # Accept absolute paths.
11114 re_direlt='/[^/][^/]*/\.\./'
11115 # Canonicalize the pathname of ld
11116 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11118 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11120 test -z "$LD" && LD="$ac_prog"
11123 # If it fails, then pretend we aren't using GCC.
11127 # If it is relative, then search for the first ld in PATH.
11128 with_gnu_ld=unknown
11131 elif test "$with_gnu_ld" = yes; then
11132 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11135 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11138 if test "${lt_cv_path_LD+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 if test -z "$LD"; then
11142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143 for ac_dir in $PATH; do
11145 test -z "$ac_dir" && ac_dir=.
11146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147 lt_cv_path_LD="$ac_dir/$ac_prog"
11148 # Check to see if the program is GNU ld. I'd rather use --version,
11149 # but apparently some GNU ld's only accept -v.
11150 # Break only if it was the GNU/non-GNU ld that we prefer.
11151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11152 *GNU* | *'with BFD'*)
11153 test "$with_gnu_ld" != no && break
11156 test "$with_gnu_ld" != yes && break
11163 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11167 LD="$lt_cv_path_LD"
11168 if test -n "$LD"; then
11169 { echo "$as_me:$LINENO: result: $LD" >&5
11170 echo "${ECHO_T}$LD" >&6; }
11172 { echo "$as_me:$LINENO: result: no" >&5
11173 echo "${ECHO_T}no" >&6; }
11175 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11176 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11177 { (exit 1); exit 1; }; }
11178 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11179 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11180 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11184 case `$LD -v 2>&1 </dev/null` in
11185 *GNU* | *'with BFD'*)
11186 lt_cv_prog_gnu_ld=yes
11189 lt_cv_prog_gnu_ld=no
11193 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11194 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11195 with_gnu_ld=$lt_cv_prog_gnu_ld
11199 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11200 # archiving commands below assume that GNU ld is being used.
11201 if test "$with_gnu_ld" = yes; then
11202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203 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'
11205 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11208 # If archive_cmds runs LD, not CC, wlarc should be empty
11209 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11210 # investigate it a little bit more. (MM)
11213 # ancient GNU ld didn't support --whole-archive et. al.
11214 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11215 grep 'no-whole-archive' > /dev/null; then
11216 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11218 whole_archive_flag_spec_CXX=
11224 # A generic and very simple default shared library creation
11225 # command for GNU C++ for the case where it uses the native
11226 # linker, instead of GNU ld. If possible, this setting should
11227 # overridden to take advantage of the native linker features on
11228 # the platform it is being used on.
11229 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11232 # Commands to make compiler produce verbose output that lists
11233 # what "hidden" libraries, object files and flags are used when
11234 # linking a shared library.
11235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11243 # PORTME: fill in a description of your system's C++ link characteristics
11244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11249 # FIXME: insert proper C++ library support
11253 if test "$host_cpu" = ia64; then
11254 # On IA64, the linker does run time linking by default, so we don't
11255 # have to do anything special.
11256 aix_use_runtimelinking=no
11257 exp_sym_flag='-Bexport'
11260 aix_use_runtimelinking=no
11262 # Test if we are trying to use run time linking or normal
11263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11264 # need to do runtime linking.
11265 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11266 for ld_flag in $LDFLAGS; do
11269 aix_use_runtimelinking=yes
11276 exp_sym_flag='-bexport'
11277 no_entry_flag='-bnoentry'
11280 # When large executables or shared objects are built, AIX ld can
11281 # have problems creating the table of contents. If linking a library
11282 # or program results in "error TOC overflow" add -mminimal-toc to
11283 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11284 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11286 archive_cmds_CXX=''
11287 hardcode_direct_CXX=yes
11288 hardcode_libdir_separator_CXX=':'
11289 link_all_deplibs_CXX=yes
11291 if test "$GXX" = yes; then
11292 case $host_os in aix4.012|aix4.012.*)
11293 # We only want to do this on AIX 4.2 and lower, the check
11294 # below for broken collect2 doesn't work under 4.3+
11295 collect2name=`${CC} -print-prog-name=collect2`
11296 if test -f "$collect2name" && \
11297 strings "$collect2name" | grep resolve_lib_name >/dev/null
11299 # We have reworked collect2
11300 hardcode_direct_CXX=yes
11302 # We have old collect2
11303 hardcode_direct_CXX=unsupported
11304 # It fails to find uninstalled libraries when the uninstalled
11305 # path is not listed in the libpath. Setting hardcode_minus_L
11306 # to unsupported forces relinking
11307 hardcode_minus_L_CXX=yes
11308 hardcode_libdir_flag_spec_CXX='-L$libdir'
11309 hardcode_libdir_separator_CXX=
11312 shared_flag='-shared'
11315 if test "$host_cpu" = ia64; then
11316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11317 # chokes on -Wl,-G. The following line is correct:
11320 if test "$aix_use_runtimelinking" = yes; then
11321 shared_flag='${wl}-G'
11323 shared_flag='${wl}-bM:SRE'
11328 # It seems that -bexpall does not export symbols beginning with
11329 # underscore (_), so it is better to generate a list of symbols to export.
11330 always_export_symbols_CXX=yes
11331 if test "$aix_use_runtimelinking" = yes; then
11332 # Warning - without using the other runtime loading flags (-brtl),
11333 # -berok will link without error, but may produce a broken library.
11334 allow_undefined_flag_CXX='-berok'
11335 # Determine the default libpath from the value encoded in an empty executable.
11336 cat >conftest.$ac_ext <<_ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (ac_try="$ac_link"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_link") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && {
11365 test -z "$ac_cxx_werror_flag" ||
11366 test ! -s conftest.err
11367 } && test -s conftest$ac_exeext &&
11368 $as_test_x conftest$ac_exeext; then
11370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11372 # Check for a 64-bit object if we didn't find anything.
11373 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; }
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383 conftest$ac_exeext conftest.$ac_ext
11384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11386 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11388 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11390 if test "$host_cpu" = ia64; then
11391 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11392 allow_undefined_flag_CXX="-z nodefs"
11393 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11395 # Determine the default libpath from the value encoded in an empty executable.
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_cxx_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest$ac_exeext &&
11428 $as_test_x conftest$ac_exeext; then
11430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11432 # Check for a 64-bit object if we didn't find anything.
11433 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; }
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11443 conftest$ac_exeext conftest.$ac_ext
11444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11446 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11447 # Warning - without using the other run time loading flags,
11448 # -berok will link without error, but may produce a broken library.
11449 no_undefined_flag_CXX=' ${wl}-bernotok'
11450 allow_undefined_flag_CXX=' ${wl}-berok'
11451 # -bexpall does not export symbols beginning with underscore (_)
11452 always_export_symbols_CXX=yes
11453 # Exported symbols can be pulled into shared objects from archives
11454 whole_archive_flag_spec_CXX=' '
11455 archive_cmds_need_lc_CXX=yes
11456 # This is similar to how AIX traditionally builds it's shared libraries.
11457 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11462 case $cc_basename in
11464 # FIXME: insert proper C++ library support
11470 cygwin* | mingw* | pw32*)
11471 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11472 # as there is no search path for DLLs.
11473 hardcode_libdir_flag_spec_CXX='-L$libdir'
11474 allow_undefined_flag_CXX=unsupported
11475 always_export_symbols_CXX=no
11476 enable_shared_with_static_runtimes_CXX=yes
11478 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11479 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11480 # If the export-symbols file already is a .def file (1st line
11481 # is EXPORTS), use it as is; otherwise, prepend...
11482 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11483 cp $export_symbols $output_objdir/$soname.def;
11485 echo EXPORTS > $output_objdir/$soname.def;
11486 cat $export_symbols >> $output_objdir/$soname.def;
11488 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11494 darwin* | rhapsody*)
11495 if test "$GXX" = yes; then
11496 archive_cmds_need_lc_CXX=no
11498 rhapsody* | darwin1.[012])
11499 allow_undefined_flag_CXX='-undefined suppress'
11502 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11503 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11505 case ${MACOSX_DEPLOYMENT_TARGET} in
11507 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11510 allow_undefined_flag_CXX='-undefined dynamic_lookup'
11516 lt_int_apple_cc_single_mod=no
11517 output_verbose_link_cmd='echo'
11518 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11519 lt_int_apple_cc_single_mod=yes
11521 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11522 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11524 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11526 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11529 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11530 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}'
11532 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11534 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}'
11535 hardcode_direct_CXX=no
11536 hardcode_automatic_CXX=yes
11537 hardcode_shlibpath_var_CXX=unsupported
11538 whole_archive_flag_spec_CXX='-all_load $convenience'
11539 link_all_deplibs_CXX=yes
11546 case $cc_basename in
11548 # FIXME: insert proper C++ library support
11552 # Green Hills C++ Compiler
11553 # FIXME: insert proper C++ library support
11557 # FIXME: insert proper C++ library support
11563 # C++ shared libraries reported to be fairly broken before switch to ELF
11567 archive_cmds_need_lc_CXX=no
11569 freebsd* | kfreebsd*-gnu)
11570 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11577 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11578 hardcode_libdir_separator_CXX=:
11579 export_dynamic_flag_spec_CXX='${wl}-E'
11580 hardcode_direct_CXX=yes
11581 hardcode_minus_L_CXX=yes # Not in the search PATH,
11582 # but as the default
11583 # location of the library.
11585 case $cc_basename in
11587 # FIXME: insert proper C++ library support
11591 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'
11592 # Commands to make compiler produce verbose output that lists
11593 # what "hidden" libraries, object files and flags are used when
11594 # linking a shared library.
11596 # There doesn't appear to be a way to prevent this compiler from
11597 # explicitly linking system object files so we need to strip them
11598 # from the output so that they don't get included in the library
11600 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'
11603 if test "$GXX" = yes; then
11604 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'
11606 # FIXME: insert proper C++ library support
11613 if test $with_gnu_ld = no; then
11614 case "$host_cpu" in
11616 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11617 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11618 hardcode_libdir_separator_CXX=:
11621 hardcode_libdir_flag_spec_CXX='-L$libdir'
11624 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11625 hardcode_libdir_separator_CXX=:
11626 export_dynamic_flag_spec_CXX='${wl}-E'
11630 case "$host_cpu" in
11632 hardcode_direct_CXX=no
11633 hardcode_shlibpath_var_CXX=no
11636 hardcode_direct_CXX=no
11637 hardcode_shlibpath_var_CXX=no
11638 hardcode_minus_L_CXX=yes # Not in the search PATH,
11639 # but as the default
11640 # location of the library.
11643 hardcode_direct_CXX=yes
11644 hardcode_minus_L_CXX=yes # Not in the search PATH,
11645 # but as the default
11646 # location of the library.
11650 case $cc_basename in
11652 # FIXME: insert proper C++ library support
11656 case "$host_cpu" in
11658 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11661 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11668 # There doesn't appear to be a way to prevent this compiler from
11669 # explicitly linking system object files so we need to strip them
11670 # from the output so that they don't get included in the library
11672 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'
11675 if test "$GXX" = yes; then
11676 if test $with_gnu_ld = no; then
11677 case "$host_cpu" in
11679 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11682 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'
11687 # FIXME: insert proper C++ library support
11694 case $cc_basename in
11697 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11699 # Archives containing C++ object files must be created using
11700 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11701 # necessary to make sure instantiated templates are included
11703 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11706 if test "$GXX" = yes; then
11707 if test "$with_gnu_ld" = no; then
11708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11710 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'
11713 link_all_deplibs_CXX=yes
11716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11717 hardcode_libdir_separator_CXX=:
11720 case $cc_basename in
11722 # Kuck and Associates, Inc. (KAI) C++ Compiler
11724 # KCC will only create a shared library if the output file
11725 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11726 # to its proper name (with version) after linking.
11727 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'
11728 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'
11729 # Commands to make compiler produce verbose output that lists
11730 # what "hidden" libraries, object files and flags are used when
11731 # linking a shared library.
11733 # There doesn't appear to be a way to prevent this compiler from
11734 # explicitly linking system object files so we need to strip them
11735 # from the output so that they don't get included in the library
11737 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'
11739 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11740 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11742 # Archives containing C++ object files must be created using
11743 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11744 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11749 archive_cmds_need_lc_CXX=no
11750 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11751 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'
11752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11754 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11759 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'
11761 runpath_var=LD_RUN_PATH
11762 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11763 hardcode_libdir_separator_CXX=:
11765 # Commands to make compiler produce verbose output that lists
11766 # what "hidden" libraries, object files and flags are used when
11767 # linking a shared library.
11769 # There doesn't appear to be a way to prevent this compiler from
11770 # explicitly linking system object files so we need to strip them
11771 # from the output so that they don't get included in the library
11773 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'
11778 # FIXME: insert proper C++ library support
11782 # FIXME: insert proper C++ library support
11786 case $cc_basename in
11788 # FIXME: insert proper C++ library support
11792 # FIXME: insert proper C++ library support
11797 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11798 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11799 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11801 hardcode_libdir_flag_spec_CXX='-R$libdir'
11802 hardcode_direct_CXX=yes
11803 hardcode_shlibpath_var_CXX=no
11805 # Workaround some broken pre-1.5 toolchains
11806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11809 case $cc_basename in
11811 # Kuck and Associates, Inc. (KAI) C++ Compiler
11813 # KCC will only create a shared library if the output file
11814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11815 # to its proper name (with version) after linking.
11816 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'
11818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11819 hardcode_libdir_separator_CXX=:
11821 # Archives containing C++ object files must be created using
11822 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11827 # Rational C++ 2.4.1
11828 # FIXME: insert proper C++ library support
11832 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11833 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11836 hardcode_libdir_separator_CXX=:
11838 # Commands to make compiler produce verbose output that lists
11839 # what "hidden" libraries, object files and flags are used when
11840 # linking a shared library.
11842 # There doesn't appear to be a way to prevent this compiler from
11843 # explicitly linking system object files so we need to strip them
11844 # from the output so that they don't get included in the library
11846 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'
11849 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11851 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854 hardcode_libdir_separator_CXX=:
11856 # Commands to make compiler produce verbose output that lists
11857 # what "hidden" libraries, object files and flags are used when
11858 # linking a shared library.
11859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11862 # FIXME: insert proper C++ library support
11869 case $cc_basename in
11871 # Kuck and Associates, Inc. (KAI) C++ Compiler
11873 # KCC will only create a shared library if the output file
11874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11875 # to its proper name (with version) after linking.
11876 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'
11878 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879 hardcode_libdir_separator_CXX=:
11881 # Archives containing C++ object files must be created using
11882 # the KAI C++ compiler.
11883 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11886 # Rational C++ 2.4.1
11887 # FIXME: insert proper C++ library support
11891 allow_undefined_flag_CXX=' -expect_unresolved \*'
11892 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11893 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11894 echo "-hidden">> $lib.exp~
11895 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11898 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11899 hardcode_libdir_separator_CXX=:
11901 # Commands to make compiler produce verbose output that lists
11902 # what "hidden" libraries, object files and flags are used when
11903 # linking a shared library.
11905 # There doesn't appear to be a way to prevent this compiler from
11906 # explicitly linking system object files so we need to strip them
11907 # from the output so that they don't get included in the library
11909 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'
11912 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11914 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11917 hardcode_libdir_separator_CXX=:
11919 # Commands to make compiler produce verbose output that lists
11920 # what "hidden" libraries, object files and flags are used when
11921 # linking a shared library.
11922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11925 # FIXME: insert proper C++ library support
11932 # FIXME: insert proper C++ library support
11936 archive_cmds_need_lc_CXX=no
11937 case $cc_basename in
11939 # FIXME: insert proper C++ library support
11943 # FIXME: insert proper C++ library support
11949 case $cc_basename in
11952 # FIXME: insert proper C++ library support
11957 # FIXME: insert proper C++ library support
11961 # FIXME: insert proper C++ library support
11967 case $cc_basename in
11969 # Sun C++ 4.2, 5.x and Centerline C++
11970 no_undefined_flag_CXX=' -zdefs'
11971 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11973 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11975 hardcode_libdir_flag_spec_CXX='-R$libdir'
11976 hardcode_shlibpath_var_CXX=no
11978 solaris2.0-5 | solaris2.0-5.*) ;;
11980 # The C++ compiler is used as linker so we must use $wl
11981 # flag to pass the commands to the underlying system
11983 # Supported since Solaris 2.6 (maybe 2.5.1?)
11984 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11987 link_all_deplibs_CXX=yes
11989 # Commands to make compiler produce verbose output that lists
11990 # what "hidden" libraries, object files and flags are used when
11991 # linking a shared library.
11993 # There doesn't appear to be a way to prevent this compiler from
11994 # explicitly linking system object files so we need to strip them
11995 # from the output so that they don't get included in the library
11997 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11999 # Archives containing C++ object files must be created using
12000 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12001 # necessary to make sure instantiated templates are included
12003 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12006 # Green Hills C++ Compiler
12007 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12009 # The C++ compiler must be used to create the archive.
12010 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12013 # GNU C++ compiler with Solaris linker
12014 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12016 if $CC --version | grep -v '^2\.7' > /dev/null; then
12017 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12018 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12019 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12024 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12026 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12028 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12029 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12030 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12032 # Commands to make compiler produce verbose output that lists
12033 # what "hidden" libraries, object files and flags are used when
12034 # linking a shared library.
12035 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12038 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12043 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12044 archive_cmds_need_lc_CXX=no
12047 case $cc_basename in
12049 # NonStop-UX NCC 3.20
12050 # FIXME: insert proper C++ library support
12054 # FIXME: insert proper C++ library support
12060 # FIXME: insert proper C++ library support
12064 # FIXME: insert proper C++ library support
12068 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12069 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12070 test "$ld_shlibs_CXX" = no && can_build_shared=no
12076 ## There is no encapsulation within the following macros, do not change
12077 ## the running order or otherwise move them around unless you know exactly
12078 ## what you are doing...
12080 cat > conftest.$ac_ext <<EOF
12084 Foo (void) { a = 0; }
12090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091 (eval $ac_compile) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; then
12095 # Parse the compiler output and extract the necessary
12096 # objects, libraries and library flags.
12098 # Sentinel used to keep track of whether or not we are before
12099 # the conftest object file.
12100 pre_test_object_deps_done=no
12102 # The `*' in the case matches for architectures that use `case' in
12103 # $output_verbose_cmd can trigger glob expansion during the loop
12104 # eval without this substitution.
12105 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12107 for p in `eval $output_verbose_link_cmd`; do
12111 # Some compilers place space between "-{L,R}" and the path.
12112 # Remove the space.
12113 if test $p = "-L" \
12114 || test $p = "-R"; then
12121 if test "$pre_test_object_deps_done" = no; then
12124 # Internal compiler library paths should come after those
12125 # provided the user. The postdeps already come after the
12126 # user supplied libs so there is no need to process them.
12127 if test -z "$compiler_lib_search_path_CXX"; then
12128 compiler_lib_search_path_CXX="${prev}${p}"
12130 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12133 # The "-l" case would never come before the object being
12134 # linked, so don't bother handling this case.
12137 if test -z "$postdeps_CXX"; then
12138 postdeps_CXX="${prev}${p}"
12140 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12146 # This assumes that the test object file only shows up
12147 # once in the compiler output.
12148 if test "$p" = "conftest.$objext"; then
12149 pre_test_object_deps_done=yes
12153 if test "$pre_test_object_deps_done" = no; then
12154 if test -z "$predep_objects_CXX"; then
12155 predep_objects_CXX="$p"
12157 predep_objects_CXX="$predep_objects_CXX $p"
12160 if test -z "$postdep_objects_CXX"; then
12161 postdep_objects_CXX="$p"
12163 postdep_objects_CXX="$postdep_objects_CXX $p"
12168 *) ;; # Ignore the rest.
12176 echo "libtool.m4: error: problem compiling CXX test program"
12179 $rm -f confest.$objext
12181 case " $postdeps_CXX " in
12182 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12185 lt_prog_compiler_wl_CXX=
12186 lt_prog_compiler_pic_CXX=
12187 lt_prog_compiler_static_CXX=
12189 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12190 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12192 # C++ specific cases for pic, static, wl, etc.
12193 if test "$GXX" = yes; then
12194 lt_prog_compiler_wl_CXX='-Wl,'
12195 lt_prog_compiler_static_CXX='-static'
12199 # All AIX code is PIC.
12200 if test "$host_cpu" = ia64; then
12201 # AIX 5 now supports IA64 processor
12202 lt_prog_compiler_static_CXX='-Bstatic'
12206 # FIXME: we need at least 68020 code to build shared libraries, but
12207 # adding the `-m68020' flag to GCC prevents building anything better,
12209 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12211 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12212 # PIC is the default for these OSes.
12214 mingw* | os2* | pw32*)
12215 # This hack is so that the source file can tell whether it is being
12216 # built for inclusion in a dll (and should export symbols for example).
12217 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12219 darwin* | rhapsody*)
12220 # PIC is the default on this platform
12221 # Common symbols not allowed in MH_DYLIB files
12222 lt_prog_compiler_pic_CXX='-fno-common'
12225 # DJGPP does not support shared libraries at all
12226 lt_prog_compiler_pic_CXX=
12229 if test -d /usr/nec; then
12230 lt_prog_compiler_pic_CXX=-Kconform_pic
12234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12235 # not for PA HP-UX.
12236 case "$host_cpu" in
12240 lt_prog_compiler_pic_CXX='-fPIC'
12245 lt_prog_compiler_pic_CXX='-fPIC'
12251 # All AIX code is PIC.
12252 if test "$host_cpu" = ia64; then
12253 # AIX 5 now supports IA64 processor
12254 lt_prog_compiler_static_CXX='-Bstatic'
12256 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12260 case $cc_basename in
12262 # Green Hills C++ Compiler
12263 # _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"
12268 case $cc_basename in
12270 lt_prog_compiler_pic_CXX='-KPIC'
12273 # Green Hills C++ Compiler
12274 lt_prog_compiler_pic_CXX='-pic'
12280 freebsd* | kfreebsd*-gnu)
12281 # FreeBSD uses GNU C++
12283 hpux9* | hpux10* | hpux11*)
12284 case $cc_basename in
12286 lt_prog_compiler_wl_CXX='-Wl,'
12287 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12288 if test "$host_cpu" != ia64; then
12289 lt_prog_compiler_pic_CXX='+Z'
12293 lt_prog_compiler_wl_CXX='-Wl,'
12294 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12295 case "$host_cpu" in
12300 lt_prog_compiler_pic_CXX='+Z'
12308 irix5* | irix6* | nonstopux*)
12309 case $cc_basename in
12311 lt_prog_compiler_wl_CXX='-Wl,'
12312 lt_prog_compiler_static_CXX='-non_shared'
12313 # CC pic flag -KPIC is the default.
12320 case $cc_basename in
12323 lt_prog_compiler_wl_CXX='--backend -Wl,'
12324 lt_prog_compiler_pic_CXX='-fPIC'
12328 lt_prog_compiler_wl_CXX='-Wl,'
12329 lt_prog_compiler_pic_CXX='-KPIC'
12330 lt_prog_compiler_static_CXX='-static'
12334 # Make sure the PIC flag is empty. It appears that all Alpha
12335 # Linux and Compaq Tru64 Unix objects are PIC.
12336 lt_prog_compiler_pic_CXX=
12337 lt_prog_compiler_static_CXX='-non_shared'
12348 case $cc_basename in
12350 lt_prog_compiler_pic_CXX='-W c,exportall'
12356 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12358 osf3* | osf4* | osf5*)
12359 case $cc_basename in
12361 lt_prog_compiler_wl_CXX='--backend -Wl,'
12364 # Rational C++ 2.4.1
12365 lt_prog_compiler_pic_CXX='-pic'
12368 # Digital/Compaq C++
12369 lt_prog_compiler_wl_CXX='-Wl,'
12370 # Make sure the PIC flag is empty. It appears that all Alpha
12371 # Linux and Compaq Tru64 Unix objects are PIC.
12372 lt_prog_compiler_pic_CXX=
12373 lt_prog_compiler_static_CXX='-non_shared'
12382 case $cc_basename in
12384 lt_prog_compiler_pic_CXX='-fPIC'
12391 case $cc_basename in
12393 # Sun C++ 4.2, 5.x and Centerline C++
12394 lt_prog_compiler_pic_CXX='-KPIC'
12395 lt_prog_compiler_static_CXX='-Bstatic'
12396 lt_prog_compiler_wl_CXX='-Qoption ld '
12399 # Green Hills C++ Compiler
12400 lt_prog_compiler_pic_CXX='-PIC'
12407 case $cc_basename in
12410 lt_prog_compiler_pic_CXX='-pic'
12411 lt_prog_compiler_static_CXX='-Bstatic'
12415 lt_prog_compiler_pic_CXX='-pic'
12422 case $cc_basename in
12424 # NonStop-UX NCC 3.20
12425 lt_prog_compiler_pic_CXX='-KPIC'
12436 lt_prog_compiler_can_build_shared_CXX=no
12441 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12442 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12445 # Check to make sure the PIC flag actually works.
12447 if test -n "$lt_prog_compiler_pic_CXX"; then
12449 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12450 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12451 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 lt_prog_compiler_pic_works_CXX=no
12455 ac_outfile=conftest.$ac_objext
12456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12457 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12458 # Insert the option either (1) after the last *FLAGS variable, or
12459 # (2) before a word containing "conftest.", or (3) at the end.
12460 # Note that $ac_compile itself does not contain backslashes and begins
12461 # with a dollar sign (not a hyphen), so the echo should work correctly.
12462 # The option is referenced via a variable to avoid confusing sed.
12463 lt_compile=`echo "$ac_compile" | $SED \
12464 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12466 -e 's:$: $lt_compiler_flag:'`
12467 (eval echo "\"\$as_me:12467: $lt_compile\"" >&5)
12468 (eval "$lt_compile" 2>conftest.err)
12470 cat conftest.err >&5
12471 echo "$as_me:12471: \$? = $ac_status" >&5
12472 if (exit $ac_status) && test -s "$ac_outfile"; then
12473 # The compiler can only warn and ignore the option if not recognized
12474 # So say no if there are warnings
12475 if test ! -s conftest.err; then
12476 lt_prog_compiler_pic_works_CXX=yes
12482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12483 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12485 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12486 case $lt_prog_compiler_pic_CXX in
12488 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12491 lt_prog_compiler_pic_CXX=
12492 lt_prog_compiler_can_build_shared_CXX=no
12497 # For platforms which do not support PIC, -DPIC is meaningless:
12499 lt_prog_compiler_pic_CXX=
12502 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12506 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12507 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12508 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 lt_cv_prog_compiler_c_o_CXX=no
12512 $rm -r conftest 2>/dev/null
12516 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12518 lt_compiler_flag="-o out/conftest2.$ac_objext"
12519 # Insert the option either (1) after the last *FLAGS variable, or
12520 # (2) before a word containing "conftest.", or (3) at the end.
12521 # Note that $ac_compile itself does not contain backslashes and begins
12522 # with a dollar sign (not a hyphen), so the echo should work correctly.
12523 lt_compile=`echo "$ac_compile" | $SED \
12524 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12526 -e 's:$: $lt_compiler_flag:'`
12527 (eval echo "\"\$as_me:12527: $lt_compile\"" >&5)
12528 (eval "$lt_compile" 2>out/conftest.err)
12530 cat out/conftest.err >&5
12531 echo "$as_me:12531: \$? = $ac_status" >&5
12532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12534 # The compiler can only warn and ignore the option if not recognized
12535 # So say no if there are warnings
12536 if test ! -s out/conftest.err; then
12537 lt_cv_prog_compiler_c_o_CXX=yes
12542 # SGI C++ compiler will create directory out/ii_files/ for
12543 # template instantiation
12544 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12545 $rm out/* && rmdir out
12551 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12552 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12555 hard_links="nottested"
12556 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12557 # do not overwrite the value of need_locks provided by the user
12558 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12559 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12564 ln conftest.a conftest.b 2>&5 || hard_links=no
12565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12566 { echo "$as_me:$LINENO: result: $hard_links" >&5
12567 echo "${ECHO_T}$hard_links" >&6; }
12568 if test "$hard_links" = no; then
12569 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12570 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12577 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12578 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12580 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12583 # If we're using GNU nm, then we don't want the "-C" option.
12584 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12585 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12586 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'
12588 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'
12592 export_symbols_cmds_CXX="$ltdll_cmds"
12595 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12598 link_all_deplibs_CXX=no
12601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12605 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12606 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12607 test "$ld_shlibs_CXX" = no && can_build_shared=no
12609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12610 if test "$GCC" = yes; then
12611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12615 # Do we need to explicitly link libc?
12617 case "x$archive_cmds_need_lc_CXX" in
12619 # Assume -lc should be added
12620 archive_cmds_need_lc_CXX=yes
12622 if test "$enable_shared" = yes && test "$GCC" = yes; then
12623 case $archive_cmds_CXX in
12625 # FIXME: we may have to deal with multi-command sequences.
12628 # Test whether the compiler implicitly links with -lc since on some
12629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12630 # to ld, don't add -lc before -lgcc.
12631 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } 2>conftest.err; then
12643 libobjs=conftest.$ac_objext
12645 wl=$lt_prog_compiler_wl_CXX
12651 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12652 allow_undefined_flag_CXX=
12653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12654 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }
12659 archive_cmds_need_lc_CXX=no
12661 archive_cmds_need_lc_CXX=yes
12663 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12665 cat conftest.err 1>&5
12668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12669 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12678 library_names_spec=
12679 libname_spec='lib$name'
12683 postuninstall_cmds=
12687 shlibpath_overrides_runpath=unknown
12689 dynamic_linker="$host_os ld.so"
12690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12691 if test "$GCC" = yes; then
12692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12694 # if the path contains ";" then we assume it to be the separator
12695 # otherwise default to the standard path separator (i.e. ":") - it is
12696 # assumed that no part of a normal pathname contains ";" but that should
12697 # okay in the real world where ";" in dirpaths is itself problematic.
12698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12705 need_lib_prefix=unknown
12706 hardcode_into_libs=no
12708 # when you set need_version to no, make sure it does not cause -set_version
12709 # flags to be left without arguments
12710 need_version=unknown
12715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12716 shlibpath_var=LIBPATH
12718 # AIX 3 has no versioning support, so we append a major version to the name.
12719 soname_spec='${libname}${release}${shared_ext}$major'
12726 hardcode_into_libs=yes
12727 if test "$host_cpu" = ia64; then
12728 # AIX 5 supports IA64
12729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12730 shlibpath_var=LD_LIBRARY_PATH
12732 # With GCC up to 2.95.x, collect2 would create an import file
12733 # for dependence libraries. The import file would start with
12734 # the line `#! .'. This would cause the generated library to
12735 # depend on `.', always an invalid library. This was fixed in
12736 # development snapshots of GCC prior to 3.0.
12738 aix4 | aix4.[01] | aix4.[01].*)
12739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12744 can_build_shared=no
12748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12749 # soname into executable. Probably we can add versioning support to
12750 # collect2, so additional links can be useful in future.
12751 if test "$aix_use_runtimelinking" = yes; then
12752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12753 # instead of lib<name>.a to let people know that these are not
12754 # typical AIX shared libraries.
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12757 # We preserve .a as extension for shared libraries through AIX4.2
12758 # and later when we are not doing run time linking.
12759 library_names_spec='${libname}${release}.a $libname.a'
12760 soname_spec='${libname}${release}${shared_ext}$major'
12762 shlibpath_var=LIBPATH
12767 library_names_spec='$libname.ixlibrary $libname.a'
12768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12769 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'
12773 library_names_spec='${libname}${shared_ext}'
12774 dynamic_linker="$host_os ld.so"
12775 shlibpath_var=LIBRARY_PATH
12781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782 soname_spec='${libname}${release}${shared_ext}$major'
12783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12784 shlibpath_var=LD_LIBRARY_PATH
12785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12787 # the default ld.so.conf also contains /usr/contrib/lib and
12788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12789 # libtool to hard-code these into programs
12792 cygwin* | mingw* | pw32*)
12793 version_type=windows
12798 case $GCC,$host_os in
12799 yes,cygwin* | yes,mingw* | yes,pw32*)
12800 library_names_spec='$libname.dll.a'
12801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12802 postinstall_cmds='base_file=`basename \${file}`~
12803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12804 dldir=$destdir/`dirname \$dlpath`~
12805 test -d \$dldir || mkdir -p \$dldir~
12806 $install_prog $dir/$dlname \$dldir/$dlname'
12807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12808 dlpath=$dir/\$dldll~
12810 shlibpath_overrides_runpath=yes
12814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12816 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12819 # MinGW DLLs use traditional 'lib' prefix
12820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12822 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12823 # It is most probably a Windows format PATH printed by
12824 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12825 # path with ; separators, and with drive letters. We can handle the
12826 # drive letters (cygwin fileutils understands them), so leave them,
12827 # especially as we might pass files found there to a mingw objdump,
12828 # which wouldn't understand a cygwinified path. Ahh.
12829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12835 # pw32 DLLs use 'pw' prefix rather than 'lib'
12836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12845 dynamic_linker='Win32 ld.exe'
12846 # FIXME: first we should search . and the directory the executable is in
12850 darwin* | rhapsody*)
12851 dynamic_linker="$host_os dyld"
12852 version_type=darwin
12855 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12856 soname_spec='${libname}${release}${major}$shared_ext'
12857 shlibpath_overrides_runpath=yes
12858 shlibpath_var=DYLD_LIBRARY_PATH
12859 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12860 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12861 if test "$GCC" = yes; then
12862 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"`
12864 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12874 soname_spec='${libname}${release}${shared_ext}$major'
12875 shlibpath_var=LD_LIBRARY_PATH
12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12887 soname_spec='${libname}${release}${shared_ext}$major'
12888 shlibpath_var=LD_LIBRARY_PATH
12889 shlibpath_overrides_runpath=no
12890 hardcode_into_libs=yes
12891 dynamic_linker='GNU ld.so'
12895 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12896 version_type=freebsd-$objformat
12897 case $version_type in
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12908 shlibpath_var=LD_LIBRARY_PATH
12911 shlibpath_overrides_runpath=yes
12913 freebsd3.01* | freebsdelf3.01*)
12914 shlibpath_overrides_runpath=yes
12915 hardcode_into_libs=yes
12918 shlibpath_overrides_runpath=no
12919 hardcode_into_libs=yes
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 hardcode_into_libs=yes
12934 hpux9* | hpux10* | hpux11*)
12935 # Give a soname corresponding to the major version so that dld.sl refuses to
12936 # link against other versions.
12940 case "$host_cpu" in
12943 hardcode_into_libs=yes
12944 dynamic_linker="$host_os dld.so"
12945 shlibpath_var=LD_LIBRARY_PATH
12946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12949 if test "X$HPUX_IA64_MODE" = X32; then
12950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12958 hardcode_into_libs=yes
12959 dynamic_linker="$host_os dld.sl"
12960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12969 dynamic_linker="$host_os dld.sl"
12970 shlibpath_var=SHLIB_PATH
12971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973 soname_spec='${libname}${release}${shared_ext}$major'
12976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12977 postinstall_cmds='chmod 555 $lib'
12980 irix5* | irix6* | nonstopux*)
12982 nonstopux*) version_type=nonstopux ;;
12984 if test "$lt_cv_prog_gnu_ld" = yes; then
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12995 irix5* | nonstopux*)
12996 libsuff= shlibsuff=
12999 case $LD in # libtool.m4 will add one of these switches to LD
13000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13001 libsuff= shlibsuff= libmagic=32-bit;;
13002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13003 libsuff=32 shlibsuff=N32 libmagic=N32;;
13004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13006 *) libsuff= shlibsuff= libmagic=never-match;;
13010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13011 shlibpath_overrides_runpath=no
13012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13014 hardcode_into_libs=yes
13017 # No shared lib support for Linux oldld, aout, or coff.
13018 linux*oldld* | linux*aout* | linux*coff*)
13022 # This must be Linux ELF.
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13030 shlibpath_var=LD_LIBRARY_PATH
13031 shlibpath_overrides_runpath=no
13032 # This implies no fast_install, which is unacceptable.
13033 # Some rework will be needed to allow for fast_install
13034 # before this can be enabled.
13035 hardcode_into_libs=yes
13037 # Append ld.so.conf contents to the search path
13038 if test -f /etc/ld.so.conf; then
13039 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13043 # We used to test for /lib/ld.so.1 and disable shared libraries on
13044 # powerpc, because MkLinux only supported shared libraries with the
13045 # GNU dynamic linker. Since this was broken with cross compilers,
13046 # most powerpc-linux boxes support dynamic linking these days and
13047 # people can always --disable-shared, the test was removed, and we
13048 # assume the GNU/Linux dynamic linker is in use.
13049 dynamic_linker='GNU/Linux ld.so'
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13057 soname_spec='${libname}${release}${shared_ext}$major'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 shlibpath_overrides_runpath=no
13060 hardcode_into_libs=yes
13061 dynamic_linker='NetBSD ld.elf_so'
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13069 soname_spec='${libname}${release}${shared_ext}$major'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 shlibpath_overrides_runpath=no
13072 hardcode_into_libs=yes
13073 dynamic_linker='GNU ld.so'
13080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13083 dynamic_linker='NetBSD (a.out) ld.so'
13085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086 soname_spec='${libname}${release}${shared_ext}$major'
13087 dynamic_linker='NetBSD ld.elf_so'
13089 shlibpath_var=LD_LIBRARY_PATH
13090 shlibpath_overrides_runpath=yes
13091 hardcode_into_libs=yes
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=yes
13105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13106 soname_spec='${libname}${release}${shared_ext}$major'
13107 shlibpath_var=LD_LIBRARY_PATH
13108 shlibpath_overrides_runpath=yes
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117 shlibpath_var=LD_LIBRARY_PATH
13118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13120 openbsd2.[89] | openbsd2.[89].*)
13121 shlibpath_overrides_runpath=no
13124 shlibpath_overrides_runpath=yes
13128 shlibpath_overrides_runpath=yes
13133 libname_spec='$name'
13136 library_names_spec='$libname${shared_ext} $libname.a'
13137 dynamic_linker='OS/2 ld.exe'
13138 shlibpath_var=LIBPATH
13141 osf3* | osf4* | osf5*)
13145 soname_spec='${libname}${release}${shared_ext}$major'
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 shlibpath_var=LD_LIBRARY_PATH
13148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13154 soname_spec='${libname}${release}${shared_ext}$major'
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 shlibpath_var=LD_LIBRARY_PATH
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164 soname_spec='${libname}${release}${shared_ext}$major'
13165 shlibpath_var=LD_LIBRARY_PATH
13166 shlibpath_overrides_runpath=yes
13167 hardcode_into_libs=yes
13168 # ldd complains unless libraries are executable
13169 postinstall_cmds='chmod +x $lib'
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13176 shlibpath_var=LD_LIBRARY_PATH
13177 shlibpath_overrides_runpath=yes
13178 if test "$with_gnu_ld" = yes; then
13184 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187 soname_spec='${libname}${release}${shared_ext}$major'
13188 shlibpath_var=LD_LIBRARY_PATH
13189 case $host_vendor in
13191 shlibpath_overrides_runpath=no
13193 export_dynamic_flag_spec='${wl}-Blargedynsym'
13194 runpath_var=LD_RUN_PATH
13202 shlibpath_overrides_runpath=no
13203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13209 if test -d /usr/nec ;then
13211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13212 soname_spec='$libname${shared_ext}.$major'
13213 shlibpath_var=LD_LIBRARY_PATH
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 shlibpath_var=LD_LIBRARY_PATH
13228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13229 echo "${ECHO_T}$dynamic_linker" >&6; }
13230 test "$dynamic_linker" = no && can_build_shared=no
13232 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13233 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13234 hardcode_action_CXX=
13235 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13236 test -n "$runpath_var CXX" || \
13237 test "X$hardcode_automatic_CXX"="Xyes" ; then
13239 # We can hardcode non-existant directories.
13240 if test "$hardcode_direct_CXX" != no &&
13241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13242 # have to relink, otherwise we might link with an installed library
13243 # when we should be linking with a yet-to-be-installed one
13244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13245 test "$hardcode_minus_L_CXX" != no; then
13246 # Linking always hardcodes the temporary library directory.
13247 hardcode_action_CXX=relink
13249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13250 hardcode_action_CXX=immediate
13253 # We cannot hardcode anything, or else we can only hardcode existing
13255 hardcode_action_CXX=unsupported
13257 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13258 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13260 if test "$hardcode_action_CXX" = relink; then
13261 # Fast installation is not supported
13262 enable_fast_install=no
13263 elif test "$shlibpath_overrides_runpath" = yes ||
13264 test "$enable_shared" = no; then
13265 # Fast installation is not necessary
13266 enable_fast_install=needless
13271 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13272 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13275 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13276 { echo "$as_me:$LINENO: result: yes" >&5
13277 echo "${ECHO_T}yes" >&6; }
13279 # FIXME - insert some real tests, host_os isn't really good enough
13282 if test -n "$STRIP" ; then
13283 striplib="$STRIP -x"
13284 { echo "$as_me:$LINENO: result: yes" >&5
13285 echo "${ECHO_T}yes" >&6; }
13287 { echo "$as_me:$LINENO: result: no" >&5
13288 echo "${ECHO_T}no" >&6; }
13292 { echo "$as_me:$LINENO: result: no" >&5
13293 echo "${ECHO_T}no" >&6; }
13298 if test "x$enable_dlopen" != xyes; then
13299 enable_dlopen=unknown
13300 enable_dlopen_self=unknown
13301 enable_dlopen_self_static=unknown
13308 lt_cv_dlopen="load_add_on"
13310 lt_cv_dlopen_self=yes
13314 lt_cv_dlopen="LoadLibrary"
13319 lt_cv_dlopen="dlopen"
13324 # if libdl is installed we need to link against it
13325 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13326 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13327 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 ac_check_lib_save_LIBS=$LIBS
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13339 /* Override any GCC internal prototype to avoid an error.
13340 Use char because int might match the return type of a GCC
13341 builtin and then its argument prototype would still apply. */
13354 rm -f conftest.$ac_objext conftest$ac_exeext
13355 if { (ac_try="$ac_link"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_link") 2>conftest.er1
13363 grep -v '^ *+' conftest.er1 >conftest.err
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } && {
13368 test -z "$ac_cxx_werror_flag" ||
13369 test ! -s conftest.err
13370 } && test -s conftest$ac_exeext &&
13371 $as_test_x conftest$ac_exeext; then
13372 ac_cv_lib_dl_dlopen=yes
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 ac_cv_lib_dl_dlopen=no
13380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13381 conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13384 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13385 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13386 if test $ac_cv_lib_dl_dlopen = yes; then
13387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13390 lt_cv_dlopen="dyld"
13392 lt_cv_dlopen_self=yes
13399 { echo "$as_me:$LINENO: checking for shl_load" >&5
13400 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13401 if test "${ac_cv_func_shl_load+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13412 #define shl_load innocuous_shl_load
13414 /* System header to define __stub macros and hopefully few prototypes,
13415 which can conflict with char shl_load (); below.
13416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13417 <limits.h> exists even on freestanding compilers. */
13420 # include <limits.h>
13422 # include <assert.h>
13427 /* Override any GCC internal prototype to avoid an error.
13428 Use char because int might match the return type of a GCC
13429 builtin and then its argument prototype would still apply. */
13434 /* The GNU C library defines this for functions which it implements
13435 to always fail with ENOSYS. Some functions are actually named
13436 something starting with __ and the normal name is an alias. */
13437 #if defined __stub_shl_load || defined __stub___shl_load
13444 return shl_load ();
13449 rm -f conftest.$ac_objext conftest$ac_exeext
13450 if { (ac_try="$ac_link"
13451 case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_link") 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && {
13463 test -z "$ac_cxx_werror_flag" ||
13464 test ! -s conftest.err
13465 } && test -s conftest$ac_exeext &&
13466 $as_test_x conftest$ac_exeext; then
13467 ac_cv_func_shl_load=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_cv_func_shl_load=no
13475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13476 conftest$ac_exeext conftest.$ac_ext
13478 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13479 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13480 if test $ac_cv_func_shl_load = yes; then
13481 lt_cv_dlopen="shl_load"
13483 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13484 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 ac_check_lib_save_LIBS=$LIBS
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13507 return shl_load ();
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_link") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_cxx_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest$ac_exeext &&
13529 $as_test_x conftest$ac_exeext; then
13530 ac_cv_lib_dld_shl_load=yes
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 ac_cv_lib_dld_shl_load=no
13538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13539 conftest$ac_exeext conftest.$ac_ext
13540 LIBS=$ac_check_lib_save_LIBS
13542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13543 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13544 if test $ac_cv_lib_dld_shl_load = yes; then
13545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13547 { echo "$as_me:$LINENO: checking for dlopen" >&5
13548 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13549 if test "${ac_cv_func_dlopen+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13560 #define dlopen innocuous_dlopen
13562 /* System header to define __stub macros and hopefully few prototypes,
13563 which can conflict with char dlopen (); below.
13564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565 <limits.h> exists even on freestanding compilers. */
13568 # include <limits.h>
13570 # include <assert.h>
13575 /* Override any GCC internal prototype to avoid an error.
13576 Use char because int might match the return type of a GCC
13577 builtin and then its argument prototype would still apply. */
13582 /* The GNU C library defines this for functions which it implements
13583 to always fail with ENOSYS. Some functions are actually named
13584 something starting with __ and the normal name is an alias. */
13585 #if defined __stub_dlopen || defined __stub___dlopen
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (ac_try="$ac_link"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_link") 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } && {
13611 test -z "$ac_cxx_werror_flag" ||
13612 test ! -s conftest.err
13613 } && test -s conftest$ac_exeext &&
13614 $as_test_x conftest$ac_exeext; then
13615 ac_cv_func_dlopen=yes
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_cv_func_dlopen=no
13623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13624 conftest$ac_exeext conftest.$ac_ext
13626 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13627 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13628 if test $ac_cv_func_dlopen = yes; then
13629 lt_cv_dlopen="dlopen"
13631 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13632 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13633 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 ac_check_lib_save_LIBS=$LIBS
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13645 /* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (ac_try="$ac_link"
13662 case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_link") 2>conftest.er1
13669 grep -v '^ *+' conftest.er1 >conftest.err
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } && {
13674 test -z "$ac_cxx_werror_flag" ||
13675 test ! -s conftest.err
13676 } && test -s conftest$ac_exeext &&
13677 $as_test_x conftest$ac_exeext; then
13678 ac_cv_lib_dl_dlopen=yes
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_cv_lib_dl_dlopen=no
13686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13687 conftest$ac_exeext conftest.$ac_ext
13688 LIBS=$ac_check_lib_save_LIBS
13690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13691 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13692 if test $ac_cv_lib_dl_dlopen = yes; then
13693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13695 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13696 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13697 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 ac_check_lib_save_LIBS=$LIBS
13701 LIBS="-lsvld $LIBS"
13702 cat >conftest.$ac_ext <<_ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13709 /* Override any GCC internal prototype to avoid an error.
13710 Use char because int might match the return type of a GCC
13711 builtin and then its argument prototype would still apply. */
13724 rm -f conftest.$ac_objext conftest$ac_exeext
13725 if { (ac_try="$ac_link"
13726 case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_link") 2>conftest.er1
13733 grep -v '^ *+' conftest.er1 >conftest.err
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } && {
13738 test -z "$ac_cxx_werror_flag" ||
13739 test ! -s conftest.err
13740 } && test -s conftest$ac_exeext &&
13741 $as_test_x conftest$ac_exeext; then
13742 ac_cv_lib_svld_dlopen=yes
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ac_cv_lib_svld_dlopen=no
13750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13751 conftest$ac_exeext conftest.$ac_ext
13752 LIBS=$ac_check_lib_save_LIBS
13754 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13755 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13756 if test $ac_cv_lib_svld_dlopen = yes; then
13757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13759 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13760 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13761 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 ac_check_lib_save_LIBS=$LIBS
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13773 /* Override any GCC internal prototype to avoid an error.
13774 Use char because int might match the return type of a GCC
13775 builtin and then its argument prototype would still apply. */
13783 return dld_link ();
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (ac_try="$ac_link"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_link") 2>conftest.er1
13797 grep -v '^ *+' conftest.er1 >conftest.err
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } && {
13802 test -z "$ac_cxx_werror_flag" ||
13803 test ! -s conftest.err
13804 } && test -s conftest$ac_exeext &&
13805 $as_test_x conftest$ac_exeext; then
13806 ac_cv_lib_dld_dld_link=yes
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ac_cv_lib_dld_dld_link=no
13814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13815 conftest$ac_exeext conftest.$ac_ext
13816 LIBS=$ac_check_lib_save_LIBS
13818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13819 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13820 if test $ac_cv_lib_dld_dld_link = yes; then
13821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13842 if test "x$lt_cv_dlopen" != xno; then
13848 case $lt_cv_dlopen in
13850 save_CPPFLAGS="$CPPFLAGS"
13851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13853 save_LDFLAGS="$LDFLAGS"
13854 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13857 LIBS="$lt_cv_dlopen_libs $LIBS"
13859 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13860 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13861 if test "${lt_cv_dlopen_self+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 if test "$cross_compiling" = yes; then :
13865 lt_cv_dlopen_self=cross
13867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13868 lt_status=$lt_dlunknown
13869 cat > conftest.$ac_ext <<EOF
13870 #line 13870 "configure"
13871 #include "confdefs.h"
13880 # define LT_DLGLOBAL RTLD_GLOBAL
13883 # define LT_DLGLOBAL DL_GLOBAL
13885 # define LT_DLGLOBAL 0
13889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13890 find out it does not work in some platform. */
13891 #ifndef LT_DLLAZY_OR_NOW
13893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13896 # define LT_DLLAZY_OR_NOW DL_LAZY
13899 # define LT_DLLAZY_OR_NOW RTLD_NOW
13902 # define LT_DLLAZY_OR_NOW DL_NOW
13904 # define LT_DLLAZY_OR_NOW 0
13912 extern "C" void exit (int);
13915 void fnord() { int i=42;}
13918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13919 int status = $lt_dlunknown;
13923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13924 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13925 /* dlclose (self); */
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13936 (./conftest; exit; ) 2>/dev/null
13938 case x$lt_status in
13939 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13940 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13941 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13944 # compilation failed
13945 lt_cv_dlopen_self=no
13952 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13953 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13955 if test "x$lt_cv_dlopen_self" = xyes; then
13956 LDFLAGS="$LDFLAGS $link_static_flag"
13957 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13958 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13959 if test "${lt_cv_dlopen_self_static+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 if test "$cross_compiling" = yes; then :
13963 lt_cv_dlopen_self_static=cross
13965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13966 lt_status=$lt_dlunknown
13967 cat > conftest.$ac_ext <<EOF
13968 #line 13968 "configure"
13969 #include "confdefs.h"
13978 # define LT_DLGLOBAL RTLD_GLOBAL
13981 # define LT_DLGLOBAL DL_GLOBAL
13983 # define LT_DLGLOBAL 0
13987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13988 find out it does not work in some platform. */
13989 #ifndef LT_DLLAZY_OR_NOW
13991 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13994 # define LT_DLLAZY_OR_NOW DL_LAZY
13997 # define LT_DLLAZY_OR_NOW RTLD_NOW
14000 # define LT_DLLAZY_OR_NOW DL_NOW
14002 # define LT_DLLAZY_OR_NOW 0
14010 extern "C" void exit (int);
14013 void fnord() { int i=42;}
14016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14017 int status = $lt_dlunknown;
14021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14023 /* dlclose (self); */
14029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030 (eval $ac_link) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14034 (./conftest; exit; ) 2>/dev/null
14036 case x$lt_status in
14037 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14038 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14039 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14042 # compilation failed
14043 lt_cv_dlopen_self_static=no
14050 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14051 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
14054 CPPFLAGS="$save_CPPFLAGS"
14055 LDFLAGS="$save_LDFLAGS"
14060 case $lt_cv_dlopen_self in
14061 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14062 *) enable_dlopen_self=unknown ;;
14065 case $lt_cv_dlopen_self_static in
14066 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14067 *) enable_dlopen_self_static=unknown ;;
14072 # The else clause should only fire when bootstrapping the
14073 # libtool distribution, otherwise you forgot to ship ltmain.sh
14074 # with your package, and you will get complaints that there are
14075 # no rules to generate ltmain.sh.
14076 if test -f "$ltmain"; then
14077 # See if we are running on zsh, and set the options which allow our commands through
14078 # without removal of \ escapes.
14079 if test -n "${ZSH_VERSION+set}" ; then
14080 setopt NO_GLOB_SUBST
14082 # Now quote all the things that may contain metacharacters while being
14083 # careful not to overquote the AC_SUBSTed values. We take copies of the
14084 # variables and quote the copies for generation of the libtool script.
14085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14089 deplibs_check_method reload_flag reload_cmds need_locks \
14090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14091 lt_cv_sys_global_symbol_to_c_name_address \
14092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14093 old_postinstall_cmds old_postuninstall_cmds \
14097 lt_prog_compiler_wl_CXX \
14098 lt_prog_compiler_pic_CXX \
14099 lt_prog_compiler_static_CXX \
14100 lt_prog_compiler_no_builtin_flag_CXX \
14101 export_dynamic_flag_spec_CXX \
14102 thread_safe_flag_spec_CXX \
14103 whole_archive_flag_spec_CXX \
14104 enable_shared_with_static_runtimes_CXX \
14105 old_archive_cmds_CXX \
14106 old_archive_from_new_cmds_CXX \
14107 predep_objects_CXX \
14108 postdep_objects_CXX \
14111 compiler_lib_search_path_CXX \
14113 archive_expsym_cmds_CXX \
14114 postinstall_cmds_CXX \
14115 postuninstall_cmds_CXX \
14116 old_archive_from_expsyms_cmds_CXX \
14117 allow_undefined_flag_CXX \
14118 no_undefined_flag_CXX \
14119 export_symbols_cmds_CXX \
14120 hardcode_libdir_flag_spec_CXX \
14121 hardcode_libdir_flag_spec_ld_CXX \
14122 hardcode_libdir_separator_CXX \
14123 hardcode_automatic_CXX \
14125 module_expsym_cmds_CXX \
14126 lt_cv_prog_compiler_c_o_CXX \
14127 exclude_expsyms_CXX \
14128 include_expsyms_CXX; do
14131 old_archive_cmds_CXX | \
14132 old_archive_from_new_cmds_CXX | \
14133 archive_cmds_CXX | \
14134 archive_expsym_cmds_CXX | \
14135 module_cmds_CXX | \
14136 module_expsym_cmds_CXX | \
14137 old_archive_from_expsyms_cmds_CXX | \
14138 export_symbols_cmds_CXX | \
14139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14140 postinstall_cmds | postuninstall_cmds | \
14141 old_postinstall_cmds | old_postuninstall_cmds | \
14142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14143 # Double-quote double-evaled strings.
14144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14153 *'\$0 --fallback-echo"')
14154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14160 cat <<__EOF__ >> "$cfgfile"
14161 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14165 # Shell to use when invoking shell scripts.
14168 # Whether or not to build shared libraries.
14169 build_libtool_libs=$enable_shared
14171 # Whether or not to build static libraries.
14172 build_old_libs=$enable_static
14174 # Whether or not to add -lc for building shared libraries.
14175 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14177 # Whether or not to disallow shared libs when runtime libs are static
14178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14180 # Whether or not to optimize for fast installation.
14181 fast_install=$enable_fast_install
14184 host_alias=$host_alias
14187 # An echo program that does not interpret backslashes.
14192 AR_FLAGS=$lt_AR_FLAGS
14197 # A language-specific compiler.
14198 CC=$lt_compiler_CXX
14200 # Is the compiler the GNU C compiler?
14206 # The linker used to build libraries.
14209 # Whether we need hard or soft links.
14212 # A BSD-compatible nm program.
14215 # A symbol stripping program
14218 # Used to examine libraries when file_magic_cmd begins "file"
14219 MAGIC_CMD=$MAGIC_CMD
14221 # Used on cygwin: DLL creation program.
14224 # Used on cygwin: object dumper.
14227 # Used on cygwin: assembler.
14230 # The name of the directory that contains temporary libtool files.
14233 # How to create reloadable object files.
14234 reload_flag=$lt_reload_flag
14235 reload_cmds=$lt_reload_cmds
14237 # How to pass a linker flag through the compiler.
14238 wl=$lt_lt_prog_compiler_wl_CXX
14240 # Object file suffix (normally "o").
14241 objext="$ac_objext"
14243 # Old archive suffix (normally "a").
14246 # Shared library suffix (normally ".so").
14247 shrext_cmds='$shrext_cmds'
14249 # Executable file suffix (normally "").
14252 # Additional compiler flags for building library objects.
14253 pic_flag=$lt_lt_prog_compiler_pic_CXX
14256 # What is the maximum length of a command?
14257 max_cmd_len=$lt_cv_sys_max_cmd_len
14259 # Does compiler simultaneously support -c and -o options?
14260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14262 # Must we lock files when doing compilation ?
14263 need_locks=$lt_need_locks
14265 # Do we need the lib prefix for modules?
14266 need_lib_prefix=$need_lib_prefix
14268 # Do we need a version for libraries?
14269 need_version=$need_version
14271 # Whether dlopen is supported.
14272 dlopen_support=$enable_dlopen
14274 # Whether dlopen of programs is supported.
14275 dlopen_self=$enable_dlopen_self
14277 # Whether dlopen of statically linked programs is supported.
14278 dlopen_self_static=$enable_dlopen_self_static
14280 # Compiler flag to prevent dynamic linking.
14281 link_static_flag=$lt_lt_prog_compiler_static_CXX
14283 # Compiler flag to turn off builtin functions.
14284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14286 # Compiler flag to allow reflexive dlopens.
14287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14289 # Compiler flag to generate shared objects directly from archives.
14290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14292 # Compiler flag to generate thread-safe objects.
14293 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14295 # Library versioning type.
14296 version_type=$version_type
14298 # Format of library name prefix.
14299 libname_spec=$lt_libname_spec
14301 # List of archive names. First name is the real one, the rest are links.
14302 # The last name is the one that the linker finds with -lNAME.
14303 library_names_spec=$lt_library_names_spec
14305 # The coded name of the library, if different from the real name.
14306 soname_spec=$lt_soname_spec
14308 # Commands used to build and install an old-style archive.
14310 old_archive_cmds=$lt_old_archive_cmds_CXX
14311 old_postinstall_cmds=$lt_old_postinstall_cmds
14312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14314 # Create an old-style archive from a shared archive.
14315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14317 # Create a temporary old-style archive to link instead of a shared archive.
14318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14320 # Commands used to build and install a shared archive.
14321 archive_cmds=$lt_archive_cmds_CXX
14322 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14323 postinstall_cmds=$lt_postinstall_cmds
14324 postuninstall_cmds=$lt_postuninstall_cmds
14326 # Commands used to build a loadable module (assumed same as above if empty)
14327 module_cmds=$lt_module_cmds_CXX
14328 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14330 # Commands to strip libraries.
14331 old_striplib=$lt_old_striplib
14332 striplib=$lt_striplib
14334 # Dependencies to place before the objects being linked to create a
14336 predep_objects=$lt_predep_objects_CXX
14338 # Dependencies to place after the objects being linked to create a
14340 postdep_objects=$lt_postdep_objects_CXX
14342 # Dependencies to place before the objects being linked to create a
14344 predeps=$lt_predeps_CXX
14346 # Dependencies to place after the objects being linked to create a
14348 postdeps=$lt_postdeps_CXX
14350 # The library search path used internally by the compiler when linking
14351 # a shared library.
14352 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14354 # Method to check whether dependent libraries are shared objects.
14355 deplibs_check_method=$lt_deplibs_check_method
14357 # Command to use when deplibs_check_method == file_magic.
14358 file_magic_cmd=$lt_file_magic_cmd
14360 # Flag that allows shared libraries with undefined symbols to be built.
14361 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14363 # Flag that forces no undefined symbols.
14364 no_undefined_flag=$lt_no_undefined_flag_CXX
14366 # Commands used to finish a libtool library installation in a directory.
14367 finish_cmds=$lt_finish_cmds
14369 # Same as above, but a single script fragment to be evaled but not shown.
14370 finish_eval=$lt_finish_eval
14372 # Take the output of nm and produce a listing of raw symbols and C names.
14373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14375 # Transform the output of nm in a proper C declaration
14376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14378 # Transform the output of nm in a C name address pair
14379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14381 # This is the shared library runtime path variable.
14382 runpath_var=$runpath_var
14384 # This is the shared library path variable.
14385 shlibpath_var=$shlibpath_var
14387 # Is shlibpath searched before the hard-coded library search path?
14388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14390 # How to hardcode a shared library path into an executable.
14391 hardcode_action=$hardcode_action_CXX
14393 # Whether we should hardcode library paths into libraries.
14394 hardcode_into_libs=$hardcode_into_libs
14396 # Flag to hardcode \$libdir into a binary during linking.
14397 # This must work even if \$libdir does not exist.
14398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14400 # If ld is used when linking, flag to hardcode \$libdir into
14401 # a binary during linking. This must work even if \$libdir does
14403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14405 # Whether we need a single -rpath flag with a separated argument.
14406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14409 # resulting binary.
14410 hardcode_direct=$hardcode_direct_CXX
14412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14413 # resulting binary.
14414 hardcode_minus_L=$hardcode_minus_L_CXX
14416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14417 # the resulting binary.
14418 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14420 # Set to yes if building a shared library automatically hardcodes DIR into the library
14421 # and all subsequent libraries and executables linked against it.
14422 hardcode_automatic=$hardcode_automatic_CXX
14424 # Variables whose values should be saved in libtool wrapper scripts and
14425 # restored at relink time.
14426 variables_saved_for_relink="$variables_saved_for_relink"
14428 # Whether libtool must link a program against all its dependency libraries.
14429 link_all_deplibs=$link_all_deplibs_CXX
14431 # Compile-time system search path for libraries
14432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14434 # Run-time system search path for libraries
14435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14437 # Fix the shell variable \$srcfile for the compiler.
14438 fix_srcfile_path="$fix_srcfile_path_CXX"
14440 # Set to yes if exported symbols are required.
14441 always_export_symbols=$always_export_symbols_CXX
14443 # The commands to list exported symbols.
14444 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14446 # The commands to extract the exported symbol list from a shared archive.
14447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14449 # Symbols that should not be listed in the preloaded symbols.
14450 exclude_expsyms=$lt_exclude_expsyms_CXX
14452 # Symbols that must always be exported.
14453 include_expsyms=$lt_include_expsyms_CXX
14455 # ### END LIBTOOL TAG CONFIG: $tagname
14461 # If there is no Makefile yet, we rely on a make rule to execute
14462 # `config.status --recheck' to rerun these tests and create the
14463 # libtool script then.
14464 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14465 if test -f "$ltmain_in"; then
14466 test -f Makefile && make "$ltmain"
14472 ac_cpp='$CPP $CPPFLAGS'
14473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14481 with_gnu_ldcxx=$with_gnu_ld
14482 with_gnu_ld=$lt_save_with_gnu_ld
14483 lt_cv_path_LDCXX=$lt_cv_path_LD
14484 lt_cv_path_LD=$lt_save_path_LD
14485 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14486 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14494 if test -n "$F77" && test "X$F77" != "Xno"; then
14497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14502 archive_cmds_need_lc_F77=no
14503 allow_undefined_flag_F77=
14504 always_export_symbols_F77=no
14505 archive_expsym_cmds_F77=
14506 export_dynamic_flag_spec_F77=
14507 hardcode_direct_F77=no
14508 hardcode_libdir_flag_spec_F77=
14509 hardcode_libdir_flag_spec_ld_F77=
14510 hardcode_libdir_separator_F77=
14511 hardcode_minus_L_F77=no
14512 hardcode_automatic_F77=no
14514 module_expsym_cmds_F77=
14515 link_all_deplibs_F77=unknown
14516 old_archive_cmds_F77=$old_archive_cmds
14517 no_undefined_flag_F77=
14518 whole_archive_flag_spec_F77=
14519 enable_shared_with_static_runtimes_F77=no
14521 # Source file extension for f77 test sources.
14524 # Object file extension for compiled f77 test sources.
14528 # Code to be used in simple compile tests
14529 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14531 # Code to be used in simple link tests
14532 lt_simple_link_test_code=" program t\n end\n"
14534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14536 # If no C compiler was specified, use CC.
14539 # Allow CC to be a program name with arguments.
14543 # Allow CC to be a program name with arguments.
14548 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14550 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14551 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14552 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14553 echo "${ECHO_T}$can_build_shared" >&6; }
14555 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14556 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14557 test "$can_build_shared" = "no" && enable_shared=no
14559 # On AIX, shared libraries and static libraries use the same namespace, and
14560 # are all built from PIC.
14563 test "$enable_shared" = yes && enable_static=no
14564 if test -n "$RANLIB"; then
14565 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14566 postinstall_cmds='$RANLIB $lib'
14570 test "$enable_shared" = yes && enable_static=no
14573 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14574 echo "${ECHO_T}$enable_shared" >&6; }
14576 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14577 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14578 # Make sure either enable_shared or enable_static is yes.
14579 test "$enable_shared" = yes || enable_static=yes
14580 { echo "$as_me:$LINENO: result: $enable_static" >&5
14581 echo "${ECHO_T}$enable_static" >&6; }
14583 test "$ld_shlibs_F77" = no && can_build_shared=no
14588 lt_prog_compiler_wl_F77=
14589 lt_prog_compiler_pic_F77=
14590 lt_prog_compiler_static_F77=
14592 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14593 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14595 if test "$GCC" = yes; then
14596 lt_prog_compiler_wl_F77='-Wl,'
14597 lt_prog_compiler_static_F77='-static'
14601 # All AIX code is PIC.
14602 if test "$host_cpu" = ia64; then
14603 # AIX 5 now supports IA64 processor
14604 lt_prog_compiler_static_F77='-Bstatic'
14609 # FIXME: we need at least 68020 code to build shared libraries, but
14610 # adding the `-m68020' flag to GCC prevents building anything better,
14612 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14615 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14616 # PIC is the default for these OSes.
14619 mingw* | pw32* | os2*)
14620 # This hack is so that the source file can tell whether it is being
14621 # built for inclusion in a dll (and should export symbols for example).
14622 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14625 darwin* | rhapsody*)
14626 # PIC is the default on this platform
14627 # Common symbols not allowed in MH_DYLIB files
14628 lt_prog_compiler_pic_F77='-fno-common'
14632 # Just because we use GCC doesn't mean we suddenly get shared libraries
14633 # on systems that don't support them.
14634 lt_prog_compiler_can_build_shared_F77=no
14639 if test -d /usr/nec; then
14640 lt_prog_compiler_pic_F77=-Kconform_pic
14645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14646 # not for PA HP-UX.
14647 case "$host_cpu" in
14652 lt_prog_compiler_pic_F77='-fPIC'
14658 lt_prog_compiler_pic_F77='-fPIC'
14662 # PORTME Check for flag to pass linker flags through the system compiler.
14665 lt_prog_compiler_wl_F77='-Wl,'
14666 if test "$host_cpu" = ia64; then
14667 # AIX 5 now supports IA64 processor
14668 lt_prog_compiler_static_F77='-Bstatic'
14670 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14674 mingw* | pw32* | os2*)
14675 # This hack is so that the source file can tell whether it is being
14676 # built for inclusion in a dll (and should export symbols for example).
14677 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14680 hpux9* | hpux10* | hpux11*)
14681 lt_prog_compiler_wl_F77='-Wl,'
14682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683 # not for PA HP-UX.
14684 case "$host_cpu" in
14689 lt_prog_compiler_pic_F77='+Z'
14692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14693 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14696 irix5* | irix6* | nonstopux*)
14697 lt_prog_compiler_wl_F77='-Wl,'
14698 # PIC (with -KPIC) is the default.
14699 lt_prog_compiler_static_F77='-non_shared'
14703 lt_prog_compiler_pic_F77='-KPIC'
14704 lt_prog_compiler_static_F77='-Bstatic'
14710 lt_prog_compiler_wl_F77='-Wl,'
14711 lt_prog_compiler_pic_F77='-KPIC'
14712 lt_prog_compiler_static_F77='-static'
14715 lt_prog_compiler_wl_F77='-Wl,'
14716 # All Alpha code is PIC.
14717 lt_prog_compiler_static_F77='-non_shared'
14722 osf3* | osf4* | osf5*)
14723 lt_prog_compiler_wl_F77='-Wl,'
14724 # All OSF/1 code is PIC.
14725 lt_prog_compiler_static_F77='-non_shared'
14729 lt_prog_compiler_pic_F77='-Kpic'
14730 lt_prog_compiler_static_F77='-dn'
14734 lt_prog_compiler_wl_F77='-Wl,'
14735 lt_prog_compiler_pic_F77='-KPIC'
14736 lt_prog_compiler_static_F77='-Bstatic'
14740 lt_prog_compiler_wl_F77='-Qoption ld '
14741 lt_prog_compiler_pic_F77='-PIC'
14742 lt_prog_compiler_static_F77='-Bstatic'
14745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14746 lt_prog_compiler_wl_F77='-Wl,'
14747 lt_prog_compiler_pic_F77='-KPIC'
14748 lt_prog_compiler_static_F77='-Bstatic'
14752 if test -d /usr/nec ;then
14753 lt_prog_compiler_pic_F77='-Kconform_pic'
14754 lt_prog_compiler_static_F77='-Bstatic'
14759 lt_prog_compiler_pic_F77='-pic'
14760 lt_prog_compiler_static_F77='-Bstatic'
14764 lt_prog_compiler_can_build_shared_F77=no
14769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14770 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14773 # Check to make sure the PIC flag actually works.
14775 if test -n "$lt_prog_compiler_pic_F77"; then
14777 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14778 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14779 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 lt_prog_compiler_pic_works_F77=no
14783 ac_outfile=conftest.$ac_objext
14784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14785 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14786 # Insert the option either (1) after the last *FLAGS variable, or
14787 # (2) before a word containing "conftest.", or (3) at the end.
14788 # Note that $ac_compile itself does not contain backslashes and begins
14789 # with a dollar sign (not a hyphen), so the echo should work correctly.
14790 # The option is referenced via a variable to avoid confusing sed.
14791 lt_compile=`echo "$ac_compile" | $SED \
14792 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14794 -e 's:$: $lt_compiler_flag:'`
14795 (eval echo "\"\$as_me:14795: $lt_compile\"" >&5)
14796 (eval "$lt_compile" 2>conftest.err)
14798 cat conftest.err >&5
14799 echo "$as_me:14799: \$? = $ac_status" >&5
14800 if (exit $ac_status) && test -s "$ac_outfile"; then
14801 # The compiler can only warn and ignore the option if not recognized
14802 # So say no if there are warnings
14803 if test ! -s conftest.err; then
14804 lt_prog_compiler_pic_works_F77=yes
14810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14811 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14813 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14814 case $lt_prog_compiler_pic_F77 in
14816 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14819 lt_prog_compiler_pic_F77=
14820 lt_prog_compiler_can_build_shared_F77=no
14825 # For platforms which do not support PIC, -DPIC is meaningless:
14827 lt_prog_compiler_pic_F77=
14830 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14834 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14835 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14836 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 lt_cv_prog_compiler_c_o_F77=no
14840 $rm -r conftest 2>/dev/null
14844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14846 lt_compiler_flag="-o out/conftest2.$ac_objext"
14847 # Insert the option either (1) after the last *FLAGS variable, or
14848 # (2) before a word containing "conftest.", or (3) at the end.
14849 # Note that $ac_compile itself does not contain backslashes and begins
14850 # with a dollar sign (not a hyphen), so the echo should work correctly.
14851 lt_compile=`echo "$ac_compile" | $SED \
14852 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14854 -e 's:$: $lt_compiler_flag:'`
14855 (eval echo "\"\$as_me:14855: $lt_compile\"" >&5)
14856 (eval "$lt_compile" 2>out/conftest.err)
14858 cat out/conftest.err >&5
14859 echo "$as_me:14859: \$? = $ac_status" >&5
14860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14862 # The compiler can only warn and ignore the option if not recognized
14863 # So say no if there are warnings
14864 if test ! -s out/conftest.err; then
14865 lt_cv_prog_compiler_c_o_F77=yes
14870 # SGI C++ compiler will create directory out/ii_files/ for
14871 # template instantiation
14872 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14873 $rm out/* && rmdir out
14879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14883 hard_links="nottested"
14884 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14885 # do not overwrite the value of need_locks provided by the user
14886 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14887 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14892 ln conftest.a conftest.b 2>&5 || hard_links=no
14893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894 { echo "$as_me:$LINENO: result: $hard_links" >&5
14895 echo "${ECHO_T}$hard_links" >&6; }
14896 if test "$hard_links" = no; then
14897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14905 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14909 allow_undefined_flag_F77=
14910 enable_shared_with_static_runtimes_F77=no
14912 archive_expsym_cmds_F77=
14913 old_archive_From_new_cmds_F77=
14914 old_archive_from_expsyms_cmds_F77=
14915 export_dynamic_flag_spec_F77=
14916 whole_archive_flag_spec_F77=
14917 thread_safe_flag_spec_F77=
14918 hardcode_libdir_flag_spec_F77=
14919 hardcode_libdir_flag_spec_ld_F77=
14920 hardcode_libdir_separator_F77=
14921 hardcode_direct_F77=no
14922 hardcode_minus_L_F77=no
14923 hardcode_shlibpath_var_F77=unsupported
14924 link_all_deplibs_F77=unknown
14925 hardcode_automatic_F77=no
14927 module_expsym_cmds_F77=
14928 always_export_symbols_F77=no
14929 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14930 # include_expsyms should be a list of space-separated symbols to be *always*
14931 # included in the symbol list
14932 include_expsyms_F77=
14933 # exclude_expsyms can be an extended regexp of symbols to exclude
14934 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14935 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14936 # as well as any symbol that contains `d'.
14937 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14939 # platforms (ab)use it in PIC code, but their linkers get confused if
14940 # the symbol is explicitly referenced. Since portable code cannot
14941 # rely on this symbol name, it's probably fine to never include it in
14942 # preloaded symbol tables.
14943 extract_expsyms_cmds=
14946 cygwin* | mingw* | pw32*)
14947 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14948 # When not using gcc, we currently assume that we are using
14949 # Microsoft Visual C++.
14950 if test "$GCC" != yes; then
14960 if test "$with_gnu_ld" = yes; then
14961 # If archive_cmds runs LD, not CC, wlarc should be empty
14964 # See if GNU ld supports shared libraries.
14966 aix3* | aix4* | aix5*)
14967 # On AIX/PPC, the GNU linker is very broken
14968 if test "$host_cpu" != ia64; then
14972 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14973 *** to be unable to reliably create shared libraries on AIX.
14974 *** Therefore, libtool is disabling shared libraries support. If you
14975 *** really care for shared libraries, you may want to modify your PATH
14976 *** so that a non-GNU linker is found, and then restart.
14983 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)'
14984 hardcode_libdir_flag_spec_F77='-L$libdir'
14985 hardcode_minus_L_F77=yes
14987 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14988 # that the semantics of dynamic libraries on AmigaOS, at least up
14989 # to version 4, is to share data among multiple programs linked
14990 # with the same dynamic library. Since this doesn't match the
14991 # behavior of shared libraries on other platforms, we can't use
14997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14998 allow_undefined_flag_F77=unsupported
14999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15000 # support --undefined. This deserves some investigation. FIXME
15001 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15007 cygwin* | mingw* | pw32*)
15008 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15009 # as there is no search path for DLLs.
15010 hardcode_libdir_flag_spec_F77='-L$libdir'
15011 allow_undefined_flag_F77=unsupported
15012 always_export_symbols_F77=no
15013 enable_shared_with_static_runtimes_F77=yes
15014 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15016 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15017 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15018 # If the export-symbols file already is a .def file (1st line
15019 # is EXPORTS), use it as is; otherwise, prepend...
15020 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15021 cp $export_symbols $output_objdir/$soname.def;
15023 echo EXPORTS > $output_objdir/$soname.def;
15024 cat $export_symbols >> $output_objdir/$soname.def;
15026 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15032 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15037 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15047 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15048 *** create shared libraries on Solaris systems. Therefore, libtool
15049 *** is disabling shared libraries support. We urge you to upgrade GNU
15050 *** binutils to release 2.9.1 or newer. Another option is to modify
15051 *** your PATH or compiler configuration so that the native linker is
15052 *** used, and then restart.
15055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15064 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_direct_F77=yes
15067 hardcode_shlibpath_var_F77=no
15071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15072 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073 archive_cmds_F77="$tmp_archive_cmds"
15074 supports_anon_versioning=no
15075 case `$LD -v 2>/dev/null` in
15076 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15079 *\ 2.11.*) ;; # other 2.11 versions
15080 *) supports_anon_versioning=yes ;;
15082 if test $supports_anon_versioning = yes; then
15083 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15085 $echo "local: *; };" >> $output_objdir/$libname.ver~
15086 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15088 archive_expsym_cmds_F77="$tmp_archive_cmds"
15090 link_all_deplibs_F77=no
15097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15106 if test "$ld_shlibs_F77" = yes; then
15107 runpath_var=LD_RUN_PATH
15108 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15109 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15110 # ancient GNU ld didn't support --whole-archive et. al.
15111 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15112 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15114 whole_archive_flag_spec_F77=
15118 # PORTME fill in a description of your system's linker (not GNU ld)
15121 allow_undefined_flag_F77=unsupported
15122 always_export_symbols_F77=yes
15123 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'
15124 # Note: this linker hardcodes the directories in LIBPATH if there
15125 # are no directories specified by -L.
15126 hardcode_minus_L_F77=yes
15127 if test "$GCC" = yes && test -z "$link_static_flag"; then
15128 # Neither direct hardcoding nor static linking is supported with a
15130 hardcode_direct_F77=unsupported
15135 if test "$host_cpu" = ia64; then
15136 # On IA64, the linker does run time linking by default, so we don't
15137 # have to do anything special.
15138 aix_use_runtimelinking=no
15139 exp_sym_flag='-Bexport'
15142 # If we're using GNU nm, then we don't want the "-C" option.
15143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15144 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15145 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'
15147 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'
15149 aix_use_runtimelinking=no
15151 # Test if we are trying to use run time linking or normal
15152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15153 # need to do runtime linking.
15154 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15155 for ld_flag in $LDFLAGS; do
15156 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15157 aix_use_runtimelinking=yes
15163 exp_sym_flag='-bexport'
15164 no_entry_flag='-bnoentry'
15167 # When large executables or shared objects are built, AIX ld can
15168 # have problems creating the table of contents. If linking a library
15169 # or program results in "error TOC overflow" add -mminimal-toc to
15170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15173 archive_cmds_F77=''
15174 hardcode_direct_F77=yes
15175 hardcode_libdir_separator_F77=':'
15176 link_all_deplibs_F77=yes
15178 if test "$GCC" = yes; then
15179 case $host_os in aix4.012|aix4.012.*)
15180 # We only want to do this on AIX 4.2 and lower, the check
15181 # below for broken collect2 doesn't work under 4.3+
15182 collect2name=`${CC} -print-prog-name=collect2`
15183 if test -f "$collect2name" && \
15184 strings "$collect2name" | grep resolve_lib_name >/dev/null
15186 # We have reworked collect2
15187 hardcode_direct_F77=yes
15189 # We have old collect2
15190 hardcode_direct_F77=unsupported
15191 # It fails to find uninstalled libraries when the uninstalled
15192 # path is not listed in the libpath. Setting hardcode_minus_L
15193 # to unsupported forces relinking
15194 hardcode_minus_L_F77=yes
15195 hardcode_libdir_flag_spec_F77='-L$libdir'
15196 hardcode_libdir_separator_F77=
15199 shared_flag='-shared'
15202 if test "$host_cpu" = ia64; then
15203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15204 # chokes on -Wl,-G. The following line is correct:
15207 if test "$aix_use_runtimelinking" = yes; then
15208 shared_flag='${wl}-G'
15210 shared_flag='${wl}-bM:SRE'
15215 # It seems that -bexpall does not export symbols beginning with
15216 # underscore (_), so it is better to generate a list of symbols to export.
15217 always_export_symbols_F77=yes
15218 if test "$aix_use_runtimelinking" = yes; then
15219 # Warning - without using the other runtime loading flags (-brtl),
15220 # -berok will link without error, but may produce a broken library.
15221 allow_undefined_flag_F77='-berok'
15222 # Determine the default libpath from the value encoded in an empty executable.
15223 cat >conftest.$ac_ext <<_ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_f77_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext &&
15245 $as_test_x conftest$ac_exeext; then
15247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15249 # Check for a 64-bit object if we didn't find anything.
15250 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; }
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15260 conftest$ac_exeext conftest.$ac_ext
15261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15263 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15264 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15266 if test "$host_cpu" = ia64; then
15267 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15268 allow_undefined_flag_F77="-z nodefs"
15269 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15271 # Determine the default libpath from the value encoded in an empty executable.
15272 cat >conftest.$ac_ext <<_ACEOF
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (ac_try="$ac_link"
15279 case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_link") 2>conftest.er1
15286 grep -v '^ *+' conftest.er1 >conftest.err
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } && {
15291 test -z "$ac_f77_werror_flag" ||
15292 test ! -s conftest.err
15293 } && test -s conftest$ac_exeext &&
15294 $as_test_x conftest$ac_exeext; then
15296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15298 # Check for a 64-bit object if we didn't find anything.
15299 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; }
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309 conftest$ac_exeext conftest.$ac_ext
15310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15312 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15313 # Warning - without using the other run time loading flags,
15314 # -berok will link without error, but may produce a broken library.
15315 no_undefined_flag_F77=' ${wl}-bernotok'
15316 allow_undefined_flag_F77=' ${wl}-berok'
15317 # -bexpall does not export symbols beginning with underscore (_)
15318 always_export_symbols_F77=yes
15319 # Exported symbols can be pulled into shared objects from archives
15320 whole_archive_flag_spec_F77=' '
15321 archive_cmds_need_lc_F77=yes
15322 # This is similar to how AIX traditionally builds it's shared libraries.
15323 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15329 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)'
15330 hardcode_libdir_flag_spec_F77='-L$libdir'
15331 hardcode_minus_L_F77=yes
15332 # see comment about different semantics on the GNU ld section
15337 export_dynamic_flag_spec_F77=-rdynamic
15340 cygwin* | mingw* | pw32*)
15341 # When not using gcc, we currently assume that we are using
15342 # Microsoft Visual C++.
15343 # hardcode_libdir_flag_spec is actually meaningless, as there is
15344 # no search path for DLLs.
15345 hardcode_libdir_flag_spec_F77=' '
15346 allow_undefined_flag_F77=unsupported
15347 # Tell ltmain to make .lib files, not .a files.
15349 # Tell ltmain to make .dll files, not .so files.
15351 # FIXME: Setting linknames here is a bad hack.
15352 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15353 # The linker will automatically build a .lib file if we build a DLL.
15354 old_archive_From_new_cmds_F77='true'
15355 # FIXME: Should let the user specify the lib program.
15356 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15357 fix_srcfile_path='`cygpath -w "$srcfile"`'
15358 enable_shared_with_static_runtimes_F77=yes
15361 darwin* | rhapsody*)
15362 if test "$GXX" = yes ; then
15363 archive_cmds_need_lc_F77=no
15365 rhapsody* | darwin1.[012])
15366 allow_undefined_flag_F77='-undefined suppress'
15369 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15370 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15372 case ${MACOSX_DEPLOYMENT_TARGET} in
15374 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15377 allow_undefined_flag_F77='-undefined dynamic_lookup'
15383 lt_int_apple_cc_single_mod=no
15384 output_verbose_link_cmd='echo'
15385 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15386 lt_int_apple_cc_single_mod=yes
15388 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15389 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15391 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15393 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15395 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15396 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15398 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15400 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}'
15401 hardcode_direct_F77=no
15402 hardcode_automatic_F77=yes
15403 hardcode_shlibpath_var_F77=unsupported
15404 whole_archive_flag_spec_F77='-all_load $convenience'
15405 link_all_deplibs_F77=yes
15412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413 hardcode_libdir_flag_spec_F77='-L$libdir'
15414 hardcode_shlibpath_var_F77=no
15421 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15422 # support. Future versions do this automatically, but an explicit c++rt0.o
15423 # does not break anything, and helps significantly (at the cost of a little
15426 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15427 hardcode_libdir_flag_spec_F77='-R$libdir'
15428 hardcode_direct_F77=yes
15429 hardcode_shlibpath_var_F77=no
15432 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15434 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15435 hardcode_direct_F77=yes
15436 hardcode_minus_L_F77=yes
15437 hardcode_shlibpath_var_F77=no
15440 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15441 freebsd* | kfreebsd*-gnu)
15442 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15443 hardcode_libdir_flag_spec_F77='-R$libdir'
15444 hardcode_direct_F77=yes
15445 hardcode_shlibpath_var_F77=no
15449 if test "$GCC" = yes; then
15450 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'
15452 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'
15454 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15455 hardcode_libdir_separator_F77=:
15456 hardcode_direct_F77=yes
15458 # hardcode_minus_L: Not really in the search PATH,
15459 # but as the default location of the library.
15460 hardcode_minus_L_F77=yes
15461 export_dynamic_flag_spec_F77='${wl}-E'
15465 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15466 case "$host_cpu" in
15468 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15475 case "$host_cpu" in
15477 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15480 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15484 if test "$with_gnu_ld" = no; then
15485 case "$host_cpu" in
15487 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15488 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15489 hardcode_libdir_separator_F77=:
15490 hardcode_direct_F77=no
15491 hardcode_shlibpath_var_F77=no
15494 hardcode_libdir_flag_spec_F77='-L$libdir'
15495 hardcode_direct_F77=no
15496 hardcode_shlibpath_var_F77=no
15498 # hardcode_minus_L: Not really in the search PATH,
15499 # but as the default location of the library.
15500 hardcode_minus_L_F77=yes
15503 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15504 hardcode_libdir_separator_F77=:
15505 hardcode_direct_F77=yes
15506 export_dynamic_flag_spec_F77='${wl}-E'
15508 # hardcode_minus_L: Not really in the search PATH,
15509 # but as the default location of the library.
15510 hardcode_minus_L_F77=yes
15516 irix5* | irix6* | nonstopux*)
15517 if test "$GCC" = yes; then
15518 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'
15520 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'
15521 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15523 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15524 hardcode_libdir_separator_F77=:
15525 link_all_deplibs_F77=yes
15528 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15529 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15532 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15534 hardcode_libdir_flag_spec_F77='-R$libdir'
15535 hardcode_direct_F77=yes
15536 hardcode_shlibpath_var_F77=no
15540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_direct_F77=yes
15542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15543 hardcode_libdir_separator_F77=:
15544 hardcode_shlibpath_var_F77=no
15548 hardcode_direct_F77=yes
15549 hardcode_shlibpath_var_F77=no
15550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15551 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15553 export_dynamic_flag_spec_F77='${wl}-E'
15556 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15557 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15558 hardcode_libdir_flag_spec_F77='-R$libdir'
15561 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15562 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15569 hardcode_libdir_flag_spec_F77='-L$libdir'
15570 hardcode_minus_L_F77=yes
15571 allow_undefined_flag_F77=unsupported
15572 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'
15573 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15577 if test "$GCC" = yes; then
15578 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15579 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'
15581 allow_undefined_flag_F77=' -expect_unresolved \*'
15582 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'
15584 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15585 hardcode_libdir_separator_F77=:
15588 osf4* | osf5*) # as osf3* with the addition of -msym flag
15589 if test "$GCC" = yes; then
15590 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15591 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'
15592 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15594 allow_undefined_flag_F77=' -expect_unresolved \*'
15595 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'
15596 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~
15597 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15599 # Both c and cxx compiler support -rpath directly
15600 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15602 hardcode_libdir_separator_F77=:
15606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607 hardcode_shlibpath_var_F77=no
15608 export_dynamic_flag_spec_F77='${wl}-Bexport'
15609 runpath_var=LD_RUN_PATH
15610 hardcode_runpath_var=yes
15614 no_undefined_flag_F77=' -z text'
15615 if test "$GCC" = yes; then
15616 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15618 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15620 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15624 hardcode_libdir_flag_spec_F77='-R$libdir'
15625 hardcode_shlibpath_var_F77=no
15627 solaris2.[0-5] | solaris2.[0-5].*) ;;
15628 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15629 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15631 link_all_deplibs_F77=yes
15635 if test "x$host_vendor" = xsequent; then
15636 # Use $CC to link under sequent, because it throws in some extra .o
15637 # files that make .init and .fini sections work.
15638 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15642 hardcode_libdir_flag_spec_F77='-L$libdir'
15643 hardcode_direct_F77=yes
15644 hardcode_minus_L_F77=yes
15645 hardcode_shlibpath_var_F77=no
15649 case $host_vendor in
15651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652 hardcode_direct_F77=yes # is this really true???
15655 ## LD is ld it makes a PLAMLIB
15656 ## CC just makes a GrossModule.
15657 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15658 reload_cmds_F77='$CC -r -o $output$reload_objs'
15659 hardcode_direct_F77=no
15662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15666 runpath_var='LD_RUN_PATH'
15667 hardcode_shlibpath_var_F77=no
15671 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672 hardcode_shlibpath_var_F77=no
15673 export_dynamic_flag_spec_F77='-Bexport'
15677 if test -d /usr/nec; then
15678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679 hardcode_shlibpath_var_F77=no
15680 runpath_var=LD_RUN_PATH
15681 hardcode_runpath_var=yes
15687 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15688 hardcode_direct_F77=yes
15689 hardcode_minus_L_F77=no
15690 hardcode_shlibpath_var_F77=no
15691 hardcode_runpath_var=yes
15692 runpath_var=LD_RUN_PATH
15695 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15696 no_undefined_flag_F77='${wl}-z ${wl}text'
15697 if test "$GCC" = yes; then
15698 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15700 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 runpath_var='LD_RUN_PATH'
15703 hardcode_shlibpath_var_F77=no
15707 no_undefined_flag_F77=' -z text'
15708 # $CC -shared without GNU ld will not create a library from C++
15709 # object files and a static libstdc++, better avoid it by now
15710 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15713 hardcode_libdir_flag_spec_F77=
15714 hardcode_shlibpath_var_F77=no
15715 runpath_var='LD_RUN_PATH'
15719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_libdir_flag_spec_F77='-L$libdir'
15721 hardcode_shlibpath_var_F77=no
15730 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15731 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15732 test "$ld_shlibs_F77" = no && can_build_shared=no
15734 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735 if test "$GCC" = yes; then
15736 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15740 # Do we need to explicitly link libc?
15742 case "x$archive_cmds_need_lc_F77" in
15744 # Assume -lc should be added
15745 archive_cmds_need_lc_F77=yes
15747 if test "$enable_shared" = yes && test "$GCC" = yes; then
15748 case $archive_cmds_F77 in
15750 # FIXME: we may have to deal with multi-command sequences.
15753 # Test whether the compiler implicitly links with -lc since on some
15754 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15755 # to ld, don't add -lc before -lgcc.
15756 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15757 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15759 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15762 (eval $ac_compile) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } 2>conftest.err; then
15768 libobjs=conftest.$ac_objext
15770 wl=$lt_prog_compiler_wl_F77
15776 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15777 allow_undefined_flag_F77=
15778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15779 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }
15784 archive_cmds_need_lc_F77=no
15786 archive_cmds_need_lc_F77=yes
15788 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15790 cat conftest.err 1>&5
15793 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15794 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15803 library_names_spec=
15804 libname_spec='lib$name'
15808 postuninstall_cmds=
15812 shlibpath_overrides_runpath=unknown
15814 dynamic_linker="$host_os ld.so"
15815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15816 if test "$GCC" = yes; then
15817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15819 # if the path contains ";" then we assume it to be the separator
15820 # otherwise default to the standard path separator (i.e. ":") - it is
15821 # assumed that no part of a normal pathname contains ";" but that should
15822 # okay in the real world where ";" in dirpaths is itself problematic.
15823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15830 need_lib_prefix=unknown
15831 hardcode_into_libs=no
15833 # when you set need_version to no, make sure it does not cause -set_version
15834 # flags to be left without arguments
15835 need_version=unknown
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15841 shlibpath_var=LIBPATH
15843 # AIX 3 has no versioning support, so we append a major version to the name.
15844 soname_spec='${libname}${release}${shared_ext}$major'
15851 hardcode_into_libs=yes
15852 if test "$host_cpu" = ia64; then
15853 # AIX 5 supports IA64
15854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15855 shlibpath_var=LD_LIBRARY_PATH
15857 # With GCC up to 2.95.x, collect2 would create an import file
15858 # for dependence libraries. The import file would start with
15859 # the line `#! .'. This would cause the generated library to
15860 # depend on `.', always an invalid library. This was fixed in
15861 # development snapshots of GCC prior to 3.0.
15863 aix4 | aix4.[01] | aix4.[01].*)
15864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15869 can_build_shared=no
15873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15874 # soname into executable. Probably we can add versioning support to
15875 # collect2, so additional links can be useful in future.
15876 if test "$aix_use_runtimelinking" = yes; then
15877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15878 # instead of lib<name>.a to let people know that these are not
15879 # typical AIX shared libraries.
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882 # We preserve .a as extension for shared libraries through AIX4.2
15883 # and later when we are not doing run time linking.
15884 library_names_spec='${libname}${release}.a $libname.a'
15885 soname_spec='${libname}${release}${shared_ext}$major'
15887 shlibpath_var=LIBPATH
15892 library_names_spec='$libname.ixlibrary $libname.a'
15893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15894 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'
15898 library_names_spec='${libname}${shared_ext}'
15899 dynamic_linker="$host_os ld.so"
15900 shlibpath_var=LIBRARY_PATH
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907 soname_spec='${libname}${release}${shared_ext}$major'
15908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15912 # the default ld.so.conf also contains /usr/contrib/lib and
15913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15914 # libtool to hard-code these into programs
15917 cygwin* | mingw* | pw32*)
15918 version_type=windows
15923 case $GCC,$host_os in
15924 yes,cygwin* | yes,mingw* | yes,pw32*)
15925 library_names_spec='$libname.dll.a'
15926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15927 postinstall_cmds='base_file=`basename \${file}`~
15928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15929 dldir=$destdir/`dirname \$dlpath`~
15930 test -d \$dldir || mkdir -p \$dldir~
15931 $install_prog $dir/$dlname \$dldir/$dlname'
15932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933 dlpath=$dir/\$dldll~
15935 shlibpath_overrides_runpath=yes
15939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15944 # MinGW DLLs use traditional 'lib' prefix
15945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948 # It is most probably a Windows format PATH printed by
15949 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15950 # path with ; separators, and with drive letters. We can handle the
15951 # drive letters (cygwin fileutils understands them), so leave them,
15952 # especially as we might pass files found there to a mingw objdump,
15953 # which wouldn't understand a cygwinified path. Ahh.
15954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15960 # pw32 DLLs use 'pw' prefix rather than 'lib'
15961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15970 dynamic_linker='Win32 ld.exe'
15971 # FIXME: first we should search . and the directory the executable is in
15975 darwin* | rhapsody*)
15976 dynamic_linker="$host_os dyld"
15977 version_type=darwin
15980 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981 soname_spec='${libname}${release}${major}$shared_ext'
15982 shlibpath_overrides_runpath=yes
15983 shlibpath_var=DYLD_LIBRARY_PATH
15984 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15985 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15986 if test "$GCC" = yes; then
15987 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"`
15989 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 shlibpath_var=LD_LIBRARY_PATH
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 shlibpath_overrides_runpath=no
16015 hardcode_into_libs=yes
16016 dynamic_linker='GNU ld.so'
16020 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16021 version_type=freebsd-$objformat
16022 case $version_type in
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16033 shlibpath_var=LD_LIBRARY_PATH
16036 shlibpath_overrides_runpath=yes
16038 freebsd3.01* | freebsdelf3.01*)
16039 shlibpath_overrides_runpath=yes
16040 hardcode_into_libs=yes
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 hardcode_into_libs=yes
16059 hpux9* | hpux10* | hpux11*)
16060 # Give a soname corresponding to the major version so that dld.sl refuses to
16061 # link against other versions.
16065 case "$host_cpu" in
16068 hardcode_into_libs=yes
16069 dynamic_linker="$host_os dld.so"
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 if test "X$HPUX_IA64_MODE" = X32; then
16075 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16077 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16083 hardcode_into_libs=yes
16084 dynamic_linker="$host_os dld.sl"
16085 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094 dynamic_linker="$host_os dld.sl"
16095 shlibpath_var=SHLIB_PATH
16096 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16101 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16102 postinstall_cmds='chmod 555 $lib'
16105 irix5* | irix6* | nonstopux*)
16107 nonstopux*) version_type=nonstopux ;;
16109 if test "$lt_cv_prog_gnu_ld" = yes; then
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16120 irix5* | nonstopux*)
16121 libsuff= shlibsuff=
16124 case $LD in # libtool.m4 will add one of these switches to LD
16125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126 libsuff= shlibsuff= libmagic=32-bit;;
16127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128 libsuff=32 shlibsuff=N32 libmagic=N32;;
16129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131 *) libsuff= shlibsuff= libmagic=never-match;;
16135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136 shlibpath_overrides_runpath=no
16137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139 hardcode_into_libs=yes
16142 # No shared lib support for Linux oldld, aout, or coff.
16143 linux*oldld* | linux*aout* | linux*coff*)
16147 # This must be Linux ELF.
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 shlibpath_overrides_runpath=no
16157 # This implies no fast_install, which is unacceptable.
16158 # Some rework will be needed to allow for fast_install
16159 # before this can be enabled.
16160 hardcode_into_libs=yes
16162 # Append ld.so.conf contents to the search path
16163 if test -f /etc/ld.so.conf; then
16164 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16168 # We used to test for /lib/ld.so.1 and disable shared libraries on
16169 # powerpc, because MkLinux only supported shared libraries with the
16170 # GNU dynamic linker. Since this was broken with cross compilers,
16171 # most powerpc-linux boxes support dynamic linking these days and
16172 # people can always --disable-shared, the test was removed, and we
16173 # assume the GNU/Linux dynamic linker is in use.
16174 dynamic_linker='GNU/Linux ld.so'
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=no
16185 hardcode_into_libs=yes
16186 dynamic_linker='NetBSD ld.elf_so'
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=no
16197 hardcode_into_libs=yes
16198 dynamic_linker='GNU ld.so'
16205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16208 dynamic_linker='NetBSD (a.out) ld.so'
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 dynamic_linker='NetBSD ld.elf_so'
16214 shlibpath_var=LD_LIBRARY_PATH
16215 shlibpath_overrides_runpath=yes
16216 hardcode_into_libs=yes
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222 shlibpath_var=LD_LIBRARY_PATH
16223 shlibpath_overrides_runpath=yes
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=yes
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16245 openbsd2.[89] | openbsd2.[89].*)
16246 shlibpath_overrides_runpath=no
16249 shlibpath_overrides_runpath=yes
16253 shlibpath_overrides_runpath=yes
16258 libname_spec='$name'
16261 library_names_spec='$libname${shared_ext} $libname.a'
16262 dynamic_linker='OS/2 ld.exe'
16263 shlibpath_var=LIBPATH
16266 osf3* | osf4* | osf5*)
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 shlibpath_var=LD_LIBRARY_PATH
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 shlibpath_overrides_runpath=yes
16292 hardcode_into_libs=yes
16293 # ldd complains unless libraries are executable
16294 postinstall_cmds='chmod +x $lib'
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=yes
16303 if test "$with_gnu_ld" = yes; then
16309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 case $host_vendor in
16316 shlibpath_overrides_runpath=no
16318 export_dynamic_flag_spec='${wl}-Blargedynsym'
16319 runpath_var=LD_RUN_PATH
16327 shlibpath_overrides_runpath=no
16328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16334 if test -d /usr/nec ;then
16336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337 soname_spec='$libname${shared_ext}.$major'
16338 shlibpath_var=LD_LIBRARY_PATH
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
16353 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16354 echo "${ECHO_T}$dynamic_linker" >&6; }
16355 test "$dynamic_linker" = no && can_build_shared=no
16357 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16359 hardcode_action_F77=
16360 if test -n "$hardcode_libdir_flag_spec_F77" || \
16361 test -n "$runpath_var F77" || \
16362 test "X$hardcode_automatic_F77"="Xyes" ; then
16364 # We can hardcode non-existant directories.
16365 if test "$hardcode_direct_F77" != no &&
16366 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16367 # have to relink, otherwise we might link with an installed library
16368 # when we should be linking with a yet-to-be-installed one
16369 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16370 test "$hardcode_minus_L_F77" != no; then
16371 # Linking always hardcodes the temporary library directory.
16372 hardcode_action_F77=relink
16374 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16375 hardcode_action_F77=immediate
16378 # We cannot hardcode anything, or else we can only hardcode existing
16380 hardcode_action_F77=unsupported
16382 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16383 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16385 if test "$hardcode_action_F77" = relink; then
16386 # Fast installation is not supported
16387 enable_fast_install=no
16388 elif test "$shlibpath_overrides_runpath" = yes ||
16389 test "$enable_shared" = no; then
16390 # Fast installation is not necessary
16391 enable_fast_install=needless
16396 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16397 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16398 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16401 { echo "$as_me:$LINENO: result: yes" >&5
16402 echo "${ECHO_T}yes" >&6; }
16404 # FIXME - insert some real tests, host_os isn't really good enough
16407 if test -n "$STRIP" ; then
16408 striplib="$STRIP -x"
16409 { echo "$as_me:$LINENO: result: yes" >&5
16410 echo "${ECHO_T}yes" >&6; }
16412 { echo "$as_me:$LINENO: result: no" >&5
16413 echo "${ECHO_T}no" >&6; }
16417 { echo "$as_me:$LINENO: result: no" >&5
16418 echo "${ECHO_T}no" >&6; }
16425 # The else clause should only fire when bootstrapping the
16426 # libtool distribution, otherwise you forgot to ship ltmain.sh
16427 # with your package, and you will get complaints that there are
16428 # no rules to generate ltmain.sh.
16429 if test -f "$ltmain"; then
16430 # See if we are running on zsh, and set the options which allow our commands through
16431 # without removal of \ escapes.
16432 if test -n "${ZSH_VERSION+set}" ; then
16433 setopt NO_GLOB_SUBST
16435 # Now quote all the things that may contain metacharacters while being
16436 # careful not to overquote the AC_SUBSTed values. We take copies of the
16437 # variables and quote the copies for generation of the libtool script.
16438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16442 deplibs_check_method reload_flag reload_cmds need_locks \
16443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16444 lt_cv_sys_global_symbol_to_c_name_address \
16445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16446 old_postinstall_cmds old_postuninstall_cmds \
16450 lt_prog_compiler_wl_F77 \
16451 lt_prog_compiler_pic_F77 \
16452 lt_prog_compiler_static_F77 \
16453 lt_prog_compiler_no_builtin_flag_F77 \
16454 export_dynamic_flag_spec_F77 \
16455 thread_safe_flag_spec_F77 \
16456 whole_archive_flag_spec_F77 \
16457 enable_shared_with_static_runtimes_F77 \
16458 old_archive_cmds_F77 \
16459 old_archive_from_new_cmds_F77 \
16460 predep_objects_F77 \
16461 postdep_objects_F77 \
16464 compiler_lib_search_path_F77 \
16466 archive_expsym_cmds_F77 \
16467 postinstall_cmds_F77 \
16468 postuninstall_cmds_F77 \
16469 old_archive_from_expsyms_cmds_F77 \
16470 allow_undefined_flag_F77 \
16471 no_undefined_flag_F77 \
16472 export_symbols_cmds_F77 \
16473 hardcode_libdir_flag_spec_F77 \
16474 hardcode_libdir_flag_spec_ld_F77 \
16475 hardcode_libdir_separator_F77 \
16476 hardcode_automatic_F77 \
16478 module_expsym_cmds_F77 \
16479 lt_cv_prog_compiler_c_o_F77 \
16480 exclude_expsyms_F77 \
16481 include_expsyms_F77; do
16484 old_archive_cmds_F77 | \
16485 old_archive_from_new_cmds_F77 | \
16486 archive_cmds_F77 | \
16487 archive_expsym_cmds_F77 | \
16488 module_cmds_F77 | \
16489 module_expsym_cmds_F77 | \
16490 old_archive_from_expsyms_cmds_F77 | \
16491 export_symbols_cmds_F77 | \
16492 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16493 postinstall_cmds | postuninstall_cmds | \
16494 old_postinstall_cmds | old_postuninstall_cmds | \
16495 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16496 # Double-quote double-evaled strings.
16497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16506 *'\$0 --fallback-echo"')
16507 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16513 cat <<__EOF__ >> "$cfgfile"
16514 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16516 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16518 # Shell to use when invoking shell scripts.
16521 # Whether or not to build shared libraries.
16522 build_libtool_libs=$enable_shared
16524 # Whether or not to build static libraries.
16525 build_old_libs=$enable_static
16527 # Whether or not to add -lc for building shared libraries.
16528 build_libtool_need_lc=$archive_cmds_need_lc_F77
16530 # Whether or not to disallow shared libs when runtime libs are static
16531 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16533 # Whether or not to optimize for fast installation.
16534 fast_install=$enable_fast_install
16537 host_alias=$host_alias
16540 # An echo program that does not interpret backslashes.
16545 AR_FLAGS=$lt_AR_FLAGS
16550 # A language-specific compiler.
16551 CC=$lt_compiler_F77
16553 # Is the compiler the GNU C compiler?
16559 # The linker used to build libraries.
16562 # Whether we need hard or soft links.
16565 # A BSD-compatible nm program.
16568 # A symbol stripping program
16571 # Used to examine libraries when file_magic_cmd begins "file"
16572 MAGIC_CMD=$MAGIC_CMD
16574 # Used on cygwin: DLL creation program.
16577 # Used on cygwin: object dumper.
16580 # Used on cygwin: assembler.
16583 # The name of the directory that contains temporary libtool files.
16586 # How to create reloadable object files.
16587 reload_flag=$lt_reload_flag
16588 reload_cmds=$lt_reload_cmds
16590 # How to pass a linker flag through the compiler.
16591 wl=$lt_lt_prog_compiler_wl_F77
16593 # Object file suffix (normally "o").
16594 objext="$ac_objext"
16596 # Old archive suffix (normally "a").
16599 # Shared library suffix (normally ".so").
16600 shrext_cmds='$shrext_cmds'
16602 # Executable file suffix (normally "").
16605 # Additional compiler flags for building library objects.
16606 pic_flag=$lt_lt_prog_compiler_pic_F77
16609 # What is the maximum length of a command?
16610 max_cmd_len=$lt_cv_sys_max_cmd_len
16612 # Does compiler simultaneously support -c and -o options?
16613 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16615 # Must we lock files when doing compilation ?
16616 need_locks=$lt_need_locks
16618 # Do we need the lib prefix for modules?
16619 need_lib_prefix=$need_lib_prefix
16621 # Do we need a version for libraries?
16622 need_version=$need_version
16624 # Whether dlopen is supported.
16625 dlopen_support=$enable_dlopen
16627 # Whether dlopen of programs is supported.
16628 dlopen_self=$enable_dlopen_self
16630 # Whether dlopen of statically linked programs is supported.
16631 dlopen_self_static=$enable_dlopen_self_static
16633 # Compiler flag to prevent dynamic linking.
16634 link_static_flag=$lt_lt_prog_compiler_static_F77
16636 # Compiler flag to turn off builtin functions.
16637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16639 # Compiler flag to allow reflexive dlopens.
16640 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16642 # Compiler flag to generate shared objects directly from archives.
16643 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16645 # Compiler flag to generate thread-safe objects.
16646 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16648 # Library versioning type.
16649 version_type=$version_type
16651 # Format of library name prefix.
16652 libname_spec=$lt_libname_spec
16654 # List of archive names. First name is the real one, the rest are links.
16655 # The last name is the one that the linker finds with -lNAME.
16656 library_names_spec=$lt_library_names_spec
16658 # The coded name of the library, if different from the real name.
16659 soname_spec=$lt_soname_spec
16661 # Commands used to build and install an old-style archive.
16663 old_archive_cmds=$lt_old_archive_cmds_F77
16664 old_postinstall_cmds=$lt_old_postinstall_cmds
16665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16667 # Create an old-style archive from a shared archive.
16668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16670 # Create a temporary old-style archive to link instead of a shared archive.
16671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16673 # Commands used to build and install a shared archive.
16674 archive_cmds=$lt_archive_cmds_F77
16675 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16676 postinstall_cmds=$lt_postinstall_cmds
16677 postuninstall_cmds=$lt_postuninstall_cmds
16679 # Commands used to build a loadable module (assumed same as above if empty)
16680 module_cmds=$lt_module_cmds_F77
16681 module_expsym_cmds=$lt_module_expsym_cmds_F77
16683 # Commands to strip libraries.
16684 old_striplib=$lt_old_striplib
16685 striplib=$lt_striplib
16687 # Dependencies to place before the objects being linked to create a
16689 predep_objects=$lt_predep_objects_F77
16691 # Dependencies to place after the objects being linked to create a
16693 postdep_objects=$lt_postdep_objects_F77
16695 # Dependencies to place before the objects being linked to create a
16697 predeps=$lt_predeps_F77
16699 # Dependencies to place after the objects being linked to create a
16701 postdeps=$lt_postdeps_F77
16703 # The library search path used internally by the compiler when linking
16704 # a shared library.
16705 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16707 # Method to check whether dependent libraries are shared objects.
16708 deplibs_check_method=$lt_deplibs_check_method
16710 # Command to use when deplibs_check_method == file_magic.
16711 file_magic_cmd=$lt_file_magic_cmd
16713 # Flag that allows shared libraries with undefined symbols to be built.
16714 allow_undefined_flag=$lt_allow_undefined_flag_F77
16716 # Flag that forces no undefined symbols.
16717 no_undefined_flag=$lt_no_undefined_flag_F77
16719 # Commands used to finish a libtool library installation in a directory.
16720 finish_cmds=$lt_finish_cmds
16722 # Same as above, but a single script fragment to be evaled but not shown.
16723 finish_eval=$lt_finish_eval
16725 # Take the output of nm and produce a listing of raw symbols and C names.
16726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16728 # Transform the output of nm in a proper C declaration
16729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16731 # Transform the output of nm in a C name address pair
16732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16734 # This is the shared library runtime path variable.
16735 runpath_var=$runpath_var
16737 # This is the shared library path variable.
16738 shlibpath_var=$shlibpath_var
16740 # Is shlibpath searched before the hard-coded library search path?
16741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16743 # How to hardcode a shared library path into an executable.
16744 hardcode_action=$hardcode_action_F77
16746 # Whether we should hardcode library paths into libraries.
16747 hardcode_into_libs=$hardcode_into_libs
16749 # Flag to hardcode \$libdir into a binary during linking.
16750 # This must work even if \$libdir does not exist.
16751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16753 # If ld is used when linking, flag to hardcode \$libdir into
16754 # a binary during linking. This must work even if \$libdir does
16756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16758 # Whether we need a single -rpath flag with a separated argument.
16759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16761 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16762 # resulting binary.
16763 hardcode_direct=$hardcode_direct_F77
16765 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16766 # resulting binary.
16767 hardcode_minus_L=$hardcode_minus_L_F77
16769 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16770 # the resulting binary.
16771 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16773 # Set to yes if building a shared library automatically hardcodes DIR into the library
16774 # and all subsequent libraries and executables linked against it.
16775 hardcode_automatic=$hardcode_automatic_F77
16777 # Variables whose values should be saved in libtool wrapper scripts and
16778 # restored at relink time.
16779 variables_saved_for_relink="$variables_saved_for_relink"
16781 # Whether libtool must link a program against all its dependency libraries.
16782 link_all_deplibs=$link_all_deplibs_F77
16784 # Compile-time system search path for libraries
16785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16787 # Run-time system search path for libraries
16788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16790 # Fix the shell variable \$srcfile for the compiler.
16791 fix_srcfile_path="$fix_srcfile_path_F77"
16793 # Set to yes if exported symbols are required.
16794 always_export_symbols=$always_export_symbols_F77
16796 # The commands to list exported symbols.
16797 export_symbols_cmds=$lt_export_symbols_cmds_F77
16799 # The commands to extract the exported symbol list from a shared archive.
16800 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16802 # Symbols that should not be listed in the preloaded symbols.
16803 exclude_expsyms=$lt_exclude_expsyms_F77
16805 # Symbols that must always be exported.
16806 include_expsyms=$lt_include_expsyms_F77
16808 # ### END LIBTOOL TAG CONFIG: $tagname
16814 # If there is no Makefile yet, we rely on a make rule to execute
16815 # `config.status --recheck' to rerun these tests and create the
16816 # libtool script then.
16817 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16818 if test -f "$ltmain_in"; then
16819 test -f Makefile && make "$ltmain"
16825 ac_cpp='$CPP $CPPFLAGS'
16826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16838 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16841 # Source file extension for Java test sources.
16844 # Object file extension for compiled Java test sources.
16848 # Code to be used in simple compile tests
16849 lt_simple_compile_test_code="class foo {}\n"
16851 # Code to be used in simple link tests
16852 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16856 # If no C compiler was specified, use CC.
16859 # Allow CC to be a program name with arguments.
16863 # Allow CC to be a program name with arguments.
16869 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16870 archive_cmds_need_lc_GCJ=no
16873 ## There is no encapsulation within the following macros, do not change
16874 ## the running order or otherwise move them around unless you know exactly
16875 ## what you are doing...
16877 lt_prog_compiler_no_builtin_flag_GCJ=
16879 if test "$GCC" = yes; then
16880 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16883 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16884 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 lt_cv_prog_compiler_rtti_exceptions=no
16889 ac_outfile=conftest.$ac_objext
16890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16891 lt_compiler_flag="-fno-rtti -fno-exceptions"
16892 # Insert the option either (1) after the last *FLAGS variable, or
16893 # (2) before a word containing "conftest.", or (3) at the end.
16894 # Note that $ac_compile itself does not contain backslashes and begins
16895 # with a dollar sign (not a hyphen), so the echo should work correctly.
16896 # The option is referenced via a variable to avoid confusing sed.
16897 lt_compile=`echo "$ac_compile" | $SED \
16898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900 -e 's:$: $lt_compiler_flag:'`
16901 (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902 (eval "$lt_compile" 2>conftest.err)
16904 cat conftest.err >&5
16905 echo "$as_me:16905: \$? = $ac_status" >&5
16906 if (exit $ac_status) && test -s "$ac_outfile"; then
16907 # The compiler can only warn and ignore the option if not recognized
16908 # So say no if there are warnings
16909 if test ! -s conftest.err; then
16910 lt_cv_prog_compiler_rtti_exceptions=yes
16916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16917 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16920 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16927 lt_prog_compiler_wl_GCJ=
16928 lt_prog_compiler_pic_GCJ=
16929 lt_prog_compiler_static_GCJ=
16931 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16934 if test "$GCC" = yes; then
16935 lt_prog_compiler_wl_GCJ='-Wl,'
16936 lt_prog_compiler_static_GCJ='-static'
16940 # All AIX code is PIC.
16941 if test "$host_cpu" = ia64; then
16942 # AIX 5 now supports IA64 processor
16943 lt_prog_compiler_static_GCJ='-Bstatic'
16948 # FIXME: we need at least 68020 code to build shared libraries, but
16949 # adding the `-m68020' flag to GCC prevents building anything better,
16951 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16954 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16955 # PIC is the default for these OSes.
16958 mingw* | pw32* | os2*)
16959 # This hack is so that the source file can tell whether it is being
16960 # built for inclusion in a dll (and should export symbols for example).
16961 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16964 darwin* | rhapsody*)
16965 # PIC is the default on this platform
16966 # Common symbols not allowed in MH_DYLIB files
16967 lt_prog_compiler_pic_GCJ='-fno-common'
16971 # Just because we use GCC doesn't mean we suddenly get shared libraries
16972 # on systems that don't support them.
16973 lt_prog_compiler_can_build_shared_GCJ=no
16978 if test -d /usr/nec; then
16979 lt_prog_compiler_pic_GCJ=-Kconform_pic
16984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16985 # not for PA HP-UX.
16986 case "$host_cpu" in
16991 lt_prog_compiler_pic_GCJ='-fPIC'
16997 lt_prog_compiler_pic_GCJ='-fPIC'
17001 # PORTME Check for flag to pass linker flags through the system compiler.
17004 lt_prog_compiler_wl_GCJ='-Wl,'
17005 if test "$host_cpu" = ia64; then
17006 # AIX 5 now supports IA64 processor
17007 lt_prog_compiler_static_GCJ='-Bstatic'
17009 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17013 mingw* | pw32* | os2*)
17014 # This hack is so that the source file can tell whether it is being
17015 # built for inclusion in a dll (and should export symbols for example).
17016 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17019 hpux9* | hpux10* | hpux11*)
17020 lt_prog_compiler_wl_GCJ='-Wl,'
17021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17022 # not for PA HP-UX.
17023 case "$host_cpu" in
17028 lt_prog_compiler_pic_GCJ='+Z'
17031 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17032 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17035 irix5* | irix6* | nonstopux*)
17036 lt_prog_compiler_wl_GCJ='-Wl,'
17037 # PIC (with -KPIC) is the default.
17038 lt_prog_compiler_static_GCJ='-non_shared'
17042 lt_prog_compiler_pic_GCJ='-KPIC'
17043 lt_prog_compiler_static_GCJ='-Bstatic'
17049 lt_prog_compiler_wl_GCJ='-Wl,'
17050 lt_prog_compiler_pic_GCJ='-KPIC'
17051 lt_prog_compiler_static_GCJ='-static'
17054 lt_prog_compiler_wl_GCJ='-Wl,'
17055 # All Alpha code is PIC.
17056 lt_prog_compiler_static_GCJ='-non_shared'
17061 osf3* | osf4* | osf5*)
17062 lt_prog_compiler_wl_GCJ='-Wl,'
17063 # All OSF/1 code is PIC.
17064 lt_prog_compiler_static_GCJ='-non_shared'
17068 lt_prog_compiler_pic_GCJ='-Kpic'
17069 lt_prog_compiler_static_GCJ='-dn'
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 lt_prog_compiler_pic_GCJ='-KPIC'
17075 lt_prog_compiler_static_GCJ='-Bstatic'
17079 lt_prog_compiler_wl_GCJ='-Qoption ld '
17080 lt_prog_compiler_pic_GCJ='-PIC'
17081 lt_prog_compiler_static_GCJ='-Bstatic'
17084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17085 lt_prog_compiler_wl_GCJ='-Wl,'
17086 lt_prog_compiler_pic_GCJ='-KPIC'
17087 lt_prog_compiler_static_GCJ='-Bstatic'
17091 if test -d /usr/nec ;then
17092 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17093 lt_prog_compiler_static_GCJ='-Bstatic'
17098 lt_prog_compiler_pic_GCJ='-pic'
17099 lt_prog_compiler_static_GCJ='-Bstatic'
17103 lt_prog_compiler_can_build_shared_GCJ=no
17108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17109 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17112 # Check to make sure the PIC flag actually works.
17114 if test -n "$lt_prog_compiler_pic_GCJ"; then
17116 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17117 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17118 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17121 lt_prog_compiler_pic_works_GCJ=no
17122 ac_outfile=conftest.$ac_objext
17123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17124 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17125 # Insert the option either (1) after the last *FLAGS variable, or
17126 # (2) before a word containing "conftest.", or (3) at the end.
17127 # Note that $ac_compile itself does not contain backslashes and begins
17128 # with a dollar sign (not a hyphen), so the echo should work correctly.
17129 # The option is referenced via a variable to avoid confusing sed.
17130 lt_compile=`echo "$ac_compile" | $SED \
17131 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17133 -e 's:$: $lt_compiler_flag:'`
17134 (eval echo "\"\$as_me:17134: $lt_compile\"" >&5)
17135 (eval "$lt_compile" 2>conftest.err)
17137 cat conftest.err >&5
17138 echo "$as_me:17138: \$? = $ac_status" >&5
17139 if (exit $ac_status) && test -s "$ac_outfile"; then
17140 # The compiler can only warn and ignore the option if not recognized
17141 # So say no if there are warnings
17142 if test ! -s conftest.err; then
17143 lt_prog_compiler_pic_works_GCJ=yes
17149 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17150 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17152 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17153 case $lt_prog_compiler_pic_GCJ in
17155 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17158 lt_prog_compiler_pic_GCJ=
17159 lt_prog_compiler_can_build_shared_GCJ=no
17164 # For platforms which do not support PIC, -DPIC is meaningless:
17166 lt_prog_compiler_pic_GCJ=
17169 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17173 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17174 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17175 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 lt_cv_prog_compiler_c_o_GCJ=no
17179 $rm -r conftest 2>/dev/null
17183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17185 lt_compiler_flag="-o out/conftest2.$ac_objext"
17186 # Insert the option either (1) after the last *FLAGS variable, or
17187 # (2) before a word containing "conftest.", or (3) at the end.
17188 # Note that $ac_compile itself does not contain backslashes and begins
17189 # with a dollar sign (not a hyphen), so the echo should work correctly.
17190 lt_compile=`echo "$ac_compile" | $SED \
17191 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193 -e 's:$: $lt_compiler_flag:'`
17194 (eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
17195 (eval "$lt_compile" 2>out/conftest.err)
17197 cat out/conftest.err >&5
17198 echo "$as_me:17198: \$? = $ac_status" >&5
17199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17201 # The compiler can only warn and ignore the option if not recognized
17202 # So say no if there are warnings
17203 if test ! -s out/conftest.err; then
17204 lt_cv_prog_compiler_c_o_GCJ=yes
17209 # SGI C++ compiler will create directory out/ii_files/ for
17210 # template instantiation
17211 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17212 $rm out/* && rmdir out
17218 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17219 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17222 hard_links="nottested"
17223 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17224 # do not overwrite the value of need_locks provided by the user
17225 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17226 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17231 ln conftest.a conftest.b 2>&5 || hard_links=no
17232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17233 { echo "$as_me:$LINENO: result: $hard_links" >&5
17234 echo "${ECHO_T}$hard_links" >&6; }
17235 if test "$hard_links" = no; then
17236 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17237 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17248 allow_undefined_flag_GCJ=
17249 enable_shared_with_static_runtimes_GCJ=no
17251 archive_expsym_cmds_GCJ=
17252 old_archive_From_new_cmds_GCJ=
17253 old_archive_from_expsyms_cmds_GCJ=
17254 export_dynamic_flag_spec_GCJ=
17255 whole_archive_flag_spec_GCJ=
17256 thread_safe_flag_spec_GCJ=
17257 hardcode_libdir_flag_spec_GCJ=
17258 hardcode_libdir_flag_spec_ld_GCJ=
17259 hardcode_libdir_separator_GCJ=
17260 hardcode_direct_GCJ=no
17261 hardcode_minus_L_GCJ=no
17262 hardcode_shlibpath_var_GCJ=unsupported
17263 link_all_deplibs_GCJ=unknown
17264 hardcode_automatic_GCJ=no
17266 module_expsym_cmds_GCJ=
17267 always_export_symbols_GCJ=no
17268 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17269 # include_expsyms should be a list of space-separated symbols to be *always*
17270 # included in the symbol list
17271 include_expsyms_GCJ=
17272 # exclude_expsyms can be an extended regexp of symbols to exclude
17273 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17274 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17275 # as well as any symbol that contains `d'.
17276 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17277 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17278 # platforms (ab)use it in PIC code, but their linkers get confused if
17279 # the symbol is explicitly referenced. Since portable code cannot
17280 # rely on this symbol name, it's probably fine to never include it in
17281 # preloaded symbol tables.
17282 extract_expsyms_cmds=
17285 cygwin* | mingw* | pw32*)
17286 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17287 # When not using gcc, we currently assume that we are using
17288 # Microsoft Visual C++.
17289 if test "$GCC" != yes; then
17299 if test "$with_gnu_ld" = yes; then
17300 # If archive_cmds runs LD, not CC, wlarc should be empty
17303 # See if GNU ld supports shared libraries.
17305 aix3* | aix4* | aix5*)
17306 # On AIX/PPC, the GNU linker is very broken
17307 if test "$host_cpu" != ia64; then
17311 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17312 *** to be unable to reliably create shared libraries on AIX.
17313 *** Therefore, libtool is disabling shared libraries support. If you
17314 *** really care for shared libraries, you may want to modify your PATH
17315 *** so that a non-GNU linker is found, and then restart.
17322 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324 hardcode_minus_L_GCJ=yes
17326 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17327 # that the semantics of dynamic libraries on AmigaOS, at least up
17328 # to version 4, is to share data among multiple programs linked
17329 # with the same dynamic library. Since this doesn't match the
17330 # behavior of shared libraries on other platforms, we can't use
17336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337 allow_undefined_flag_GCJ=unsupported
17338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17339 # support --undefined. This deserves some investigation. FIXME
17340 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17346 cygwin* | mingw* | pw32*)
17347 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17348 # as there is no search path for DLLs.
17349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350 allow_undefined_flag_GCJ=unsupported
17351 always_export_symbols_GCJ=no
17352 enable_shared_with_static_runtimes_GCJ=yes
17353 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17355 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17356 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17357 # If the export-symbols file already is a .def file (1st line
17358 # is EXPORTS), use it as is; otherwise, prepend...
17359 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17360 cp $export_symbols $output_objdir/$soname.def;
17362 echo EXPORTS > $output_objdir/$soname.def;
17363 cat $export_symbols >> $output_objdir/$soname.def;
17365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17371 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17373 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17382 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17387 *** create shared libraries on Solaris systems. Therefore, libtool
17388 *** is disabling shared libraries support. We urge you to upgrade GNU
17389 *** binutils to release 2.9.1 or newer. Another option is to modify
17390 *** your PATH or compiler configuration so that the native linker is
17391 *** used, and then restart.
17394 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17403 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17405 hardcode_direct_GCJ=yes
17406 hardcode_shlibpath_var_GCJ=no
17410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412 archive_cmds_GCJ="$tmp_archive_cmds"
17413 supports_anon_versioning=no
17414 case `$LD -v 2>/dev/null` in
17415 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17416 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17417 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17418 *\ 2.11.*) ;; # other 2.11 versions
17419 *) supports_anon_versioning=yes ;;
17421 if test $supports_anon_versioning = yes; then
17422 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17424 $echo "local: *; };" >> $output_objdir/$libname.ver~
17425 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17427 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17429 link_all_deplibs_GCJ=no
17436 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17438 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17445 if test "$ld_shlibs_GCJ" = yes; then
17446 runpath_var=LD_RUN_PATH
17447 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17448 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17449 # ancient GNU ld didn't support --whole-archive et. al.
17450 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17451 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17453 whole_archive_flag_spec_GCJ=
17457 # PORTME fill in a description of your system's linker (not GNU ld)
17460 allow_undefined_flag_GCJ=unsupported
17461 always_export_symbols_GCJ=yes
17462 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'
17463 # Note: this linker hardcodes the directories in LIBPATH if there
17464 # are no directories specified by -L.
17465 hardcode_minus_L_GCJ=yes
17466 if test "$GCC" = yes && test -z "$link_static_flag"; then
17467 # Neither direct hardcoding nor static linking is supported with a
17469 hardcode_direct_GCJ=unsupported
17474 if test "$host_cpu" = ia64; then
17475 # On IA64, the linker does run time linking by default, so we don't
17476 # have to do anything special.
17477 aix_use_runtimelinking=no
17478 exp_sym_flag='-Bexport'
17481 # If we're using GNU nm, then we don't want the "-C" option.
17482 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17483 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17484 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'
17486 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'
17488 aix_use_runtimelinking=no
17490 # Test if we are trying to use run time linking or normal
17491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17492 # need to do runtime linking.
17493 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17494 for ld_flag in $LDFLAGS; do
17495 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17496 aix_use_runtimelinking=yes
17502 exp_sym_flag='-bexport'
17503 no_entry_flag='-bnoentry'
17506 # When large executables or shared objects are built, AIX ld can
17507 # have problems creating the table of contents. If linking a library
17508 # or program results in "error TOC overflow" add -mminimal-toc to
17509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17512 archive_cmds_GCJ=''
17513 hardcode_direct_GCJ=yes
17514 hardcode_libdir_separator_GCJ=':'
17515 link_all_deplibs_GCJ=yes
17517 if test "$GCC" = yes; then
17518 case $host_os in aix4.012|aix4.012.*)
17519 # We only want to do this on AIX 4.2 and lower, the check
17520 # below for broken collect2 doesn't work under 4.3+
17521 collect2name=`${CC} -print-prog-name=collect2`
17522 if test -f "$collect2name" && \
17523 strings "$collect2name" | grep resolve_lib_name >/dev/null
17525 # We have reworked collect2
17526 hardcode_direct_GCJ=yes
17528 # We have old collect2
17529 hardcode_direct_GCJ=unsupported
17530 # It fails to find uninstalled libraries when the uninstalled
17531 # path is not listed in the libpath. Setting hardcode_minus_L
17532 # to unsupported forces relinking
17533 hardcode_minus_L_GCJ=yes
17534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535 hardcode_libdir_separator_GCJ=
17538 shared_flag='-shared'
17541 if test "$host_cpu" = ia64; then
17542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17543 # chokes on -Wl,-G. The following line is correct:
17546 if test "$aix_use_runtimelinking" = yes; then
17547 shared_flag='${wl}-G'
17549 shared_flag='${wl}-bM:SRE'
17554 # It seems that -bexpall does not export symbols beginning with
17555 # underscore (_), so it is better to generate a list of symbols to export.
17556 always_export_symbols_GCJ=yes
17557 if test "$aix_use_runtimelinking" = yes; then
17558 # Warning - without using the other runtime loading flags (-brtl),
17559 # -berok will link without error, but may produce a broken library.
17560 allow_undefined_flag_GCJ='-berok'
17561 # Determine the default libpath from the value encoded in an empty executable.
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && {
17591 test -z "$ac_c_werror_flag" ||
17592 test ! -s conftest.err
17593 } && test -s conftest$ac_exeext &&
17594 $as_test_x conftest$ac_exeext; then
17596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17598 # Check for a 64-bit object if we didn't find anything.
17599 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; }
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609 conftest$ac_exeext conftest.$ac_ext
17610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17612 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17615 if test "$host_cpu" = ia64; then
17616 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17617 allow_undefined_flag_GCJ="-z nodefs"
17618 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17620 # Determine the default libpath from the value encoded in an empty executable.
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_link") 2>conftest.er1
17645 grep -v '^ *+' conftest.er1 >conftest.err
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } && {
17650 test -z "$ac_c_werror_flag" ||
17651 test ! -s conftest.err
17652 } && test -s conftest$ac_exeext &&
17653 $as_test_x conftest$ac_exeext; then
17655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17657 # Check for a 64-bit object if we didn't find anything.
17658 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; }
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668 conftest$ac_exeext conftest.$ac_ext
17669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17671 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17672 # Warning - without using the other run time loading flags,
17673 # -berok will link without error, but may produce a broken library.
17674 no_undefined_flag_GCJ=' ${wl}-bernotok'
17675 allow_undefined_flag_GCJ=' ${wl}-berok'
17676 # -bexpall does not export symbols beginning with underscore (_)
17677 always_export_symbols_GCJ=yes
17678 # Exported symbols can be pulled into shared objects from archives
17679 whole_archive_flag_spec_GCJ=' '
17680 archive_cmds_need_lc_GCJ=yes
17681 # This is similar to how AIX traditionally builds it's shared libraries.
17682 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17688 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)'
17689 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17690 hardcode_minus_L_GCJ=yes
17691 # see comment about different semantics on the GNU ld section
17696 export_dynamic_flag_spec_GCJ=-rdynamic
17699 cygwin* | mingw* | pw32*)
17700 # When not using gcc, we currently assume that we are using
17701 # Microsoft Visual C++.
17702 # hardcode_libdir_flag_spec is actually meaningless, as there is
17703 # no search path for DLLs.
17704 hardcode_libdir_flag_spec_GCJ=' '
17705 allow_undefined_flag_GCJ=unsupported
17706 # Tell ltmain to make .lib files, not .a files.
17708 # Tell ltmain to make .dll files, not .so files.
17710 # FIXME: Setting linknames here is a bad hack.
17711 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17712 # The linker will automatically build a .lib file if we build a DLL.
17713 old_archive_From_new_cmds_GCJ='true'
17714 # FIXME: Should let the user specify the lib program.
17715 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17716 fix_srcfile_path='`cygpath -w "$srcfile"`'
17717 enable_shared_with_static_runtimes_GCJ=yes
17720 darwin* | rhapsody*)
17721 if test "$GXX" = yes ; then
17722 archive_cmds_need_lc_GCJ=no
17724 rhapsody* | darwin1.[012])
17725 allow_undefined_flag_GCJ='-undefined suppress'
17728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17729 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17731 case ${MACOSX_DEPLOYMENT_TARGET} in
17733 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17736 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17742 lt_int_apple_cc_single_mod=no
17743 output_verbose_link_cmd='echo'
17744 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17745 lt_int_apple_cc_single_mod=yes
17747 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17748 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17750 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17752 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17753 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17754 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17755 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17757 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17759 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}'
17760 hardcode_direct_GCJ=no
17761 hardcode_automatic_GCJ=yes
17762 hardcode_shlibpath_var_GCJ=unsupported
17763 whole_archive_flag_spec_GCJ='-all_load $convenience'
17764 link_all_deplibs_GCJ=yes
17771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773 hardcode_shlibpath_var_GCJ=no
17780 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17781 # support. Future versions do this automatically, but an explicit c++rt0.o
17782 # does not break anything, and helps significantly (at the cost of a little
17785 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17786 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17787 hardcode_direct_GCJ=yes
17788 hardcode_shlibpath_var_GCJ=no
17791 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17793 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794 hardcode_direct_GCJ=yes
17795 hardcode_minus_L_GCJ=yes
17796 hardcode_shlibpath_var_GCJ=no
17799 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17800 freebsd* | kfreebsd*-gnu)
17801 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17802 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17803 hardcode_direct_GCJ=yes
17804 hardcode_shlibpath_var_GCJ=no
17808 if test "$GCC" = yes; then
17809 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'
17811 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'
17813 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17814 hardcode_libdir_separator_GCJ=:
17815 hardcode_direct_GCJ=yes
17817 # hardcode_minus_L: Not really in the search PATH,
17818 # but as the default location of the library.
17819 hardcode_minus_L_GCJ=yes
17820 export_dynamic_flag_spec_GCJ='${wl}-E'
17824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825 case "$host_cpu" in
17827 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17830 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17834 case "$host_cpu" in
17836 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17839 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17843 if test "$with_gnu_ld" = no; then
17844 case "$host_cpu" in
17846 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17847 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17848 hardcode_libdir_separator_GCJ=:
17849 hardcode_direct_GCJ=no
17850 hardcode_shlibpath_var_GCJ=no
17853 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17854 hardcode_direct_GCJ=no
17855 hardcode_shlibpath_var_GCJ=no
17857 # hardcode_minus_L: Not really in the search PATH,
17858 # but as the default location of the library.
17859 hardcode_minus_L_GCJ=yes
17862 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17863 hardcode_libdir_separator_GCJ=:
17864 hardcode_direct_GCJ=yes
17865 export_dynamic_flag_spec_GCJ='${wl}-E'
17867 # hardcode_minus_L: Not really in the search PATH,
17868 # but as the default location of the library.
17869 hardcode_minus_L_GCJ=yes
17875 irix5* | irix6* | nonstopux*)
17876 if test "$GCC" = yes; then
17877 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'
17879 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'
17880 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17882 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17883 hardcode_libdir_separator_GCJ=:
17884 link_all_deplibs_GCJ=yes
17887 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17888 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17889 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17891 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17894 hardcode_direct_GCJ=yes
17895 hardcode_shlibpath_var_GCJ=no
17899 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900 hardcode_direct_GCJ=yes
17901 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17902 hardcode_libdir_separator_GCJ=:
17903 hardcode_shlibpath_var_GCJ=no
17907 hardcode_direct_GCJ=yes
17908 hardcode_shlibpath_var_GCJ=no
17909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17910 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17912 export_dynamic_flag_spec_GCJ='${wl}-E'
17915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17916 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17917 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17920 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929 hardcode_minus_L_GCJ=yes
17930 allow_undefined_flag_GCJ=unsupported
17931 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'
17932 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17936 if test "$GCC" = yes; then
17937 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17938 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'
17940 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17941 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'
17943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17944 hardcode_libdir_separator_GCJ=:
17947 osf4* | osf5*) # as osf3* with the addition of -msym flag
17948 if test "$GCC" = yes; then
17949 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17950 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'
17951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17953 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17954 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'
17955 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~
17956 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17958 # Both c and cxx compiler support -rpath directly
17959 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17961 hardcode_libdir_separator_GCJ=:
17965 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17966 hardcode_shlibpath_var_GCJ=no
17967 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17968 runpath_var=LD_RUN_PATH
17969 hardcode_runpath_var=yes
17973 no_undefined_flag_GCJ=' -z text'
17974 if test "$GCC" = yes; then
17975 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17976 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17977 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17979 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17980 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17983 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17984 hardcode_shlibpath_var_GCJ=no
17986 solaris2.[0-5] | solaris2.[0-5].*) ;;
17987 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17988 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17990 link_all_deplibs_GCJ=yes
17994 if test "x$host_vendor" = xsequent; then
17995 # Use $CC to link under sequent, because it throws in some extra .o
17996 # files that make .init and .fini sections work.
17997 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17999 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002 hardcode_direct_GCJ=yes
18003 hardcode_minus_L_GCJ=yes
18004 hardcode_shlibpath_var_GCJ=no
18008 case $host_vendor in
18010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011 hardcode_direct_GCJ=yes # is this really true???
18014 ## LD is ld it makes a PLAMLIB
18015 ## CC just makes a GrossModule.
18016 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18017 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18018 hardcode_direct_GCJ=no
18021 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18025 runpath_var='LD_RUN_PATH'
18026 hardcode_shlibpath_var_GCJ=no
18030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031 hardcode_shlibpath_var_GCJ=no
18032 export_dynamic_flag_spec_GCJ='-Bexport'
18036 if test -d /usr/nec; then
18037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038 hardcode_shlibpath_var_GCJ=no
18039 runpath_var=LD_RUN_PATH
18040 hardcode_runpath_var=yes
18046 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18047 hardcode_direct_GCJ=yes
18048 hardcode_minus_L_GCJ=no
18049 hardcode_shlibpath_var_GCJ=no
18050 hardcode_runpath_var=yes
18051 runpath_var=LD_RUN_PATH
18054 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18055 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18056 if test "$GCC" = yes; then
18057 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18061 runpath_var='LD_RUN_PATH'
18062 hardcode_shlibpath_var_GCJ=no
18066 no_undefined_flag_GCJ=' -z text'
18067 # $CC -shared without GNU ld will not create a library from C++
18068 # object files and a static libstdc++, better avoid it by now
18069 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18072 hardcode_libdir_flag_spec_GCJ=
18073 hardcode_shlibpath_var_GCJ=no
18074 runpath_var='LD_RUN_PATH'
18078 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18080 hardcode_shlibpath_var_GCJ=no
18089 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18090 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18091 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18094 if test "$GCC" = yes; then
18095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18099 # Do we need to explicitly link libc?
18101 case "x$archive_cmds_need_lc_GCJ" in
18103 # Assume -lc should be added
18104 archive_cmds_need_lc_GCJ=yes
18106 if test "$enable_shared" = yes && test "$GCC" = yes; then
18107 case $archive_cmds_GCJ in
18109 # FIXME: we may have to deal with multi-command sequences.
18112 # Test whether the compiler implicitly links with -lc since on some
18113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18114 # to ld, don't add -lc before -lgcc.
18115 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18116 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121 (eval $ac_compile) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } 2>conftest.err; then
18127 libobjs=conftest.$ac_objext
18129 wl=$lt_prog_compiler_wl_GCJ
18135 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18136 allow_undefined_flag_GCJ=
18137 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18138 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }
18143 archive_cmds_need_lc_GCJ=no
18145 archive_cmds_need_lc_GCJ=yes
18147 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18149 cat conftest.err 1>&5
18152 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18153 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18160 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18161 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18162 library_names_spec=
18163 libname_spec='lib$name'
18167 postuninstall_cmds=
18171 shlibpath_overrides_runpath=unknown
18173 dynamic_linker="$host_os ld.so"
18174 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18175 if test "$GCC" = yes; then
18176 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18177 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18178 # if the path contains ";" then we assume it to be the separator
18179 # otherwise default to the standard path separator (i.e. ":") - it is
18180 # assumed that no part of a normal pathname contains ";" but that should
18181 # okay in the real world where ";" in dirpaths is itself problematic.
18182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18189 need_lib_prefix=unknown
18190 hardcode_into_libs=no
18192 # when you set need_version to no, make sure it does not cause -set_version
18193 # flags to be left without arguments
18194 need_version=unknown
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18200 shlibpath_var=LIBPATH
18202 # AIX 3 has no versioning support, so we append a major version to the name.
18203 soname_spec='${libname}${release}${shared_ext}$major'
18210 hardcode_into_libs=yes
18211 if test "$host_cpu" = ia64; then
18212 # AIX 5 supports IA64
18213 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18214 shlibpath_var=LD_LIBRARY_PATH
18216 # With GCC up to 2.95.x, collect2 would create an import file
18217 # for dependence libraries. The import file would start with
18218 # the line `#! .'. This would cause the generated library to
18219 # depend on `.', always an invalid library. This was fixed in
18220 # development snapshots of GCC prior to 3.0.
18222 aix4 | aix4.[01] | aix4.[01].*)
18223 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18225 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18228 can_build_shared=no
18232 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18233 # soname into executable. Probably we can add versioning support to
18234 # collect2, so additional links can be useful in future.
18235 if test "$aix_use_runtimelinking" = yes; then
18236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18237 # instead of lib<name>.a to let people know that these are not
18238 # typical AIX shared libraries.
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241 # We preserve .a as extension for shared libraries through AIX4.2
18242 # and later when we are not doing run time linking.
18243 library_names_spec='${libname}${release}.a $libname.a'
18244 soname_spec='${libname}${release}${shared_ext}$major'
18246 shlibpath_var=LIBPATH
18251 library_names_spec='$libname.ixlibrary $libname.a'
18252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18253 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'
18257 library_names_spec='${libname}${shared_ext}'
18258 dynamic_linker="$host_os ld.so"
18259 shlibpath_var=LIBRARY_PATH
18265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18266 soname_spec='${libname}${release}${shared_ext}$major'
18267 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18268 shlibpath_var=LD_LIBRARY_PATH
18269 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18270 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18271 # the default ld.so.conf also contains /usr/contrib/lib and
18272 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18273 # libtool to hard-code these into programs
18276 cygwin* | mingw* | pw32*)
18277 version_type=windows
18282 case $GCC,$host_os in
18283 yes,cygwin* | yes,mingw* | yes,pw32*)
18284 library_names_spec='$libname.dll.a'
18285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18286 postinstall_cmds='base_file=`basename \${file}`~
18287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18288 dldir=$destdir/`dirname \$dlpath`~
18289 test -d \$dldir || mkdir -p \$dldir~
18290 $install_prog $dir/$dlname \$dldir/$dlname'
18291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18292 dlpath=$dir/\$dldll~
18294 shlibpath_overrides_runpath=yes
18298 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18299 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18303 # MinGW DLLs use traditional 'lib' prefix
18304 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18306 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18307 # It is most probably a Windows format PATH printed by
18308 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18309 # path with ; separators, and with drive letters. We can handle the
18310 # drive letters (cygwin fileutils understands them), so leave them,
18311 # especially as we might pass files found there to a mingw objdump,
18312 # which wouldn't understand a cygwinified path. Ahh.
18313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18319 # pw32 DLLs use 'pw' prefix rather than 'lib'
18320 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18329 dynamic_linker='Win32 ld.exe'
18330 # FIXME: first we should search . and the directory the executable is in
18334 darwin* | rhapsody*)
18335 dynamic_linker="$host_os dyld"
18336 version_type=darwin
18339 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18340 soname_spec='${libname}${release}${major}$shared_ext'
18341 shlibpath_overrides_runpath=yes
18342 shlibpath_var=DYLD_LIBRARY_PATH
18343 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18344 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18345 if test "$GCC" = yes; then
18346 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"`
18348 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18350 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 shlibpath_var=LD_LIBRARY_PATH
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 shlibpath_overrides_runpath=no
18374 hardcode_into_libs=yes
18375 dynamic_linker='GNU ld.so'
18379 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18380 version_type=freebsd-$objformat
18381 case $version_type in
18383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18392 shlibpath_var=LD_LIBRARY_PATH
18395 shlibpath_overrides_runpath=yes
18397 freebsd3.01* | freebsdelf3.01*)
18398 shlibpath_overrides_runpath=yes
18399 hardcode_into_libs=yes
18402 shlibpath_overrides_runpath=no
18403 hardcode_into_libs=yes
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18413 soname_spec='${libname}${release}${shared_ext}$major'
18414 shlibpath_var=LD_LIBRARY_PATH
18415 hardcode_into_libs=yes
18418 hpux9* | hpux10* | hpux11*)
18419 # Give a soname corresponding to the major version so that dld.sl refuses to
18420 # link against other versions.
18424 case "$host_cpu" in
18427 hardcode_into_libs=yes
18428 dynamic_linker="$host_os dld.so"
18429 shlibpath_var=LD_LIBRARY_PATH
18430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432 soname_spec='${libname}${release}${shared_ext}$major'
18433 if test "X$HPUX_IA64_MODE" = X32; then
18434 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18436 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18442 hardcode_into_libs=yes
18443 dynamic_linker="$host_os dld.sl"
18444 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447 soname_spec='${libname}${release}${shared_ext}$major'
18448 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18453 dynamic_linker="$host_os dld.sl"
18454 shlibpath_var=SHLIB_PATH
18455 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457 soname_spec='${libname}${release}${shared_ext}$major'
18460 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18461 postinstall_cmds='chmod 555 $lib'
18464 irix5* | irix6* | nonstopux*)
18466 nonstopux*) version_type=nonstopux ;;
18468 if test "$lt_cv_prog_gnu_ld" = yes; then
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18479 irix5* | nonstopux*)
18480 libsuff= shlibsuff=
18483 case $LD in # libtool.m4 will add one of these switches to LD
18484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18485 libsuff= shlibsuff= libmagic=32-bit;;
18486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18487 libsuff=32 shlibsuff=N32 libmagic=N32;;
18488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18490 *) libsuff= shlibsuff= libmagic=never-match;;
18494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18495 shlibpath_overrides_runpath=no
18496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18498 hardcode_into_libs=yes
18501 # No shared lib support for Linux oldld, aout, or coff.
18502 linux*oldld* | linux*aout* | linux*coff*)
18506 # This must be Linux ELF.
18511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512 soname_spec='${libname}${release}${shared_ext}$major'
18513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18514 shlibpath_var=LD_LIBRARY_PATH
18515 shlibpath_overrides_runpath=no
18516 # This implies no fast_install, which is unacceptable.
18517 # Some rework will be needed to allow for fast_install
18518 # before this can be enabled.
18519 hardcode_into_libs=yes
18521 # Append ld.so.conf contents to the search path
18522 if test -f /etc/ld.so.conf; then
18523 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18527 # We used to test for /lib/ld.so.1 and disable shared libraries on
18528 # powerpc, because MkLinux only supported shared libraries with the
18529 # GNU dynamic linker. Since this was broken with cross compilers,
18530 # most powerpc-linux boxes support dynamic linking these days and
18531 # people can always --disable-shared, the test was removed, and we
18532 # assume the GNU/Linux dynamic linker is in use.
18533 dynamic_linker='GNU/Linux ld.so'
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18541 soname_spec='${libname}${release}${shared_ext}$major'
18542 shlibpath_var=LD_LIBRARY_PATH
18543 shlibpath_overrides_runpath=no
18544 hardcode_into_libs=yes
18545 dynamic_linker='NetBSD ld.elf_so'
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18553 soname_spec='${libname}${release}${shared_ext}$major'
18554 shlibpath_var=LD_LIBRARY_PATH
18555 shlibpath_overrides_runpath=no
18556 hardcode_into_libs=yes
18557 dynamic_linker='GNU ld.so'
18564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567 dynamic_linker='NetBSD (a.out) ld.so'
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18570 soname_spec='${libname}${release}${shared_ext}$major'
18571 dynamic_linker='NetBSD ld.elf_so'
18573 shlibpath_var=LD_LIBRARY_PATH
18574 shlibpath_overrides_runpath=yes
18575 hardcode_into_libs=yes
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581 shlibpath_var=LD_LIBRARY_PATH
18582 shlibpath_overrides_runpath=yes
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 shlibpath_var=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath=yes
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601 shlibpath_var=LD_LIBRARY_PATH
18602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18604 openbsd2.[89] | openbsd2.[89].*)
18605 shlibpath_overrides_runpath=no
18608 shlibpath_overrides_runpath=yes
18612 shlibpath_overrides_runpath=yes
18617 libname_spec='$name'
18620 library_names_spec='$libname${shared_ext} $libname.a'
18621 dynamic_linker='OS/2 ld.exe'
18622 shlibpath_var=LIBPATH
18625 osf3* | osf4* | osf5*)
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640 shlibpath_var=LD_LIBRARY_PATH
18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648 soname_spec='${libname}${release}${shared_ext}$major'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 shlibpath_overrides_runpath=yes
18651 hardcode_into_libs=yes
18652 # ldd complains unless libraries are executable
18653 postinstall_cmds='chmod +x $lib'
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 shlibpath_overrides_runpath=yes
18662 if test "$with_gnu_ld" = yes; then
18668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 shlibpath_var=LD_LIBRARY_PATH
18673 case $host_vendor in
18675 shlibpath_overrides_runpath=no
18677 export_dynamic_flag_spec='${wl}-Blargedynsym'
18678 runpath_var=LD_RUN_PATH
18686 shlibpath_overrides_runpath=no
18687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18693 if test -d /usr/nec ;then
18695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18696 soname_spec='$libname${shared_ext}.$major'
18697 shlibpath_var=LD_LIBRARY_PATH
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704 soname_spec='${libname}${release}${shared_ext}$major'
18705 shlibpath_var=LD_LIBRARY_PATH
18712 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18713 echo "${ECHO_T}$dynamic_linker" >&6; }
18714 test "$dynamic_linker" = no && can_build_shared=no
18716 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18717 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18718 hardcode_action_GCJ=
18719 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18720 test -n "$runpath_var GCJ" || \
18721 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18723 # We can hardcode non-existant directories.
18724 if test "$hardcode_direct_GCJ" != no &&
18725 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18726 # have to relink, otherwise we might link with an installed library
18727 # when we should be linking with a yet-to-be-installed one
18728 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18729 test "$hardcode_minus_L_GCJ" != no; then
18730 # Linking always hardcodes the temporary library directory.
18731 hardcode_action_GCJ=relink
18733 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18734 hardcode_action_GCJ=immediate
18737 # We cannot hardcode anything, or else we can only hardcode existing
18739 hardcode_action_GCJ=unsupported
18741 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18742 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18744 if test "$hardcode_action_GCJ" = relink; then
18745 # Fast installation is not supported
18746 enable_fast_install=no
18747 elif test "$shlibpath_overrides_runpath" = yes ||
18748 test "$enable_shared" = no; then
18749 # Fast installation is not necessary
18750 enable_fast_install=needless
18755 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18756 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18757 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18760 { echo "$as_me:$LINENO: result: yes" >&5
18761 echo "${ECHO_T}yes" >&6; }
18763 # FIXME - insert some real tests, host_os isn't really good enough
18766 if test -n "$STRIP" ; then
18767 striplib="$STRIP -x"
18768 { echo "$as_me:$LINENO: result: yes" >&5
18769 echo "${ECHO_T}yes" >&6; }
18771 { echo "$as_me:$LINENO: result: no" >&5
18772 echo "${ECHO_T}no" >&6; }
18776 { echo "$as_me:$LINENO: result: no" >&5
18777 echo "${ECHO_T}no" >&6; }
18782 if test "x$enable_dlopen" != xyes; then
18783 enable_dlopen=unknown
18784 enable_dlopen_self=unknown
18785 enable_dlopen_self_static=unknown
18792 lt_cv_dlopen="load_add_on"
18794 lt_cv_dlopen_self=yes
18798 lt_cv_dlopen="LoadLibrary"
18803 lt_cv_dlopen="dlopen"
18808 # if libdl is installed we need to link against it
18809 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18810 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 ac_check_lib_save_LIBS=$LIBS
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext &&
18855 $as_test_x conftest$ac_exeext; then
18856 ac_cv_lib_dl_dlopen=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_cv_lib_dl_dlopen=no
18864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18868 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18869 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18870 if test $ac_cv_lib_dl_dlopen = yes; then
18871 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18874 lt_cv_dlopen="dyld"
18876 lt_cv_dlopen_self=yes
18883 { echo "$as_me:$LINENO: checking for shl_load" >&5
18884 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18885 if test "${ac_cv_func_shl_load+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 cat >conftest.$ac_ext <<_ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18896 #define shl_load innocuous_shl_load
18898 /* System header to define __stub macros and hopefully few prototypes,
18899 which can conflict with char shl_load (); below.
18900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901 <limits.h> exists even on freestanding compilers. */
18904 # include <limits.h>
18906 # include <assert.h>
18911 /* Override any GCC internal prototype to avoid an error.
18912 Use char because int might match the return type of a GCC
18913 builtin and then its argument prototype would still apply. */
18918 /* The GNU C library defines this for functions which it implements
18919 to always fail with ENOSYS. Some functions are actually named
18920 something starting with __ and the normal name is an alias. */
18921 #if defined __stub_shl_load || defined __stub___shl_load
18928 return shl_load ();
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest$ac_exeext &&
18950 $as_test_x conftest$ac_exeext; then
18951 ac_cv_func_shl_load=yes
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18956 ac_cv_func_shl_load=no
18959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18960 conftest$ac_exeext conftest.$ac_ext
18962 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18963 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18964 if test $ac_cv_func_shl_load = yes; then
18965 lt_cv_dlopen="shl_load"
18967 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 ac_check_lib_save_LIBS=$LIBS
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18981 /* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18991 return shl_load ();
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19005 grep -v '^ *+' conftest.er1 >conftest.err
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest$ac_exeext &&
19013 $as_test_x conftest$ac_exeext; then
19014 ac_cv_lib_dld_shl_load=yes
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_lib_dld_shl_load=no
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19027 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19028 if test $ac_cv_lib_dld_shl_load = yes; then
19029 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19031 { echo "$as_me:$LINENO: checking for dlopen" >&5
19032 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
19033 if test "${ac_cv_func_dlopen+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 cat >conftest.$ac_ext <<_ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19044 #define dlopen innocuous_dlopen
19046 /* System header to define __stub macros and hopefully few prototypes,
19047 which can conflict with char dlopen (); below.
19048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049 <limits.h> exists even on freestanding compilers. */
19052 # include <limits.h>
19054 # include <assert.h>
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19066 /* The GNU C library defines this for functions which it implements
19067 to always fail with ENOSYS. Some functions are actually named
19068 something starting with __ and the normal name is an alias. */
19069 #if defined __stub_dlopen || defined __stub___dlopen
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_link") 2>conftest.er1
19090 grep -v '^ *+' conftest.er1 >conftest.err
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest$ac_exeext &&
19098 $as_test_x conftest$ac_exeext; then
19099 ac_cv_func_dlopen=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_func_dlopen=no
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19110 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19111 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19112 if test $ac_cv_func_dlopen = yes; then
19113 lt_cv_dlopen="dlopen"
19115 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 ac_check_lib_save_LIBS=$LIBS
19122 cat >conftest.$ac_ext <<_ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19129 /* Override any GCC internal prototype to avoid an error.
19130 Use char because int might match the return type of a GCC
19131 builtin and then its argument prototype would still apply. */
19144 rm -f conftest.$ac_objext conftest$ac_exeext
19145 if { (ac_try="$ac_link"
19146 case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_link") 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } && {
19158 test -z "$ac_c_werror_flag" ||
19159 test ! -s conftest.err
19160 } && test -s conftest$ac_exeext &&
19161 $as_test_x conftest$ac_exeext; then
19162 ac_cv_lib_dl_dlopen=yes
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 ac_cv_lib_dl_dlopen=no
19170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19171 conftest$ac_exeext conftest.$ac_ext
19172 LIBS=$ac_check_lib_save_LIBS
19174 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19175 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19176 if test $ac_cv_lib_dl_dlopen = yes; then
19177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19179 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19180 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 ac_check_lib_save_LIBS=$LIBS
19185 LIBS="-lsvld $LIBS"
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19193 /* Override any GCC internal prototype to avoid an error.
19194 Use char because int might match the return type of a GCC
19195 builtin and then its argument prototype would still apply. */
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (ac_try="$ac_link"
19210 case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_link") 2>conftest.er1
19217 grep -v '^ *+' conftest.er1 >conftest.err
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } && {
19222 test -z "$ac_c_werror_flag" ||
19223 test ! -s conftest.err
19224 } && test -s conftest$ac_exeext &&
19225 $as_test_x conftest$ac_exeext; then
19226 ac_cv_lib_svld_dlopen=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_cv_lib_svld_dlopen=no
19234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235 conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19238 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19239 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19240 if test $ac_cv_lib_svld_dlopen = yes; then
19241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19243 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19244 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19245 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 ac_check_lib_save_LIBS=$LIBS
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19257 /* Override any GCC internal prototype to avoid an error.
19258 Use char because int might match the return type of a GCC
19259 builtin and then its argument prototype would still apply. */
19267 return dld_link ();
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_link") 2>conftest.er1
19281 grep -v '^ *+' conftest.er1 >conftest.err
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } && {
19286 test -z "$ac_c_werror_flag" ||
19287 test ! -s conftest.err
19288 } && test -s conftest$ac_exeext &&
19289 $as_test_x conftest$ac_exeext; then
19290 ac_cv_lib_dld_dld_link=yes
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ac_cv_lib_dld_dld_link=no
19298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19299 conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19302 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19303 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19304 if test $ac_cv_lib_dld_dld_link = yes; then
19305 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19326 if test "x$lt_cv_dlopen" != xno; then
19332 case $lt_cv_dlopen in
19334 save_CPPFLAGS="$CPPFLAGS"
19335 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19337 save_LDFLAGS="$LDFLAGS"
19338 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19341 LIBS="$lt_cv_dlopen_libs $LIBS"
19343 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19344 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19345 if test "${lt_cv_dlopen_self+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 if test "$cross_compiling" = yes; then :
19349 lt_cv_dlopen_self=cross
19351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19352 lt_status=$lt_dlunknown
19353 cat > conftest.$ac_ext <<EOF
19354 #line 19354 "configure"
19355 #include "confdefs.h"
19364 # define LT_DLGLOBAL RTLD_GLOBAL
19367 # define LT_DLGLOBAL DL_GLOBAL
19369 # define LT_DLGLOBAL 0
19373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19374 find out it does not work in some platform. */
19375 #ifndef LT_DLLAZY_OR_NOW
19377 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19380 # define LT_DLLAZY_OR_NOW DL_LAZY
19383 # define LT_DLLAZY_OR_NOW RTLD_NOW
19386 # define LT_DLLAZY_OR_NOW DL_NOW
19388 # define LT_DLLAZY_OR_NOW 0
19396 extern "C" void exit (int);
19399 void fnord() { int i=42;}
19402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19403 int status = $lt_dlunknown;
19407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19408 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19409 /* dlclose (self); */
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416 (eval $ac_link) 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19420 (./conftest; exit; ) 2>/dev/null
19422 case x$lt_status in
19423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19425 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19428 # compilation failed
19429 lt_cv_dlopen_self=no
19436 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19437 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19439 if test "x$lt_cv_dlopen_self" = xyes; then
19440 LDFLAGS="$LDFLAGS $link_static_flag"
19441 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19442 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19443 if test "${lt_cv_dlopen_self_static+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 if test "$cross_compiling" = yes; then :
19447 lt_cv_dlopen_self_static=cross
19449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19450 lt_status=$lt_dlunknown
19451 cat > conftest.$ac_ext <<EOF
19452 #line 19452 "configure"
19453 #include "confdefs.h"
19462 # define LT_DLGLOBAL RTLD_GLOBAL
19465 # define LT_DLGLOBAL DL_GLOBAL
19467 # define LT_DLGLOBAL 0
19471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19472 find out it does not work in some platform. */
19473 #ifndef LT_DLLAZY_OR_NOW
19475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19478 # define LT_DLLAZY_OR_NOW DL_LAZY
19481 # define LT_DLLAZY_OR_NOW RTLD_NOW
19484 # define LT_DLLAZY_OR_NOW DL_NOW
19486 # define LT_DLLAZY_OR_NOW 0
19494 extern "C" void exit (int);
19497 void fnord() { int i=42;}
19500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19501 int status = $lt_dlunknown;
19505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19507 /* dlclose (self); */
19513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514 (eval $ac_link) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19518 (./conftest; exit; ) 2>/dev/null
19520 case x$lt_status in
19521 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19522 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19523 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19526 # compilation failed
19527 lt_cv_dlopen_self_static=no
19534 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19535 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19538 CPPFLAGS="$save_CPPFLAGS"
19539 LDFLAGS="$save_LDFLAGS"
19544 case $lt_cv_dlopen_self in
19545 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19546 *) enable_dlopen_self=unknown ;;
19549 case $lt_cv_dlopen_self_static in
19550 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19551 *) enable_dlopen_self_static=unknown ;;
19556 # The else clause should only fire when bootstrapping the
19557 # libtool distribution, otherwise you forgot to ship ltmain.sh
19558 # with your package, and you will get complaints that there are
19559 # no rules to generate ltmain.sh.
19560 if test -f "$ltmain"; then
19561 # See if we are running on zsh, and set the options which allow our commands through
19562 # without removal of \ escapes.
19563 if test -n "${ZSH_VERSION+set}" ; then
19564 setopt NO_GLOB_SUBST
19566 # Now quote all the things that may contain metacharacters while being
19567 # careful not to overquote the AC_SUBSTed values. We take copies of the
19568 # variables and quote the copies for generation of the libtool script.
19569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19573 deplibs_check_method reload_flag reload_cmds need_locks \
19574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19575 lt_cv_sys_global_symbol_to_c_name_address \
19576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19577 old_postinstall_cmds old_postuninstall_cmds \
19581 lt_prog_compiler_wl_GCJ \
19582 lt_prog_compiler_pic_GCJ \
19583 lt_prog_compiler_static_GCJ \
19584 lt_prog_compiler_no_builtin_flag_GCJ \
19585 export_dynamic_flag_spec_GCJ \
19586 thread_safe_flag_spec_GCJ \
19587 whole_archive_flag_spec_GCJ \
19588 enable_shared_with_static_runtimes_GCJ \
19589 old_archive_cmds_GCJ \
19590 old_archive_from_new_cmds_GCJ \
19591 predep_objects_GCJ \
19592 postdep_objects_GCJ \
19595 compiler_lib_search_path_GCJ \
19597 archive_expsym_cmds_GCJ \
19598 postinstall_cmds_GCJ \
19599 postuninstall_cmds_GCJ \
19600 old_archive_from_expsyms_cmds_GCJ \
19601 allow_undefined_flag_GCJ \
19602 no_undefined_flag_GCJ \
19603 export_symbols_cmds_GCJ \
19604 hardcode_libdir_flag_spec_GCJ \
19605 hardcode_libdir_flag_spec_ld_GCJ \
19606 hardcode_libdir_separator_GCJ \
19607 hardcode_automatic_GCJ \
19609 module_expsym_cmds_GCJ \
19610 lt_cv_prog_compiler_c_o_GCJ \
19611 exclude_expsyms_GCJ \
19612 include_expsyms_GCJ; do
19615 old_archive_cmds_GCJ | \
19616 old_archive_from_new_cmds_GCJ | \
19617 archive_cmds_GCJ | \
19618 archive_expsym_cmds_GCJ | \
19619 module_cmds_GCJ | \
19620 module_expsym_cmds_GCJ | \
19621 old_archive_from_expsyms_cmds_GCJ | \
19622 export_symbols_cmds_GCJ | \
19623 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19624 postinstall_cmds | postuninstall_cmds | \
19625 old_postinstall_cmds | old_postuninstall_cmds | \
19626 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19627 # Double-quote double-evaled strings.
19628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19637 *'\$0 --fallback-echo"')
19638 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19644 cat <<__EOF__ >> "$cfgfile"
19645 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19647 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19649 # Shell to use when invoking shell scripts.
19652 # Whether or not to build shared libraries.
19653 build_libtool_libs=$enable_shared
19655 # Whether or not to build static libraries.
19656 build_old_libs=$enable_static
19658 # Whether or not to add -lc for building shared libraries.
19659 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19661 # Whether or not to disallow shared libs when runtime libs are static
19662 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19664 # Whether or not to optimize for fast installation.
19665 fast_install=$enable_fast_install
19668 host_alias=$host_alias
19671 # An echo program that does not interpret backslashes.
19676 AR_FLAGS=$lt_AR_FLAGS
19681 # A language-specific compiler.
19682 CC=$lt_compiler_GCJ
19684 # Is the compiler the GNU C compiler?
19690 # The linker used to build libraries.
19693 # Whether we need hard or soft links.
19696 # A BSD-compatible nm program.
19699 # A symbol stripping program
19702 # Used to examine libraries when file_magic_cmd begins "file"
19703 MAGIC_CMD=$MAGIC_CMD
19705 # Used on cygwin: DLL creation program.
19708 # Used on cygwin: object dumper.
19711 # Used on cygwin: assembler.
19714 # The name of the directory that contains temporary libtool files.
19717 # How to create reloadable object files.
19718 reload_flag=$lt_reload_flag
19719 reload_cmds=$lt_reload_cmds
19721 # How to pass a linker flag through the compiler.
19722 wl=$lt_lt_prog_compiler_wl_GCJ
19724 # Object file suffix (normally "o").
19725 objext="$ac_objext"
19727 # Old archive suffix (normally "a").
19730 # Shared library suffix (normally ".so").
19731 shrext_cmds='$shrext_cmds'
19733 # Executable file suffix (normally "").
19736 # Additional compiler flags for building library objects.
19737 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19740 # What is the maximum length of a command?
19741 max_cmd_len=$lt_cv_sys_max_cmd_len
19743 # Does compiler simultaneously support -c and -o options?
19744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19746 # Must we lock files when doing compilation ?
19747 need_locks=$lt_need_locks
19749 # Do we need the lib prefix for modules?
19750 need_lib_prefix=$need_lib_prefix
19752 # Do we need a version for libraries?
19753 need_version=$need_version
19755 # Whether dlopen is supported.
19756 dlopen_support=$enable_dlopen
19758 # Whether dlopen of programs is supported.
19759 dlopen_self=$enable_dlopen_self
19761 # Whether dlopen of statically linked programs is supported.
19762 dlopen_self_static=$enable_dlopen_self_static
19764 # Compiler flag to prevent dynamic linking.
19765 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19767 # Compiler flag to turn off builtin functions.
19768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19770 # Compiler flag to allow reflexive dlopens.
19771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19773 # Compiler flag to generate shared objects directly from archives.
19774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19776 # Compiler flag to generate thread-safe objects.
19777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19779 # Library versioning type.
19780 version_type=$version_type
19782 # Format of library name prefix.
19783 libname_spec=$lt_libname_spec
19785 # List of archive names. First name is the real one, the rest are links.
19786 # The last name is the one that the linker finds with -lNAME.
19787 library_names_spec=$lt_library_names_spec
19789 # The coded name of the library, if different from the real name.
19790 soname_spec=$lt_soname_spec
19792 # Commands used to build and install an old-style archive.
19794 old_archive_cmds=$lt_old_archive_cmds_GCJ
19795 old_postinstall_cmds=$lt_old_postinstall_cmds
19796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19798 # Create an old-style archive from a shared archive.
19799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19801 # Create a temporary old-style archive to link instead of a shared archive.
19802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19804 # Commands used to build and install a shared archive.
19805 archive_cmds=$lt_archive_cmds_GCJ
19806 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19807 postinstall_cmds=$lt_postinstall_cmds
19808 postuninstall_cmds=$lt_postuninstall_cmds
19810 # Commands used to build a loadable module (assumed same as above if empty)
19811 module_cmds=$lt_module_cmds_GCJ
19812 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19814 # Commands to strip libraries.
19815 old_striplib=$lt_old_striplib
19816 striplib=$lt_striplib
19818 # Dependencies to place before the objects being linked to create a
19820 predep_objects=$lt_predep_objects_GCJ
19822 # Dependencies to place after the objects being linked to create a
19824 postdep_objects=$lt_postdep_objects_GCJ
19826 # Dependencies to place before the objects being linked to create a
19828 predeps=$lt_predeps_GCJ
19830 # Dependencies to place after the objects being linked to create a
19832 postdeps=$lt_postdeps_GCJ
19834 # The library search path used internally by the compiler when linking
19835 # a shared library.
19836 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19838 # Method to check whether dependent libraries are shared objects.
19839 deplibs_check_method=$lt_deplibs_check_method
19841 # Command to use when deplibs_check_method == file_magic.
19842 file_magic_cmd=$lt_file_magic_cmd
19844 # Flag that allows shared libraries with undefined symbols to be built.
19845 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19847 # Flag that forces no undefined symbols.
19848 no_undefined_flag=$lt_no_undefined_flag_GCJ
19850 # Commands used to finish a libtool library installation in a directory.
19851 finish_cmds=$lt_finish_cmds
19853 # Same as above, but a single script fragment to be evaled but not shown.
19854 finish_eval=$lt_finish_eval
19856 # Take the output of nm and produce a listing of raw symbols and C names.
19857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19859 # Transform the output of nm in a proper C declaration
19860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19862 # Transform the output of nm in a C name address pair
19863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19865 # This is the shared library runtime path variable.
19866 runpath_var=$runpath_var
19868 # This is the shared library path variable.
19869 shlibpath_var=$shlibpath_var
19871 # Is shlibpath searched before the hard-coded library search path?
19872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19874 # How to hardcode a shared library path into an executable.
19875 hardcode_action=$hardcode_action_GCJ
19877 # Whether we should hardcode library paths into libraries.
19878 hardcode_into_libs=$hardcode_into_libs
19880 # Flag to hardcode \$libdir into a binary during linking.
19881 # This must work even if \$libdir does not exist.
19882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19884 # If ld is used when linking, flag to hardcode \$libdir into
19885 # a binary during linking. This must work even if \$libdir does
19887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19889 # Whether we need a single -rpath flag with a separated argument.
19890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19893 # resulting binary.
19894 hardcode_direct=$hardcode_direct_GCJ
19896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19897 # resulting binary.
19898 hardcode_minus_L=$hardcode_minus_L_GCJ
19900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19901 # the resulting binary.
19902 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19904 # Set to yes if building a shared library automatically hardcodes DIR into the library
19905 # and all subsequent libraries and executables linked against it.
19906 hardcode_automatic=$hardcode_automatic_GCJ
19908 # Variables whose values should be saved in libtool wrapper scripts and
19909 # restored at relink time.
19910 variables_saved_for_relink="$variables_saved_for_relink"
19912 # Whether libtool must link a program against all its dependency libraries.
19913 link_all_deplibs=$link_all_deplibs_GCJ
19915 # Compile-time system search path for libraries
19916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19918 # Run-time system search path for libraries
19919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19921 # Fix the shell variable \$srcfile for the compiler.
19922 fix_srcfile_path="$fix_srcfile_path_GCJ"
19924 # Set to yes if exported symbols are required.
19925 always_export_symbols=$always_export_symbols_GCJ
19927 # The commands to list exported symbols.
19928 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19930 # The commands to extract the exported symbol list from a shared archive.
19931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19933 # Symbols that should not be listed in the preloaded symbols.
19934 exclude_expsyms=$lt_exclude_expsyms_GCJ
19936 # Symbols that must always be exported.
19937 include_expsyms=$lt_include_expsyms_GCJ
19939 # ### END LIBTOOL TAG CONFIG: $tagname
19945 # If there is no Makefile yet, we rely on a make rule to execute
19946 # `config.status --recheck' to rerun these tests and create the
19947 # libtool script then.
19948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19949 if test -f "$ltmain_in"; then
19950 test -f Makefile && make "$ltmain"
19956 ac_cpp='$CPP $CPPFLAGS'
19957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19971 # Source file extension for RC test sources.
19974 # Object file extension for compiled RC test sources.
19978 # Code to be used in simple compile tests
19979 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19981 # Code to be used in simple link tests
19982 lt_simple_link_test_code="$lt_simple_compile_test_code"
19984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19986 # If no C compiler was specified, use CC.
19989 # Allow CC to be a program name with arguments.
19993 # Allow CC to be a program name with arguments.
19998 lt_cv_prog_compiler_c_o_RC=yes
20000 # The else clause should only fire when bootstrapping the
20001 # libtool distribution, otherwise you forgot to ship ltmain.sh
20002 # with your package, and you will get complaints that there are
20003 # no rules to generate ltmain.sh.
20004 if test -f "$ltmain"; then
20005 # See if we are running on zsh, and set the options which allow our commands through
20006 # without removal of \ escapes.
20007 if test -n "${ZSH_VERSION+set}" ; then
20008 setopt NO_GLOB_SUBST
20010 # Now quote all the things that may contain metacharacters while being
20011 # careful not to overquote the AC_SUBSTed values. We take copies of the
20012 # variables and quote the copies for generation of the libtool script.
20013 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20015 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20016 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20017 deplibs_check_method reload_flag reload_cmds need_locks \
20018 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20019 lt_cv_sys_global_symbol_to_c_name_address \
20020 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20021 old_postinstall_cmds old_postuninstall_cmds \
20025 lt_prog_compiler_wl_RC \
20026 lt_prog_compiler_pic_RC \
20027 lt_prog_compiler_static_RC \
20028 lt_prog_compiler_no_builtin_flag_RC \
20029 export_dynamic_flag_spec_RC \
20030 thread_safe_flag_spec_RC \
20031 whole_archive_flag_spec_RC \
20032 enable_shared_with_static_runtimes_RC \
20033 old_archive_cmds_RC \
20034 old_archive_from_new_cmds_RC \
20035 predep_objects_RC \
20036 postdep_objects_RC \
20039 compiler_lib_search_path_RC \
20041 archive_expsym_cmds_RC \
20042 postinstall_cmds_RC \
20043 postuninstall_cmds_RC \
20044 old_archive_from_expsyms_cmds_RC \
20045 allow_undefined_flag_RC \
20046 no_undefined_flag_RC \
20047 export_symbols_cmds_RC \
20048 hardcode_libdir_flag_spec_RC \
20049 hardcode_libdir_flag_spec_ld_RC \
20050 hardcode_libdir_separator_RC \
20051 hardcode_automatic_RC \
20053 module_expsym_cmds_RC \
20054 lt_cv_prog_compiler_c_o_RC \
20055 exclude_expsyms_RC \
20056 include_expsyms_RC; do
20059 old_archive_cmds_RC | \
20060 old_archive_from_new_cmds_RC | \
20061 archive_cmds_RC | \
20062 archive_expsym_cmds_RC | \
20064 module_expsym_cmds_RC | \
20065 old_archive_from_expsyms_cmds_RC | \
20066 export_symbols_cmds_RC | \
20067 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20068 postinstall_cmds | postuninstall_cmds | \
20069 old_postinstall_cmds | old_postuninstall_cmds | \
20070 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20071 # Double-quote double-evaled strings.
20072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20081 *'\$0 --fallback-echo"')
20082 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20088 cat <<__EOF__ >> "$cfgfile"
20089 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20091 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20093 # Shell to use when invoking shell scripts.
20096 # Whether or not to build shared libraries.
20097 build_libtool_libs=$enable_shared
20099 # Whether or not to build static libraries.
20100 build_old_libs=$enable_static
20102 # Whether or not to add -lc for building shared libraries.
20103 build_libtool_need_lc=$archive_cmds_need_lc_RC
20105 # Whether or not to disallow shared libs when runtime libs are static
20106 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20108 # Whether or not to optimize for fast installation.
20109 fast_install=$enable_fast_install
20112 host_alias=$host_alias
20115 # An echo program that does not interpret backslashes.
20120 AR_FLAGS=$lt_AR_FLAGS
20125 # A language-specific compiler.
20128 # Is the compiler the GNU C compiler?
20134 # The linker used to build libraries.
20137 # Whether we need hard or soft links.
20140 # A BSD-compatible nm program.
20143 # A symbol stripping program
20146 # Used to examine libraries when file_magic_cmd begins "file"
20147 MAGIC_CMD=$MAGIC_CMD
20149 # Used on cygwin: DLL creation program.
20152 # Used on cygwin: object dumper.
20155 # Used on cygwin: assembler.
20158 # The name of the directory that contains temporary libtool files.
20161 # How to create reloadable object files.
20162 reload_flag=$lt_reload_flag
20163 reload_cmds=$lt_reload_cmds
20165 # How to pass a linker flag through the compiler.
20166 wl=$lt_lt_prog_compiler_wl_RC
20168 # Object file suffix (normally "o").
20169 objext="$ac_objext"
20171 # Old archive suffix (normally "a").
20174 # Shared library suffix (normally ".so").
20175 shrext_cmds='$shrext_cmds'
20177 # Executable file suffix (normally "").
20180 # Additional compiler flags for building library objects.
20181 pic_flag=$lt_lt_prog_compiler_pic_RC
20184 # What is the maximum length of a command?
20185 max_cmd_len=$lt_cv_sys_max_cmd_len
20187 # Does compiler simultaneously support -c and -o options?
20188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20190 # Must we lock files when doing compilation ?
20191 need_locks=$lt_need_locks
20193 # Do we need the lib prefix for modules?
20194 need_lib_prefix=$need_lib_prefix
20196 # Do we need a version for libraries?
20197 need_version=$need_version
20199 # Whether dlopen is supported.
20200 dlopen_support=$enable_dlopen
20202 # Whether dlopen of programs is supported.
20203 dlopen_self=$enable_dlopen_self
20205 # Whether dlopen of statically linked programs is supported.
20206 dlopen_self_static=$enable_dlopen_self_static
20208 # Compiler flag to prevent dynamic linking.
20209 link_static_flag=$lt_lt_prog_compiler_static_RC
20211 # Compiler flag to turn off builtin functions.
20212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20214 # Compiler flag to allow reflexive dlopens.
20215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20217 # Compiler flag to generate shared objects directly from archives.
20218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20220 # Compiler flag to generate thread-safe objects.
20221 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20223 # Library versioning type.
20224 version_type=$version_type
20226 # Format of library name prefix.
20227 libname_spec=$lt_libname_spec
20229 # List of archive names. First name is the real one, the rest are links.
20230 # The last name is the one that the linker finds with -lNAME.
20231 library_names_spec=$lt_library_names_spec
20233 # The coded name of the library, if different from the real name.
20234 soname_spec=$lt_soname_spec
20236 # Commands used to build and install an old-style archive.
20238 old_archive_cmds=$lt_old_archive_cmds_RC
20239 old_postinstall_cmds=$lt_old_postinstall_cmds
20240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20242 # Create an old-style archive from a shared archive.
20243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20245 # Create a temporary old-style archive to link instead of a shared archive.
20246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20248 # Commands used to build and install a shared archive.
20249 archive_cmds=$lt_archive_cmds_RC
20250 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20251 postinstall_cmds=$lt_postinstall_cmds
20252 postuninstall_cmds=$lt_postuninstall_cmds
20254 # Commands used to build a loadable module (assumed same as above if empty)
20255 module_cmds=$lt_module_cmds_RC
20256 module_expsym_cmds=$lt_module_expsym_cmds_RC
20258 # Commands to strip libraries.
20259 old_striplib=$lt_old_striplib
20260 striplib=$lt_striplib
20262 # Dependencies to place before the objects being linked to create a
20264 predep_objects=$lt_predep_objects_RC
20266 # Dependencies to place after the objects being linked to create a
20268 postdep_objects=$lt_postdep_objects_RC
20270 # Dependencies to place before the objects being linked to create a
20272 predeps=$lt_predeps_RC
20274 # Dependencies to place after the objects being linked to create a
20276 postdeps=$lt_postdeps_RC
20278 # The library search path used internally by the compiler when linking
20279 # a shared library.
20280 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20282 # Method to check whether dependent libraries are shared objects.
20283 deplibs_check_method=$lt_deplibs_check_method
20285 # Command to use when deplibs_check_method == file_magic.
20286 file_magic_cmd=$lt_file_magic_cmd
20288 # Flag that allows shared libraries with undefined symbols to be built.
20289 allow_undefined_flag=$lt_allow_undefined_flag_RC
20291 # Flag that forces no undefined symbols.
20292 no_undefined_flag=$lt_no_undefined_flag_RC
20294 # Commands used to finish a libtool library installation in a directory.
20295 finish_cmds=$lt_finish_cmds
20297 # Same as above, but a single script fragment to be evaled but not shown.
20298 finish_eval=$lt_finish_eval
20300 # Take the output of nm and produce a listing of raw symbols and C names.
20301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20303 # Transform the output of nm in a proper C declaration
20304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20306 # Transform the output of nm in a C name address pair
20307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20309 # This is the shared library runtime path variable.
20310 runpath_var=$runpath_var
20312 # This is the shared library path variable.
20313 shlibpath_var=$shlibpath_var
20315 # Is shlibpath searched before the hard-coded library search path?
20316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20318 # How to hardcode a shared library path into an executable.
20319 hardcode_action=$hardcode_action_RC
20321 # Whether we should hardcode library paths into libraries.
20322 hardcode_into_libs=$hardcode_into_libs
20324 # Flag to hardcode \$libdir into a binary during linking.
20325 # This must work even if \$libdir does not exist.
20326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20328 # If ld is used when linking, flag to hardcode \$libdir into
20329 # a binary during linking. This must work even if \$libdir does
20331 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20333 # Whether we need a single -rpath flag with a separated argument.
20334 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20336 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20337 # resulting binary.
20338 hardcode_direct=$hardcode_direct_RC
20340 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20341 # resulting binary.
20342 hardcode_minus_L=$hardcode_minus_L_RC
20344 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20345 # the resulting binary.
20346 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20348 # Set to yes if building a shared library automatically hardcodes DIR into the library
20349 # and all subsequent libraries and executables linked against it.
20350 hardcode_automatic=$hardcode_automatic_RC
20352 # Variables whose values should be saved in libtool wrapper scripts and
20353 # restored at relink time.
20354 variables_saved_for_relink="$variables_saved_for_relink"
20356 # Whether libtool must link a program against all its dependency libraries.
20357 link_all_deplibs=$link_all_deplibs_RC
20359 # Compile-time system search path for libraries
20360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20362 # Run-time system search path for libraries
20363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20365 # Fix the shell variable \$srcfile for the compiler.
20366 fix_srcfile_path="$fix_srcfile_path_RC"
20368 # Set to yes if exported symbols are required.
20369 always_export_symbols=$always_export_symbols_RC
20371 # The commands to list exported symbols.
20372 export_symbols_cmds=$lt_export_symbols_cmds_RC
20374 # The commands to extract the exported symbol list from a shared archive.
20375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20377 # Symbols that should not be listed in the preloaded symbols.
20378 exclude_expsyms=$lt_exclude_expsyms_RC
20380 # Symbols that must always be exported.
20381 include_expsyms=$lt_include_expsyms_RC
20383 # ### END LIBTOOL TAG CONFIG: $tagname
20389 # If there is no Makefile yet, we rely on a make rule to execute
20390 # `config.status --recheck' to rerun these tests and create the
20391 # libtool script then.
20392 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20393 if test -f "$ltmain_in"; then
20394 test -f Makefile && make "$ltmain"
20400 ac_cpp='$CPP $CPPFLAGS'
20401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20411 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20412 { (exit 1); exit 1; }; }
20416 # Append the new tag name to the list of available tags.
20417 if test -n "$tagname" ; then
20418 available_tags="$available_tags $tagname"
20424 # Now substitute the updated list of available tags.
20425 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20426 mv "${ofile}T" "$ofile"
20430 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20431 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20432 { (exit 1); exit 1; }; }
20438 # This can be used to rebuild libtool when needed
20439 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20441 # Always use our own libtool.
20442 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20444 # Prevent multiple expansion
20466 # We need to compile and run a program on the build machine.
20467 { echo "$as_me:$LINENO: checking for cc for build" >&5
20468 echo $ECHO_N "checking for cc for build... $ECHO_C" >&6; }
20469 if test "$cross_compiling" = "yes"; then
20470 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
20472 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
20474 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
20475 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
20479 # Set some internal variables depending on the platform for later use.
20483 have_w32_system=yes
20494 # Note, that autogen.sh greps for the next line.
20497 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20498 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
20499 # Check whether --enable-nls was given.
20500 if test "${enable_nls+set}" = set; then
20501 enableval=$enable_nls; USE_NLS=$enableval
20506 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
20507 echo "${ECHO_T}$USE_NLS" >&6; }
20514 # Prepare PATH_SEPARATOR.
20515 # The user is always right.
20516 if test "${PATH_SEPARATOR+set}" != set; then
20517 echo "#! /bin/sh" >conf$$.sh
20518 echo "exit 0" >>conf$$.sh
20520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20528 # Find out how to test for executable files. Don't use a zero-byte file,
20529 # as systems may use methods other than mode bits to determine executability.
20530 cat >conf$$.file <<_ASEOF
20534 chmod +x conf$$.file
20535 if test -x conf$$.file >/dev/null 2>&1; then
20536 ac_executable_p="test -x"
20538 ac_executable_p="test -f"
20542 # Extract the first word of "msgfmt", so it can be a program name with args.
20543 set dummy msgfmt; ac_word=$2
20544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20546 if test "${ac_cv_path_MSGFMT+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20554 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20555 for ac_dir in $PATH; do
20557 test -z "$ac_dir" && ac_dir=.
20558 for ac_exec_ext in '' $ac_executable_extensions; do
20559 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20560 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20561 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20562 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20563 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20570 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20574 MSGFMT="$ac_cv_path_MSGFMT"
20575 if test "$MSGFMT" != ":"; then
20576 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20577 echo "${ECHO_T}$MSGFMT" >&6; }
20579 { echo "$as_me:$LINENO: result: no" >&5
20580 echo "${ECHO_T}no" >&6; }
20583 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20584 set dummy gmsgfmt; ac_word=$2
20585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20587 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20596 for as_dir in $PATH
20599 test -z "$as_dir" && as_dir=.
20600 for ac_exec_ext in '' $ac_executable_extensions; do
20601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20602 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20610 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20614 GMSGFMT=$ac_cv_path_GMSGFMT
20615 if test -n "$GMSGFMT"; then
20616 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20617 echo "${ECHO_T}$GMSGFMT" >&6; }
20619 { echo "$as_me:$LINENO: result: no" >&5
20620 echo "${ECHO_T}no" >&6; }
20625 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20626 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
20627 *) MSGFMT_015=$MSGFMT ;;
20630 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20631 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
20632 *) GMSGFMT_015=$GMSGFMT ;;
20637 # Prepare PATH_SEPARATOR.
20638 # The user is always right.
20639 if test "${PATH_SEPARATOR+set}" != set; then
20640 echo "#! /bin/sh" >conf$$.sh
20641 echo "exit 0" >>conf$$.sh
20643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20651 # Find out how to test for executable files. Don't use a zero-byte file,
20652 # as systems may use methods other than mode bits to determine executability.
20653 cat >conf$$.file <<_ASEOF
20657 chmod +x conf$$.file
20658 if test -x conf$$.file >/dev/null 2>&1; then
20659 ac_executable_p="test -x"
20661 ac_executable_p="test -f"
20665 # Extract the first word of "xgettext", so it can be a program name with args.
20666 set dummy xgettext; ac_word=$2
20667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20669 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 case "$XGETTEXT" in
20674 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20677 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20678 for ac_dir in $PATH; do
20680 test -z "$ac_dir" && ac_dir=.
20681 for ac_exec_ext in '' $ac_executable_extensions; do
20682 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20683 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20684 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20685 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20686 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20693 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20697 XGETTEXT="$ac_cv_path_XGETTEXT"
20698 if test "$XGETTEXT" != ":"; then
20699 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20700 echo "${ECHO_T}$XGETTEXT" >&6; }
20702 { echo "$as_me:$LINENO: result: no" >&5
20703 echo "${ECHO_T}no" >&6; }
20708 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20709 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
20710 *) XGETTEXT_015=$XGETTEXT ;;
20715 # Prepare PATH_SEPARATOR.
20716 # The user is always right.
20717 if test "${PATH_SEPARATOR+set}" != set; then
20718 echo "#! /bin/sh" >conf$$.sh
20719 echo "exit 0" >>conf$$.sh
20721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20729 # Find out how to test for executable files. Don't use a zero-byte file,
20730 # as systems may use methods other than mode bits to determine executability.
20731 cat >conf$$.file <<_ASEOF
20735 chmod +x conf$$.file
20736 if test -x conf$$.file >/dev/null 2>&1; then
20737 ac_executable_p="test -x"
20739 ac_executable_p="test -f"
20743 # Extract the first word of "msgmerge", so it can be a program name with args.
20744 set dummy msgmerge; ac_word=$2
20745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20747 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 case "$MSGMERGE" in
20752 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20755 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20756 for ac_dir in $PATH; do
20758 test -z "$ac_dir" && ac_dir=.
20759 for ac_exec_ext in '' $ac_executable_extensions; do
20760 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20761 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20762 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20763 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20770 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20774 MSGMERGE="$ac_cv_path_MSGMERGE"
20775 if test "$MSGMERGE" != ":"; then
20776 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20777 echo "${ECHO_T}$MSGMERGE" >&6; }
20779 { echo "$as_me:$LINENO: result: no" >&5
20780 echo "${ECHO_T}no" >&6; }
20784 test -n "$localedir" || localedir='${datadir}/locale'
20787 ac_config_commands="$ac_config_commands po-directories"
20791 if test "X$prefix" = "XNONE"; then
20792 acl_final_prefix="$ac_default_prefix"
20794 acl_final_prefix="$prefix"
20796 if test "X$exec_prefix" = "XNONE"; then
20797 acl_final_exec_prefix='${prefix}'
20799 acl_final_exec_prefix="$exec_prefix"
20801 acl_save_prefix="$prefix"
20802 prefix="$acl_final_prefix"
20803 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20804 prefix="$acl_save_prefix"
20807 # Check whether --with-gnu-ld was given.
20808 if test "${with_gnu_ld+set}" = set; then
20809 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20814 # Prepare PATH_SEPARATOR.
20815 # The user is always right.
20816 if test "${PATH_SEPARATOR+set}" != set; then
20817 echo "#! /bin/sh" >conf$$.sh
20818 echo "exit 0" >>conf$$.sh
20820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20828 if test "$GCC" = yes; then
20829 # Check if gcc -print-prog-name=ld gives a path.
20830 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20831 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
20834 # gcc leaves a trailing carriage return which upsets mingw
20835 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20837 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20840 # Accept absolute paths.
20841 [\\/]* | [A-Za-z]:[\\/]*)
20842 re_direlt='/[^/][^/]*/\.\./'
20843 # Canonicalize the path of ld
20844 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20845 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20846 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20848 test -z "$LD" && LD="$ac_prog"
20851 # If it fails, then pretend we aren't using GCC.
20855 # If it is relative, then search for the first ld in PATH.
20856 with_gnu_ld=unknown
20859 elif test "$with_gnu_ld" = yes; then
20860 { echo "$as_me:$LINENO: checking for GNU ld" >&5
20861 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
20863 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20864 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
20866 if test "${acl_cv_path_LD+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 if test -z "$LD"; then
20870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20871 for ac_dir in $PATH; do
20872 test -z "$ac_dir" && ac_dir=.
20873 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20874 acl_cv_path_LD="$ac_dir/$ac_prog"
20875 # Check to see if the program is GNU ld. I'd rather use --version,
20876 # but apparently some GNU ld's only accept -v.
20877 # Break only if it was the GNU/non-GNU ld that we prefer.
20878 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20879 *GNU* | *'with BFD'*)
20880 test "$with_gnu_ld" != no && break ;;
20882 test "$with_gnu_ld" != yes && break ;;
20888 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20892 LD="$acl_cv_path_LD"
20893 if test -n "$LD"; then
20894 { echo "$as_me:$LINENO: result: $LD" >&5
20895 echo "${ECHO_T}$LD" >&6; }
20897 { echo "$as_me:$LINENO: result: no" >&5
20898 echo "${ECHO_T}no" >&6; }
20900 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20901 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20902 { (exit 1); exit 1; }; }
20903 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20904 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
20905 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20909 case `$LD -v 2>&1 </dev/null` in
20910 *GNU* | *'with BFD'*)
20911 acl_cv_prog_gnu_ld=yes ;;
20913 acl_cv_prog_gnu_ld=no ;;
20916 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20917 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
20918 with_gnu_ld=$acl_cv_prog_gnu_ld
20923 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20924 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
20925 if test "${acl_cv_rpath+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20930 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20932 rm -f ./conftest.sh
20936 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20937 echo "${ECHO_T}$acl_cv_rpath" >&6; }
20939 libext="$acl_cv_libext"
20940 shlibext="$acl_cv_shlibext"
20941 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20942 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20943 hardcode_direct="$acl_cv_hardcode_direct"
20944 hardcode_minus_L="$acl_cv_hardcode_minus_L"
20945 # Check whether --enable-rpath was given.
20946 if test "${enable_rpath+set}" = set; then
20947 enableval=$enable_rpath; :
20955 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20956 if test -n "$searchpath"; then
20957 acl_save_IFS="${IFS= }"; IFS=":"
20958 for searchdir in $searchpath; do
20959 if test -d "$searchdir"; then
20960 case "$searchdir" in
20961 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20962 *) searchdir=`cd "$searchdir" && pwd`
20963 case "$searchdir" in
20964 */lib64 ) acl_libdirstem=lib64 ;;
20969 IFS="$acl_save_IFS"
20981 acl_save_prefix="$prefix"
20982 prefix="$acl_final_prefix"
20983 acl_save_exec_prefix="$exec_prefix"
20984 exec_prefix="$acl_final_exec_prefix"
20986 eval additional_includedir=\"$includedir\"
20987 eval additional_libdir=\"$libdir\"
20989 exec_prefix="$acl_save_exec_prefix"
20990 prefix="$acl_save_prefix"
20993 # Check whether --with-libiconv-prefix was given.
20994 if test "${with_libiconv_prefix+set}" = set; then
20995 withval=$with_libiconv_prefix;
20996 if test "X$withval" = "Xno"; then
20999 if test "X$withval" = "X"; then
21001 acl_save_prefix="$prefix"
21002 prefix="$acl_final_prefix"
21003 acl_save_exec_prefix="$exec_prefix"
21004 exec_prefix="$acl_final_exec_prefix"
21006 eval additional_includedir=\"$includedir\"
21007 eval additional_libdir=\"$libdir\"
21009 exec_prefix="$acl_save_exec_prefix"
21010 prefix="$acl_save_prefix"
21013 additional_includedir="$withval/include"
21014 additional_libdir="$withval/$acl_libdirstem"
21025 names_already_handled=
21026 names_next_round='iconv '
21027 while test -n "$names_next_round"; do
21028 names_this_round="$names_next_round"
21030 for name in $names_this_round; do
21032 for n in $names_already_handled; do
21033 if test "$n" = "$name"; then
21034 already_handled=yes
21038 if test -z "$already_handled"; then
21039 names_already_handled="$names_already_handled $name"
21040 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21041 eval value=\"\$HAVE_LIB$uppername\"
21042 if test -n "$value"; then
21043 if test "$value" = yes; then
21044 eval value=\"\$LIB$uppername\"
21045 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21046 eval value=\"\$LTLIB$uppername\"
21047 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21056 if test $use_additional = yes; then
21057 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21058 found_dir="$additional_libdir"
21059 found_so="$additional_libdir/lib$name.$shlibext"
21060 if test -f "$additional_libdir/lib$name.la"; then
21061 found_la="$additional_libdir/lib$name.la"
21064 if test -f "$additional_libdir/lib$name.$libext"; then
21065 found_dir="$additional_libdir"
21066 found_a="$additional_libdir/lib$name.$libext"
21067 if test -f "$additional_libdir/lib$name.la"; then
21068 found_la="$additional_libdir/lib$name.la"
21073 if test "X$found_dir" = "X"; then
21074 for x in $LDFLAGS $LTLIBICONV; do
21076 acl_save_prefix="$prefix"
21077 prefix="$acl_final_prefix"
21078 acl_save_exec_prefix="$exec_prefix"
21079 exec_prefix="$acl_final_exec_prefix"
21081 exec_prefix="$acl_save_exec_prefix"
21082 prefix="$acl_save_prefix"
21086 dir=`echo "X$x" | sed -e 's/^X-L//'`
21087 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21089 found_so="$dir/lib$name.$shlibext"
21090 if test -f "$dir/lib$name.la"; then
21091 found_la="$dir/lib$name.la"
21094 if test -f "$dir/lib$name.$libext"; then
21096 found_a="$dir/lib$name.$libext"
21097 if test -f "$dir/lib$name.la"; then
21098 found_la="$dir/lib$name.la"
21104 if test "X$found_dir" != "X"; then
21109 if test "X$found_dir" != "X"; then
21110 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21111 if test "X$found_so" != "X"; then
21112 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21116 for x in $ltrpathdirs; do
21117 if test "X$x" = "X$found_dir"; then
21122 if test -z "$haveit"; then
21123 ltrpathdirs="$ltrpathdirs $found_dir"
21125 if test "$hardcode_direct" = yes; then
21126 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21128 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21129 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21131 for x in $rpathdirs; do
21132 if test "X$x" = "X$found_dir"; then
21137 if test -z "$haveit"; then
21138 rpathdirs="$rpathdirs $found_dir"
21142 for x in $LDFLAGS $LIBICONV; do
21144 acl_save_prefix="$prefix"
21145 prefix="$acl_final_prefix"
21146 acl_save_exec_prefix="$exec_prefix"
21147 exec_prefix="$acl_final_exec_prefix"
21149 exec_prefix="$acl_save_exec_prefix"
21150 prefix="$acl_save_prefix"
21152 if test "X$x" = "X-L$found_dir"; then
21157 if test -z "$haveit"; then
21158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21160 if test "$hardcode_minus_L" != no; then
21161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21163 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21169 if test "X$found_a" != "X"; then
21170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21172 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21175 additional_includedir=
21176 case "$found_dir" in
21177 */$acl_libdirstem | */$acl_libdirstem/)
21178 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21179 additional_includedir="$basedir/include"
21182 if test "X$additional_includedir" != "X"; then
21183 if test "X$additional_includedir" != "X/usr/include"; then
21185 if test "X$additional_includedir" = "X/usr/local/include"; then
21186 if test -n "$GCC"; then
21188 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21192 if test -z "$haveit"; then
21193 for x in $CPPFLAGS $INCICONV; do
21195 acl_save_prefix="$prefix"
21196 prefix="$acl_final_prefix"
21197 acl_save_exec_prefix="$exec_prefix"
21198 exec_prefix="$acl_final_exec_prefix"
21200 exec_prefix="$acl_save_exec_prefix"
21201 prefix="$acl_save_prefix"
21203 if test "X$x" = "X-I$additional_includedir"; then
21208 if test -z "$haveit"; then
21209 if test -d "$additional_includedir"; then
21210 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21216 if test -n "$found_la"; then
21217 save_libdir="$libdir"
21218 case "$found_la" in
21219 */* | *\\*) . "$found_la" ;;
21220 *) . "./$found_la" ;;
21222 libdir="$save_libdir"
21223 for dep in $dependency_libs; do
21226 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21227 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21229 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21230 if test -n "$GCC"; then
21232 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21236 if test -z "$haveit"; then
21238 for x in $LDFLAGS $LIBICONV; do
21240 acl_save_prefix="$prefix"
21241 prefix="$acl_final_prefix"
21242 acl_save_exec_prefix="$exec_prefix"
21243 exec_prefix="$acl_final_exec_prefix"
21245 exec_prefix="$acl_save_exec_prefix"
21246 prefix="$acl_save_prefix"
21248 if test "X$x" = "X-L$additional_libdir"; then
21253 if test -z "$haveit"; then
21254 if test -d "$additional_libdir"; then
21255 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21259 for x in $LDFLAGS $LTLIBICONV; do
21261 acl_save_prefix="$prefix"
21262 prefix="$acl_final_prefix"
21263 acl_save_exec_prefix="$exec_prefix"
21264 exec_prefix="$acl_final_exec_prefix"
21266 exec_prefix="$acl_save_exec_prefix"
21267 prefix="$acl_save_prefix"
21269 if test "X$x" = "X-L$additional_libdir"; then
21274 if test -z "$haveit"; then
21275 if test -d "$additional_libdir"; then
21276 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21283 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21284 if test "$enable_rpath" != no; then
21286 for x in $rpathdirs; do
21287 if test "X$x" = "X$dir"; then
21292 if test -z "$haveit"; then
21293 rpathdirs="$rpathdirs $dir"
21296 for x in $ltrpathdirs; do
21297 if test "X$x" = "X$dir"; then
21302 if test -z "$haveit"; then
21303 ltrpathdirs="$ltrpathdirs $dir"
21308 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21311 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21314 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21315 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21321 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21322 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21328 if test "X$rpathdirs" != "X"; then
21329 if test -n "$hardcode_libdir_separator"; then
21331 for found_dir in $rpathdirs; do
21332 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21334 acl_save_libdir="$libdir"
21336 eval flag=\"$hardcode_libdir_flag_spec\"
21337 libdir="$acl_save_libdir"
21338 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21340 for found_dir in $rpathdirs; do
21341 acl_save_libdir="$libdir"
21342 libdir="$found_dir"
21343 eval flag=\"$hardcode_libdir_flag_spec\"
21344 libdir="$acl_save_libdir"
21345 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21349 if test "X$ltrpathdirs" != "X"; then
21350 for found_dir in $ltrpathdirs; do
21351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21372 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
21373 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
21374 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 gt_save_LIBS="$LIBS"
21378 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 #include <CoreFoundation/CFPreferences.h>
21389 CFPreferencesCopyAppValue(NULL, NULL)
21394 rm -f conftest.$ac_objext conftest$ac_exeext
21395 if { (ac_try="$ac_link"
21396 case "(($ac_try" in
21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398 *) ac_try_echo=$ac_try;;
21400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401 (eval "$ac_link") 2>conftest.er1
21403 grep -v '^ *+' conftest.er1 >conftest.err
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } && {
21408 test -z "$ac_c_werror_flag" ||
21409 test ! -s conftest.err
21410 } && test -s conftest$ac_exeext &&
21411 $as_test_x conftest$ac_exeext; then
21412 gt_cv_func_CFPreferencesCopyAppValue=yes
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21417 gt_cv_func_CFPreferencesCopyAppValue=no
21420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21421 conftest$ac_exeext conftest.$ac_ext
21422 LIBS="$gt_save_LIBS"
21424 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21425 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21426 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
21433 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
21434 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
21435 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 gt_save_LIBS="$LIBS"
21439 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21440 cat >conftest.$ac_ext <<_ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <CoreFoundation/CFLocale.h>
21450 CFLocaleCopyCurrent();
21455 rm -f conftest.$ac_objext conftest$ac_exeext
21456 if { (ac_try="$ac_link"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_link") 2>conftest.er1
21464 grep -v '^ *+' conftest.er1 >conftest.err
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest$ac_exeext &&
21472 $as_test_x conftest$ac_exeext; then
21473 gt_cv_func_CFLocaleCopyCurrent=yes
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 gt_cv_func_CFLocaleCopyCurrent=no
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482 conftest$ac_exeext conftest.$ac_ext
21483 LIBS="$gt_save_LIBS"
21485 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21486 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21487 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_CFLOCALECOPYCURRENT 1
21495 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21496 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21508 if test "$USE_NLS" = "yes"; then
21509 gt_use_preinstalled_gnugettext=no
21516 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21517 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
21518 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 cat >conftest.$ac_ext <<_ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21527 #include <libintl.h>
21528 extern int _nl_msg_cat_cntr;
21529 extern int *_nl_domain_bindings;
21533 bindtextdomain ("", "");
21534 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_link") 2>conftest.er1
21548 grep -v '^ *+' conftest.er1 >conftest.err
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest$ac_exeext &&
21556 $as_test_x conftest$ac_exeext; then
21557 gt_cv_func_gnugettext1_libc=yes
21559 echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21562 gt_cv_func_gnugettext1_libc=no
21565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21566 conftest$ac_exeext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
21569 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
21571 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21577 am_save_CPPFLAGS="$CPPFLAGS"
21579 for element in $INCICONV; do
21581 for x in $CPPFLAGS; do
21583 acl_save_prefix="$prefix"
21584 prefix="$acl_final_prefix"
21585 acl_save_exec_prefix="$exec_prefix"
21586 exec_prefix="$acl_final_exec_prefix"
21588 exec_prefix="$acl_save_exec_prefix"
21589 prefix="$acl_save_prefix"
21591 if test "X$x" = "X$element"; then
21596 if test -z "$haveit"; then
21597 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21602 { echo "$as_me:$LINENO: checking for iconv" >&5
21603 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21604 if test "${am_cv_func_iconv+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 am_cv_func_iconv="no, consider installing GNU libiconv"
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <stdlib.h>
21621 iconv_t cd = iconv_open("","");
21622 iconv(cd,NULL,NULL,NULL,NULL);
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (ac_try="$ac_link"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635 (eval "$ac_link") 2>conftest.er1
21637 grep -v '^ *+' conftest.er1 >conftest.err
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } && {
21642 test -z "$ac_c_werror_flag" ||
21643 test ! -s conftest.err
21644 } && test -s conftest$ac_exeext &&
21645 $as_test_x conftest$ac_exeext; then
21646 am_cv_func_iconv=yes
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21655 conftest$ac_exeext conftest.$ac_ext
21656 if test "$am_cv_func_iconv" != yes; then
21657 am_save_LIBS="$LIBS"
21658 LIBS="$LIBS $LIBICONV"
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <stdlib.h>
21670 iconv_t cd = iconv_open("","");
21671 iconv(cd,NULL,NULL,NULL,NULL);
21677 rm -f conftest.$ac_objext conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684 (eval "$ac_link") 2>conftest.er1
21686 grep -v '^ *+' conftest.er1 >conftest.err
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } && {
21691 test -z "$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 } && test -s conftest$ac_exeext &&
21694 $as_test_x conftest$ac_exeext; then
21695 am_cv_lib_iconv=yes
21696 am_cv_func_iconv=yes
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21705 conftest$ac_exeext conftest.$ac_ext
21706 LIBS="$am_save_LIBS"
21710 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21711 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
21712 if test "$am_cv_func_iconv" = yes; then
21714 cat >>confdefs.h <<\_ACEOF
21715 #define HAVE_ICONV 1
21719 if test "$am_cv_lib_iconv" = yes; then
21720 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21721 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
21722 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
21723 echo "${ECHO_T}$LIBICONV" >&6; }
21725 CPPFLAGS="$am_save_CPPFLAGS"
21738 acl_save_prefix="$prefix"
21739 prefix="$acl_final_prefix"
21740 acl_save_exec_prefix="$exec_prefix"
21741 exec_prefix="$acl_final_exec_prefix"
21743 eval additional_includedir=\"$includedir\"
21744 eval additional_libdir=\"$libdir\"
21746 exec_prefix="$acl_save_exec_prefix"
21747 prefix="$acl_save_prefix"
21750 # Check whether --with-libintl-prefix was given.
21751 if test "${with_libintl_prefix+set}" = set; then
21752 withval=$with_libintl_prefix;
21753 if test "X$withval" = "Xno"; then
21756 if test "X$withval" = "X"; then
21758 acl_save_prefix="$prefix"
21759 prefix="$acl_final_prefix"
21760 acl_save_exec_prefix="$exec_prefix"
21761 exec_prefix="$acl_final_exec_prefix"
21763 eval additional_includedir=\"$includedir\"
21764 eval additional_libdir=\"$libdir\"
21766 exec_prefix="$acl_save_exec_prefix"
21767 prefix="$acl_save_prefix"
21770 additional_includedir="$withval/include"
21771 additional_libdir="$withval/$acl_libdirstem"
21782 names_already_handled=
21783 names_next_round='intl '
21784 while test -n "$names_next_round"; do
21785 names_this_round="$names_next_round"
21787 for name in $names_this_round; do
21789 for n in $names_already_handled; do
21790 if test "$n" = "$name"; then
21791 already_handled=yes
21795 if test -z "$already_handled"; then
21796 names_already_handled="$names_already_handled $name"
21797 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21798 eval value=\"\$HAVE_LIB$uppername\"
21799 if test -n "$value"; then
21800 if test "$value" = yes; then
21801 eval value=\"\$LIB$uppername\"
21802 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21803 eval value=\"\$LTLIB$uppername\"
21804 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21813 if test $use_additional = yes; then
21814 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21815 found_dir="$additional_libdir"
21816 found_so="$additional_libdir/lib$name.$shlibext"
21817 if test -f "$additional_libdir/lib$name.la"; then
21818 found_la="$additional_libdir/lib$name.la"
21821 if test -f "$additional_libdir/lib$name.$libext"; then
21822 found_dir="$additional_libdir"
21823 found_a="$additional_libdir/lib$name.$libext"
21824 if test -f "$additional_libdir/lib$name.la"; then
21825 found_la="$additional_libdir/lib$name.la"
21830 if test "X$found_dir" = "X"; then
21831 for x in $LDFLAGS $LTLIBINTL; do
21833 acl_save_prefix="$prefix"
21834 prefix="$acl_final_prefix"
21835 acl_save_exec_prefix="$exec_prefix"
21836 exec_prefix="$acl_final_exec_prefix"
21838 exec_prefix="$acl_save_exec_prefix"
21839 prefix="$acl_save_prefix"
21843 dir=`echo "X$x" | sed -e 's/^X-L//'`
21844 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21846 found_so="$dir/lib$name.$shlibext"
21847 if test -f "$dir/lib$name.la"; then
21848 found_la="$dir/lib$name.la"
21851 if test -f "$dir/lib$name.$libext"; then
21853 found_a="$dir/lib$name.$libext"
21854 if test -f "$dir/lib$name.la"; then
21855 found_la="$dir/lib$name.la"
21861 if test "X$found_dir" != "X"; then
21866 if test "X$found_dir" != "X"; then
21867 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21868 if test "X$found_so" != "X"; then
21869 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21870 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21873 for x in $ltrpathdirs; do
21874 if test "X$x" = "X$found_dir"; then
21879 if test -z "$haveit"; then
21880 ltrpathdirs="$ltrpathdirs $found_dir"
21882 if test "$hardcode_direct" = yes; then
21883 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21885 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21886 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21888 for x in $rpathdirs; do
21889 if test "X$x" = "X$found_dir"; then
21894 if test -z "$haveit"; then
21895 rpathdirs="$rpathdirs $found_dir"
21899 for x in $LDFLAGS $LIBINTL; do
21901 acl_save_prefix="$prefix"
21902 prefix="$acl_final_prefix"
21903 acl_save_exec_prefix="$exec_prefix"
21904 exec_prefix="$acl_final_exec_prefix"
21906 exec_prefix="$acl_save_exec_prefix"
21907 prefix="$acl_save_prefix"
21909 if test "X$x" = "X-L$found_dir"; then
21914 if test -z "$haveit"; then
21915 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21917 if test "$hardcode_minus_L" != no; then
21918 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21920 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21926 if test "X$found_a" != "X"; then
21927 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21929 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21932 additional_includedir=
21933 case "$found_dir" in
21934 */$acl_libdirstem | */$acl_libdirstem/)
21935 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21936 additional_includedir="$basedir/include"
21939 if test "X$additional_includedir" != "X"; then
21940 if test "X$additional_includedir" != "X/usr/include"; then
21942 if test "X$additional_includedir" = "X/usr/local/include"; then
21943 if test -n "$GCC"; then
21945 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21949 if test -z "$haveit"; then
21950 for x in $CPPFLAGS $INCINTL; do
21952 acl_save_prefix="$prefix"
21953 prefix="$acl_final_prefix"
21954 acl_save_exec_prefix="$exec_prefix"
21955 exec_prefix="$acl_final_exec_prefix"
21957 exec_prefix="$acl_save_exec_prefix"
21958 prefix="$acl_save_prefix"
21960 if test "X$x" = "X-I$additional_includedir"; then
21965 if test -z "$haveit"; then
21966 if test -d "$additional_includedir"; then
21967 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21973 if test -n "$found_la"; then
21974 save_libdir="$libdir"
21975 case "$found_la" in
21976 */* | *\\*) . "$found_la" ;;
21977 *) . "./$found_la" ;;
21979 libdir="$save_libdir"
21980 for dep in $dependency_libs; do
21983 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21984 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21986 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21987 if test -n "$GCC"; then
21989 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21993 if test -z "$haveit"; then
21995 for x in $LDFLAGS $LIBINTL; do
21997 acl_save_prefix="$prefix"
21998 prefix="$acl_final_prefix"
21999 acl_save_exec_prefix="$exec_prefix"
22000 exec_prefix="$acl_final_exec_prefix"
22002 exec_prefix="$acl_save_exec_prefix"
22003 prefix="$acl_save_prefix"
22005 if test "X$x" = "X-L$additional_libdir"; then
22010 if test -z "$haveit"; then
22011 if test -d "$additional_libdir"; then
22012 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22016 for x in $LDFLAGS $LTLIBINTL; do
22018 acl_save_prefix="$prefix"
22019 prefix="$acl_final_prefix"
22020 acl_save_exec_prefix="$exec_prefix"
22021 exec_prefix="$acl_final_exec_prefix"
22023 exec_prefix="$acl_save_exec_prefix"
22024 prefix="$acl_save_prefix"
22026 if test "X$x" = "X-L$additional_libdir"; then
22031 if test -z "$haveit"; then
22032 if test -d "$additional_libdir"; then
22033 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22040 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22041 if test "$enable_rpath" != no; then
22043 for x in $rpathdirs; do
22044 if test "X$x" = "X$dir"; then
22049 if test -z "$haveit"; then
22050 rpathdirs="$rpathdirs $dir"
22053 for x in $ltrpathdirs; do
22054 if test "X$x" = "X$dir"; then
22059 if test -z "$haveit"; then
22060 ltrpathdirs="$ltrpathdirs $dir"
22065 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22068 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22071 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22078 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22079 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22085 if test "X$rpathdirs" != "X"; then
22086 if test -n "$hardcode_libdir_separator"; then
22088 for found_dir in $rpathdirs; do
22089 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22091 acl_save_libdir="$libdir"
22093 eval flag=\"$hardcode_libdir_flag_spec\"
22094 libdir="$acl_save_libdir"
22095 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22097 for found_dir in $rpathdirs; do
22098 acl_save_libdir="$libdir"
22099 libdir="$found_dir"
22100 eval flag=\"$hardcode_libdir_flag_spec\"
22101 libdir="$acl_save_libdir"
22102 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22106 if test "X$ltrpathdirs" != "X"; then
22107 for found_dir in $ltrpathdirs; do
22108 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22112 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22113 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
22114 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22117 gt_save_CPPFLAGS="$CPPFLAGS"
22118 CPPFLAGS="$CPPFLAGS $INCINTL"
22119 gt_save_LIBS="$LIBS"
22120 LIBS="$LIBS $LIBINTL"
22121 cat >conftest.$ac_ext <<_ACEOF
22124 cat confdefs.h >>conftest.$ac_ext
22125 cat >>conftest.$ac_ext <<_ACEOF
22126 /* end confdefs.h. */
22127 #include <libintl.h>
22128 extern int _nl_msg_cat_cntr;
22133 const char *_nl_expand_alias (const char *);
22137 bindtextdomain ("", "");
22138 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22143 rm -f conftest.$ac_objext conftest$ac_exeext
22144 if { (ac_try="$ac_link"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_link") 2>conftest.er1
22152 grep -v '^ *+' conftest.er1 >conftest.err
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } && {
22157 test -z "$ac_c_werror_flag" ||
22158 test ! -s conftest.err
22159 } && test -s conftest$ac_exeext &&
22160 $as_test_x conftest$ac_exeext; then
22161 gt_cv_func_gnugettext1_libintl=yes
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 gt_cv_func_gnugettext1_libintl=no
22169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22170 conftest$ac_exeext conftest.$ac_ext
22171 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
22172 LIBS="$LIBS $LIBICONV"
22173 cat >conftest.$ac_ext <<_ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 #include <libintl.h>
22180 extern int _nl_msg_cat_cntr;
22185 const char *_nl_expand_alias (const char *);
22189 bindtextdomain ("", "");
22190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22195 rm -f conftest.$ac_objext conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } && {
22209 test -z "$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22211 } && test -s conftest$ac_exeext &&
22212 $as_test_x conftest$ac_exeext; then
22213 LIBINTL="$LIBINTL $LIBICONV"
22214 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22215 gt_cv_func_gnugettext1_libintl=yes
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22225 conftest$ac_exeext conftest.$ac_ext
22227 CPPFLAGS="$gt_save_CPPFLAGS"
22228 LIBS="$gt_save_LIBS"
22230 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22231 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
22234 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22235 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
22236 && test "$PACKAGE" != gettext-runtime \
22237 && test "$PACKAGE" != gettext-tools; }; then
22238 gt_use_preinstalled_gnugettext=yes
22247 if test -n "$INTL_MACOSX_LIBS"; then
22248 if test "$gt_use_preinstalled_gnugettext" = "yes" \
22249 || test "$nls_cv_use_gnu_gettext" = "yes"; then
22250 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22251 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22255 if test "$gt_use_preinstalled_gnugettext" = "yes" \
22256 || test "$nls_cv_use_gnu_gettext" = "yes"; then
22258 cat >>confdefs.h <<\_ACEOF
22259 #define ENABLE_NLS 1
22267 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
22268 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
22269 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
22270 echo "${ECHO_T}$USE_NLS" >&6; }
22271 if test "$USE_NLS" = "yes"; then
22272 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22273 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
22274 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22275 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22276 gt_source="external libintl"
22281 gt_source="included intl directory"
22283 { echo "$as_me:$LINENO: result: $gt_source" >&5
22284 echo "${ECHO_T}$gt_source" >&6; }
22287 if test "$USE_NLS" = "yes"; then
22289 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22290 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22291 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
22292 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
22293 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
22294 echo "${ECHO_T}$LIBINTL" >&6; }
22296 for element in $INCINTL; do
22298 for x in $CPPFLAGS; do
22300 acl_save_prefix="$prefix"
22301 prefix="$acl_final_prefix"
22302 acl_save_exec_prefix="$exec_prefix"
22303 exec_prefix="$acl_final_exec_prefix"
22305 exec_prefix="$acl_save_exec_prefix"
22306 prefix="$acl_save_prefix"
22308 if test "X$x" = "X$element"; then
22313 if test -z "$haveit"; then
22314 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_GETTEXT 1
22326 cat >>confdefs.h <<\_ACEOF
22327 #define HAVE_DCGETTEXT 1
22337 INTLLIBS="$LIBINTL"
22345 # Checks for header files.
22346 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22348 if test "${ac_cv_header_stdc+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 #include <stdlib.h>
22358 #include <stdarg.h>
22359 #include <string.h>
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_compile") 2>conftest.er1
22379 grep -v '^ *+' conftest.er1 >conftest.err
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } && {
22384 test -z "$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 } && test -s conftest.$ac_objext; then
22387 ac_cv_header_stdc=yes
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 ac_cv_header_stdc=no
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 if test $ac_cv_header_stdc = yes; then
22398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 #include <string.h>
22408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22409 $EGREP "memchr" >/dev/null 2>&1; then
22412 ac_cv_header_stdc=no
22418 if test $ac_cv_header_stdc = yes; then
22419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22420 cat >conftest.$ac_ext <<_ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #include <stdlib.h>
22429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22430 $EGREP "free" >/dev/null 2>&1; then
22433 ac_cv_header_stdc=no
22439 if test $ac_cv_header_stdc = yes; then
22440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22441 if test "$cross_compiling" = yes; then
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22451 #include <stdlib.h>
22452 #if ((' ' & 0x0FF) == 0x020)
22453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22456 # define ISLOWER(c) \
22457 (('a' <= (c) && (c) <= 'i') \
22458 || ('j' <= (c) && (c) <= 'r') \
22459 || ('s' <= (c) && (c) <= 'z'))
22460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22468 for (i = 0; i < 256; i++)
22469 if (XOR (islower (i), ISLOWER (i))
22470 || toupper (i) != TOUPPER (i))
22475 rm -f conftest$ac_exeext
22476 if { (ac_try="$ac_link"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_link") 2>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22486 { (case "(($ac_try" in
22487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488 *) ac_try_echo=$ac_try;;
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491 (eval "$ac_try") 2>&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; }; then
22497 echo "$as_me: program exited with status $ac_status" >&5
22498 echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22501 ( exit $ac_status )
22502 ac_cv_header_stdc=no
22504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22511 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22512 if test $ac_cv_header_stdc = yes; then
22514 cat >>confdefs.h <<\_ACEOF
22515 #define STDC_HEADERS 1
22522 for ac_header in stdlib.h locale.h
22524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 ac_res=`eval echo '${'$as_ac_Header'}'`
22532 { echo "$as_me:$LINENO: result: $ac_res" >&5
22533 echo "${ECHO_T}$ac_res" >&6; }
22535 # Is the header compilable?
22536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 $ac_includes_default
22545 #include <$ac_header>
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554 (eval "$ac_compile") 2>conftest.er1
22556 grep -v '^ *+' conftest.er1 >conftest.err
22558 cat conftest.err >&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } && {
22561 test -z "$ac_c_werror_flag" ||
22562 test ! -s conftest.err
22563 } && test -s conftest.$ac_objext; then
22564 ac_header_compiler=yes
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22569 ac_header_compiler=no
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22574 echo "${ECHO_T}$ac_header_compiler" >&6; }
22576 # Is the header present?
22577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 #include <$ac_header>
22587 if { (ac_try="$ac_cpp conftest.$ac_ext"
22588 case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22595 grep -v '^ *+' conftest.er1 >conftest.err
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } >/dev/null && {
22600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22601 test ! -s conftest.err
22603 ac_header_preproc=yes
22605 echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22608 ac_header_preproc=no
22611 rm -f conftest.err conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22613 echo "${ECHO_T}$ac_header_preproc" >&6; }
22615 # So? What about this header?
22616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22622 ac_header_preproc=yes
22625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22638 ## ---------------------------------- ##
22639 ## Report this to bug-gnupg@gnupg.org ##
22640 ## ---------------------------------- ##
22642 ) | sed "s/^/$as_me: WARNING: /" >&2
22645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22650 eval "$as_ac_Header=\$ac_header_preproc"
22652 ac_res=`eval echo '${'$as_ac_Header'}'`
22653 { echo "$as_me:$LINENO: result: $ac_res" >&5
22654 echo "${ECHO_T}$ac_res" >&6; }
22657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22658 cat >>confdefs.h <<_ACEOF
22659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22666 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
22667 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
22668 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22706 ac_cv_have_decl_strerror_r=yes
22708 echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 ac_cv_have_decl_strerror_r=no
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
22717 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
22718 if test $ac_cv_have_decl_strerror_r = yes; then
22720 cat >>confdefs.h <<_ACEOF
22721 #define HAVE_DECL_STRERROR_R 1
22726 cat >>confdefs.h <<_ACEOF
22727 #define HAVE_DECL_STRERROR_R 0
22735 for ac_func in strerror_r
22737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22751 #define $ac_func innocuous_$ac_func
22753 /* System header to define __stub macros and hopefully few prototypes,
22754 which can conflict with char $ac_func (); below.
22755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22756 <limits.h> exists even on freestanding compilers. */
22759 # include <limits.h>
22761 # include <assert.h>
22766 /* Override any GCC internal prototype to avoid an error.
22767 Use char because int might match the return type of a GCC
22768 builtin and then its argument prototype would still apply. */
22773 /* The GNU C library defines this for functions which it implements
22774 to always fail with ENOSYS. Some functions are actually named
22775 something starting with __ and the normal name is an alias. */
22776 #if defined __stub_$ac_func || defined __stub___$ac_func
22783 return $ac_func ();
22788 rm -f conftest.$ac_objext conftest$ac_exeext
22789 if { (ac_try="$ac_link"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_link") 2>conftest.er1
22797 grep -v '^ *+' conftest.er1 >conftest.err
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } && {
22802 test -z "$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22804 } && test -s conftest$ac_exeext &&
22805 $as_test_x conftest$ac_exeext; then
22806 eval "$as_ac_var=yes"
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 eval "$as_ac_var=no"
22814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22815 conftest$ac_exeext conftest.$ac_ext
22817 ac_res=`eval echo '${'$as_ac_var'}'`
22818 { echo "$as_me:$LINENO: result: $ac_res" >&5
22819 echo "${ECHO_T}$ac_res" >&6; }
22820 if test `eval echo '${'$as_ac_var'}'` = yes; then
22821 cat >>confdefs.h <<_ACEOF
22822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22828 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
22829 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
22830 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22834 ac_cv_func_strerror_r_char_p=no
22835 if test $ac_cv_have_decl_strerror_r = yes; then
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 $ac_includes_default
22848 char x = *strerror_r (0, buf, sizeof buf);
22849 char *p = strerror_r (0, buf, sizeof buf);
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22873 ac_cv_func_strerror_r_char_p=yes
22875 echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 # strerror_r is not declared. Choose between
22884 # systems that have relatively inaccessible declarations for the
22885 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
22886 # former has a strerror_r that returns char*, while the latter
22887 # has a strerror_r that returns `int'.
22888 # This test should segfault on the DEC system.
22889 if test "$cross_compiling" = yes; then
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 extern char *strerror_r ();
22904 char x = *strerror_r (0, buf, sizeof buf);
22905 return ! isalpha (x);
22910 rm -f conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_link") 2>&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921 { (case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_try") 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 ac_cv_func_strerror_r_char_p=yes
22932 echo "$as_me: program exited with status $ac_status" >&5
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22944 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
22945 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
22946 if test $ac_cv_func_strerror_r_char_p = yes; then
22948 cat >>confdefs.h <<\_ACEOF
22949 #define STRERROR_R_CHAR_P 1
22954 case "${host_os}" in
22956 # All versions of Solaris from 2.4 have a thread-safe strerror().
22957 # Since Solaris 10, in addition strerror_r() exists.
22960 { echo "$as_me:$LINENO: checking for strerror_r" >&5
22961 echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6; }
22962 if test "${ac_cv_func_strerror_r+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
22972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22973 #define strerror_r innocuous_strerror_r
22975 /* System header to define __stub macros and hopefully few prototypes,
22976 which can conflict with char strerror_r (); below.
22977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22978 <limits.h> exists even on freestanding compilers. */
22981 # include <limits.h>
22983 # include <assert.h>
22988 /* Override any GCC internal prototype to avoid an error.
22989 Use char because int might match the return type of a GCC
22990 builtin and then its argument prototype would still apply. */
22994 char strerror_r ();
22995 /* The GNU C library defines this for functions which it implements
22996 to always fail with ENOSYS. Some functions are actually named
22997 something starting with __ and the normal name is an alias. */
22998 #if defined __stub_strerror_r || defined __stub___strerror_r
23005 return strerror_r ();
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (ac_try="$ac_link"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_link") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest$ac_exeext &&
23027 $as_test_x conftest$ac_exeext; then
23028 ac_cv_func_strerror_r=yes
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 ac_cv_func_strerror_r=no
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037 conftest$ac_exeext conftest.$ac_ext
23039 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5
23040 echo "${ECHO_T}$ac_cv_func_strerror_r" >&6; }
23041 if test $ac_cv_func_strerror_r = yes; then
23044 { echo "$as_me:$LINENO: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
23045 echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
23051 # Checks for typedefs, structures, and compiler characteristics.
23052 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23053 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23054 if test "${ac_cv_c_const+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 cat >conftest.$ac_ext <<_ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23067 /* FIXME: Include the comments suggested by Paul. */
23068 #ifndef __cplusplus
23069 /* Ultrix mips cc rejects this. */
23070 typedef int charset[2];
23072 /* SunOS 4.1.1 cc rejects this. */
23073 char const *const *pcpcc;
23075 /* NEC SVR4.0.2 mips cc rejects this. */
23076 struct point {int x, y;};
23077 static struct point const zero = {0,0};
23078 /* AIX XL C 1.02.0.0 rejects this.
23079 It does not let you subtract one const X* pointer from another in
23080 an arm of an if-expression whose if-part is not a constant
23082 const char *g = "string";
23083 pcpcc = &g + (g ? g-g : 0);
23084 /* HPUX 7.0 cc rejects these. */
23086 ppc = (char**) pcpcc;
23087 pcpcc = (char const *const *) ppc;
23088 { /* SCO 3.2v4 cc rejects this. */
23090 char const *s = 0 ? (char *) 0 : (char const *) 0;
23095 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23096 int x[] = {25, 17};
23097 const int *foo = &x[0];
23100 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23101 typedef const int *iptr;
23105 { /* AIX XL C 1.02.0.0 rejects this saying
23106 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23107 struct s { int j; const int *ap[3]; };
23108 struct s *b; b->j = 5;
23110 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23111 const int foo = 10;
23112 if (!foo) return 0;
23114 return !cs[0] && !zero.x;
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23140 echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23149 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23150 if test $ac_cv_c_const = no; then
23152 cat >>confdefs.h <<\_ACEOF
23159 # Substitution used for gpg-error-config
23160 GPG_ERROR_CONFIG_LIBS="-lgpg-error"
23161 GPG_ERROR_CONFIG_CFLAGS=""
23164 ac_config_files="$ac_config_files src/gpg-error-config"
23168 # Special defines for certain platforms
23169 if test "$have_w32_system" = yes; then
23171 cat >>confdefs.h <<\_ACEOF
23172 #define HAVE_W32_SYSTEM 1
23175 BUILD_TIMESTAMP=`date --iso-8601=minutes`
23177 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
23179 *-svn*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
23180 *-cvs) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
23181 *-rc*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,1" ;;
23182 *) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,2" ;;
23187 if test "$have_w32_system" = yes; then
23188 HAVE_W32_SYSTEM_TRUE=
23189 HAVE_W32_SYSTEM_FALSE='#'
23191 HAVE_W32_SYSTEM_TRUE='#'
23192 HAVE_W32_SYSTEM_FALSE=
23197 # Check whether --enable-languages was given.
23198 if test "${enable_languages+set}" = set; then
23199 enableval=$enable_languages;
23202 if test "x$enable_languages" != xno; then
23203 LANGUAGES_SOME_TRUE=
23204 LANGUAGES_SOME_FALSE='#'
23206 LANGUAGES_SOME_TRUE='#'
23207 LANGUAGES_SOME_FALSE=
23214 ac_config_files="$ac_config_files Makefile"
23216 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile"
23218 ac_config_files="$ac_config_files src/Makefile tests/Makefile"
23220 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd"
23222 ac_config_files="$ac_config_files src/versioninfo.rc"
23225 cat >confcache <<\_ACEOF
23226 # This file is a shell script that caches the results of configure
23227 # tests run on this system so they can be shared between configure
23228 # scripts and configure runs, see configure's option --config-cache.
23229 # It is not useful on other systems. If it contains results you don't
23230 # want to keep, you may remove or edit it.
23232 # config.status only pays attention to the cache file if you give it
23233 # the --recheck option to rerun configure.
23235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23237 # following values.
23241 # The following way of writing the cache mishandles newlines in values,
23242 # but we know of no workaround that is simple, portable, and efficient.
23243 # So, we kill variables containing newlines.
23244 # Ultrix sh set writes to stderr and can't be redirected directly,
23245 # and sets the high bit in the cache file unless we assign to the vars.
23247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23248 eval ac_val=\$$ac_var
23252 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23253 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23256 _ | IFS | as_nl) ;; #(
23257 *) $as_unset $ac_var ;;
23263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23264 *${as_nl}ac_space=\ *)
23265 # `set' does not quote correctly, so add quotes (double-quote
23266 # substitution turns \\\\ into \\, and sed turns \\ into \).
23269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23272 # `set' quotes correctly as required by POSIX, so do not add quotes.
23273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23287 if test -w "$cache_file"; then
23288 test "x$cache_file" != "x/dev/null" &&
23289 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23290 echo "$as_me: updating cache $cache_file" >&6;}
23291 cat confcache >$cache_file
23293 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23294 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23300 # Let make expand exec_prefix.
23301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23303 DEFS=-DHAVE_CONFIG_H
23307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23308 # 1. Remove the extension, and $U if already installed.
23309 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23310 ac_i=`echo "$ac_i" | sed "$ac_script"`
23311 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23312 # will be set to the directory where LIBOBJS objects are built.
23313 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23314 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23316 LIBOBJS=$ac_libobjs
23318 LTLIBOBJS=$ac_ltlibobjs
23321 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23322 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23323 Usually this means the macro was only invoked conditionally." >&5
23324 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23325 Usually this means the macro was only invoked conditionally." >&2;}
23326 { (exit 1); exit 1; }; }
23328 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23329 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23330 Usually this means the macro was only invoked conditionally." >&5
23331 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23332 Usually this means the macro was only invoked conditionally." >&2;}
23333 { (exit 1); exit 1; }; }
23335 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23337 Usually this means the macro was only invoked conditionally." >&5
23338 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23339 Usually this means the macro was only invoked conditionally." >&2;}
23340 { (exit 1); exit 1; }; }
23342 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23343 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23344 Usually this means the macro was only invoked conditionally." >&5
23345 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23346 Usually this means the macro was only invoked conditionally." >&2;}
23347 { (exit 1); exit 1; }; }
23349 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
23350 { { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
23351 Usually this means the macro was only invoked conditionally." >&5
23352 echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
23353 Usually this means the macro was only invoked conditionally." >&2;}
23354 { (exit 1); exit 1; }; }
23356 if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then
23357 { { echo "$as_me:$LINENO: error: conditional \"LANGUAGES_SOME\" was never defined.
23358 Usually this means the macro was only invoked conditionally." >&5
23359 echo "$as_me: error: conditional \"LANGUAGES_SOME\" was never defined.
23360 Usually this means the macro was only invoked conditionally." >&2;}
23361 { (exit 1); exit 1; }; }
23364 : ${CONFIG_STATUS=./config.status}
23365 ac_clean_files_save=$ac_clean_files
23366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23369 cat >$CONFIG_STATUS <<_ACEOF
23371 # Generated by $as_me.
23372 # Run this file to recreate the current configuration.
23373 # Compiler output produced by configure, useful for debugging
23374 # configure, is in config.log if it exists.
23377 ac_cs_recheck=false
23379 SHELL=\${CONFIG_SHELL-$SHELL}
23382 cat >>$CONFIG_STATUS <<\_ACEOF
23383 ## --------------------- ##
23384 ## M4sh Initialization. ##
23385 ## --------------------- ##
23387 # Be more Bourne compatible
23388 DUALCASE=1; export DUALCASE # for MKS sh
23389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23393 # is contrary to our usage. Disable this feature.
23394 alias -g '${1+"$@"}'='"$@"'
23395 setopt NO_GLOB_SUBST
23397 case `(set -o) 2>/dev/null` in
23398 *posix*) set -o posix ;;
23407 # Avoid depending upon Character Ranges.
23408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23411 as_cr_digits='0123456789'
23412 as_cr_alnum=$as_cr_Letters$as_cr_digits
23414 # The user is always right.
23415 if test "${PATH_SEPARATOR+set}" != set; then
23416 echo "#! /bin/sh" >conf$$.sh
23417 echo "exit 0" >>conf$$.sh
23419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23427 # Support unset when possible.
23428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23436 # We need space, tab and new line, in precisely that order. Quoting is
23437 # there to prevent editors from complaining about space-tab.
23438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23439 # splitting by setting IFS to empty value.)
23444 # Find who we are. Look in the path if we contain no directory separator.
23446 *[\\/]* ) as_myself=$0 ;;
23447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23448 for as_dir in $PATH
23451 test -z "$as_dir" && as_dir=.
23452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23458 # We did not find ourselves, most probably we were run as `sh COMMAND'
23459 # in which case we are not to be found in the path.
23460 if test "x$as_myself" = x; then
23463 if test ! -f "$as_myself"; then
23464 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23465 { (exit 1); exit 1; }
23468 # Work around bugs in pre-3.0 UWIN ksh.
23469 for as_var in ENV MAIL MAILPATH
23470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23480 LC_TELEPHONE LC_TIME
23482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23483 eval $as_var=C; export $as_var
23485 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23489 # Required to use basename.
23490 if expr a : '\(a\)' >/dev/null 2>&1 &&
23491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23498 as_basename=basename
23504 # Name of the executable.
23505 as_me=`$as_basename -- "$0" ||
23506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23507 X"$0" : 'X\(//\)$' \| \
23508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23510 sed '/^.*\/\([^/][^/]*\)\/*$/{
23529 as_lineno_1=$LINENO
23530 as_lineno_2=$LINENO
23531 test "x$as_lineno_1" != "x$as_lineno_2" &&
23532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23535 # uniformly replaced by the line number. The first 'sed' inserts a
23536 # line-number line after each line using $LINENO; the second 'sed'
23537 # does the real work. The second script uses 'N' to pair each
23538 # line-number line with the line containing $LINENO, and appends
23539 # trailing '-' during substitution so that $LINENO is not a special
23540 # case at line end.
23541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23542 # scripts with optimization help from Paolo Bonzini. Blame Lee
23543 # E. McMahon (1931-1989) for sed's syntax. :-)
23555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23558 ' >$as_me.lineno &&
23559 chmod +x "$as_me.lineno" ||
23560 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23561 { (exit 1); exit 1; }; }
23563 # Don't try to exec as it changes $[0], causing all sort of problems
23564 # (the dirname of $[0] is not the place where we might find the
23565 # original and so on. Autoconf is especially sensitive to this).
23566 . "./$as_me.lineno"
23567 # Exit status is that of the last command.
23572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23578 ECHO_C= ECHO_N= ECHO_T=
23579 case `echo -n x` in
23581 case `echo 'x\c'` in
23582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23589 if expr a : '\(a\)' >/dev/null 2>&1 &&
23590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23596 rm -f conf$$ conf$$.exe conf$$.file
23597 if test -d conf$$.dir; then
23598 rm -f conf$$.dir/conf$$.file
23604 if ln -s conf$$.file conf$$ 2>/dev/null; then
23606 # ... but there are two gotchas:
23607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23609 # In both cases, we have to default to `cp -p'.
23610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23612 elif ln conf$$.file conf$$ 2>/dev/null; then
23617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23618 rmdir conf$$.dir 2>/dev/null
23620 if mkdir -p . 2>/dev/null; then
23623 test -d ./-p && rmdir ./-p
23627 if test -x / >/dev/null 2>&1; then
23628 as_test_x='test -x'
23630 if ls -dL / >/dev/null 2>&1; then
23637 if test -d "$1"; then
23643 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23644 ???[sx]*):;;*)false;;esac;fi
23648 as_executable_p=$as_test_x
23650 # Sed expression to map a string onto a valid CPP name.
23651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23653 # Sed expression to map a string onto a valid variable name.
23654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23659 # Save the log message, to keep $[0] and so on meaningful, and to
23660 # report actual input values of CONFIG_FILES etc. instead of their
23661 # values after options handling.
23663 This file was extended by libgpg-error $as_me 1.7, which was
23664 generated by GNU Autoconf 2.61. Invocation command line was
23666 CONFIG_FILES = $CONFIG_FILES
23667 CONFIG_HEADERS = $CONFIG_HEADERS
23668 CONFIG_LINKS = $CONFIG_LINKS
23669 CONFIG_COMMANDS = $CONFIG_COMMANDS
23672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23677 cat >>$CONFIG_STATUS <<_ACEOF
23678 # Files that config.status was made for.
23679 config_files="$ac_config_files"
23680 config_headers="$ac_config_headers"
23681 config_commands="$ac_config_commands"
23685 cat >>$CONFIG_STATUS <<\_ACEOF
23687 \`$as_me' instantiates files from templates according to the
23688 current configuration.
23690 Usage: $0 [OPTIONS] [FILE]...
23692 -h, --help print this help, then exit
23693 -V, --version print version number and configuration settings, then exit
23694 -q, --quiet do not print progress messages
23695 -d, --debug don't remove temporary files
23696 --recheck update $as_me by reconfiguring in the same conditions
23697 --file=FILE[:TEMPLATE]
23698 instantiate the configuration file FILE
23699 --header=FILE[:TEMPLATE]
23700 instantiate the configuration header FILE
23702 Configuration files:
23705 Configuration headers:
23708 Configuration commands:
23711 Report bugs to <bug-autoconf@gnu.org>."
23714 cat >>$CONFIG_STATUS <<_ACEOF
23716 libgpg-error config.status 1.7
23717 configured by $0, generated by GNU Autoconf 2.61,
23718 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23720 Copyright (C) 2006 Free Software Foundation, Inc.
23721 This config.status script is free software; the Free Software Foundation
23722 gives unlimited permission to copy, distribute and modify it."
23730 cat >>$CONFIG_STATUS <<\_ACEOF
23731 # If no file are specified by the user, then we need to provide default
23732 # value. By we need to know if files were specified by the user.
23738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23750 # Handling of the options.
23751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23754 echo "$ac_cs_version"; exit ;;
23755 --debug | --debu | --deb | --de | --d | -d )
23757 --file | --fil | --fi | --f )
23759 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23760 ac_need_defaults=false;;
23761 --header | --heade | --head | --hea )
23763 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23764 ac_need_defaults=false;;
23766 # Conflict between --help and --header
23767 { echo "$as_me: error: ambiguous option: $1
23768 Try \`$0 --help' for more information." >&2
23769 { (exit 1); exit 1; }; };;
23770 --help | --hel | -h )
23771 echo "$ac_cs_usage"; exit ;;
23772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23776 # This is an error.
23777 -*) { echo "$as_me: error: unrecognized option: $1
23778 Try \`$0 --help' for more information." >&2
23779 { (exit 1); exit 1; }; } ;;
23781 *) ac_config_targets="$ac_config_targets $1"
23782 ac_need_defaults=false ;;
23788 ac_configure_extra_args=
23790 if $ac_cs_silent; then
23792 ac_configure_extra_args="$ac_configure_extra_args --silent"
23796 cat >>$CONFIG_STATUS <<_ACEOF
23797 if \$ac_cs_recheck; then
23798 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23799 CONFIG_SHELL=$SHELL
23800 export CONFIG_SHELL
23801 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23805 cat >>$CONFIG_STATUS <<\_ACEOF
23809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23810 ## Running $as_me. ##
23816 cat >>$CONFIG_STATUS <<_ACEOF
23820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23821 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23822 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23823 # from automake < 1.5.
23824 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23825 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23826 LINGUAS="${LINGUAS-%UNSET%}"
23831 cat >>$CONFIG_STATUS <<\_ACEOF
23833 # Handling of arguments.
23834 for ac_config_target in $ac_config_targets
23836 case $ac_config_target in
23837 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23838 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23839 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23840 "src/gpg-error-config") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;;
23841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23842 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23843 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23844 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23845 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23846 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
23847 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
23848 "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;;
23849 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
23851 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23853 { (exit 1); exit 1; }; };;
23858 # If the user did not use the arguments to specify the items to instantiate,
23859 # then the envvar interface is used. Set only those that are not.
23860 # We use the long form for the default assignment because of an extremely
23861 # bizarre bug on SunOS 4.1.3.
23862 if $ac_need_defaults; then
23863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23864 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23865 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23868 # Have a temporary directory for convenience. Make it in the build tree
23869 # simply because there is no reason against having it here, and in addition,
23870 # creating and moving files from /tmp can sometimes cause problems.
23871 # Hook for its removal unless debugging.
23872 # Note that there is a small window in which the directory will not be cleaned:
23873 # after its creation but before its name has been assigned to `$tmp'.
23877 trap 'exit_status=$?
23878 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23880 trap '{ (exit 1); exit 1; }' 1 2 13 15
23882 # Create a (secure) tmp directory for tmp files.
23885 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23886 test -n "$tmp" && test -d "$tmp"
23889 tmp=./conf$$-$RANDOM
23890 (umask 077 && mkdir "$tmp")
23893 echo "$me: cannot create a temporary directory in ." >&2
23894 { (exit 1); exit 1; }
23898 # Set up the sed scripts for CONFIG_FILES section.
23901 # No need to generate the scripts if there are no CONFIG_FILES.
23902 # This happens for instance when ./config.status config.h
23903 if test -n "$CONFIG_FILES"; then
23910 for ac_last_try in false false false false false :; do
23911 cat >conf$$subs.sed <<_ACEOF
23912 SHELL!$SHELL$ac_delim
23913 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23914 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23915 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23916 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23917 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23918 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23919 exec_prefix!$exec_prefix$ac_delim
23920 prefix!$prefix$ac_delim
23921 program_transform_name!$program_transform_name$ac_delim
23922 bindir!$bindir$ac_delim
23923 sbindir!$sbindir$ac_delim
23924 libexecdir!$libexecdir$ac_delim
23925 datarootdir!$datarootdir$ac_delim
23926 datadir!$datadir$ac_delim
23927 sysconfdir!$sysconfdir$ac_delim
23928 sharedstatedir!$sharedstatedir$ac_delim
23929 localstatedir!$localstatedir$ac_delim
23930 includedir!$includedir$ac_delim
23931 oldincludedir!$oldincludedir$ac_delim
23932 docdir!$docdir$ac_delim
23933 infodir!$infodir$ac_delim
23934 htmldir!$htmldir$ac_delim
23935 dvidir!$dvidir$ac_delim
23936 pdfdir!$pdfdir$ac_delim
23937 psdir!$psdir$ac_delim
23938 libdir!$libdir$ac_delim
23939 localedir!$localedir$ac_delim
23940 mandir!$mandir$ac_delim
23941 DEFS!$DEFS$ac_delim
23942 ECHO_C!$ECHO_C$ac_delim
23943 ECHO_N!$ECHO_N$ac_delim
23944 ECHO_T!$ECHO_T$ac_delim
23945 LIBS!$LIBS$ac_delim
23946 build_alias!$build_alias$ac_delim
23947 host_alias!$host_alias$ac_delim
23948 target_alias!$target_alias$ac_delim
23949 LIBGPG_ERROR_LT_CURRENT!$LIBGPG_ERROR_LT_CURRENT$ac_delim
23950 LIBGPG_ERROR_LT_AGE!$LIBGPG_ERROR_LT_AGE$ac_delim
23951 LIBGPG_ERROR_LT_REVISION!$LIBGPG_ERROR_LT_REVISION$ac_delim
23952 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23953 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23954 INSTALL_DATA!$INSTALL_DATA$ac_delim
23955 am__isrc!$am__isrc$ac_delim
23956 CYGPATH_W!$CYGPATH_W$ac_delim
23957 PACKAGE!$PACKAGE$ac_delim
23958 VERSION!$VERSION$ac_delim
23959 ACLOCAL!$ACLOCAL$ac_delim
23960 AUTOCONF!$AUTOCONF$ac_delim
23961 AUTOMAKE!$AUTOMAKE$ac_delim
23962 AUTOHEADER!$AUTOHEADER$ac_delim
23963 MAKEINFO!$MAKEINFO$ac_delim
23964 install_sh!$install_sh$ac_delim
23965 STRIP!$STRIP$ac_delim
23966 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23967 mkdir_p!$mkdir_p$ac_delim
23969 SET_MAKE!$SET_MAKE$ac_delim
23970 am__leading_dot!$am__leading_dot$ac_delim
23971 AMTAR!$AMTAR$ac_delim
23972 am__tar!$am__tar$ac_delim
23973 am__untar!$am__untar$ac_delim
23974 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23975 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23976 MAINT!$MAINT$ac_delim
23977 build!$build$ac_delim
23978 build_cpu!$build_cpu$ac_delim
23979 build_vendor!$build_vendor$ac_delim
23980 build_os!$build_os$ac_delim
23981 host!$host$ac_delim
23982 host_cpu!$host_cpu$ac_delim
23983 host_vendor!$host_vendor$ac_delim
23984 host_os!$host_os$ac_delim
23986 CFLAGS!$CFLAGS$ac_delim
23987 LDFLAGS!$LDFLAGS$ac_delim
23988 CPPFLAGS!$CPPFLAGS$ac_delim
23989 ac_ct_CC!$ac_ct_CC$ac_delim
23990 EXEEXT!$EXEEXT$ac_delim
23991 OBJEXT!$OBJEXT$ac_delim
23992 DEPDIR!$DEPDIR$ac_delim
23993 am__include!$am__include$ac_delim
23994 am__quote!$am__quote$ac_delim
23995 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23996 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23997 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23998 CCDEPMODE!$CCDEPMODE$ac_delim
23999 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24000 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24004 GREP!$GREP$ac_delim
24005 EGREP!$EGREP$ac_delim
24006 LN_S!$LN_S$ac_delim
24007 ECHO!$ECHO$ac_delim
24008 RANLIB!$RANLIB$ac_delim
24011 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24013 elif $ac_last_try; then
24014 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24015 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24016 { (exit 1); exit 1; }; }
24018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24022 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24023 if test -n "$ac_eof"; then
24024 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24025 ac_eof=`expr $ac_eof + 1`
24028 cat >>$CONFIG_STATUS <<_ACEOF
24029 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24033 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24034 s/^/s,@/; s/!/@,|#_!!_#|/
24037 s/'"$ac_delim"'$/,g/; t
24039 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24040 ' >>$CONFIG_STATUS <conf$$subs.sed
24041 rm -f conf$$subs.sed
24042 cat >>$CONFIG_STATUS <<_ACEOF
24048 for ac_last_try in false false false false false :; do
24049 cat >conf$$subs.sed <<_ACEOF
24050 DLLTOOL!$DLLTOOL$ac_delim
24052 OBJDUMP!$OBJDUMP$ac_delim
24054 CXXFLAGS!$CXXFLAGS$ac_delim
24055 ac_ct_CXX!$ac_ct_CXX$ac_delim
24056 CXXDEPMODE!$CXXDEPMODE$ac_delim
24057 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24058 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24059 CXXCPP!$CXXCPP$ac_delim
24061 FFLAGS!$FFLAGS$ac_delim
24062 ac_ct_F77!$ac_ct_F77$ac_delim
24063 LIBTOOL!$LIBTOOL$ac_delim
24064 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
24065 USE_NLS!$USE_NLS$ac_delim
24066 MSGFMT!$MSGFMT$ac_delim
24067 GMSGFMT!$GMSGFMT$ac_delim
24068 MSGFMT_015!$MSGFMT_015$ac_delim
24069 GMSGFMT_015!$GMSGFMT_015$ac_delim
24070 XGETTEXT!$XGETTEXT$ac_delim
24071 XGETTEXT_015!$XGETTEXT_015$ac_delim
24072 MSGMERGE!$MSGMERGE$ac_delim
24073 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
24074 LIBICONV!$LIBICONV$ac_delim
24075 LTLIBICONV!$LTLIBICONV$ac_delim
24076 INTLLIBS!$INTLLIBS$ac_delim
24077 LIBINTL!$LIBINTL$ac_delim
24078 LTLIBINTL!$LTLIBINTL$ac_delim
24079 POSUB!$POSUB$ac_delim
24080 GPG_ERROR_CONFIG_LIBS!$GPG_ERROR_CONFIG_LIBS$ac_delim
24081 GPG_ERROR_CONFIG_CFLAGS!$GPG_ERROR_CONFIG_CFLAGS$ac_delim
24082 BUILD_TIMESTAMP!$BUILD_TIMESTAMP$ac_delim
24083 BUILD_FILEVERSION!$BUILD_FILEVERSION$ac_delim
24084 HAVE_W32_SYSTEM_TRUE!$HAVE_W32_SYSTEM_TRUE$ac_delim
24085 HAVE_W32_SYSTEM_FALSE!$HAVE_W32_SYSTEM_FALSE$ac_delim
24086 LANGUAGES_SOME_TRUE!$LANGUAGES_SOME_TRUE$ac_delim
24087 LANGUAGES_SOME_FALSE!$LANGUAGES_SOME_FALSE$ac_delim
24088 LIBOBJS!$LIBOBJS$ac_delim
24089 LTLIBOBJS!$LTLIBOBJS$ac_delim
24092 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
24094 elif $ac_last_try; then
24095 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24097 { (exit 1); exit 1; }; }
24099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24103 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24104 if test -n "$ac_eof"; then
24105 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24106 ac_eof=`expr $ac_eof + 1`
24109 cat >>$CONFIG_STATUS <<_ACEOF
24110 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24115 s/^/s,@/; s/!/@,|#_!!_#|/
24118 s/'"$ac_delim"'$/,g/; t
24120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24121 ' >>$CONFIG_STATUS <conf$$subs.sed
24122 rm -f conf$$subs.sed
24123 cat >>$CONFIG_STATUS <<_ACEOF
24130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24132 # trailing colons and then remove the whole line if VPATH becomes empty
24133 # (actually we leave an empty line to preserve line numbers).
24134 if test "x$srcdir" = x.; then
24135 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24136 s/:*\$(srcdir):*/:/
24137 s/:*\${srcdir}:*/:/
24139 s/^\([^=]*=[ ]*\):*/\1/
24145 cat >>$CONFIG_STATUS <<\_ACEOF
24146 fi # test -n "$CONFIG_FILES"
24149 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24152 :[FHLC]) ac_mode=$ac_tag; continue;;
24154 case $ac_mode$ac_tag in
24156 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24157 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24158 { (exit 1); exit 1; }; };;
24159 :[FH]-) ac_tag=-:-;;
24160 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24177 -) ac_f="$tmp/stdin";;
24178 *) # Look for the file first in the build tree, then in the source tree
24179 # (if the path is not absolute). The absolute path cannot be DOS-style,
24180 # because $ac_f cannot contain `:'.
24184 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24186 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24187 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24188 { (exit 1); exit 1; }; };;
24190 ac_file_inputs="$ac_file_inputs $ac_f"
24193 # Let's still pretend it is `configure' which instantiates (i.e., don't
24194 # use $as_me), people would be surprised to read:
24195 # /* config.h. Generated by config.status. */
24196 configure_input="Generated from "`IFS=:
24197 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24198 if test x"$ac_file" != x-; then
24199 configure_input="$ac_file. $configure_input"
24200 { echo "$as_me:$LINENO: creating $ac_file" >&5
24201 echo "$as_me: creating $ac_file" >&6;}
24205 *:-:* | *:-) cat >"$tmp/stdin";;
24210 ac_dir=`$as_dirname -- "$ac_file" ||
24211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24212 X"$ac_file" : 'X\(//\)[^/]' \| \
24213 X"$ac_file" : 'X\(//\)$' \| \
24214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24220 /^X\(\/\/\)[^/].*/{
24235 -*) as_dir=./$as_dir;;
24237 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24241 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24242 *) as_qdir=$as_dir;;
24244 as_dirs="'$as_qdir' $as_dirs"
24245 as_dir=`$as_dirname -- "$as_dir" ||
24246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247 X"$as_dir" : 'X\(//\)[^/]' \| \
24248 X"$as_dir" : 'X\(//\)$' \| \
24249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24255 /^X\(\/\/\)[^/].*/{
24268 test -d "$as_dir" && break
24270 test -z "$as_dirs" || eval "mkdir $as_dirs"
24271 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24272 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24273 { (exit 1); exit 1; }; }; }
24277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24280 # A ".." for each directory in $ac_dir_suffix.
24281 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24282 case $ac_top_builddir_sub in
24283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24287 ac_abs_top_builddir=$ac_pwd
24288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24289 # for backward compatibility:
24290 ac_top_builddir=$ac_top_build_prefix
24293 .) # We are building in place.
24295 ac_top_srcdir=$ac_top_builddir_sub
24296 ac_abs_top_srcdir=$ac_pwd ;;
24297 [\\/]* | ?:[\\/]* ) # Absolute name.
24298 ac_srcdir=$srcdir$ac_dir_suffix;
24299 ac_top_srcdir=$srcdir
24300 ac_abs_top_srcdir=$srcdir ;;
24301 *) # Relative name.
24302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24303 ac_top_srcdir=$ac_top_build_prefix$srcdir
24304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24317 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24319 ac_MKDIR_P=$MKDIR_P
24321 [\\/$]* | ?:[\\/]* ) ;;
24322 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24327 # If the template does not know about datarootdir, expand it.
24328 # FIXME: This hack should be removed a few years after 2.60.
24329 ac_datarootdir_hack=; ac_datarootdir_seen=
24331 case `sed -n '/datarootdir/ {
24340 ' $ac_file_inputs` in
24341 *datarootdir*) ac_datarootdir_seen=yes;;
24342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24343 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24344 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24346 cat >>$CONFIG_STATUS <<_ACEOF
24347 ac_datarootdir_hack='
24348 s&@datadir@&$datadir&g
24349 s&@docdir@&$docdir&g
24350 s&@infodir@&$infodir&g
24351 s&@localedir@&$localedir&g
24352 s&@mandir@&$mandir&g
24353 s&\\\${datarootdir}&$datarootdir&g' ;;
24357 # Neutralize VPATH when `$srcdir' = `.'.
24358 # Shell code in configure.ac might set extrasub.
24359 # FIXME: do we really want to maintain this feature?
24360 cat >>$CONFIG_STATUS <<_ACEOF
24364 cat >>$CONFIG_STATUS <<\_ACEOF
24366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24367 s&@configure_input@&$configure_input&;t t
24368 s&@top_builddir@&$ac_top_builddir_sub&;t t
24369 s&@srcdir@&$ac_srcdir&;t t
24370 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24371 s&@top_srcdir@&$ac_top_srcdir&;t t
24372 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24373 s&@builddir@&$ac_builddir&;t t
24374 s&@abs_builddir@&$ac_abs_builddir&;t t
24375 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24376 s&@INSTALL@&$ac_INSTALL&;t t
24377 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24378 $ac_datarootdir_hack
24379 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24382 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24384 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24385 which seems to be undefined. Please make sure it is defined." >&5
24386 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24387 which seems to be undefined. Please make sure it is defined." >&2;}
24391 -) cat "$tmp/out"; rm -f "$tmp/out";;
24392 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24401 # Transform confdefs.h into a sed script `conftest.defines', that
24402 # substitutes the proper values into config.h.in to produce config.h.
24403 rm -f conftest.defines conftest.tail
24404 # First, append a space to every undef/define line, to ease matching.
24405 echo 's/$/ /' >conftest.defines
24406 # Then, protect against being on the right side of a sed subst, or in
24407 # an unquoted here document, in config.status. If some macros were
24408 # called several times there might be several #defines for the same
24409 # symbol, which is useless. But do not sort them, since the last
24410 # AC_DEFINE must be honored.
24411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24412 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24413 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24414 # PARAMS is the parameter list in the macro definition--in most cases, it's
24415 # just an empty string.
24416 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24417 ac_dB='\\)[ (].*,\\1define\\2'
24425 s/^[ ]*#[ ]*define[ ][ ]*//
24430 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24431 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24432 ' >>conftest.defines
24434 # Remove the space that was appended to ease matching.
24435 # Then replace #undef with comments. This is necessary, for
24436 # example, in the case of _POSIX_SOURCE, which is predefined and required
24437 # on some systems where configure will not decide to define it.
24438 # (The regexp can be short, since the line contains either #define or #undef.)
24440 s,^[ #]*u.*,/* & */,' >>conftest.defines
24442 # Break up conftest.defines:
24443 ac_max_sed_lines=50
24445 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24446 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24447 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24449 ac_in='$ac_file_inputs'
24450 ac_out='"$tmp/out1"'
24451 ac_nxt='"$tmp/out2"'
24455 # Write a here document:
24456 cat >>$CONFIG_STATUS <<_ACEOF
24457 # First, check the format of the line:
24458 cat >"\$tmp/defines.sed" <<\\CEOF
24459 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24460 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24464 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24466 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24467 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24468 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24469 grep . conftest.tail >/dev/null || break
24470 rm -f conftest.defines
24471 mv conftest.tail conftest.defines
24473 rm -f conftest.defines conftest.tail
24475 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24476 cat >>$CONFIG_STATUS <<\_ACEOF
24477 if test x"$ac_file" != x-; then
24478 echo "/* $configure_input */" >"$tmp/config.h"
24479 cat "$ac_result" >>"$tmp/config.h"
24480 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24481 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24482 echo "$as_me: $ac_file is unchanged" >&6;}
24485 mv "$tmp/config.h" $ac_file
24488 echo "/* $configure_input */"
24492 # Compute $ac_file's index in $config_headers.
24495 for _am_header in $config_headers :; do
24496 case $_am_header in
24497 $_am_arg | $_am_arg:* )
24500 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24503 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24504 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24505 X"$_am_arg" : 'X\(//\)[^/]' \| \
24506 X"$_am_arg" : 'X\(//\)$' \| \
24507 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24513 /^X\(\/\/\)[^/].*/{
24525 s/.*/./; q'`/stamp-h$_am_stamp_count
24528 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24529 echo "$as_me: executing $ac_file commands" >&6;}
24534 case $ac_file$ac_mode in
24535 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24536 # Strip MF so we end up with the name of the file.
24537 mf=`echo "$mf" | sed -e 's/:.*$//'`
24538 # Check whether this is an Automake generated Makefile or not.
24539 # We used to match only the files named `Makefile.in', but
24540 # some people rename them; so instead we look at the file content.
24541 # Grep'ing the first line is not enough: some people post-process
24542 # each Makefile.in and add a new line on top of each file to say so.
24543 # Grep'ing the whole file is not good either: AIX grep has a line
24544 # limit of 2048, but all sed's we know have understand at least 4000.
24545 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24546 dirpart=`$as_dirname -- "$mf" ||
24547 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24548 X"$mf" : 'X\(//\)[^/]' \| \
24549 X"$mf" : 'X\(//\)$' \| \
24550 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24556 /^X\(\/\/\)[^/].*/{
24572 # Extract the definition of DEPDIR, am__include, and am__quote
24573 # from the Makefile without running `make'.
24574 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24575 test -z "$DEPDIR" && continue
24576 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24577 test -z "am__include" && continue
24578 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24579 # When using ansi2knr, U may be empty or an underscore; expand it
24580 U=`sed -n 's/^U = //p' < "$mf"`
24581 # Find all dependency output files, they are included files with
24582 # $(DEPDIR) in their names. We invoke sed twice because it is the
24583 # simplest approach to changing $(DEPDIR) to its actual value in the
24585 for file in `sed -n "
24586 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24587 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24588 # Make sure the directory exists.
24589 test -f "$dirpart/$file" && continue
24590 fdir=`$as_dirname -- "$file" ||
24591 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24592 X"$file" : 'X\(//\)[^/]' \| \
24593 X"$file" : 'X\(//\)$' \| \
24594 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24600 /^X\(\/\/\)[^/].*/{
24613 { as_dir=$dirpart/$fdir
24615 -*) as_dir=./$as_dir;;
24617 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24621 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24622 *) as_qdir=$as_dir;;
24624 as_dirs="'$as_qdir' $as_dirs"
24625 as_dir=`$as_dirname -- "$as_dir" ||
24626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24627 X"$as_dir" : 'X\(//\)[^/]' \| \
24628 X"$as_dir" : 'X\(//\)$' \| \
24629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24635 /^X\(\/\/\)[^/].*/{
24648 test -d "$as_dir" && break
24650 test -z "$as_dirs" || eval "mkdir $as_dirs"
24651 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24653 { (exit 1); exit 1; }; }; }
24654 # echo "creating $dirpart/$file"
24655 echo '# dummy' > "$dirpart/$file"
24659 "po-directories":C)
24660 for ac_file in $CONFIG_FILES; do
24661 # Support "outfile[:infile[:infile...]]"
24663 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24665 # PO directories have a Makefile.in generated from Makefile.in.in.
24666 case "$ac_file" in */Makefile.in)
24667 # Adjust a relative srcdir.
24668 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24669 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24670 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24671 # In autoconf-2.13 it is called $ac_given_srcdir.
24672 # In autoconf-2.50 it is called $srcdir.
24673 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24674 case "$ac_given_srcdir" in
24675 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24676 /*) top_srcdir="$ac_given_srcdir" ;;
24677 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24679 # Treat a directory as a PO directory if and only if it has a
24680 # POTFILES.in file. This allows packages to have multiple PO
24681 # directories under different names or in different locations.
24682 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24683 rm -f "$ac_dir/POTFILES"
24684 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24685 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24686 POMAKEFILEDEPS="POTFILES.in"
24687 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24688 # on $ac_dir but don't depend on user-specified configuration
24690 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24691 # The LINGUAS file contains the set of available languages.
24692 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24693 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24695 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24696 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24697 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24698 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24700 # The set of available languages was given in configure.in.
24701 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24702 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24705 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24706 # Compute UPDATEPOFILES
24707 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24708 # Compute DUMMYPOFILES
24709 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24711 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24712 case "$ac_given_srcdir" in
24714 *) srcdirpre='$(srcdir)/' ;;
24720 for lang in $ALL_LINGUAS; do
24721 POFILES="$POFILES $srcdirpre$lang.po"
24722 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24723 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24724 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24726 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24727 # environment variable.
24729 if test -n "$ALL_LINGUAS"; then
24730 for presentlang in $ALL_LINGUAS; do
24732 if test "%UNSET%" != "$LINGUAS"; then
24733 desiredlanguages="$LINGUAS"
24735 desiredlanguages="$ALL_LINGUAS"
24737 for desiredlang in $desiredlanguages; do
24738 # Use the presentlang catalog if desiredlang is
24739 # a. equal to presentlang, or
24740 # b. a variant of presentlang (because in this case,
24741 # presentlang can be used as a fallback for messages
24742 # which are not translated in the desiredlang catalog).
24743 case "$desiredlang" in
24744 "$presentlang"*) useit=yes;;
24747 if test $useit = yes; then
24748 INST_LINGUAS="$INST_LINGUAS $presentlang"
24753 if test -n "$INST_LINGUAS"; then
24754 for lang in $INST_LINGUAS; do
24755 CATALOGS="$CATALOGS $lang.gmo"
24758 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24759 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24760 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24761 if test -f "$f"; then
24763 *.orig | *.bak | *~) ;;
24764 *) cat "$f" >> "$ac_dir/Makefile" ;;
24772 "src/gpg-error-config":F) chmod +x src/gpg-error-config ;;
24778 { (exit 0); exit 0; }
24780 chmod +x $CONFIG_STATUS
24781 ac_clean_files=$ac_clean_files_save
24784 # configure is writing to config.log, and then calls config.status.
24785 # config.status does its own redirection, appending to config.log.
24786 # Unfortunately, on DOS this fails, as config.log is still kept open
24787 # by configure, so config.status won't be able to write to it; its
24788 # output is simply discarded. So we exec the FD to /dev/null,
24789 # effectively closing config.log, so it can be properly (re)opened and
24790 # appended to by config.status. When coming back to configure, we
24791 # need to make the FD available again.
24792 if test "$no_create" != yes; then
24794 ac_config_status_args=
24795 test "$silent" = yes &&
24796 ac_config_status_args="$ac_config_status_args --quiet"
24798 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24801 # would make configure fail if this is the last instruction.
24802 $ac_cs_success || { (exit 1); exit 1; }
24807 Libgpg-error v${VERSION} has been configured as follows: