2 # From configure.in OpenLDAP: pkg/ldap/contrib/ldapc++/configure.in,v 1.14 2008/06/23 09:08:36 ralf Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for ldapcpplib .
6 # Report bugs to <http://www.openldap.org/its/ >.
8 # Copyright 2000-2010 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
11 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## --------------------- ##
16 ## M4sh Initialization. ##
17 ## --------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in
30 *posix*) set -o posix ;;
39 # Avoid depending upon Character Ranges.
40 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43 as_cr_digits='0123456789'
44 as_cr_alnum=$as_cr_Letters$as_cr_digits
46 # The user is always right.
47 if test "${PATH_SEPARATOR+set}" != set; then
48 echo "#! /bin/sh" >conf$$.sh
49 echo "exit 0" >>conf$$.sh
51 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59 # Support unset when possible.
60 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
68 # We need space, tab and new line, in precisely that order. Quoting is
69 # there to prevent editors from complaining about space-tab.
70 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
71 # splitting by setting IFS to empty value.)
76 # Find who we are. Look in the path if we contain no directory separator.
78 *[\\/]* ) as_myself=$0 ;;
79 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
83 test -z "$as_dir" && as_dir=.
84 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
90 # We did not find ourselves, most probably we were run as `sh COMMAND'
91 # in which case we are not to be found in the path.
92 if test "x$as_myself" = x; then
95 if test ! -f "$as_myself"; then
96 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
100 # Work around bugs in pre-3.0 UWIN ksh.
101 for as_var in ENV MAIL MAILPATH
102 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
115 eval $as_var=C; export $as_var
117 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
121 # Required to use basename.
122 if expr a : '\(a\)' >/dev/null 2>&1 &&
123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
136 # Name of the executable.
137 as_me=`$as_basename -- "$0" ||
138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
139 X"$0" : 'X\(//\)$' \| \
140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
142 sed '/^.*\/\([^/][^/]*\)\/*$/{
160 if test "x$CONFIG_SHELL" = x; then
161 if (eval ":") 2>/dev/null; then
167 if test $as_have_required = yes && (eval ":
177 as_func_ret_success () {
180 as_func_ret_failure () {
185 if as_func_success; then
189 echo as_func_success failed.
192 if as_func_failure; then
194 echo as_func_failure succeeded.
197 if as_func_ret_success; then
201 echo as_func_ret_success failed.
204 if as_func_ret_failure; then
206 echo as_func_ret_failure succeeded.
209 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
213 echo positional parameters were not saved.
216 test \$exitcode = 0) || { (exit 1); exit 1; }
221 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
222 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
223 ") 2> /dev/null; then
227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
228 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
231 test -z "$as_dir" && as_dir=.
234 for as_base in sh bash ksh sh5; do
235 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
242 for as_shell in $as_candidate_shells $SHELL; do
243 # Try only shells that exist, to save several forks.
244 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
245 { ("$as_shell") 2> /dev/null <<\_ASEOF
246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
250 # is contrary to our usage. Disable this feature.
251 alias -g '${1+"$@"}'='"$@"'
254 case `(set -o) 2>/dev/null` in
255 *posix*) set -o posix ;;
264 CONFIG_SHELL=$as_shell
266 if { "$as_shell" 2> /dev/null <<\_ASEOF
267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
271 # is contrary to our usage. Disable this feature.
272 alias -g '${1+"$@"}'='"$@"'
275 case `(set -o) 2>/dev/null` in
276 *posix*) set -o posix ;;
292 as_func_ret_success () {
295 as_func_ret_failure () {
300 if as_func_success; then
304 echo as_func_success failed.
307 if as_func_failure; then
309 echo as_func_failure succeeded.
312 if as_func_ret_success; then
316 echo as_func_ret_success failed.
319 if as_func_ret_failure; then
321 echo as_func_ret_failure succeeded.
324 if ( set x; as_func_ret_success y && test x = "$1" ); then
328 echo positional parameters were not saved.
331 test $exitcode = 0) || { (exit 1); exit 1; }
336 test "x$as_lineno_1" != "x$as_lineno_2" &&
337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
348 if test "x$CONFIG_SHELL" != x; then
349 for as_var in BASH_ENV ENV
350 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
353 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
357 if test $as_have_required = no; then
358 echo This script requires a shell more modern than all the
359 echo shells that I found on your system. Please install a
360 echo modern shell, or manually run the script under such a
361 echo shell if you do have one.
362 { (exit 1); exit 1; }
372 (eval "as_func_return () {
381 as_func_ret_success () {
384 as_func_ret_failure () {
389 if as_func_success; then
393 echo as_func_success failed.
396 if as_func_failure; then
398 echo as_func_failure succeeded.
401 if as_func_ret_success; then
405 echo as_func_ret_success failed.
408 if as_func_ret_failure; then
410 echo as_func_ret_failure succeeded.
413 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
417 echo positional parameters were not saved.
420 test \$exitcode = 0") || {
421 echo No shell found that supports shell functions.
422 echo Please tell autoconf@gnu.org about your system,
423 echo including any error possibly output before this
431 test "x$as_lineno_1" != "x$as_lineno_2" &&
432 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
434 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
435 # uniformly replaced by the line number. The first 'sed' inserts a
436 # line-number line after each line using $LINENO; the second 'sed'
437 # does the real work. The second script uses 'N' to pair each
438 # line-number line with the line containing $LINENO, and appends
439 # trailing '-' during substitution so that $LINENO is not a special
441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
442 # scripts with optimization help from Paolo Bonzini. Blame Lee
443 # E. McMahon (1931-1989) for sed's syntax. :-)
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459 chmod +x "$as_me.lineno" ||
460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
461 { (exit 1); exit 1; }; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
478 ECHO_C= ECHO_N= ECHO_T=
482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
489 if expr a : '\(a\)' >/dev/null 2>&1 &&
490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
496 rm -f conf$$ conf$$.exe conf$$.file
497 if test -d conf$$.dir; then
498 rm -f conf$$.dir/conf$$.file
504 if ln -s conf$$.file conf$$ 2>/dev/null; then
506 # ... but there are two gotchas:
507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509 # In both cases, we have to default to `cp -p'.
510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
512 elif ln conf$$.file conf$$ 2>/dev/null; then
517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
518 rmdir conf$$.dir 2>/dev/null
520 if mkdir -p . 2>/dev/null; then
523 test -d ./-p && rmdir ./-p
527 if test -x / >/dev/null 2>&1; then
530 if ls -dL / >/dev/null 2>&1; then
537 if test -d "$1"; then
543 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
544 ???[sx]*):;;*)false;;esac;fi
548 as_executable_p=$as_test_x
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 # Check that we are running under the correct shell.
560 SHELL=${CONFIG_SHELL-/bin/sh}
564 # Remove one level of quotation (which was required for Make).
565 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
570 if test "X$1" = X--no-reexec; then
571 # Discard the --no-reexec flag, and continue.
573 elif test "X$1" = X--fallback-echo; then
574 # Avoid inline document here, it may be left over
576 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
577 # Yippee, $echo works!
580 # Restart under the correct shell.
581 exec $SHELL "$0" --no-reexec ${1+"$@"}
584 if test "X$1" = X--fallback-echo; then
585 # used as fallback echo
593 # The HP-UX ksh and POSIX shell print the target directory to stdout
595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
597 if test -z "$ECHO"; then
598 if test "X${echo_test_string+set}" != Xset; then
599 # find a string as large as possible, as long as the shell can cope with it
600 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
601 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
602 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
603 echo_test_string=`eval $cmd` &&
604 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
611 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
616 # The Solaris, AIX, and Digital Unix default echo programs unquote
617 # backslashes. This makes it impossible to quote backslashes using
618 # echo "$something" | sed 's/\\/\\\\/g'
620 # So, first we look for a working echo in the user's PATH.
622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
623 for dir in $PATH /usr/ucb; do
625 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
626 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
635 if test "X$echo" = Xecho; then
636 # We didn't find a better echo, so look for alternatives.
637 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
638 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 # This shell has a builtin print -r that does the trick.
642 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
643 test "X$CONFIG_SHELL" != X/bin/ksh; then
644 # If we have ksh, try running configure again with it.
645 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
646 export ORIGINAL_CONFIG_SHELL
647 CONFIG_SHELL=/bin/ksh
649 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
653 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
658 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659 test "X$echo_testing_string" = 'X\t' &&
660 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
662 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
664 SHELL="$CONFIG_SHELL"
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668 test "X$echo_testing_string" = 'X\t' &&
669 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 echo="$CONFIG_SHELL $0 --fallback-echo"
673 # maybe with a smaller string...
676 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
677 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
684 if test "$prev" != 'sed 50q "$0"'; then
685 echo_test_string=`eval $prev`
686 export echo_test_string
687 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
689 # Oops. We lost completely, so just stick with echo.
698 # Copy echo and quote the copy suitably for passing to libtool from
699 # the Makefile, instead of quoting the original, which is used later.
701 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
702 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
708 tagnames=${tagnames+${tagnames},}CXX
710 tagnames=${tagnames+${tagnames},}F77
712 exec 7<&0 </dev/null 6>&1
715 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
722 ac_default_prefix=/usr/local
724 ac_config_libobj_dir=.
730 SHELL=${CONFIG_SHELL-/bin/sh}
732 # Identity of this package.
733 PACKAGE_NAME='ldapcpplib'
734 PACKAGE_TARNAME='ldapcpplib'
736 PACKAGE_STRING='ldapcpplib '
737 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
739 ac_unique_file="src/LDAPConnection.h"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
753 # ifdef HAVE_STDLIB_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
785 program_transform_name
827 INSTALL_STRIP_PROGRAM
835 OPENLDAP_CPP_API_VERSION
884 ac_precious_vars='build_alias
901 # Initialize some variables set by options.
903 ac_init_version=false
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
913 program_transform_name=s,x,x,
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 # Accept the important Cygnus configure options, so we can diagnose typos.
965 case $ac_dashdash$ac_option in
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
987 cache_file=config.cache ;;
989 -datadir | --datadir | --datadi | --datad)
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1001 -disable-* | --disable-*)
1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008 eval enable_$ac_feature=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027 eval enable_$ac_feature=\$ac_optarg ;;
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 htmldir=$ac_optarg ;;
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1072 -libdir | --libdir | --libdi | --libd)
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1163 -psdir | --psdir | --psdi | --psd | --ps)
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 sbindir=$ac_optarg ;;
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 sharedstatedir=$ac_optarg ;;
1189 -site | --site | --sit)
1191 -site=* | --site=* | --sit=*)
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=\$ac_optarg ;;
1226 -without-* | --without-*)
1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=no ;;
1236 # Obsolete; use --with-x.
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) { echo "$as_me: error: unrecognized option: $ac_option
1254 Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 { echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
1284 # Be sure to have absolute directory names.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1290 eval ac_val=\$$ac_var
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296 { (exit 1); exit 1; }; }
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1304 target=$target_alias
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used." >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320 test "$silent" = yes && exec 6>/dev/null
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 { echo "$as_me: error: Working directory cannot be determined" >&2
1327 { (exit 1); exit 1; }; }
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 { echo "$as_me: error: pwd does not report name of working directory" >&2
1330 { (exit 1); exit 1; }; }
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$0" ||
1338 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$0" : 'X\(//\)[^/]' \| \
1340 X"$0" : 'X\(//\)$' \| \
1341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1365 ac_srcdir_defaulted=no
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1370 { (exit 1); exit 1; }; }
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1375 { (exit 1); exit 1; }; }
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1401 \`configure' configures ldapcpplib to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of ldapcpplib :";;
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1493 --with-tags[=TAGS] include additional configurations [automatic]
1494 --with-libldap=DIR Path to the libldap library /usr/local/lib
1495 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1497 Some influential environment variables:
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CC C compiler command
1506 CFLAGS C compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <http://www.openldap.org/its/ >.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1543 .) # We are building in place.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1576 ldapcpplib configure
1577 generated by GNU Autoconf 2.61
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1584 Copyright 2000-2010 The OpenLDAP Foundation. All rights reserved.
1585 Restrictions apply, see COPYRIGHT and LICENSE files.
1589 cat >config.log <<_ACEOF
1590 This file contains any messages produced by compilers while
1591 running configure, to aid debugging if configure makes a mistake.
1593 It was created by ldapcpplib $as_me , which was
1594 generated by GNU Autoconf 2.61. Invocation command line was
1606 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1615 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1619 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1646 # Keep a trace of the command line.
1647 # Strip out --no-create and --no-recursion so they do not pile up.
1648 # Strip out --silent because we don't want to record it for future runs.
1649 # Also quote any args containing shell meta-characters.
1650 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_must_keep_next=false
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 -* ) ac_must_keep_next=true ;;
1686 ac_configure_args="$ac_configure_args '$ac_arg'"
1691 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694 # When interrupted or exit'd, cleanup temporary files, and complete
1695 # config.log. We remove comments because anyway the quotes in there
1696 # would cause problems or look ugly.
1697 # WARNING: Use '\'' to represent an apostrophe within the trap.
1698 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699 trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1705 ## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##
1710 # The following way of writing the cache mishandles newlines in values,
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1747 for ac_var in $ac_subst_vars
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 echo "$ac_var='\''$ac_val'\''"
1757 if test -n "$ac_subst_files"; then
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1764 for ac_var in $ac_subst_files
1766 eval ac_val=\$$ac_var
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 echo "$ac_var='\''$ac_val'\''"
1775 if test -s confdefs.h; then
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793 for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1801 # Predefined preprocessor variables.
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832 elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 echo "$as_me: loading cache $cache_file" >&6;}
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 echo "$as_me: creating cache $cache_file" >&6;}
1866 # Check that the precious variables saved in the cache have kept the same
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889 echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891 echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907 if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 am__api_version='1.10'
1950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951 if test -f "$ac_dir/install-sh"; then
1953 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 elif test -f "$ac_dir/install.sh"; then
1957 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 elif test -f "$ac_dir/shtool"; then
1961 ac_install_sh="$ac_aux_dir/shtool install -c"
1965 if test -z "$ac_aux_dir"; then
1966 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1968 { (exit 1); exit 1; }; }
1971 # These three variables are undocumented and unsupported,
1972 # and are intended to be withdrawn in a future Autoconf release.
1973 # They can cause serious problems if a builder's source tree is in a directory
1974 # whose full name contains unusual characters.
1975 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1976 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1977 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980 # Find a good install program. We prefer a C program (faster),
1981 # so one script is as good as another. But avoid the broken or
1982 # incompatible versions:
1983 # SysV /etc/install, /usr/sbin/install
1984 # SunOS /usr/etc/install
1985 # IRIX /sbin/install
1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991 # OS/2's system install, which has a completely different semantic
1992 # ./install, which can be erroneously created by make from ./install.sh.
1993 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 # Account for people who put trailing slashes in PATH elements.
2006 ./ | .// | /cC/* | \
2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2011 # OSF1 and SCO ODT 3.0 have their own names for install.
2012 # Don't use installbsd from OSF since it installs stuff as root
2014 for ac_prog in ginstall scoinst install; do
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017 if test $ac_prog = install &&
2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2021 elif test $ac_prog = install &&
2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # program-specific install script used by HP pwplus--don't use.
2026 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2039 if test "${ac_cv_path_install+set}" = set; then
2040 INSTALL=$ac_cv_path_install
2042 # As a last resort, use the slow shell script. Don't cache a
2043 # value for INSTALL within a source directory, because that will
2044 # break other packages using the cache if that directory is
2045 # removed, or if the value is a relative name.
2046 INSTALL=$ac_install_sh
2049 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2050 echo "${ECHO_T}$INSTALL" >&6; }
2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053 # It thinks the first close brace ends the variable substitution.
2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2060 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2064 echo timestamp > conftest.file
2065 # Do `set' in a subshell so we don't clobber the current shell's
2066 # arguments. Must try -L first in case configure is actually a
2067 # symlink; some systems play weird games with the mod time of symlinks
2068 # (eg FreeBSD returns the mod time of the symlink's containing
2071 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072 if test "$*" = "X"; then
2074 set X `ls -t $srcdir/configure conftest.file`
2077 if test "$*" != "X $srcdir/configure conftest.file" \
2078 && test "$*" != "X conftest.file $srcdir/configure"; then
2080 # If neither matched, then we have a broken ls. This can happen
2081 # if, for instance, CONFIG_SHELL is bash and it inherits a
2082 # broken ls alias from the environment. This has actually
2083 # happened. Such a system could not be considered "sane".
2084 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2085 alias in your environment" >&5
2086 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2087 alias in your environment" >&2;}
2088 { (exit 1); exit 1; }; }
2091 test "$2" = conftest.file
2097 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098 Check your system clock" >&5
2099 echo "$as_me: error: newly created file is older than distributed files!
2100 Check your system clock" >&2;}
2101 { (exit 1); exit 1; }; }
2103 { echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6; }
2105 test "$program_prefix" != NONE &&
2106 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2107 # Use a double $ so make ignores it.
2108 test "$program_suffix" != NONE &&
2109 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2110 # Double any \ or $. echo might interpret backslashes.
2111 # By default was `s,x,x', remove it if useless.
2112 cat <<\_ACEOF >conftest.sed
2113 s/[\\$]/&&/g;s/;s,x,x,$//
2115 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2118 # expand $ac_aux_dir to an absolute path
2119 am_aux_dir=`cd $ac_aux_dir && pwd`
2121 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122 # Use eval to expand $SHELL
2123 if eval "$MISSING --run true"; then
2124 am_missing_run="$MISSING --run "
2127 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2131 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2132 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2133 if test -z "$MKDIR_P"; then
2134 if test "${ac_cv_path_mkdir+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2141 test -z "$as_dir" && as_dir=.
2142 for ac_prog in mkdir gmkdir; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2146 'mkdir (GNU coreutils) '* | \
2147 'mkdir (coreutils) '* | \
2148 'mkdir (fileutils) '4.1*)
2149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 MKDIR_P="$ac_cv_path_mkdir -p"
2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for MKDIR_P within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 test -d ./--version && rmdir ./--version
2167 MKDIR_P="$ac_install_sh -d"
2170 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2171 echo "${ECHO_T}$MKDIR_P" >&6; }
2175 [\\/$]* | ?:[\\/]*) ;;
2176 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2179 for ac_prog in gawk mawk nawk awk
2181 # Extract the first word of "$ac_prog", so it can be a program name with args.
2182 set dummy $ac_prog; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_AWK+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 if test -n "$AWK"; then
2189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_AWK="$ac_prog"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 if test -n "$AWK"; then
2210 { echo "$as_me:$LINENO: result: $AWK" >&5
2211 echo "${ECHO_T}$AWK" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2218 test -n "$AWK" && break
2221 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2223 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2224 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 cat >conftest.make <<\_ACEOF
2230 @echo '@@@%%%=$(MAKE)=@@@%%%'
2232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2233 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2235 eval ac_cv_prog_make_${ac_make}_set=yes;;
2237 eval ac_cv_prog_make_${ac_make}_set=no;;
2241 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2242 { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2248 SET_MAKE="MAKE=${MAKE-make}"
2251 rm -rf .tst 2>/dev/null
2252 mkdir .tst 2>/dev/null
2253 if test -d .tst; then
2258 rmdir .tst 2>/dev/null
2260 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2261 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2262 # is not polluted with repeated "-I."
2263 am__isrc=' -I$(srcdir)'
2264 # test to see if srcdir already configured
2265 if test -f $srcdir/config.status; then
2266 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2267 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268 { (exit 1); exit 1; }; }
2272 # test whether we have cygpath
2273 if test -z "$CYGPATH_W"; then
2274 if (cygpath --version) >/dev/null 2>/dev/null; then
2275 CYGPATH_W='cygpath -w'
2282 # Define the identity of the package.
2283 PACKAGE='ldapcpplib'
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE "$PACKAGE"
2292 cat >>confdefs.h <<_ACEOF
2293 #define VERSION "$VERSION"
2296 # Some tools Automake needs.
2298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2312 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2314 # Installed binaries are usually stripped using `strip' when the user
2315 # run `make install-strip'. However `strip' might not be the right
2316 # tool to use in cross-compilation environments, therefore Automake
2317 # will honor the `STRIP' environment variable to overrule this program.
2318 if test "$cross_compiling" != no; then
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_STRIP+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 if test -n "$STRIP"; then
2328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 STRIP=$ac_cv_prog_STRIP
2348 if test -n "$STRIP"; then
2349 { echo "$as_me:$LINENO: result: $STRIP" >&5
2350 echo "${ECHO_T}$STRIP" >&6; }
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2358 if test -z "$ac_cv_prog_STRIP"; then
2360 # Extract the first word of "strip", so it can be a program name with args.
2361 set dummy strip; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$ac_ct_STRIP"; then
2368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_STRIP="strip"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388 if test -n "$ac_ct_STRIP"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2396 if test "x$ac_ct_STRIP" = x; then
2399 case $cross_compiling:$ac_tool_warned in
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2412 STRIP="$ac_cv_prog_STRIP"
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2418 # We need awk for the "check" target. The system "awk" is bad on
2420 # Always define AMTAR for backward compatibility.
2422 AMTAR=${AMTAR-"${am_missing_run}tar"}
2424 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2430 ac_config_headers="$ac_config_headers src/config.h"
2433 eval `$ac_aux_dir/version.sh`
2434 if test -z "$OL_CPP_API_RELEASE"; then
2435 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2436 echo "$as_me: error: could not determine version" >&2;}
2437 { (exit 1); exit 1; }; }
2440 VERSION=$OL_CPP_API_RELEASE
2441 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2459 if test -z "$INSTALL"; then
2460 if test "${ac_cv_path_install+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2470 ./ | .// | /cC/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2503 if test "${ac_cv_path_install+set}" = set; then
2504 INSTALL=$ac_cv_path_install
2506 # As a last resort, use the slow shell script. Don't cache a
2507 # value for INSTALL within a source directory, because that will
2508 # break other packages using the cache if that directory is
2509 # removed, or if the value is a relative name.
2510 INSTALL=$ac_install_sh
2513 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2514 echo "${ECHO_T}$INSTALL" >&6; }
2516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517 # It thinks the first close brace ends the variable substitution.
2518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525 ac_cpp='$CXXCPP $CPPFLAGS'
2526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2529 if test -z "$CXX"; then
2530 if test -n "$CCC"; then
2533 if test -n "$ac_tool_prefix"; then
2534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CXX+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$CXX"; then
2544 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test -n "$CXX"; then
2565 { echo "$as_me:$LINENO: result: $CXX" >&5
2566 echo "${ECHO_T}$CXX" >&6; }
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2573 test -n "$CXX" && break
2576 if test -z "$CXX"; then
2578 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$ac_ct_CXX"; then
2588 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_ac_ct_CXX="$ac_prog"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2608 if test -n "$ac_ct_CXX"; then
2609 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2610 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2612 { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2617 test -n "$ac_ct_CXX" && break
2620 if test "x$ac_ct_CXX" = x; then
2623 case $cross_compiling:$ac_tool_warned in
2625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet. If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2639 # Provide some information about the compiler.
2640 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2641 ac_compiler=`set X $ac_compile; echo $2`
2642 { (ac_try="$ac_compiler --version >&5"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler --version >&5") 2>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -v >&5"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -v >&5") 2>&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (ac_try="$ac_compiler -V >&5"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler -V >&5") 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 ac_clean_files_save=$ac_clean_files
2689 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2690 # Try to create an executable without -o first, disregard a.out.
2691 # It will help us diagnose broken compilers, and finding out an intuition
2693 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2694 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2695 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2697 # List of possible output files, starting from the most likely.
2698 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2699 # only as a last resort. b.out is created by i960 compilers.
2700 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2702 # The IRIX 6 linker writes into existing files which may not be
2703 # executable, retaining their permissions. Remove them first so a
2704 # subsequent execution test works.
2706 for ac_file in $ac_files
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715 if { (ac_try="$ac_link_default"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_link_default") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; then
2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2728 # so that the user can short-circuit this test for compilers unknown to
2730 for ac_file in $ac_files ''
2732 test -f "$ac_file" || continue
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2737 # We found the default executable, but exeext='' is most
2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 # We set ac_cv_exeext here because the later test for it is not
2746 # safe: cross compilers may not add the suffix if given an `-o'
2747 # argument, so we may need to know it at that point already.
2748 # Even if this section looks crufty: it has the advantage of
2755 test "$ac_cv_exeext" = no && ac_cv_exeext=
2761 { echo "$as_me:$LINENO: result: $ac_file" >&5
2762 echo "${ECHO_T}$ac_file" >&6; }
2763 if test -z "$ac_file"; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: C++ compiler cannot create executables
2770 See \`config.log' for more details." >&2;}
2771 { (exit 77); exit 77; }; }
2774 ac_exeext=$ac_cv_exeext
2776 # Check that the compiler produces executables we can run. If not, either
2777 # the compiler is broken, or we cross compile.
2778 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2779 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2781 # If not cross compiling, check that we can run a simple program.
2782 if test "$cross_compiling" != yes; then
2783 if { ac_try='./$ac_file'
2784 { (case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_try") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2795 if test "$cross_compiling" = maybe; then
2798 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot run C++ compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2808 { echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6; }
2811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2812 ac_clean_files=$ac_clean_files_save
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2817 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2818 echo "${ECHO_T}$cross_compiling" >&6; }
2820 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2822 if { (ac_try="$ac_link"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link") 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2834 # work properly (i.e., refer to `conftest.exe'), while it won't with
2836 for ac_file in conftest.exe conftest conftest.*; do
2837 test -f "$ac_file" || continue
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2853 rm -f conftest$ac_cv_exeext
2854 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2855 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2857 rm -f conftest.$ac_ext
2858 EXEEXT=$ac_cv_exeext
2860 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2861 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2862 if test "${ac_cv_objext+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2880 rm -f conftest.o conftest.obj
2881 if { (ac_try="$ac_compile"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
2891 for ac_file in conftest.o conftest.obj conftest.*; do
2892 test -f "$ac_file" || continue;
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details." >&5
2905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2912 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2913 echo "${ECHO_T}$ac_cv_objext" >&6; }
2914 OBJEXT=$ac_cv_objext
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_cxx_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.$ac_objext; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2968 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2969 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2970 GXX=`test $ac_compiler_gnu = yes && echo yes`
2971 ac_test_CXXFLAGS=${CXXFLAGS+set}
2972 ac_save_CXXFLAGS=$CXXFLAGS
2973 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2974 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_cxx_g+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2979 ac_cxx_werror_flag=yes
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_cxx_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3014 ac_cv_prog_cxx_g=yes
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_cxx_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_cxx_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
3091 ac_cv_prog_cxx_g=yes
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3110 if test "$ac_test_CXXFLAGS" = set; then
3111 CXXFLAGS=$ac_save_CXXFLAGS
3112 elif test $ac_cv_prog_cxx_g = yes; then
3113 if test "$GXX" = yes; then
3119 if test "$GXX" = yes; then
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 DEPDIR="${am__leading_dot}deps"
3132 ac_config_commands="$ac_config_commands depfiles"
3135 am_make=${MAKE-make}
3136 cat > confinc << 'END'
3141 # If we don't find an include directive, just comment out the code.
3142 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3143 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3147 # First try GNU make style include.
3148 echo "include confinc" > confmf
3149 # We grep out `Entering directory' and `Leaving directory'
3150 # messages which can occur if `w' ends up in MAKEFLAGS.
3151 # In particular we don't look at `^make:' because GNU make might
3152 # be invoked under some other name (usually "gmake"), in which
3153 # case it prints its new name instead of `make'.
3154 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3159 # Now try BSD make style include.
3160 if test "$am__include" = "#"; then
3161 echo '.include "confinc"' > confmf
3162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3163 am__include=.include
3170 { echo "$as_me:$LINENO: result: $_am_result" >&5
3171 echo "${ECHO_T}$_am_result" >&6; }
3172 rm -f confinc confmf
3174 # Check whether --enable-dependency-tracking was given.
3175 if test "${enable_dependency_tracking+set}" = set; then
3176 enableval=$enable_dependency_tracking;
3179 if test "x$enable_dependency_tracking" != xno; then
3180 am_depcomp="$ac_aux_dir/depcomp"
3183 if test "x$enable_dependency_tracking" != xno; then
3193 depcc="$CXX" am_compiler_list=
3195 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3196 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3197 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3201 # We make a subdir and do the tests there. Otherwise we can end up
3202 # making bogus files that we don't know about and never remove. For
3203 # instance it was reported that on HP-UX the gcc test will end up
3204 # making a dummy file named `D' -- because `-MD' means `put the output
3207 # Copy depcomp to subdir because otherwise we won't find it if we're
3208 # using a relative directory.
3209 cp "$am_depcomp" conftest.dir
3211 # We will build objects and dependencies in a subdirectory because
3212 # it helps to detect inapplicable dependency modes. For instance
3213 # both Tru64's cc and ICC support -MD to output dependencies as a
3214 # side effect of compilation, but ICC will put the dependencies in
3215 # the current directory while Tru64 will put them in the object
3219 am_cv_CXX_dependencies_compiler_type=none
3220 if test "$am_compiler_list" = ""; then
3221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3223 for depmode in $am_compiler_list; do
3224 # Setup a source with many dependencies, because some compilers
3225 # like to wrap large dependency lists on column 80 (with \), and
3226 # we should not choose a depcomp mode which is confused by this.
3228 # We need to recreate these files for each test, as the compiler may
3229 # overwrite some of them when testing with obscure command lines.
3230 # This happens at least with the AIX C compiler.
3232 for i in 1 2 3 4 5 6; do
3233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3234 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3235 # Solaris 8's {/usr,}/bin/sh.
3236 touch sub/conftst$i.h
3238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3242 # after this tag, mechanisms are not by side-effect, so they'll
3243 # only be used when explicitly requested
3244 if test "x$enable_dependency_tracking" = xyes; then
3252 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3253 # mode. It turns out that the SunPro C++ compiler does not properly
3254 # handle `-M -o', and we need to detect this.
3255 if depmode=$depmode \
3256 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3258 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3259 >/dev/null 2>conftest.err &&
3260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3262 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3264 # icc doesn't choke on unknown options, it will just issue warnings
3265 # or remarks (even with -Werror). So we grep stderr for any message
3266 # that says an option was ignored or not supported.
3267 # When given -MP, icc 7.0 and 7.1 complain thusly:
3268 # icc: Command line warning: ignoring option '-M'; no argument required
3269 # The diagnosis changed in icc 8.0:
3270 # icc: Command line remark: option '-MP' not supported
3271 if (grep 'ignoring option' conftest.err ||
3272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3273 am_cv_CXX_dependencies_compiler_type=$depmode
3282 am_cv_CXX_dependencies_compiler_type=none
3286 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3287 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3288 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3291 test "x$enable_dependency_tracking" != xno \
3292 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3293 am__fastdepCXX_TRUE=
3294 am__fastdepCXX_FALSE='#'
3296 am__fastdepCXX_TRUE='#'
3297 am__fastdepCXX_FALSE=
3301 # Check whether --enable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval=$enable_shared; p=${PACKAGE-default}
3305 yes) enable_shared=yes ;;
3306 no) enable_shared=no ;;
3309 # Look at the argument we got. We use all the common list separators.
3310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3311 for pkg in $enableval; do
3313 if test "X$pkg" = "X$p"; then
3325 # Check whether --enable-static was given.
3326 if test "${enable_static+set}" = set; then
3327 enableval=$enable_static; p=${PACKAGE-default}
3329 yes) enable_static=yes ;;
3330 no) enable_static=no ;;
3333 # Look at the argument we got. We use all the common list separators.
3334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3335 for pkg in $enableval; do
3337 if test "X$pkg" = "X$p"; then
3349 # Check whether --enable-fast-install was given.
3350 if test "${enable_fast_install+set}" = set; then
3351 enableval=$enable_fast_install; p=${PACKAGE-default}
3353 yes) enable_fast_install=yes ;;
3354 no) enable_fast_install=no ;;
3356 enable_fast_install=no
3357 # Look at the argument we got. We use all the common list separators.
3358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3359 for pkg in $enableval; do
3361 if test "X$pkg" = "X$p"; then
3362 enable_fast_install=yes
3369 enable_fast_install=yes
3373 # Make sure we can run config.sub.
3374 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3375 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3376 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3377 { (exit 1); exit 1; }; }
3379 { echo "$as_me:$LINENO: checking build system type" >&5
3380 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3381 if test "${ac_cv_build+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_build_alias=$build_alias
3385 test "x$ac_build_alias" = x &&
3386 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3387 test "x$ac_build_alias" = x &&
3388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3390 { (exit 1); exit 1; }; }
3391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3392 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3393 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3394 { (exit 1); exit 1; }; }
3397 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3398 echo "${ECHO_T}$ac_cv_build" >&6; }
3399 case $ac_cv_build in
3401 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3402 echo "$as_me: error: invalid value of canonical build" >&2;}
3403 { (exit 1); exit 1; }; };;
3406 ac_save_IFS=$IFS; IFS='-'
3412 # Remember, the first character of IFS is used to create $*,
3413 # except with old shells:
3416 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3419 { echo "$as_me:$LINENO: checking host system type" >&5
3420 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3421 if test "${ac_cv_host+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test "x$host_alias" = x; then
3425 ac_cv_host=$ac_cv_build
3427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3428 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3429 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3430 { (exit 1); exit 1; }; }
3434 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3435 echo "${ECHO_T}$ac_cv_host" >&6; }
3438 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3439 echo "$as_me: error: invalid value of canonical host" >&2;}
3440 { (exit 1); exit 1; }; };;
3443 ac_save_IFS=$IFS; IFS='-'
3449 # Remember, the first character of IFS is used to create $*,
3450 # except with old shells:
3453 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3466 if test "${ac_cv_prog_CC+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 if test -n "$CC"; then
3491 { echo "$as_me:$LINENO: result: $CC" >&5
3492 echo "${ECHO_T}$CC" >&6; }
3494 { echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6; }
3500 if test -z "$ac_cv_prog_CC"; then
3502 # Extract the first word of "gcc", so it can be a program name with args.
3503 set dummy gcc; ac_word=$2
3504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 if test -n "$ac_ct_CC"; then
3510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_ac_ct_CC="gcc"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3532 echo "${ECHO_T}$ac_ct_CC" >&6; }
3534 { echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6; }
3538 if test "x$ac_ct_CC" = x; then
3541 case $cross_compiling:$ac_tool_warned in
3543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet. If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&5
3546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3547 whose name does not start with the host triplet. If you think this
3548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3549 ac_tool_warned=yes ;;
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}cc; ac_word=$2
3561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_CC="${ac_tool_prefix}cc"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test -n "$CC"; then
3588 { echo "$as_me:$LINENO: result: $CC" >&5
3589 echo "${ECHO_T}$CC" >&6; }
3591 { echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6; }
3598 if test -z "$CC"; then
3599 # Extract the first word of "cc", so it can be a program name with args.
3600 set dummy cc; ac_word=$2
3601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3618 ac_prog_rejected=yes
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 if test $ac_prog_rejected = yes; then
3630 # We found a bogon in the path, so make sure we never use it.
3631 set dummy $ac_cv_prog_CC
3633 if test $# != 0; then
3634 # We chose a different compiler from the bogus one.
3635 # However, it has the same basename, so the bogon will be chosen
3636 # first if we set CC to just the basename; use the full file name.
3638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3644 if test -n "$CC"; then
3645 { echo "$as_me:$LINENO: result: $CC" >&5
3646 echo "${ECHO_T}$CC" >&6; }
3648 { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3654 if test -z "$CC"; then
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in cl.exe
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3662 if test "${ac_cv_prog_CC+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 if test -n "$CC"; then
3687 { echo "$as_me:$LINENO: result: $CC" >&5
3688 echo "${ECHO_T}$CC" >&6; }
3690 { echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6; }
3695 test -n "$CC" && break
3698 if test -z "$CC"; then
3700 for ac_prog in cl.exe
3702 # Extract the first word of "$ac_prog", so it can be a program name with args.
3703 set dummy $ac_prog; ac_word=$2
3704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 if test -n "$ac_ct_CC"; then
3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719 ac_cv_prog_ac_ct_CC="$ac_prog"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3732 echo "${ECHO_T}$ac_ct_CC" >&6; }
3734 { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3739 test -n "$ac_ct_CC" && break
3742 if test "x$ac_ct_CC" = x; then
3745 case $cross_compiling:$ac_tool_warned in
3747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3748 whose name does not start with the host triplet. If you think this
3749 configuration is useful to you, please write to autoconf@gnu.org." >&5
3750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3751 whose name does not start with the host triplet. If you think this
3752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3753 ac_tool_warned=yes ;;
3762 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: no acceptable C compiler found in \$PATH
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3768 # Provide some information about the compiler.
3769 echo "$as_me:$LINENO: checking for C compiler version" >&5
3770 ac_compiler=`set X $ac_compile; echo $2`
3771 { (ac_try="$ac_compiler --version >&5"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compiler --version >&5") 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781 { (ac_try="$ac_compiler -v >&5"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compiler -v >&5") 2>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791 { (ac_try="$ac_compiler -V >&5"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compiler -V >&5") 2>&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }
3802 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3803 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3804 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3856 GCC=`test $ac_compiler_gnu = yes && echo yes`
3857 ac_test_CFLAGS=${CFLAGS+set}
3858 ac_save_CFLAGS=$CFLAGS
3859 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3861 if test "${ac_cv_prog_cc_g+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 ac_save_c_werror_flag=$ac_c_werror_flag
3865 ac_c_werror_flag=yes
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3883 rm -f conftest.$ac_objext
3884 if { (ac_try="$ac_compile"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_compile") 2>conftest.er1
3892 grep -v '^ *+' conftest.er1 >conftest.err
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && {
3897 test -z "$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 } && test -s conftest.$ac_objext; then
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3906 cat >conftest.$ac_ext <<_ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_compile") 2>conftest.er1
3930 grep -v '^ *+' conftest.er1 >conftest.err
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && {
3935 test -z "$ac_c_werror_flag" ||
3936 test ! -s conftest.err
3937 } && test -s conftest.$ac_objext; then
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_c_werror_flag=$ac_save_c_werror_flag
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_compile") 2>conftest.er1
3969 grep -v '^ *+' conftest.er1 >conftest.err
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_c_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest.$ac_objext; then
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_c_werror_flag=$ac_save_c_werror_flag
3994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3996 if test "$ac_test_CFLAGS" = set; then
3997 CFLAGS=$ac_save_CFLAGS
3998 elif test $ac_cv_prog_cc_g = yes; then
3999 if test "$GCC" = yes; then
4005 if test "$GCC" = yes; then
4011 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4012 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_cc_c89+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 ac_cv_prog_cc_c89=no
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4026 #include <sys/types.h>
4027 #include <sys/stat.h>
4028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4029 struct buf { int x; };
4030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031 static char *e (p, i)
4037 static char *f (char * (*g) (char **, int), char **p, ...)
4042 s = g (p, va_arg (v,int));
4047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4048 function prototypes and stuff, but not '\xHH' hex character constants.
4049 These don't provoke an error unfortunately, instead are silently treated
4050 as 'x'. The following induces an error, until -std is added to get
4051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4052 array size at least. It's necessary to write '\x00'==0 to get something
4053 that's true only with -std. */
4054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057 inside strings and character constants. */
4059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4061 int test (int i, double x);
4062 struct s1 {int (*f) (int a);};
4063 struct s2 {int (*f) (double a);};
4064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4078 CC="$ac_save_CC $ac_arg"
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 ac_cv_prog_cc_c89=$ac_arg
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f core conftest.err conftest.$ac_objext
4105 test "x$ac_cv_prog_cc_c89" != "xno" && break
4107 rm -f conftest.$ac_ext
4112 case "x$ac_cv_prog_cc_c89" in
4114 { echo "$as_me:$LINENO: result: none needed" >&5
4115 echo "${ECHO_T}none needed" >&6; } ;;
4117 { echo "$as_me:$LINENO: result: unsupported" >&5
4118 echo "${ECHO_T}unsupported" >&6; } ;;
4120 CC="$CC $ac_cv_prog_cc_c89"
4121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4122 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 depcc="$CC" am_compiler_list=
4134 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140 # We make a subdir and do the tests there. Otherwise we can end up
4141 # making bogus files that we don't know about and never remove. For
4142 # instance it was reported that on HP-UX the gcc test will end up
4143 # making a dummy file named `D' -- because `-MD' means `put the output
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4158 am_cv_CC_dependencies_compiler_type=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4162 for depmode in $am_compiler_list; do
4163 # Setup a source with many dependencies, because some compilers
4164 # like to wrap large dependency lists on column 80 (with \), and
4165 # we should not choose a depcomp mode which is confused by this.
4167 # We need to recreate these files for each test, as the compiler may
4168 # overwrite some of them when testing with obscure command lines.
4169 # This happens at least with the AIX C compiler.
4171 for i in 1 2 3 4 5 6; do
4172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174 # Solaris 8's {/usr,}/bin/sh.
4175 touch sub/conftst$i.h
4177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4181 # after this tag, mechanisms are not by side-effect, so they'll
4182 # only be used when explicitly requested
4183 if test "x$enable_dependency_tracking" = xyes; then
4191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4192 # mode. It turns out that the SunPro C++ compiler does not properly
4193 # handle `-M -o', and we need to detect this.
4194 if depmode=$depmode \
4195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4198 >/dev/null 2>conftest.err &&
4199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4201 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4203 # icc doesn't choke on unknown options, it will just issue warnings
4204 # or remarks (even with -Werror). So we grep stderr for any message
4205 # that says an option was ignored or not supported.
4206 # When given -MP, icc 7.0 and 7.1 complain thusly:
4207 # icc: Command line warning: ignoring option '-M'; no argument required
4208 # The diagnosis changed in icc 8.0:
4209 # icc: Command line remark: option '-MP' not supported
4210 if (grep 'ignoring option' conftest.err ||
4211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4212 am_cv_CC_dependencies_compiler_type=$depmode
4221 am_cv_CC_dependencies_compiler_type=none
4225 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4226 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4230 test "x$enable_dependency_tracking" != xno \
4231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4233 am__fastdepCC_FALSE='#'
4235 am__fastdepCC_TRUE='#'
4236 am__fastdepCC_FALSE=
4240 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4241 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4242 if test "${lt_cv_path_SED+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 # Loop through the user's path and test for sed and gsed.
4246 # Then use that list of sed's as ones to test for truncation.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for lt_ac_prog in sed gsed; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4255 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4263 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4264 # along with /bin/sed that truncates output.
4265 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4266 test ! -f $lt_ac_sed && continue
4267 cat /dev/null > conftest.in
4269 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4270 # Check for GNU sed and select it if it is found.
4271 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4272 lt_cv_path_SED=$lt_ac_sed
4276 cat conftest.in conftest.in >conftest.tmp
4277 mv conftest.tmp conftest.in
4278 cp conftest.in conftest.nl
4280 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4281 cmp -s conftest.out conftest.nl || break
4282 # 10000 chars as input seems more than enough
4283 test $lt_ac_count -gt 10 && break
4284 lt_ac_count=`expr $lt_ac_count + 1`
4285 if test $lt_ac_count -gt $lt_ac_max; then
4286 lt_ac_max=$lt_ac_count
4287 lt_cv_path_SED=$lt_ac_sed
4296 { echo "$as_me:$LINENO: result: $SED" >&5
4297 echo "${ECHO_T}$SED" >&6; }
4299 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4300 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4301 if test "${ac_cv_path_GREP+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 # Extract the first word of "grep ggrep" to use in msg output
4305 if test -z "$GREP"; then
4306 set dummy grep ggrep; ac_prog_name=$2
4307 if test "${ac_cv_path_GREP+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 ac_path_GREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in grep ggrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4320 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4321 # Check for GNU ac_path_GREP and select it if it is found.
4322 # Check for GNU $ac_path_GREP
4323 case `"$ac_path_GREP" --version 2>&1` in
4325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4328 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 echo 'GREP' >> "conftest.nl"
4335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 ac_count=`expr $ac_count + 1`
4338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_GREP="$ac_path_GREP"
4341 ac_path_GREP_max=$ac_count
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350 $ac_path_GREP_found && break 3
4360 GREP="$ac_cv_path_GREP"
4361 if test -z "$GREP"; then
4362 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4363 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4364 { (exit 1); exit 1; }; }
4368 ac_cv_path_GREP=$GREP
4373 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4374 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4375 GREP="$ac_cv_path_GREP"
4378 { echo "$as_me:$LINENO: checking for egrep" >&5
4379 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4380 if test "${ac_cv_path_EGREP+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4384 then ac_cv_path_EGREP="$GREP -E"
4386 # Extract the first word of "egrep" to use in msg output
4387 if test -z "$EGREP"; then
4388 set dummy egrep; ac_prog_name=$2
4389 if test "${ac_cv_path_EGREP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_path_EGREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in egrep; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4403 # Check for GNU ac_path_EGREP and select it if it is found.
4404 # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 echo 'EGREP' >> "conftest.nl"
4417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 ac_count=`expr $ac_count + 1`
4420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_EGREP="$ac_path_EGREP"
4423 ac_path_EGREP_max=$ac_count
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 $ac_path_EGREP_found && break 3
4442 EGREP="$ac_cv_path_EGREP"
4443 if test -z "$EGREP"; then
4444 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4446 { (exit 1); exit 1; }; }
4450 ac_cv_path_EGREP=$EGREP
4456 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4457 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4458 EGREP="$ac_cv_path_EGREP"
4462 # Check whether --with-gnu-ld was given.
4463 if test "${with_gnu_ld+set}" = set; then
4464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4470 if test "$GCC" = yes; then
4471 # Check if gcc -print-prog-name=ld gives a path.
4472 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4476 # gcc leaves a trailing carriage return which upsets mingw
4477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4482 # Accept absolute paths.
4484 re_direlt='/[^/][^/]*/\.\./'
4485 # Canonicalize the pathname of ld
4486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4490 test -z "$LD" && LD="$ac_prog"
4493 # If it fails, then pretend we aren't using GCC.
4497 # If it is relative, then search for the first ld in PATH.
4501 elif test "$with_gnu_ld" = yes; then
4502 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4505 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4508 if test "${lt_cv_path_LD+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -z "$LD"; then
4512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4513 for ac_dir in $PATH; do
4515 test -z "$ac_dir" && ac_dir=.
4516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4517 lt_cv_path_LD="$ac_dir/$ac_prog"
4518 # Check to see if the program is GNU ld. I'd rather use --version,
4519 # but apparently some variants of GNU ld only accept -v.
4520 # Break only if it was the GNU/non-GNU ld that we prefer.
4521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4522 *GNU* | *'with BFD'*)
4523 test "$with_gnu_ld" != no && break
4526 test "$with_gnu_ld" != yes && break
4533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4538 if test -n "$LD"; then
4539 { echo "$as_me:$LINENO: result: $LD" >&5
4540 echo "${ECHO_T}$LD" >&6; }
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4547 { (exit 1); exit 1; }; }
4548 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4554 case `$LD -v 2>&1 </dev/null` in
4555 *GNU* | *'with BFD'*)
4556 lt_cv_prog_gnu_ld=yes
4559 lt_cv_prog_gnu_ld=no
4563 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4565 with_gnu_ld=$lt_cv_prog_gnu_ld
4568 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4569 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4570 if test "${lt_cv_ld_reload_flag+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 lt_cv_ld_reload_flag='-r'
4575 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4576 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4577 reload_flag=$lt_cv_ld_reload_flag
4578 case $reload_flag in
4580 *) reload_flag=" $reload_flag" ;;
4582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4585 if test "$GCC" = yes; then
4586 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4588 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4593 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4595 if test "${lt_cv_path_NM+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 if test -n "$NM"; then
4599 # Let the user override the test.
4602 lt_nm_to_check="${ac_tool_prefix}nm"
4603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4604 lt_nm_to_check="$lt_nm_to_check nm"
4606 for lt_tmp_nm in $lt_nm_to_check; do
4607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4610 test -z "$ac_dir" && ac_dir=.
4611 tmp_nm="$ac_dir/$lt_tmp_nm"
4612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4613 # Check to see if the nm accepts a BSD-compat flag.
4614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4615 # nm: unknown option "B" ignored
4616 # Tru64's nm complains that /dev/null is an invalid object file
4617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4618 */dev/null* | *'Invalid file or object type'*)
4619 lt_cv_path_NM="$tmp_nm -B"
4623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4625 lt_cv_path_NM="$tmp_nm -p"
4629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4630 continue # so that we can try to find one that supports BSD flags
4639 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4642 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4643 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4646 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4649 if test "$LN_S" = "ln -s"; then
4650 { echo "$as_me:$LINENO: result: yes" >&5
4651 echo "${ECHO_T}yes" >&6; }
4653 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4654 echo "${ECHO_T}no, using $LN_S" >&6; }
4657 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4658 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4659 if test "${lt_cv_deplibs_check_method+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 lt_cv_file_magic_cmd='$MAGIC_CMD'
4663 lt_cv_file_magic_test_file=
4664 lt_cv_deplibs_check_method='unknown'
4665 # Need to set the preceding variable on all platforms that support
4666 # interlibrary dependencies.
4667 # 'none' -- dependencies not supported.
4668 # `unknown' -- same as none, but documents that we really don't know.
4669 # 'pass_all' -- all dependencies passed with no checks.
4670 # 'test_compile' -- check by making test program.
4671 # 'file_magic [[regex]]' -- check by looking for files in library path
4672 # which responds to the $file_magic_cmd with a given extended regex.
4673 # If you have `file' or equivalent on your system and you're not sure
4674 # whether `pass_all' will *always* work, you probably want this one.
4678 lt_cv_deplibs_check_method=pass_all
4682 lt_cv_deplibs_check_method=pass_all
4686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4687 lt_cv_file_magic_cmd='/usr/bin/file -L'
4688 lt_cv_file_magic_test_file=/shlib/libc.so
4692 # func_win32_libid is a shell function defined in ltmain.sh
4693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4694 lt_cv_file_magic_cmd='func_win32_libid'
4698 # Base MSYS/MinGW do not provide the 'file' command needed by
4699 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4700 # unless we find 'file', for example because we are cross-compiling.
4701 if ( file / ) >/dev/null 2>&1; then
4702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4703 lt_cv_file_magic_cmd='func_win32_libid'
4705 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4706 lt_cv_file_magic_cmd='$OBJDUMP -f'
4710 darwin* | rhapsody*)
4711 lt_cv_deplibs_check_method=pass_all
4714 freebsd* | dragonfly*)
4715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4718 # Not sure whether the presence of OpenBSD here was a mistake.
4719 # Let's accept both of them until this is cleared up.
4720 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4721 lt_cv_file_magic_cmd=/usr/bin/file
4722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4726 lt_cv_deplibs_check_method=pass_all
4731 lt_cv_deplibs_check_method=pass_all
4734 hpux10.20* | hpux11*)
4735 lt_cv_file_magic_cmd=/usr/bin/file
4738 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4739 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4742 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]'
4743 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4753 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4757 irix5* | irix6* | nonstopux*)
4759 *-32|*"-32 ") libmagic=32-bit;;
4760 *-n32|*"-n32 ") libmagic=N32;;
4761 *-64|*"-64 ") libmagic=64-bit;;
4762 *) libmagic=never-match;;
4764 lt_cv_deplibs_check_method=pass_all
4767 # This must be Linux ELF.
4768 linux* | k*bsd*-gnu)
4769 lt_cv_deplibs_check_method=pass_all
4773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4782 lt_cv_file_magic_cmd=/usr/bin/file
4783 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4787 lt_cv_deplibs_check_method=unknown
4791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4798 osf3* | osf4* | osf5*)
4799 lt_cv_deplibs_check_method=pass_all
4803 lt_cv_deplibs_check_method=pass_all
4807 lt_cv_deplibs_check_method=pass_all
4811 case $host_vendor in
4813 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]'
4814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4817 lt_cv_deplibs_check_method=pass_all
4820 lt_cv_file_magic_cmd='/bin/file'
4821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4824 lt_cv_file_magic_cmd='/bin/file'
4825 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4826 lt_cv_file_magic_test_file=/lib/libc.so
4829 lt_cv_deplibs_check_method=pass_all
4832 lt_cv_deplibs_check_method=pass_all
4837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4838 lt_cv_deplibs_check_method=pass_all
4843 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4844 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4845 file_magic_cmd=$lt_cv_file_magic_cmd
4846 deplibs_check_method=$lt_cv_deplibs_check_method
4847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4852 # If no C compiler was specified, use CC.
4855 # If no C compiler flags were specified, use CFLAGS.
4856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4858 # Allow CC to be a program name with arguments.
4862 # Check whether --enable-libtool-lock was given.
4863 if test "${enable_libtool_lock+set}" = set; then
4864 enableval=$enable_libtool_lock;
4867 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4869 # Some flags need to be propagated to the compiler or linker for good
4873 # Find out which ABI we are using.
4874 echo 'int i;' > conftest.$ac_ext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; then
4880 case `/usr/bin/file conftest.$ac_objext` in
4892 # Find out which ABI we are using.
4893 echo '#line 4893 "configure"' > conftest.$ac_ext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 if test "$lt_cv_prog_gnu_ld" = yes; then
4900 case `/usr/bin/file conftest.$ac_objext` in
4902 LD="${LD-ld} -melf32bsmip"
4905 LD="${LD-ld} -melf32bmipn32"
4908 LD="${LD-ld} -melf64bmip"
4912 case `/usr/bin/file conftest.$ac_objext` in
4928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4929 s390*-*linux*|sparc*-*linux*)
4930 # Find out which ABI we are using.
4931 echo 'int i;' > conftest.$ac_ext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; then
4937 case `/usr/bin/file conftest.o` in
4940 x86_64-*kfreebsd*-gnu)
4941 LD="${LD-ld} -m elf_i386_fbsd"
4944 LD="${LD-ld} -m elf_i386"
4946 ppc64-*linux*|powerpc64-*linux*)
4947 LD="${LD-ld} -m elf32ppclinux"
4950 LD="${LD-ld} -m elf_s390"
4953 LD="${LD-ld} -m elf32_sparc"
4959 x86_64-*kfreebsd*-gnu)
4960 LD="${LD-ld} -m elf_x86_64_fbsd"
4963 LD="${LD-ld} -m elf_x86_64"
4965 ppc*-*linux*|powerpc*-*linux*)
4966 LD="${LD-ld} -m elf64ppc"
4969 LD="${LD-ld} -m elf64_s390"
4972 LD="${LD-ld} -m elf64_sparc"
4982 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4983 SAVE_CFLAGS="$CFLAGS"
4984 CFLAGS="$CFLAGS -belf"
4985 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4986 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4987 if test "${lt_cv_cc_needs_belf+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (ac_try="$ac_link"
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018 (eval "$ac_link") 2>conftest.er1
5020 grep -v '^ *+' conftest.er1 >conftest.err
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && {
5025 test -z "$ac_c_werror_flag" ||
5026 test ! -s conftest.err
5027 } && test -s conftest$ac_exeext &&
5028 $as_test_x conftest$ac_exeext; then
5029 lt_cv_cc_needs_belf=yes
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 lt_cv_cc_needs_belf=no
5037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5038 conftest$ac_exeext conftest.$ac_ext
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5047 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5048 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5049 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5050 CFLAGS="$SAVE_CFLAGS"
5054 # Find out which ABI we are using.
5055 echo 'int i;' > conftest.$ac_ext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; then
5061 case `/usr/bin/file conftest.o` in
5063 case $lt_cv_prog_gnu_ld in
5064 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5066 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5080 need_locks="$enable_libtool_lock"
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090 # On Suns, sometimes $CPP names a directory.
5091 if test -n "$CPP" && test -d "$CPP"; then
5094 if test -z "$CPP"; then
5095 if test "${ac_cv_prog_CPP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5102 for ac_c_preproc_warn_flag in '' yes
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5117 # include <limits.h>
5119 # include <assert.h>
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null && {
5136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 # Broken: fails on valid input.
5148 rm -f conftest.err conftest.$ac_ext
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 #include <ac_nonexistent.h>
5160 if { (ac_try="$ac_cpp conftest.$ac_ext"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } >/dev/null && {
5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5176 # Broken: success on invalid input.
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 # Passes both tests.
5187 rm -f conftest.err conftest.$ac_ext
5190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5191 rm -f conftest.err conftest.$ac_ext
5192 if $ac_preproc_ok; then
5204 { echo "$as_me:$LINENO: result: $CPP" >&5
5205 echo "${ECHO_T}$CPP" >&6; }
5207 for ac_c_preproc_warn_flag in '' yes
5209 # Use a header file that comes with gcc, so configuring glibc
5210 # with a fresh cross-compiler works.
5211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212 # <limits.h> exists even on freestanding compilers.
5213 # On the NeXT, cc -E runs the code through the compiler's parser,
5214 # not just through cpp. "Syntax error" is here to catch this case.
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5222 # include <limits.h>
5224 # include <assert.h>
5228 if { (ac_try="$ac_cpp conftest.$ac_ext"
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5236 grep -v '^ *+' conftest.er1 >conftest.err
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } >/dev/null && {
5241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 # Broken: fails on valid input.
5253 rm -f conftest.err conftest.$ac_ext
5255 # OK, works on sane cases. Now check whether nonexistent headers
5256 # can be detected and how.
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <ac_nonexistent.h>
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5281 # Broken: success on invalid input.
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 # Passes both tests.
5292 rm -f conftest.err conftest.$ac_ext
5295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296 rm -f conftest.err conftest.$ac_ext
5297 if $ac_preproc_ok; then
5300 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5303 See \`config.log' for more details." >&2;}
5304 { (exit 1); exit 1; }; }
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5314 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5316 if test "${ac_cv_header_stdc+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5355 ac_cv_header_stdc=yes
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_cv_header_stdc=no
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 if test $ac_cv_header_stdc = yes; then
5366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "memchr" >/dev/null 2>&1; then
5380 ac_cv_header_stdc=no
5386 if test $ac_cv_header_stdc = yes; then
5387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "free" >/dev/null 2>&1; then
5401 ac_cv_header_stdc=no
5407 if test $ac_cv_header_stdc = yes; then
5408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5409 if test "$cross_compiling" = yes; then
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5443 rm -f conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_link") 2>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454 { (case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_try") 2>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5465 echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5470 ac_cv_header_stdc=no
5472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5478 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5479 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5480 if test $ac_cv_header_stdc = yes; then
5482 cat >>confdefs.h <<\_ACEOF
5483 #define STDC_HEADERS 1
5488 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5499 inttypes.h stdint.h unistd.h
5501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 $ac_includes_default
5515 #include <$ac_header>
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 eval "$as_ac_Header=yes"
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 eval "$as_ac_Header=no"
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545 { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 for ac_header in dlfcn.h
5560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 ac_res=`eval echo '${'$as_ac_Header'}'`
5568 { echo "$as_me:$LINENO: result: $ac_res" >&5
5569 echo "${ECHO_T}$ac_res" >&6; }
5571 # Is the header compilable?
5572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5581 #include <$ac_header>
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_header_compiler=yes
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ac_header_compiler=no
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610 echo "${ECHO_T}$ac_header_compiler" >&6; }
5612 # Is the header present?
5613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <$ac_header>
5623 if { (ac_try="$ac_cpp conftest.$ac_ext"
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null && {
5636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5639 ac_header_preproc=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_header_preproc=no
5647 rm -f conftest.err conftest.$ac_ext
5648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649 echo "${ECHO_T}$ac_header_preproc" >&6; }
5651 # So? What about this header?
5652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5658 ac_header_preproc=yes
5661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5674 ## -------------------------------------------- ##
5675 ## Report this to http://www.openldap.org/its/ ##
5676 ## -------------------------------------------- ##
5678 ) | sed "s/^/$as_me: WARNING: /" >&2
5681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 eval "$as_ac_Header=\$ac_header_preproc"
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689 { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5706 (test "X$CXX" != "Xg++"))) ; then
5708 ac_cpp='$CXXCPP $CPPFLAGS'
5709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5712 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5713 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5714 if test -z "$CXXCPP"; then
5715 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 # Double quotes because CXXCPP needs to be expanded
5719 for CXXCPP in "$CXX -E" "/lib/cpp"
5722 for ac_cxx_preproc_warn_flag in '' yes
5724 # Use a header file that comes with gcc, so configuring glibc
5725 # with a fresh cross-compiler works.
5726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5727 # <limits.h> exists even on freestanding compilers.
5728 # On the NeXT, cc -E runs the code through the compiler's parser,
5729 # not just through cpp. "Syntax error" is here to catch this case.
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5737 # include <limits.h>
5739 # include <assert.h>
5743 if { (ac_try="$ac_cpp conftest.$ac_ext"
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } >/dev/null && {
5756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5757 test ! -s conftest.err
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Broken: fails on valid input.
5768 rm -f conftest.err conftest.$ac_ext
5770 # OK, works on sane cases. Now check whether nonexistent headers
5771 # can be detected and how.
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5780 if { (ac_try="$ac_cpp conftest.$ac_ext"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } >/dev/null && {
5793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5794 test ! -s conftest.err
5796 # Broken: success on invalid input.
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 # Passes both tests.
5807 rm -f conftest.err conftest.$ac_ext
5810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5811 rm -f conftest.err conftest.$ac_ext
5812 if $ac_preproc_ok; then
5817 ac_cv_prog_CXXCPP=$CXXCPP
5820 CXXCPP=$ac_cv_prog_CXXCPP
5822 ac_cv_prog_CXXCPP=$CXXCPP
5824 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5825 echo "${ECHO_T}$CXXCPP" >&6; }
5827 for ac_cxx_preproc_warn_flag in '' yes
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5842 # include <limits.h>
5844 # include <assert.h>
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5856 grep -v '^ *+' conftest.er1 >conftest.err
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } >/dev/null && {
5861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5862 test ! -s conftest.err
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 # Broken: fails on valid input.
5873 rm -f conftest.err conftest.$ac_ext
5875 # OK, works on sane cases. Now check whether nonexistent headers
5876 # can be detected and how.
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <ac_nonexistent.h>
5885 if { (ac_try="$ac_cpp conftest.$ac_ext"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5893 grep -v '^ *+' conftest.er1 >conftest.err
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } >/dev/null && {
5898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5899 test ! -s conftest.err
5901 # Broken: success on invalid input.
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 # Passes both tests.
5912 rm -f conftest.err conftest.$ac_ext
5915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916 rm -f conftest.err conftest.$ac_ext
5917 if $ac_preproc_ok; then
5920 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5921 See \`config.log' for more details." >&5
5922 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5923 See \`config.log' for more details." >&2;}
5924 { (exit 1); exit 1; }; }
5928 ac_cpp='$CXXCPP $CPPFLAGS'
5929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5937 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5938 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5940 if test -n "$ac_tool_prefix"; then
5941 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
5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_F77+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 if test -n "$F77"; then
5951 ac_cv_prog_F77="$F77" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 if test -n "$F77"; then
5972 { echo "$as_me:$LINENO: result: $F77" >&5
5973 echo "${ECHO_T}$F77" >&6; }
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5980 test -n "$F77" && break
5983 if test -z "$F77"; then
5985 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
5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
5988 set dummy $ac_prog; ac_word=$2
5989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 if test -n "$ac_ct_F77"; then
5995 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_ac_ct_F77="$ac_prog"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6015 if test -n "$ac_ct_F77"; then
6016 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6017 echo "${ECHO_T}$ac_ct_F77" >&6; }
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6024 test -n "$ac_ct_F77" && break
6027 if test "x$ac_ct_F77" = x; then
6030 case $cross_compiling:$ac_tool_warned in
6032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet. If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&5
6035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6036 whose name does not start with the host triplet. If you think this
6037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6038 ac_tool_warned=yes ;;
6045 # Provide some information about the compiler.
6046 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6047 ac_compiler=`set X $ac_compile; echo $2`
6048 { (ac_try="$ac_compiler --version >&5"
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compiler --version >&5") 2>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }
6058 { (ac_try="$ac_compiler -v >&5"
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compiler -v >&5") 2>&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }
6068 { (ac_try="$ac_compiler -V >&5"
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compiler -V >&5") 2>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }
6080 # If we don't use `.F' as extension, the preprocessor is not run on the
6081 # input file. (Note that this only needs to work for GNU compilers.)
6084 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.$ac_ext <<_ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_f77_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6126 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6127 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6129 ac_test_FFLAGS=${FFLAGS+set}
6130 ac_save_FFLAGS=$FFLAGS
6132 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6133 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6134 if test "${ac_cv_prog_f77_g+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 cat >conftest.$ac_ext <<_ACEOF
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_f77_werror_flag" ||
6158 test ! -s conftest.err
6159 } && test -s conftest.$ac_objext; then
6160 ac_cv_prog_f77_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 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6172 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6173 if test "$ac_test_FFLAGS" = set; then
6174 FFLAGS=$ac_save_FFLAGS
6175 elif test $ac_cv_prog_f77_g = yes; then
6176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6189 G77=`test $ac_compiler_gnu = yes && echo yes`
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6199 # find the maximum length of command line arguments
6200 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6201 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 # On DJGPP, this test can blow up pretty badly due to problems in libc
6211 # (any single argument exceeding 2000 bytes causes a buffer overrun
6212 # during glob expansion). Even if it were fixed, the result of this
6213 # check would be larger than it should be.
6214 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6218 # Under GNU Hurd, this test is not required because there is
6219 # no limit to the length of command line arguments.
6220 # Libtool will interpret -1 as no limit whatsoever
6221 lt_cv_sys_max_cmd_len=-1;
6225 # On Win9x/ME, this test blows up -- it succeeds, but takes
6226 # about 5 minutes as the teststring grows exponentially.
6227 # Worse, since 9x/ME are not pre-emptively multitasking,
6228 # you end up with a "frozen" computer, even though with patience
6229 # the test eventually succeeds (with a max line length of 256k).
6230 # Instead, let's just punt: use the minimum linelength reported by
6231 # all of the supported platforms: 8192 (on NT/2K/XP).
6232 lt_cv_sys_max_cmd_len=8192;
6236 # On AmigaOS with pdksh, this test takes hours, literally.
6237 # So we just punt and use a minimum line length of 8192.
6238 lt_cv_sys_max_cmd_len=8192;
6241 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6242 # This has been around since 386BSD, at least. Likely further.
6243 if test -x /sbin/sysctl; then
6244 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6245 elif test -x /usr/sbin/sysctl; then
6246 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6248 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6250 # And add a safety zone
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6256 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6257 lt_cv_sys_max_cmd_len=196608
6261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6263 # nice to cause kernel panics so lets avoid the loop below.
6264 # First set a reasonable default.
6265 lt_cv_sys_max_cmd_len=16384
6267 if test -x /sbin/sysconfig; then
6268 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6269 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6274 lt_cv_sys_max_cmd_len=102400
6276 sysv5* | sco5v6* | sysv4.2uw2*)
6277 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6278 if test -n "$kargmax"; then
6279 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6281 lt_cv_sys_max_cmd_len=32768
6285 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6286 if test -n "$lt_cv_sys_max_cmd_len"; then
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6290 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6291 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6292 = "XX$teststring") >/dev/null 2>&1 &&
6293 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6294 lt_cv_sys_max_cmd_len=$new_result &&
6295 test $i != 17 # 1/2 MB should be enough
6298 teststring=$teststring$teststring
6301 # Add a significant safety factor because C++ compilers can tack on massive
6302 # amounts of additional arguments before passing them to the linker.
6303 # It appears as though 1/2 is a usable value.
6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6311 if test -n $lt_cv_sys_max_cmd_len ; then
6312 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6313 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6315 { echo "$as_me:$LINENO: result: none" >&5
6316 echo "${ECHO_T}none" >&6; }
6323 # Check for command to grab the raw symbol name followed by C symbol from nm.
6324 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 # These are sane defaults that work on at least a few old systems.
6331 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6333 # Character class describing NM global symbol codes.
6334 symcode='[BCDEGRST]'
6336 # Regexp to match symbols that can be accessed directly from C.
6337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6339 # Transform an extracted symbol line into a proper C declaration
6340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6342 # Transform an extracted symbol line into symbol name and symbol address
6343 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'"
6345 # Define system-specific variables.
6350 cygwin* | mingw* | pw32*)
6351 symcode='[ABCDGISTW]'
6353 hpux*) # Its linker distinguishes data from code symbols
6354 if test "$host_cpu" = ia64; then
6355 symcode='[ABCDEGRST]'
6357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358 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'"
6360 linux* | k*bsd*-gnu)
6361 if test "$host_cpu" = ia64; then
6362 symcode='[ABCDGIRSTW]'
6363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6364 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'"
6368 symcode='[BCDEGRST]'
6371 symcode='[BCDEGQRST]'
6382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6390 # Handle CRLF in mingw tool chain
6394 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6398 # If we're using GNU nm, then use its standard symbol codes.
6399 case `$NM -V 2>&1` in
6400 *GNU* | *'with BFD'*)
6401 symcode='[ABCDGIRSTW]' ;;
6404 # Try without a prefix undercore, then with it.
6405 for ac_symprfx in "" "_"; do
6407 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6408 symxfrm="\\1 $ac_symprfx\\2 \\2"
6410 # Write the raw and C identifiers.
6411 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6413 # Check to see that the pipe works correctly.
6417 cat > conftest.$ac_ext <<EOF
6422 void nm_test_func(){}
6426 int main(){nm_test_var='a';nm_test_func();return(0);}
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; then
6434 # Now try to grab the symbols.
6436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && test -s "$nlist"; then
6441 # Try sorting and uniquifying the output.
6442 if sort "$nlist" | uniq > "$nlist"T; then
6443 mv -f "$nlist"T "$nlist"
6448 # Make sure that we snagged all the symbols we need.
6449 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6450 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6451 cat <<EOF > conftest.$ac_ext
6457 # Now generate the symbol file.
6458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6460 cat <<EOF >> conftest.$ac_ext
6461 #if defined (__STDC__) && __STDC__
6462 # define lt_ptr_t void *
6464 # define lt_ptr_t char *
6468 /* The mapping between symbol names and symbols. */
6473 lt_preloaded_symbols[] =
6476 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6477 cat <<\EOF >> conftest.$ac_ext
6485 # Now try linking the two files.
6486 mv conftest.$ac_objext conftstm.$ac_objext
6487 lt_save_LIBS="$LIBS"
6488 lt_save_CFLAGS="$CFLAGS"
6489 LIBS="conftstm.$ac_objext"
6490 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6492 (eval $ac_link) 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6498 LIBS="$lt_save_LIBS"
6499 CFLAGS="$lt_save_CFLAGS"
6501 echo "cannot find nm_test_func in $nlist" >&5
6504 echo "cannot find nm_test_var in $nlist" >&5
6507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6510 echo "$progname: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 rm -rf conftest* conftst*
6515 # Do not use the global_symbol_pipe unless it works.
6516 if test "$pipe_works" = yes; then
6519 lt_cv_sys_global_symbol_pipe=
6525 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6526 lt_cv_sys_global_symbol_to_cdecl=
6528 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6529 { echo "$as_me:$LINENO: result: failed" >&5
6530 echo "${ECHO_T}failed" >&6; }
6532 { echo "$as_me:$LINENO: result: ok" >&5
6533 echo "${ECHO_T}ok" >&6; }
6536 { echo "$as_me:$LINENO: checking for objdir" >&5
6537 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6538 if test "${lt_cv_objdir+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 rm -f .libs 2>/dev/null
6542 mkdir .libs 2>/dev/null
6543 if test -d .libs; then
6546 # MS-DOS does not allow filenames that begin with a dot.
6549 rmdir .libs 2>/dev/null
6551 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6552 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6553 objdir=$lt_cv_objdir
6561 # AIX sometimes has problems with the GCC collect2 program. For some
6562 # reason, if we set the COLLECT_NAMES environment variable, the problems
6563 # vanish in a puff of smoke.
6564 if test "X${COLLECT_NAMES+set}" != Xset; then
6566 export COLLECT_NAMES
6571 # Sed substitution that helps us do robust quoting. It backslashifies
6572 # metacharacters that are still active within double-quoted strings.
6573 Xsed='sed -e 1s/^X//'
6574 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6576 # Same as above, but do not quote variable references.
6577 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6579 # Sed substitution to delay expansion of an escaped shell variable in a
6580 # double_quote_subst'ed string.
6581 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6583 # Sed substitution to avoid accidental globbing in evaled expressions
6584 no_glob_subst='s/\*/\\\*/g'
6590 default_ofile=libtool
6591 can_build_shared=yes
6593 # All known linkers require a `.a' archive for static linking (except MSVC,
6594 # which needs '.lib').
6596 ltmain="$ac_aux_dir/ltmain.sh"
6597 ofile="$default_ofile"
6598 with_gnu_ld="$lt_cv_prog_gnu_ld"
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ar; ac_word=$2
6603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605 if test "${ac_cv_prog_AR+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 if test -n "$AR"; then
6609 ac_cv_prog_AR="$AR" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_AR="${ac_tool_prefix}ar"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 if test -n "$AR"; then
6630 { echo "$as_me:$LINENO: result: $AR" >&5
6631 echo "${ECHO_T}$AR" >&6; }
6633 { echo "$as_me:$LINENO: result: no" >&5
6634 echo "${ECHO_T}no" >&6; }
6639 if test -z "$ac_cv_prog_AR"; then
6641 # Extract the first word of "ar", so it can be a program name with args.
6642 set dummy ar; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 if test -n "$ac_ct_AR"; then
6649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_ac_ct_AR="ar"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6669 if test -n "$ac_ct_AR"; then
6670 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6671 echo "${ECHO_T}$ac_ct_AR" >&6; }
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6677 if test "x$ac_ct_AR" = x; then
6680 case $cross_compiling:$ac_tool_warned in
6682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6683 whose name does not start with the host triplet. If you think this
6684 configuration is useful to you, please write to autoconf@gnu.org." >&5
6685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet. If you think this
6687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6688 ac_tool_warned=yes ;;
6696 if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_prog_RANLIB+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 if test -n "$RANLIB"; then
6705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 RANLIB=$ac_cv_prog_RANLIB
6725 if test -n "$RANLIB"; then
6726 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6727 echo "${ECHO_T}$RANLIB" >&6; }
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6735 if test -z "$ac_cv_prog_RANLIB"; then
6736 ac_ct_RANLIB=$RANLIB
6737 # Extract the first word of "ranlib", so it can be a program name with args.
6738 set dummy ranlib; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 if test -n "$ac_ct_RANLIB"; then
6745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_ac_ct_RANLIB="ranlib"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6765 if test -n "$ac_ct_RANLIB"; then
6766 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6767 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6773 if test "x$ac_ct_RANLIB" = x; then
6776 case $cross_compiling:$ac_tool_warned in
6778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet. If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&5
6781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet. If you think this
6783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6784 ac_tool_warned=yes ;;
6786 RANLIB=$ac_ct_RANLIB
6789 RANLIB="$ac_cv_prog_RANLIB"
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}strip; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_STRIP+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 if test -n "$STRIP"; then
6801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 STRIP=$ac_cv_prog_STRIP
6821 if test -n "$STRIP"; then
6822 { echo "$as_me:$LINENO: result: $STRIP" >&5
6823 echo "${ECHO_T}$STRIP" >&6; }
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6831 if test -z "$ac_cv_prog_STRIP"; then
6833 # Extract the first word of "strip", so it can be a program name with args.
6834 set dummy strip; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 if test -n "$ac_ct_STRIP"; then
6841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_ac_ct_STRIP="strip"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6861 if test -n "$ac_ct_STRIP"; then
6862 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6863 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6869 if test "x$ac_ct_STRIP" = x; then
6872 case $cross_compiling:$ac_tool_warned in
6874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6875 whose name does not start with the host triplet. If you think this
6876 configuration is useful to you, please write to autoconf@gnu.org." >&5
6877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet. If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6880 ac_tool_warned=yes ;;
6885 STRIP="$ac_cv_prog_STRIP"
6890 old_CFLAGS="$CFLAGS"
6892 # Set sane defaults for various variables
6893 test -z "$AR" && AR=ar
6894 test -z "$AR_FLAGS" && AR_FLAGS=cru
6895 test -z "$AS" && AS=as
6896 test -z "$CC" && CC=cc
6897 test -z "$LTCC" && LTCC=$CC
6898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6899 test -z "$DLLTOOL" && DLLTOOL=dlltool
6900 test -z "$LD" && LD=ld
6901 test -z "$LN_S" && LN_S="ln -s"
6902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6903 test -z "$NM" && NM=nm
6904 test -z "$SED" && SED=sed
6905 test -z "$OBJDUMP" && OBJDUMP=objdump
6906 test -z "$RANLIB" && RANLIB=:
6907 test -z "$STRIP" && STRIP=:
6908 test -z "$ac_objext" && ac_objext=o
6910 # Determine commands to create old-style static archives.
6911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6912 old_postinstall_cmds='chmod 644 $oldlib'
6913 old_postuninstall_cmds=
6915 if test -n "$RANLIB"; then
6918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6927 for cc_temp in $compiler""; do
6929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6938 # Only perform the check for file, if the check method requires it
6939 case $deplibs_check_method in
6941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6942 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6943 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6944 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6952 lt_save_MAGIC_CMD="$MAGIC_CMD"
6953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6955 for ac_dir in $ac_dummy; do
6957 test -z "$ac_dir" && ac_dir=.
6958 if test -f $ac_dir/${ac_tool_prefix}file; then
6959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6960 if test -n "$file_magic_test_file"; then
6961 case $deplibs_check_method in
6963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6966 $EGREP "$file_magic_regex" > /dev/null; then
6971 *** Warning: the command libtool uses to detect shared libraries,
6972 *** $file_magic_cmd, produces output that libtool cannot recognize.
6973 *** The result is that libtool may fail to recognize shared libraries
6974 *** as such. This will affect the creation of libtool libraries that
6975 *** depend on shared libraries, but programs linked with such libtool
6976 *** libraries will work regardless of this problem. Nevertheless, you
6977 *** may want to report the problem to your system manager and/or to
6978 *** bug-libtool@gnu.org
6988 MAGIC_CMD="$lt_save_MAGIC_CMD"
6993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6994 if test -n "$MAGIC_CMD"; then
6995 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6996 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7002 if test -z "$lt_cv_path_MAGIC_CMD"; then
7003 if test -n "$ac_tool_prefix"; then
7004 { echo "$as_me:$LINENO: checking for file" >&5
7005 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7014 lt_save_MAGIC_CMD="$MAGIC_CMD"
7015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7017 for ac_dir in $ac_dummy; do
7019 test -z "$ac_dir" && ac_dir=.
7020 if test -f $ac_dir/file; then
7021 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7022 if test -n "$file_magic_test_file"; then
7023 case $deplibs_check_method in
7025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7028 $EGREP "$file_magic_regex" > /dev/null; then
7033 *** Warning: the command libtool uses to detect shared libraries,
7034 *** $file_magic_cmd, produces output that libtool cannot recognize.
7035 *** The result is that libtool may fail to recognize shared libraries
7036 *** as such. This will affect the creation of libtool libraries that
7037 *** depend on shared libraries, but programs linked with such libtool
7038 *** libraries will work regardless of this problem. Nevertheless, you
7039 *** may want to report the problem to your system manager and/or to
7040 *** bug-libtool@gnu.org
7050 MAGIC_CMD="$lt_save_MAGIC_CMD"
7055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7056 if test -n "$MAGIC_CMD"; then
7057 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7058 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7075 rhapsody* | darwin*)
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 if test -n "$DSYMUTIL"; then
7085 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7105 if test -n "$DSYMUTIL"; then
7106 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7107 echo "${ECHO_T}$DSYMUTIL" >&6; }
7109 { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7115 if test -z "$ac_cv_prog_DSYMUTIL"; then
7116 ac_ct_DSYMUTIL=$DSYMUTIL
7117 # Extract the first word of "dsymutil", so it can be a program name with args.
7118 set dummy dsymutil; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 if test -n "$ac_ct_DSYMUTIL"; then
7125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7145 if test -n "$ac_ct_DSYMUTIL"; then
7146 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7147 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7153 if test "x$ac_ct_DSYMUTIL" = x; then
7156 case $cross_compiling:$ac_tool_warned in
7158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7159 whose name does not start with the host triplet. If you think this
7160 configuration is useful to you, please write to autoconf@gnu.org." >&5
7161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7162 whose name does not start with the host triplet. If you think this
7163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7164 ac_tool_warned=yes ;;
7166 DSYMUTIL=$ac_ct_DSYMUTIL
7169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test -n "$NMEDIT"; then
7181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 NMEDIT=$ac_cv_prog_NMEDIT
7201 if test -n "$NMEDIT"; then
7202 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7203 echo "${ECHO_T}$NMEDIT" >&6; }
7205 { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7211 if test -z "$ac_cv_prog_NMEDIT"; then
7212 ac_ct_NMEDIT=$NMEDIT
7213 # Extract the first word of "nmedit", so it can be a program name with args.
7214 set dummy nmedit; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 if test -n "$ac_ct_NMEDIT"; then
7221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7241 if test -n "$ac_ct_NMEDIT"; then
7242 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7243 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7249 if test "x$ac_ct_NMEDIT" = x; then
7252 case $cross_compiling:$ac_tool_warned in
7254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7255 whose name does not start with the host triplet. If you think this
7256 configuration is useful to you, please write to autoconf@gnu.org." >&5
7257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7258 whose name does not start with the host triplet. If you think this
7259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7260 ac_tool_warned=yes ;;
7262 NMEDIT=$ac_ct_NMEDIT
7265 NMEDIT="$ac_cv_prog_NMEDIT"
7269 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7270 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7271 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 lt_cv_apple_cc_single_mod=no
7275 if test -z "${LT_MULTI_MODULE}"; then
7276 # By default we will add the -single_module flag. You can override
7277 # by either setting the environment variable LT_MULTI_MODULE
7278 # non-empty at configure time, or by adding -multi_module to the
7280 echo "int foo(void){return 1;}" > conftest.c
7281 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282 -dynamiclib ${wl}-single_module conftest.c
7283 if test -f libconftest.dylib; then
7284 lt_cv_apple_cc_single_mod=yes
7285 rm -rf libconftest.dylib*
7290 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7291 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7292 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7293 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7294 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 lt_cv_ld_exported_symbols_list=no
7298 save_LDFLAGS=$LDFLAGS
7299 echo "_main" > conftest.sym
7300 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_link") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext &&
7333 $as_test_x conftest$ac_exeext; then
7334 lt_cv_ld_exported_symbols_list=yes
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 lt_cv_ld_exported_symbols_list=no
7342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7343 conftest$ac_exeext conftest.$ac_ext
7344 LDFLAGS="$save_LDFLAGS"
7347 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7348 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7350 rhapsody* | darwin1.[0123])
7351 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7353 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7355 # if running on 10.5 or later, the deployment target defaults
7356 # to the OS version, if on x86, and 10.4, the deployment
7357 # target defaults to 10.4. Don't you love it?
7358 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7359 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7360 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7364 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7368 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7369 _lt_dar_single_mod='$single_module'
7371 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7372 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7374 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7376 if test "$DSYMUTIL" != ":"; then
7377 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7388 # Check whether --enable-libtool-lock was given.
7389 if test "${enable_libtool_lock+set}" = set; then
7390 enableval=$enable_libtool_lock;
7393 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7396 # Check whether --with-pic was given.
7397 if test "${with_pic+set}" = set; then
7398 withval=$with_pic; pic_mode="$withval"
7403 test -z "$pic_mode" && pic_mode=default
7405 # Use C for the default configuration in the libtool script
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415 # Source file extension for C test sources.
7418 # Object file extension for compiled C test sources.
7422 # Code to be used in simple compile tests
7423 lt_simple_compile_test_code="int some_variable = 0;"
7425 # Code to be used in simple link tests
7426 lt_simple_link_test_code='int main(){return(0);}'
7429 # If no C compiler was specified, use CC.
7432 # If no C compiler flags were specified, use CFLAGS.
7433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7435 # Allow CC to be a program name with arguments.
7439 # save warnings/boilerplate of simple test code
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7443 _lt_compiler_boilerplate=`cat conftest.err`
7446 ac_outfile=conftest.$ac_objext
7447 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449 _lt_linker_boilerplate=`cat conftest.err`
7454 lt_prog_compiler_no_builtin_flag=
7456 if test "$GCC" = yes; then
7457 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7460 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7461 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7462 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 lt_cv_prog_compiler_rtti_exceptions=no
7466 ac_outfile=conftest.$ac_objext
7467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468 lt_compiler_flag="-fno-rtti -fno-exceptions"
7469 # Insert the option either (1) after the last *FLAGS variable, or
7470 # (2) before a word containing "conftest.", or (3) at the end.
7471 # Note that $ac_compile itself does not contain backslashes and begins
7472 # with a dollar sign (not a hyphen), so the echo should work correctly.
7473 # The option is referenced via a variable to avoid confusing sed.
7474 lt_compile=`echo "$ac_compile" | $SED \
7475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477 -e 's:$: $lt_compiler_flag:'`
7478 (eval echo "\"\$as_me:7478: $lt_compile\"" >&5)
7479 (eval "$lt_compile" 2>conftest.err)
7481 cat conftest.err >&5
7482 echo "$as_me:7482: \$? = $ac_status" >&5
7483 if (exit $ac_status) && test -s "$ac_outfile"; then
7484 # The compiler can only warn and ignore the option if not recognized
7485 # So say no if there are warnings other than the usual output.
7486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_cv_prog_compiler_rtti_exceptions=yes
7495 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7496 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7499 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7506 lt_prog_compiler_wl=
7507 lt_prog_compiler_pic=
7508 lt_prog_compiler_static=
7510 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7511 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7513 if test "$GCC" = yes; then
7514 lt_prog_compiler_wl='-Wl,'
7515 lt_prog_compiler_static='-static'
7519 # All AIX code is PIC.
7520 if test "$host_cpu" = ia64; then
7521 # AIX 5 now supports IA64 processor
7522 lt_prog_compiler_static='-Bstatic'
7527 # FIXME: we need at least 68020 code to build shared libraries, but
7528 # adding the `-m68020' flag to GCC prevents building anything better,
7530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7534 # PIC is the default for these OSes.
7537 mingw* | cygwin* | pw32* | os2*)
7538 # This hack is so that the source file can tell whether it is being
7539 # built for inclusion in a dll (and should export symbols for example).
7540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7541 # (--disable-auto-import) libraries
7542 lt_prog_compiler_pic='-DDLL_EXPORT'
7545 darwin* | rhapsody*)
7546 # PIC is the default on this platform
7547 # Common symbols not allowed in MH_DYLIB files
7548 lt_prog_compiler_pic='-fno-common'
7552 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7553 # Instead, we relocate shared libraries at runtime.
7557 # Just because we use GCC doesn't mean we suddenly get shared libraries
7558 # on systems that don't support them.
7559 lt_prog_compiler_can_build_shared=no
7564 if test -d /usr/nec; then
7565 lt_prog_compiler_pic=-Kconform_pic
7570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7577 lt_prog_compiler_pic='-fPIC'
7583 lt_prog_compiler_pic='-fPIC'
7587 # PORTME Check for flag to pass linker flags through the system compiler.
7590 lt_prog_compiler_wl='-Wl,'
7591 if test "$host_cpu" = ia64; then
7592 # AIX 5 now supports IA64 processor
7593 lt_prog_compiler_static='-Bstatic'
7595 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7599 # PIC is the default on this platform
7600 # Common symbols not allowed in MH_DYLIB files
7601 case $cc_basename in
7603 lt_prog_compiler_pic='-qnocommon'
7604 lt_prog_compiler_wl='-Wl,'
7609 mingw* | cygwin* | pw32* | os2*)
7610 # This hack is so that the source file can tell whether it is being
7611 # built for inclusion in a dll (and should export symbols for example).
7612 lt_prog_compiler_pic='-DDLL_EXPORT'
7615 hpux9* | hpux10* | hpux11*)
7616 lt_prog_compiler_wl='-Wl,'
7617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7624 lt_prog_compiler_pic='+Z'
7627 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7628 lt_prog_compiler_static='${wl}-a ${wl}archive'
7631 irix5* | irix6* | nonstopux*)
7632 lt_prog_compiler_wl='-Wl,'
7633 # PIC (with -KPIC) is the default.
7634 lt_prog_compiler_static='-non_shared'
7638 lt_prog_compiler_pic='-KPIC'
7639 lt_prog_compiler_static='-Bstatic'
7642 linux* | k*bsd*-gnu)
7643 case $cc_basename in
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='-KPIC'
7647 lt_prog_compiler_static='-static'
7649 pgcc* | pgf77* | pgf90* | pgf95*)
7650 # Portland Group compilers (*not* the Pentium gcc compiler,
7651 # which looks to be a dead project)
7652 lt_prog_compiler_wl='-Wl,'
7653 lt_prog_compiler_pic='-fpic'
7654 lt_prog_compiler_static='-Bstatic'
7657 lt_prog_compiler_wl='-Wl,'
7658 # All Alpha code is PIC.
7659 lt_prog_compiler_static='-non_shared'
7662 case `$CC -V 2>&1 | sed 5q` in
7665 lt_prog_compiler_pic='-KPIC'
7666 lt_prog_compiler_static='-Bstatic'
7667 lt_prog_compiler_wl='-Wl,'
7670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7671 lt_prog_compiler_pic='-KPIC'
7672 lt_prog_compiler_static='-Bstatic'
7673 lt_prog_compiler_wl=''
7680 osf3* | osf4* | osf5*)
7681 lt_prog_compiler_wl='-Wl,'
7682 # All OSF/1 code is PIC.
7683 lt_prog_compiler_static='-non_shared'
7687 lt_prog_compiler_static='-non_shared'
7691 lt_prog_compiler_pic='-KPIC'
7692 lt_prog_compiler_static='-Bstatic'
7693 case $cc_basename in
7695 lt_prog_compiler_wl='-Qoption ld ';;
7697 lt_prog_compiler_wl='-Wl,';;
7702 lt_prog_compiler_wl='-Qoption ld '
7703 lt_prog_compiler_pic='-PIC'
7704 lt_prog_compiler_static='-Bstatic'
7707 sysv4 | sysv4.2uw2* | sysv4.3*)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-KPIC'
7710 lt_prog_compiler_static='-Bstatic'
7714 if test -d /usr/nec ;then
7715 lt_prog_compiler_pic='-Kconform_pic'
7716 lt_prog_compiler_static='-Bstatic'
7720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_pic='-KPIC'
7723 lt_prog_compiler_static='-Bstatic'
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_can_build_shared=no
7732 lt_prog_compiler_pic='-pic'
7733 lt_prog_compiler_static='-Bstatic'
7737 lt_prog_compiler_can_build_shared=no
7742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7746 # Check to make sure the PIC flag actually works.
7748 if test -n "$lt_prog_compiler_pic"; then
7750 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7751 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7752 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 lt_cv_prog_compiler_pic_works=no
7756 ac_outfile=conftest.$ac_objext
7757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7759 # Insert the option either (1) after the last *FLAGS variable, or
7760 # (2) before a word containing "conftest.", or (3) at the end.
7761 # Note that $ac_compile itself does not contain backslashes and begins
7762 # with a dollar sign (not a hyphen), so the echo should work correctly.
7763 # The option is referenced via a variable to avoid confusing sed.
7764 lt_compile=`echo "$ac_compile" | $SED \
7765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7767 -e 's:$: $lt_compiler_flag:'`
7768 (eval echo "\"\$as_me:7768: $lt_compile\"" >&5)
7769 (eval "$lt_compile" 2>conftest.err)
7771 cat conftest.err >&5
7772 echo "$as_me:7772: \$? = $ac_status" >&5
7773 if (exit $ac_status) && test -s "$ac_outfile"; then
7774 # The compiler can only warn and ignore the option if not recognized
7775 # So say no if there are warnings other than the usual output.
7776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7779 lt_cv_prog_compiler_pic_works=yes
7785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7786 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7789 case $lt_prog_compiler_pic in
7791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7794 lt_prog_compiler_pic=
7795 lt_prog_compiler_can_build_shared=no
7800 # For platforms which do not support PIC, -DPIC is meaningless:
7802 lt_prog_compiler_pic=
7805 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7810 # Check to make sure the static flag actually works.
7812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 lt_cv_prog_compiler_static_works=no
7819 save_LDFLAGS="$LDFLAGS"
7820 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7823 # The linker can only warn and ignore the option if not recognized
7824 # So say no if there are warnings
7825 if test -s conftest.err; then
7826 # Append any errors to the config.log.
7827 cat conftest.err 1>&5
7828 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830 if diff conftest.exp conftest.er2 >/dev/null; then
7831 lt_cv_prog_compiler_static_works=yes
7834 lt_cv_prog_compiler_static_works=yes
7838 LDFLAGS="$save_LDFLAGS"
7841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7847 lt_prog_compiler_static=
7851 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 lt_cv_prog_compiler_c_o=no
7857 $rm -r conftest 2>/dev/null
7861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7863 lt_compiler_flag="-o out/conftest2.$ac_objext"
7864 # Insert the option either (1) after the last *FLAGS variable, or
7865 # (2) before a word containing "conftest.", or (3) at the end.
7866 # Note that $ac_compile itself does not contain backslashes and begins
7867 # with a dollar sign (not a hyphen), so the echo should work correctly.
7868 lt_compile=`echo "$ac_compile" | $SED \
7869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871 -e 's:$: $lt_compiler_flag:'`
7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
7873 (eval "$lt_compile" 2>out/conftest.err)
7875 cat out/conftest.err >&5
7876 echo "$as_me:7876: \$? = $ac_status" >&5
7877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7879 # The compiler can only warn and ignore the option if not recognized
7880 # So say no if there are warnings
7881 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7884 lt_cv_prog_compiler_c_o=yes
7889 # SGI C++ compiler will create directory out/ii_files/ for
7890 # template instantiation
7891 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7892 $rm out/* && rmdir out
7898 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7899 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7902 hard_links="nottested"
7903 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7904 # do not overwrite the value of need_locks provided by the user
7905 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7906 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7911 ln conftest.a conftest.b 2>&5 || hard_links=no
7912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7913 { echo "$as_me:$LINENO: result: $hard_links" >&5
7914 echo "${ECHO_T}$hard_links" >&6; }
7915 if test "$hard_links" = no; then
7916 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7917 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7924 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7925 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7928 allow_undefined_flag=
7929 enable_shared_with_static_runtimes=no
7931 archive_expsym_cmds=
7932 old_archive_From_new_cmds=
7933 old_archive_from_expsyms_cmds=
7934 export_dynamic_flag_spec=
7935 whole_archive_flag_spec=
7936 thread_safe_flag_spec=
7937 hardcode_libdir_flag_spec=
7938 hardcode_libdir_flag_spec_ld=
7939 hardcode_libdir_separator=
7942 hardcode_shlibpath_var=unsupported
7943 link_all_deplibs=unknown
7944 hardcode_automatic=no
7947 always_export_symbols=no
7948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7949 # include_expsyms should be a list of space-separated symbols to be *always*
7950 # included in the symbol list
7952 # exclude_expsyms can be an extended regexp of symbols to exclude
7953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7955 # as well as any symbol that contains `d'.
7956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7958 # platforms (ab)use it in PIC code, but their linkers get confused if
7959 # the symbol is explicitly referenced. Since portable code cannot
7960 # rely on this symbol name, it's probably fine to never include it in
7961 # preloaded symbol tables.
7962 # Exclude shared library initialization/finalization symbols.
7963 extract_expsyms_cmds=
7964 # Just being paranoid about ensuring that cc_basename is set.
7965 for cc_temp in $compiler""; do
7967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7976 cygwin* | mingw* | pw32*)
7977 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7978 # When not using gcc, we currently assume that we are using
7979 # Microsoft Visual C++.
7980 if test "$GCC" != yes; then
7985 # we just hope/assume this is gcc and not c89 (= MSVC++)
7994 if test "$with_gnu_ld" = yes; then
7995 # If archive_cmds runs LD, not CC, wlarc should be empty
7998 # Set some defaults for GNU ld with shared library support. These
7999 # are reset later if shared libraries are not supported. Putting them
8000 # here allows them to be overridden if necessary.
8001 runpath_var=LD_RUN_PATH
8002 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8003 export_dynamic_flag_spec='${wl}--export-dynamic'
8004 # ancient GNU ld didn't support --whole-archive et. al.
8005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8006 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8008 whole_archive_flag_spec=
8010 supports_anon_versioning=no
8011 case `$LD -v 2>/dev/null` in
8012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8015 *\ 2.11.*) ;; # other 2.11 versions
8016 *) supports_anon_versioning=yes ;;
8019 # See if GNU ld supports shared libraries.
8022 # On AIX/PPC, the GNU linker is very broken
8023 if test "$host_cpu" != ia64; then
8027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8028 *** to be unable to reliably create shared libraries on AIX.
8029 *** Therefore, libtool is disabling shared libraries support. If you
8030 *** really care for shared libraries, you may want to modify your PATH
8031 *** so that a non-GNU linker is found, and then restart.
8038 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)'
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_minus_L=yes
8042 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8043 # that the semantics of dynamic libraries on AmigaOS, at least up
8044 # to version 4, is to share data among multiple programs linked
8045 # with the same dynamic library. Since this doesn't match the
8046 # behavior of shared libraries on other platforms, we can't use
8052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053 allow_undefined_flag=unsupported
8054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8055 # support --undefined. This deserves some investigation. FIXME
8056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8062 cygwin* | mingw* | pw32*)
8063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8064 # as there is no search path for DLLs.
8065 hardcode_libdir_flag_spec='-L$libdir'
8066 allow_undefined_flag=unsupported
8067 always_export_symbols=no
8068 enable_shared_with_static_runtimes=yes
8069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8073 # If the export-symbols file already is a .def file (1st line
8074 # is EXPORTS), use it as is; otherwise, prepend...
8075 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8076 cp $export_symbols $output_objdir/$soname.def;
8078 echo EXPORTS > $output_objdir/$soname.def;
8079 cat $export_symbols >> $output_objdir/$soname.def;
8081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8089 hardcode_shlibpath_var=no
8090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8091 export_dynamic_flag_spec='${wl}-E'
8092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8093 # Instead, shared libraries are loaded at an image base (0x10000000 by
8094 # default) and relocated if they conflict, which is a slow very memory
8095 # consuming and fragmenting process. To avoid this, we pick a random,
8096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8099 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8102 gnu* | linux* | k*bsd*-gnu)
8103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8105 case $cc_basename,$host_cpu in
8106 pgcc*) # Portland Group C compiler
8107 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8108 tmp_addflag=' $pic_flag'
8110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8111 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8112 tmp_addflag=' $pic_flag -Mnomain' ;;
8113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8114 tmp_addflag=' -i_dynamic' ;;
8115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8116 tmp_addflag=' -i_dynamic -nofor_main' ;;
8117 ifc* | ifort*) # Intel Fortran compiler
8118 tmp_addflag=' -nofor_main' ;;
8120 case `$CC -V 2>&1 | sed 5q` in
8121 *Sun\ C*) # Sun C 5.9
8122 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8123 tmp_sharedflag='-G' ;;
8124 *Sun\ F*) # Sun Fortran 8.3
8125 tmp_sharedflag='-G' ;;
8127 tmp_sharedflag='-shared' ;;
8129 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8131 if test $supports_anon_versioning = yes; then
8132 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8134 $echo "local: *; };" >> $output_objdir/$libname.ver~
8135 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8144 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8153 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8158 *** create shared libraries on Solaris systems. Therefore, libtool
8159 *** is disabling shared libraries support. We urge you to upgrade GNU
8160 *** binutils to release 2.9.1 or newer. Another option is to modify
8161 *** your PATH or compiler configuration so that the native linker is
8162 *** used, and then restart.
8165 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8174 case `$LD -v 2>&1` in
8175 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8180 *** reliably create shared libraries on SCO systems. Therefore, libtool
8181 *** is disabling shared libraries support. We urge you to upgrade GNU
8182 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8183 *** your PATH or compiler configuration so that the native linker is
8184 *** used, and then restart.
8189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8190 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8201 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8204 hardcode_shlibpath_var=no
8208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8217 if test "$ld_shlibs" = no; then
8219 hardcode_libdir_flag_spec=
8220 export_dynamic_flag_spec=
8221 whole_archive_flag_spec=
8224 # PORTME fill in a description of your system's linker (not GNU ld)
8227 allow_undefined_flag=unsupported
8228 always_export_symbols=yes
8229 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'
8230 # Note: this linker hardcodes the directories in LIBPATH if there
8231 # are no directories specified by -L.
8232 hardcode_minus_L=yes
8233 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8234 # Neither direct hardcoding nor static linking is supported with a
8236 hardcode_direct=unsupported
8241 if test "$host_cpu" = ia64; then
8242 # On IA64, the linker does run time linking by default, so we don't
8243 # have to do anything special.
8244 aix_use_runtimelinking=no
8245 exp_sym_flag='-Bexport'
8248 # If we're using GNU nm, then we don't want the "-C" option.
8249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8250 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8251 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'
8253 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'
8255 aix_use_runtimelinking=no
8257 # Test if we are trying to use run time linking or normal
8258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8259 # need to do runtime linking.
8260 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8261 for ld_flag in $LDFLAGS; do
8262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8263 aix_use_runtimelinking=yes
8270 exp_sym_flag='-bexport'
8271 no_entry_flag='-bnoentry'
8274 # When large executables or shared objects are built, AIX ld can
8275 # have problems creating the table of contents. If linking a library
8276 # or program results in "error TOC overflow" add -mminimal-toc to
8277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8282 hardcode_libdir_separator=':'
8283 link_all_deplibs=yes
8285 if test "$GCC" = yes; then
8286 case $host_os in aix4.[012]|aix4.[012].*)
8287 # We only want to do this on AIX 4.2 and lower, the check
8288 # below for broken collect2 doesn't work under 4.3+
8289 collect2name=`${CC} -print-prog-name=collect2`
8290 if test -f "$collect2name" && \
8291 strings "$collect2name" | grep resolve_lib_name >/dev/null
8293 # We have reworked collect2
8296 # We have old collect2
8297 hardcode_direct=unsupported
8298 # It fails to find uninstalled libraries when the uninstalled
8299 # path is not listed in the libpath. Setting hardcode_minus_L
8300 # to unsupported forces relinking
8301 hardcode_minus_L=yes
8302 hardcode_libdir_flag_spec='-L$libdir'
8303 hardcode_libdir_separator=
8307 shared_flag='-shared'
8308 if test "$aix_use_runtimelinking" = yes; then
8309 shared_flag="$shared_flag "'${wl}-G'
8313 if test "$host_cpu" = ia64; then
8314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8315 # chokes on -Wl,-G. The following line is correct:
8318 if test "$aix_use_runtimelinking" = yes; then
8319 shared_flag='${wl}-G'
8321 shared_flag='${wl}-bM:SRE'
8326 # It seems that -bexpall does not export symbols beginning with
8327 # underscore (_), so it is better to generate a list of symbols to export.
8328 always_export_symbols=yes
8329 if test "$aix_use_runtimelinking" = yes; then
8330 # Warning - without using the other runtime loading flags (-brtl),
8331 # -berok will link without error, but may produce a broken library.
8332 allow_undefined_flag='-berok'
8333 # Determine the default libpath from the value encoded in an empty executable.
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest$ac_exeext &&
8366 $as_test_x conftest$ac_exeext; then
8368 lt_aix_libpath_sed='
8369 /Import File Strings/,/^$/ {
8375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8376 # Check for a 64-bit object if we didn't find anything.
8377 if test -z "$aix_libpath"; then
8378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8388 conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8392 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8394 if test "$host_cpu" = ia64; then
8395 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8396 allow_undefined_flag="-z nodefs"
8397 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8399 # Determine the default libpath from the value encoded in an empty executable.
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (ac_try="$ac_link"
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_link") 2>conftest.er1
8424 grep -v '^ *+' conftest.er1 >conftest.err
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && {
8429 test -z "$ac_c_werror_flag" ||
8430 test ! -s conftest.err
8431 } && test -s conftest$ac_exeext &&
8432 $as_test_x conftest$ac_exeext; then
8434 lt_aix_libpath_sed='
8435 /Import File Strings/,/^$/ {
8441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8442 # Check for a 64-bit object if we didn't find anything.
8443 if test -z "$aix_libpath"; then
8444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8454 conftest$ac_exeext conftest.$ac_ext
8455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8458 # Warning - without using the other run time loading flags,
8459 # -berok will link without error, but may produce a broken library.
8460 no_undefined_flag=' ${wl}-bernotok'
8461 allow_undefined_flag=' ${wl}-berok'
8462 # Exported symbols can be pulled into shared objects from archives
8463 whole_archive_flag_spec='$convenience'
8464 archive_cmds_need_lc=yes
8465 # This is similar to how AIX traditionally builds its shared libraries.
8466 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8472 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)'
8473 hardcode_libdir_flag_spec='-L$libdir'
8474 hardcode_minus_L=yes
8475 # see comment about different semantics on the GNU ld section
8480 export_dynamic_flag_spec=-rdynamic
8483 cygwin* | mingw* | pw32*)
8484 # When not using gcc, we currently assume that we are using
8485 # Microsoft Visual C++.
8486 # hardcode_libdir_flag_spec is actually meaningless, as there is
8487 # no search path for DLLs.
8488 hardcode_libdir_flag_spec=' '
8489 allow_undefined_flag=unsupported
8490 # Tell ltmain to make .lib files, not .a files.
8492 # Tell ltmain to make .dll files, not .so files.
8494 # FIXME: Setting linknames here is a bad hack.
8495 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8496 # The linker will automatically build a .lib file if we build a DLL.
8497 old_archive_From_new_cmds='true'
8498 # FIXME: Should let the user specify the lib program.
8499 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8500 fix_srcfile_path='`cygpath -w "$srcfile"`'
8501 enable_shared_with_static_runtimes=yes
8504 darwin* | rhapsody*)
8506 rhapsody* | darwin1.[012])
8507 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8510 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8511 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8513 case ${MACOSX_DEPLOYMENT_TARGET} in
8515 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8518 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8524 archive_cmds_need_lc=no
8526 hardcode_automatic=yes
8527 hardcode_shlibpath_var=unsupported
8528 whole_archive_flag_spec=''
8529 link_all_deplibs=yes
8530 if test "$GCC" = yes ; then
8531 output_verbose_link_cmd='echo'
8532 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8533 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8534 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8535 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8537 case $cc_basename in
8539 output_verbose_link_cmd='echo'
8540 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8541 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8543 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8544 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}'
8554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8555 hardcode_libdir_flag_spec='-L$libdir'
8556 hardcode_shlibpath_var=no
8563 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8564 # support. Future versions do this automatically, but an explicit c++rt0.o
8565 # does not break anything, and helps significantly (at the cost of a little
8568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8569 hardcode_libdir_flag_spec='-R$libdir'
8571 hardcode_shlibpath_var=no
8574 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_minus_L=yes
8579 hardcode_shlibpath_var=no
8582 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8583 freebsd* | dragonfly*)
8584 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8585 hardcode_libdir_flag_spec='-R$libdir'
8587 hardcode_shlibpath_var=no
8591 if test "$GCC" = yes; then
8592 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'
8594 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'
8596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8597 hardcode_libdir_separator=:
8600 # hardcode_minus_L: Not really in the search PATH,
8601 # but as the default location of the library.
8602 hardcode_minus_L=yes
8603 export_dynamic_flag_spec='${wl}-E'
8607 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8610 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8612 if test "$with_gnu_ld" = no; then
8613 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8614 hardcode_libdir_separator=:
8617 export_dynamic_flag_spec='${wl}-E'
8619 # hardcode_minus_L: Not really in the search PATH,
8620 # but as the default location of the library.
8621 hardcode_minus_L=yes
8626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8629 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8641 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8644 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8647 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8651 if test "$with_gnu_ld" = no; then
8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653 hardcode_libdir_separator=:
8657 hardcode_libdir_flag_spec_ld='+b $libdir'
8659 hardcode_shlibpath_var=no
8663 export_dynamic_flag_spec='${wl}-E'
8665 # hardcode_minus_L: Not really in the search PATH,
8666 # but as the default location of the library.
8667 hardcode_minus_L=yes
8673 irix5* | irix6* | nonstopux*)
8674 if test "$GCC" = yes; then
8675 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'
8677 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'
8678 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681 hardcode_libdir_separator=:
8682 link_all_deplibs=yes
8686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8689 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8691 hardcode_libdir_flag_spec='-R$libdir'
8693 hardcode_shlibpath_var=no
8697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 hardcode_libdir_separator=:
8701 hardcode_shlibpath_var=no
8705 if test -f /usr/libexec/ld.so; then
8707 hardcode_shlibpath_var=no
8708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8712 export_dynamic_flag_spec='${wl}-E'
8715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8717 hardcode_libdir_flag_spec='-R$libdir'
8720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8731 hardcode_libdir_flag_spec='-L$libdir'
8732 hardcode_minus_L=yes
8733 allow_undefined_flag=unsupported
8734 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'
8735 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8739 if test "$GCC" = yes; then
8740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8741 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'
8743 allow_undefined_flag=' -expect_unresolved \*'
8744 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'
8746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747 hardcode_libdir_separator=:
8750 osf4* | osf5*) # as osf3* with the addition of -msym flag
8751 if test "$GCC" = yes; then
8752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8753 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'
8754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 allow_undefined_flag=' -expect_unresolved \*'
8757 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'
8758 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8759 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8761 # Both c and cxx compiler support -rpath directly
8762 hardcode_libdir_flag_spec='-rpath $libdir'
8764 hardcode_libdir_separator=:
8768 no_undefined_flag=' -z text'
8769 if test "$GCC" = yes; then
8771 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8772 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8773 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8780 hardcode_libdir_flag_spec='-R$libdir'
8781 hardcode_shlibpath_var=no
8783 solaris2.[0-5] | solaris2.[0-5].*) ;;
8785 # The compiler driver will combine and reorder linker options,
8786 # but understands `-z linker_flag'. GCC discards it without `$wl',
8787 # but is careful enough not to reorder.
8788 # Supported since Solaris 2.6 (maybe 2.5.1?)
8789 if test "$GCC" = yes; then
8790 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8796 link_all_deplibs=yes
8800 if test "x$host_vendor" = xsequent; then
8801 # Use $CC to link under sequent, because it throws in some extra .o
8802 # files that make .init and .fini sections work.
8803 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8805 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_minus_L=yes
8810 hardcode_shlibpath_var=no
8814 case $host_vendor in
8816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_direct=yes # is this really true???
8820 ## LD is ld it makes a PLAMLIB
8821 ## CC just makes a GrossModule.
8822 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8823 reload_cmds='$CC -r -o $output$reload_objs'
8827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8831 runpath_var='LD_RUN_PATH'
8832 hardcode_shlibpath_var=no
8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837 hardcode_shlibpath_var=no
8838 export_dynamic_flag_spec='-Bexport'
8842 if test -d /usr/nec; then
8843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8844 hardcode_shlibpath_var=no
8845 runpath_var=LD_RUN_PATH
8846 hardcode_runpath_var=yes
8851 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8852 no_undefined_flag='${wl}-z,text'
8853 archive_cmds_need_lc=no
8854 hardcode_shlibpath_var=no
8855 runpath_var='LD_RUN_PATH'
8857 if test "$GCC" = yes; then
8858 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 sysv5* | sco3.2v5* | sco5v6*)
8867 # Note: We can NOT use -z defs as we might desire, because we do not
8868 # link with -lc, and that would cause any symbols used from libc to
8869 # always be unresolved, which means just about no library would
8870 # ever link correctly. If we're not using GNU ld we use -z text
8871 # though, which does catch some bad symbols but isn't as heavy-handed
8873 no_undefined_flag='${wl}-z,text'
8874 allow_undefined_flag='${wl}-z,nodefs'
8875 archive_cmds_need_lc=no
8876 hardcode_shlibpath_var=no
8877 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8878 hardcode_libdir_separator=':'
8879 link_all_deplibs=yes
8880 export_dynamic_flag_spec='${wl}-Bexport'
8881 runpath_var='LD_RUN_PATH'
8883 if test "$GCC" = yes; then
8884 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8887 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894 hardcode_libdir_flag_spec='-L$libdir'
8895 hardcode_shlibpath_var=no
8904 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8905 echo "${ECHO_T}$ld_shlibs" >&6; }
8906 test "$ld_shlibs" = no && can_build_shared=no
8909 # Do we need to explicitly link libc?
8911 case "x$archive_cmds_need_lc" in
8913 # Assume -lc should be added
8914 archive_cmds_need_lc=yes
8916 if test "$enable_shared" = yes && test "$GCC" = yes; then
8917 case $archive_cmds in
8919 # FIXME: we may have to deal with multi-command sequences.
8922 # Test whether the compiler implicitly links with -lc since on some
8923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8924 # to ld, don't add -lc before -lgcc.
8925 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8926 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8931 (eval $ac_compile) 2>&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } 2>conftest.err; then
8937 libobjs=conftest.$ac_objext
8939 wl=$lt_prog_compiler_wl
8940 pic_flag=$lt_prog_compiler_pic
8946 lt_save_allow_undefined_flag=$allow_undefined_flag
8947 allow_undefined_flag=
8948 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8949 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }
8954 archive_cmds_need_lc=no
8956 archive_cmds_need_lc=yes
8958 allow_undefined_flag=$lt_save_allow_undefined_flag
8960 cat conftest.err 1>&5
8963 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8964 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8971 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8972 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8974 libname_spec='lib$name'
8982 shlibpath_overrides_runpath=unknown
8984 dynamic_linker="$host_os ld.so"
8985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8987 if test "$GCC" = yes; then
8989 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8990 *) lt_awk_arg="/^libraries:/" ;;
8992 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8994 # if the path contains ";" then we assume it to be the separator
8995 # otherwise default to the standard path separator (i.e. ":") - it is
8996 # assumed that no part of a normal pathname contains ";" but that should
8997 # okay in the real world where ";" in dirpaths is itself problematic.
8998 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9000 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9002 # Ok, now we have the path, separated by spaces, we can step through it
9003 # and add multilib dir if necessary.
9004 lt_tmp_lt_search_path_spec=
9005 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9006 for lt_sys_path in $lt_search_path_spec; do
9007 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9008 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9010 test -d "$lt_sys_path" && \
9011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9014 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9015 BEGIN {RS=" "; FS="/|\n";} {
9018 for (lt_i = NF; lt_i > 0; lt_i--) {
9019 if ($lt_i != "" && $lt_i != ".") {
9020 if ($lt_i == "..") {
9023 if (lt_count == 0) {
9024 lt_foo="/" $lt_i lt_foo;
9031 if (lt_foo != "") { lt_freq[lt_foo]++; }
9032 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9034 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9038 need_lib_prefix=unknown
9039 hardcode_into_libs=no
9041 # when you set need_version to no, make sure it does not cause -set_version
9042 # flags to be left without arguments
9043 need_version=unknown
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9049 shlibpath_var=LIBPATH
9051 # AIX 3 has no versioning support, so we append a major version to the name.
9052 soname_spec='${libname}${release}${shared_ext}$major'
9059 hardcode_into_libs=yes
9060 if test "$host_cpu" = ia64; then
9061 # AIX 5 supports IA64
9062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9063 shlibpath_var=LD_LIBRARY_PATH
9065 # With GCC up to 2.95.x, collect2 would create an import file
9066 # for dependence libraries. The import file would start with
9067 # the line `#! .'. This would cause the generated library to
9068 # depend on `.', always an invalid library. This was fixed in
9069 # development snapshots of GCC prior to 3.0.
9071 aix4 | aix4.[01] | aix4.[01].*)
9072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9074 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9082 # soname into executable. Probably we can add versioning support to
9083 # collect2, so additional links can be useful in future.
9084 if test "$aix_use_runtimelinking" = yes; then
9085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9086 # instead of lib<name>.a to let people know that these are not
9087 # typical AIX shared libraries.
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 # We preserve .a as extension for shared libraries through AIX4.2
9091 # and later when we are not doing run time linking.
9092 library_names_spec='${libname}${release}.a $libname.a'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LIBPATH
9100 library_names_spec='$libname.ixlibrary $libname.a'
9101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9102 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'
9106 library_names_spec='${libname}${shared_ext}'
9107 dynamic_linker="$host_os ld.so"
9108 shlibpath_var=LIBRARY_PATH
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9119 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9120 # the default ld.so.conf also contains /usr/contrib/lib and
9121 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9122 # libtool to hard-code these into programs
9125 cygwin* | mingw* | pw32*)
9126 version_type=windows
9131 case $GCC,$host_os in
9132 yes,cygwin* | yes,mingw* | yes,pw32*)
9133 library_names_spec='$libname.dll.a'
9134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9135 postinstall_cmds='base_file=`basename \${file}`~
9136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9137 dldir=$destdir/`dirname \$dlpath`~
9138 test -d \$dldir || mkdir -p \$dldir~
9139 $install_prog $dir/$dlname \$dldir/$dlname~
9140 chmod a+x \$dldir/$dlname'
9141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9142 dlpath=$dir/\$dldll~
9144 shlibpath_overrides_runpath=yes
9148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9149 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9150 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9153 # MinGW DLLs use traditional 'lib' prefix
9154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9156 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9157 # It is most probably a Windows format PATH printed by
9158 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9159 # path with ; separators, and with drive letters. We can handle the
9160 # drive letters (cygwin fileutils understands them), so leave them,
9161 # especially as we might pass files found there to a mingw objdump,
9162 # which wouldn't understand a cygwinified path. Ahh.
9163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9169 # pw32 DLLs use 'pw' prefix rather than 'lib'
9170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9179 dynamic_linker='Win32 ld.exe'
9180 # FIXME: first we should search . and the directory the executable is in
9184 darwin* | rhapsody*)
9185 dynamic_linker="$host_os dyld"
9189 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9190 soname_spec='${libname}${release}${major}$shared_ext'
9191 shlibpath_overrides_runpath=yes
9192 shlibpath_var=DYLD_LIBRARY_PATH
9193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9212 freebsd* | dragonfly*)
9213 # DragonFly does not have aout. When/if they implement a new
9214 # versioning mechanism, adjust this.
9215 if test -x /usr/bin/objformat; then
9216 objformat=`/usr/bin/objformat`
9219 freebsd[123]*) objformat=aout ;;
9223 version_type=freebsd-$objformat
9224 case $version_type in
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9235 shlibpath_var=LD_LIBRARY_PATH
9238 shlibpath_overrides_runpath=yes
9240 freebsd3.[01]* | freebsdelf3.[01]*)
9241 shlibpath_overrides_runpath=yes
9242 hardcode_into_libs=yes
9244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9246 shlibpath_overrides_runpath=no
9247 hardcode_into_libs=yes
9249 *) # from 4.6 on, and DragonFly
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 hardcode_into_libs=yes
9266 hpux9* | hpux10* | hpux11*)
9267 # Give a soname corresponding to the major version so that dld.sl refuses to
9268 # link against other versions.
9275 hardcode_into_libs=yes
9276 dynamic_linker="$host_os dld.so"
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 if test "X$HPUX_IA64_MODE" = X32; then
9282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9290 hardcode_into_libs=yes
9291 dynamic_linker="$host_os dld.sl"
9292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9301 dynamic_linker="$host_os dld.sl"
9302 shlibpath_var=SHLIB_PATH
9303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9308 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9309 postinstall_cmds='chmod 555 $lib'
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=no
9321 hardcode_into_libs=yes
9324 irix5* | irix6* | nonstopux*)
9326 nonstopux*) version_type=nonstopux ;;
9328 if test "$lt_cv_prog_gnu_ld" = yes; then
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9339 irix5* | nonstopux*)
9343 case $LD in # libtool.m4 will add one of these switches to LD
9344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9345 libsuff= shlibsuff= libmagic=32-bit;;
9346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9347 libsuff=32 shlibsuff=N32 libmagic=N32;;
9348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9350 *) libsuff= shlibsuff= libmagic=never-match;;
9354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9355 shlibpath_overrides_runpath=no
9356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9358 hardcode_into_libs=yes
9361 # No shared lib support for Linux oldld, aout, or coff.
9362 linux*oldld* | linux*aout* | linux*coff*)
9366 # This must be Linux ELF.
9367 linux* | k*bsd*-gnu)
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 shlibpath_overrides_runpath=no
9376 # This implies no fast_install, which is unacceptable.
9377 # Some rework will be needed to allow for fast_install
9378 # before this can be enabled.
9379 hardcode_into_libs=yes
9381 # Append ld.so.conf contents to the search path
9382 if test -f /etc/ld.so.conf; then
9383 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9384 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9387 # We used to test for /lib/ld.so.1 and disable shared libraries on
9388 # powerpc, because MkLinux only supported shared libraries with the
9389 # GNU dynamic linker. Since this was broken with cross compilers,
9390 # most powerpc-linux boxes support dynamic linking these days and
9391 # people can always --disable-shared, the test was removed, and we
9392 # assume the GNU/Linux dynamic linker is in use.
9393 dynamic_linker='GNU/Linux 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
9433 sys_lib_dlsearch_path_spec="/usr/lib"
9435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9438 *) need_version=no ;;
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9445 openbsd2.[89] | openbsd2.[89].*)
9446 shlibpath_overrides_runpath=no
9449 shlibpath_overrides_runpath=yes
9453 shlibpath_overrides_runpath=yes
9458 libname_spec='$name'
9461 library_names_spec='$libname${shared_ext} $libname.a'
9462 dynamic_linker='OS/2 ld.exe'
9463 shlibpath_var=LIBPATH
9466 osf3* | osf4* | osf5*)
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 shlibpath_overrides_runpath=yes
9489 hardcode_into_libs=yes
9490 # ldd complains unless libraries are executable
9491 postinstall_cmds='chmod +x $lib'
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 if test "$with_gnu_ld" = yes; then
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 case $host_vendor in
9513 shlibpath_overrides_runpath=no
9515 export_dynamic_flag_spec='${wl}-Blargedynsym'
9516 runpath_var=LD_RUN_PATH
9524 shlibpath_overrides_runpath=no
9525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9531 if test -d /usr/nec ;then
9533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9534 soname_spec='$libname${shared_ext}.$major'
9535 shlibpath_var=LD_LIBRARY_PATH
9539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9540 version_type=freebsd-elf
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 shlibpath_var=LD_LIBRARY_PATH
9546 hardcode_into_libs=yes
9547 if test "$with_gnu_ld" = yes; then
9548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9549 shlibpath_overrides_runpath=no
9551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9552 shlibpath_overrides_runpath=yes
9555 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9559 sys_lib_dlsearch_path_spec='/usr/lib'
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 shlibpath_var=LD_LIBRARY_PATH
9573 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9574 echo "${ECHO_T}$dynamic_linker" >&6; }
9575 test "$dynamic_linker" = no && can_build_shared=no
9577 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9583 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9584 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9590 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9593 if test "$GCC" = yes; then
9594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9597 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601 test -n "$runpath_var" || \
9602 test "X$hardcode_automatic" = "Xyes" ; then
9604 # We can hardcode non-existant directories.
9605 if test "$hardcode_direct" != no &&
9606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607 # have to relink, otherwise we might link with an installed library
9608 # when we should be linking with a yet-to-be-installed one
9609 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610 test "$hardcode_minus_L" != no; then
9611 # Linking always hardcodes the temporary library directory.
9612 hardcode_action=relink
9614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615 hardcode_action=immediate
9618 # We cannot hardcode anything, or else we can only hardcode existing
9620 hardcode_action=unsupported
9622 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9623 echo "${ECHO_T}$hardcode_action" >&6; }
9625 if test "$hardcode_action" = relink; then
9626 # Fast installation is not supported
9627 enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629 test "$enable_shared" = no; then
9630 # Fast installation is not necessary
9631 enable_fast_install=needless
9636 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641 { echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6; }
9644 # FIXME - insert some real tests, host_os isn't really good enough
9647 if test -n "$STRIP" ; then
9648 striplib="$STRIP -x"
9649 old_striplib="$STRIP -S"
9650 { echo "$as_me:$LINENO: result: yes" >&5
9651 echo "${ECHO_T}yes" >&6; }
9653 { echo "$as_me:$LINENO: result: no" >&5
9654 echo "${ECHO_T}no" >&6; }
9658 { echo "$as_me:$LINENO: result: no" >&5
9659 echo "${ECHO_T}no" >&6; }
9664 if test "x$enable_dlopen" != xyes; then
9665 enable_dlopen=unknown
9666 enable_dlopen_self=unknown
9667 enable_dlopen_self_static=unknown
9674 lt_cv_dlopen="load_add_on"
9676 lt_cv_dlopen_self=yes
9680 lt_cv_dlopen="LoadLibrary"
9685 lt_cv_dlopen="dlopen"
9690 # if libdl is installed we need to link against it
9691 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 ac_check_lib_save_LIBS=$LIBS
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9705 /* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest$ac_exeext &&
9737 $as_test_x conftest$ac_exeext; then
9738 ac_cv_lib_dl_dlopen=yes
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_cv_lib_dl_dlopen=no
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747 conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9750 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9751 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9752 if test $ac_cv_lib_dl_dlopen = yes; then
9753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9758 lt_cv_dlopen_self=yes
9765 { echo "$as_me:$LINENO: checking for shl_load" >&5
9766 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9767 if test "${ac_cv_func_shl_load+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9778 #define shl_load innocuous_shl_load
9780 /* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char shl_load (); below.
9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783 <limits.h> exists even on freestanding compilers. */
9786 # include <limits.h>
9788 # include <assert.h>
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined __stub_shl_load || defined __stub___shl_load
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest$ac_exeext &&
9832 $as_test_x conftest$ac_exeext; then
9833 ac_cv_func_shl_load=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ac_cv_func_shl_load=no
9841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842 conftest$ac_exeext conftest.$ac_ext
9844 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9845 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9846 if test $ac_cv_func_shl_load = yes; then
9847 lt_cv_dlopen="shl_load"
9849 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9850 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 ac_check_lib_save_LIBS=$LIBS
9856 cat >conftest.$ac_ext <<_ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9863 /* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest$ac_exeext &&
9895 $as_test_x conftest$ac_exeext; then
9896 ac_cv_lib_dld_shl_load=yes
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_cv_lib_dld_shl_load=no
9904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9909 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9910 if test $ac_cv_lib_dld_shl_load = yes; then
9911 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9913 { echo "$as_me:$LINENO: checking for dlopen" >&5
9914 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9915 if test "${ac_cv_func_dlopen+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9926 #define dlopen innocuous_dlopen
9928 /* System header to define __stub macros and hopefully few prototypes,
9929 which can conflict with char dlopen (); below.
9930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9931 <limits.h> exists even on freestanding compilers. */
9934 # include <limits.h>
9936 # include <assert.h>
9941 /* Override any GCC internal prototype to avoid an error.
9942 Use char because int might match the return type of a GCC
9943 builtin and then its argument prototype would still apply. */
9948 /* The GNU C library defines this for functions which it implements
9949 to always fail with ENOSYS. Some functions are actually named
9950 something starting with __ and the normal name is an alias. */
9951 #if defined __stub_dlopen || defined __stub___dlopen
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest$ac_exeext &&
9980 $as_test_x conftest$ac_exeext; then
9981 ac_cv_func_dlopen=yes
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_func_dlopen=no
9989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9990 conftest$ac_exeext conftest.$ac_ext
9992 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9993 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9994 if test $ac_cv_func_dlopen = yes; then
9995 lt_cv_dlopen="dlopen"
9997 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9998 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 ac_check_lib_save_LIBS=$LIBS
10004 cat >conftest.$ac_ext <<_ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (ac_try="$ac_link"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_link") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest$ac_exeext &&
10043 $as_test_x conftest$ac_exeext; then
10044 ac_cv_lib_dl_dlopen=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_lib_dl_dlopen=no
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10056 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10058 if test $ac_cv_lib_dl_dlopen = yes; then
10059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10061 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lsvld $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (ac_try="$ac_link"
10092 case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_link") 2>conftest.er1
10099 grep -v '^ *+' conftest.er1 >conftest.err
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest$ac_exeext &&
10107 $as_test_x conftest$ac_exeext; then
10108 ac_cv_lib_svld_dlopen=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_lib_svld_dlopen=no
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10120 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10121 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10122 if test $ac_cv_lib_svld_dlopen = yes; then
10123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10125 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10126 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10127 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 ac_check_lib_save_LIBS=$LIBS
10132 cat >conftest.$ac_ext <<_ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10149 return dld_link ();
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_link") 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest$ac_exeext &&
10171 $as_test_x conftest$ac_exeext; then
10172 ac_cv_lib_dld_dld_link=yes
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_cv_lib_dld_dld_link=no
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181 conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10185 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10186 if test $ac_cv_lib_dld_dld_link = yes; then
10187 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10208 if test "x$lt_cv_dlopen" != xno; then
10214 case $lt_cv_dlopen in
10216 save_CPPFLAGS="$CPPFLAGS"
10217 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10219 save_LDFLAGS="$LDFLAGS"
10220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10223 LIBS="$lt_cv_dlopen_libs $LIBS"
10225 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10226 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10227 if test "${lt_cv_dlopen_self+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 if test "$cross_compiling" = yes; then :
10231 lt_cv_dlopen_self=cross
10233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10234 lt_status=$lt_dlunknown
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10236 "configure"
10237 #include "confdefs.h"
10246 # define LT_DLGLOBAL RTLD_GLOBAL
10249 # define LT_DLGLOBAL DL_GLOBAL
10251 # define LT_DLGLOBAL 0
10255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10256 find out it does not work in some platform. */
10257 #ifndef LT_DLLAZY_OR_NOW
10259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10262 # define LT_DLLAZY_OR_NOW DL_LAZY
10265 # define LT_DLLAZY_OR_NOW RTLD_NOW
10268 # define LT_DLLAZY_OR_NOW DL_NOW
10270 # define LT_DLLAZY_OR_NOW 0
10278 extern "C" void exit (int);
10281 void fnord() { int i=42;}
10284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10285 int status = $lt_dlunknown;
10289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10291 /* dlclose (self); */
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10304 (./conftest; exit; ) >&5 2>/dev/null
10306 case x$lt_status in
10307 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10308 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10309 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10312 # compilation failed
10313 lt_cv_dlopen_self=no
10320 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10321 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10323 if test "x$lt_cv_dlopen_self" = xyes; then
10324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10325 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10326 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10327 if test "${lt_cv_dlopen_self_static+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 if test "$cross_compiling" = yes; then :
10331 lt_cv_dlopen_self_static=cross
10333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10334 lt_status=$lt_dlunknown
10335 cat > conftest.$ac_ext <<EOF
10336 #line 10336 "configure"
10337 #include "confdefs.h"
10346 # define LT_DLGLOBAL RTLD_GLOBAL
10349 # define LT_DLGLOBAL DL_GLOBAL
10351 # define LT_DLGLOBAL 0
10355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10356 find out it does not work in some platform. */
10357 #ifndef LT_DLLAZY_OR_NOW
10359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10362 # define LT_DLLAZY_OR_NOW DL_LAZY
10365 # define LT_DLLAZY_OR_NOW RTLD_NOW
10368 # define LT_DLLAZY_OR_NOW DL_NOW
10370 # define LT_DLLAZY_OR_NOW 0
10378 extern "C" void exit (int);
10381 void fnord() { int i=42;}
10384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10385 int status = $lt_dlunknown;
10389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10391 /* dlclose (self); */
10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400 (eval $ac_link) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10404 (./conftest; exit; ) >&5 2>/dev/null
10406 case x$lt_status in
10407 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10408 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10409 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10412 # compilation failed
10413 lt_cv_dlopen_self_static=no
10420 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10421 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10424 CPPFLAGS="$save_CPPFLAGS"
10425 LDFLAGS="$save_LDFLAGS"
10430 case $lt_cv_dlopen_self in
10431 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10432 *) enable_dlopen_self=unknown ;;
10435 case $lt_cv_dlopen_self_static in
10436 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10437 *) enable_dlopen_self_static=unknown ;;
10442 # Report which library types will actually be built
10443 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10444 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10445 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10446 echo "${ECHO_T}$can_build_shared" >&6; }
10448 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10449 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10450 test "$can_build_shared" = "no" && enable_shared=no
10452 # On AIX, shared libraries and static libraries use the same namespace, and
10453 # are all built from PIC.
10456 test "$enable_shared" = yes && enable_static=no
10457 if test -n "$RANLIB"; then
10458 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10459 postinstall_cmds='$RANLIB $lib'
10464 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10465 test "$enable_shared" = yes && enable_static=no
10469 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10470 echo "${ECHO_T}$enable_shared" >&6; }
10472 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10473 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10474 # Make sure either enable_shared or enable_static is yes.
10475 test "$enable_shared" = yes || enable_static=yes
10476 { echo "$as_me:$LINENO: result: $enable_static" >&5
10477 echo "${ECHO_T}$enable_static" >&6; }
10479 # The else clause should only fire when bootstrapping the
10480 # libtool distribution, otherwise you forgot to ship ltmain.sh
10481 # with your package, and you will get complaints that there are
10482 # no rules to generate ltmain.sh.
10483 if test -f "$ltmain"; then
10484 # See if we are running on zsh, and set the options which allow our commands through
10485 # without removal of \ escapes.
10486 if test -n "${ZSH_VERSION+set}" ; then
10487 setopt NO_GLOB_SUBST
10489 # Now quote all the things that may contain metacharacters while being
10490 # careful not to overquote the AC_SUBSTed values. We take copies of the
10491 # variables and quote the copies for generation of the libtool script.
10492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10496 deplibs_check_method reload_flag reload_cmds need_locks \
10497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10498 lt_cv_sys_global_symbol_to_c_name_address \
10499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10500 old_postinstall_cmds old_postuninstall_cmds \
10504 lt_prog_compiler_wl \
10505 lt_prog_compiler_pic \
10506 lt_prog_compiler_static \
10507 lt_prog_compiler_no_builtin_flag \
10508 export_dynamic_flag_spec \
10509 thread_safe_flag_spec \
10510 whole_archive_flag_spec \
10511 enable_shared_with_static_runtimes \
10513 old_archive_from_new_cmds \
10518 compiler_lib_search_path \
10519 compiler_lib_search_dirs \
10521 archive_expsym_cmds \
10523 postuninstall_cmds \
10524 old_archive_from_expsyms_cmds \
10525 allow_undefined_flag \
10526 no_undefined_flag \
10527 export_symbols_cmds \
10528 hardcode_libdir_flag_spec \
10529 hardcode_libdir_flag_spec_ld \
10530 hardcode_libdir_separator \
10531 hardcode_automatic \
10533 module_expsym_cmds \
10534 lt_cv_prog_compiler_c_o \
10537 include_expsyms; do
10540 old_archive_cmds | \
10541 old_archive_from_new_cmds | \
10543 archive_expsym_cmds | \
10545 module_expsym_cmds | \
10546 old_archive_from_expsyms_cmds | \
10547 export_symbols_cmds | \
10548 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10549 postinstall_cmds | postuninstall_cmds | \
10550 old_postinstall_cmds | old_postuninstall_cmds | \
10551 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10552 # Double-quote double-evaled strings.
10553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10562 *'\$0 --fallback-echo"')
10563 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10567 cfgfile="${ofile}T"
10568 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10570 { echo "$as_me:$LINENO: creating $ofile" >&5
10571 echo "$as_me: creating $ofile" >&6;}
10573 cat <<__EOF__ >> "$cfgfile"
10576 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10577 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10578 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10580 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10581 # Free Software Foundation, Inc.
10583 # This file is part of GNU Libtool:
10584 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10586 # This program is free software; you can redistribute it and/or modify
10587 # it under the terms of the GNU General Public License as published by
10588 # the Free Software Foundation; either version 2 of the License, or
10589 # (at your option) any later version.
10591 # This program is distributed in the hope that it will be useful, but
10592 # WITHOUT ANY WARRANTY; without even the implied warranty of
10593 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10594 # General Public License for more details.
10596 # You should have received a copy of the GNU General Public License
10597 # along with this program; if not, write to the Free Software
10598 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10600 # As a special exception to the GNU General Public License, if you
10601 # distribute this file as part of a program that contains a
10602 # configuration script generated by Autoconf, you may include it under
10603 # the same distribution terms that you use for the rest of that program.
10605 # A sed program that does not truncate output.
10608 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10609 Xsed="$SED -e 1s/^X//"
10611 # The HP-UX ksh and POSIX shell print the target directory to stdout
10612 # if CDPATH is set.
10613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10615 # The names of the tagged configurations supported by this script.
10618 # ### BEGIN LIBTOOL CONFIG
10620 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10622 # Shell to use when invoking shell scripts.
10625 # Whether or not to build shared libraries.
10626 build_libtool_libs=$enable_shared
10628 # Whether or not to build static libraries.
10629 build_old_libs=$enable_static
10631 # Whether or not to add -lc for building shared libraries.
10632 build_libtool_need_lc=$archive_cmds_need_lc
10634 # Whether or not to disallow shared libs when runtime libs are static
10635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10637 # Whether or not to optimize for fast installation.
10638 fast_install=$enable_fast_install
10641 host_alias=$host_alias
10645 # The build system.
10646 build_alias=$build_alias
10650 # An echo program that does not interpret backslashes.
10655 AR_FLAGS=$lt_AR_FLAGS
10660 # LTCC compiler flags.
10661 LTCFLAGS=$lt_LTCFLAGS
10663 # A language-specific compiler.
10666 # Is the compiler the GNU C compiler?
10672 # The linker used to build libraries.
10675 # Whether we need hard or soft links.
10678 # A BSD-compatible nm program.
10681 # A symbol stripping program
10684 # Used to examine libraries when file_magic_cmd begins "file"
10685 MAGIC_CMD=$MAGIC_CMD
10687 # Used on cygwin: DLL creation program.
10690 # Used on cygwin: object dumper.
10693 # Used on cygwin: assembler.
10696 # The name of the directory that contains temporary libtool files.
10699 # How to create reloadable object files.
10700 reload_flag=$lt_reload_flag
10701 reload_cmds=$lt_reload_cmds
10703 # How to pass a linker flag through the compiler.
10704 wl=$lt_lt_prog_compiler_wl
10706 # Object file suffix (normally "o").
10707 objext="$ac_objext"
10709 # Old archive suffix (normally "a").
10712 # Shared library suffix (normally ".so").
10713 shrext_cmds='$shrext_cmds'
10715 # Executable file suffix (normally "").
10718 # Additional compiler flags for building library objects.
10719 pic_flag=$lt_lt_prog_compiler_pic
10722 # What is the maximum length of a command?
10723 max_cmd_len=$lt_cv_sys_max_cmd_len
10725 # Does compiler simultaneously support -c and -o options?
10726 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10728 # Must we lock files when doing compilation?
10729 need_locks=$lt_need_locks
10731 # Do we need the lib prefix for modules?
10732 need_lib_prefix=$need_lib_prefix
10734 # Do we need a version for libraries?
10735 need_version=$need_version
10737 # Whether dlopen is supported.
10738 dlopen_support=$enable_dlopen
10740 # Whether dlopen of programs is supported.
10741 dlopen_self=$enable_dlopen_self
10743 # Whether dlopen of statically linked programs is supported.
10744 dlopen_self_static=$enable_dlopen_self_static
10746 # Compiler flag to prevent dynamic linking.
10747 link_static_flag=$lt_lt_prog_compiler_static
10749 # Compiler flag to turn off builtin functions.
10750 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10752 # Compiler flag to allow reflexive dlopens.
10753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10755 # Compiler flag to generate shared objects directly from archives.
10756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10758 # Compiler flag to generate thread-safe objects.
10759 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10761 # Library versioning type.
10762 version_type=$version_type
10764 # Format of library name prefix.
10765 libname_spec=$lt_libname_spec
10767 # List of archive names. First name is the real one, the rest are links.
10768 # The last name is the one that the linker finds with -lNAME.
10769 library_names_spec=$lt_library_names_spec
10771 # The coded name of the library, if different from the real name.
10772 soname_spec=$lt_soname_spec
10774 # Commands used to build and install an old-style archive.
10776 old_archive_cmds=$lt_old_archive_cmds
10777 old_postinstall_cmds=$lt_old_postinstall_cmds
10778 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10780 # Create an old-style archive from a shared archive.
10781 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10783 # Create a temporary old-style archive to link instead of a shared archive.
10784 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10786 # Commands used to build and install a shared archive.
10787 archive_cmds=$lt_archive_cmds
10788 archive_expsym_cmds=$lt_archive_expsym_cmds
10789 postinstall_cmds=$lt_postinstall_cmds
10790 postuninstall_cmds=$lt_postuninstall_cmds
10792 # Commands used to build a loadable module (assumed same as above if empty)
10793 module_cmds=$lt_module_cmds
10794 module_expsym_cmds=$lt_module_expsym_cmds
10796 # Commands to strip libraries.
10797 old_striplib=$lt_old_striplib
10798 striplib=$lt_striplib
10800 # Dependencies to place before the objects being linked to create a
10802 predep_objects=$lt_predep_objects
10804 # Dependencies to place after the objects being linked to create a
10806 postdep_objects=$lt_postdep_objects
10808 # Dependencies to place before the objects being linked to create a
10810 predeps=$lt_predeps
10812 # Dependencies to place after the objects being linked to create a
10814 postdeps=$lt_postdeps
10816 # The directories searched by this compiler when creating a shared
10818 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10820 # The library search path used internally by the compiler when linking
10821 # a shared library.
10822 compiler_lib_search_path=$lt_compiler_lib_search_path
10824 # Method to check whether dependent libraries are shared objects.
10825 deplibs_check_method=$lt_deplibs_check_method
10827 # Command to use when deplibs_check_method == file_magic.
10828 file_magic_cmd=$lt_file_magic_cmd
10830 # Flag that allows shared libraries with undefined symbols to be built.
10831 allow_undefined_flag=$lt_allow_undefined_flag
10833 # Flag that forces no undefined symbols.
10834 no_undefined_flag=$lt_no_undefined_flag
10836 # Commands used to finish a libtool library installation in a directory.
10837 finish_cmds=$lt_finish_cmds
10839 # Same as above, but a single script fragment to be evaled but not shown.
10840 finish_eval=$lt_finish_eval
10842 # Take the output of nm and produce a listing of raw symbols and C names.
10843 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10845 # Transform the output of nm in a proper C declaration
10846 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10848 # Transform the output of nm in a C name address pair
10849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10851 # This is the shared library runtime path variable.
10852 runpath_var=$runpath_var
10854 # This is the shared library path variable.
10855 shlibpath_var=$shlibpath_var
10857 # Is shlibpath searched before the hard-coded library search path?
10858 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10860 # How to hardcode a shared library path into an executable.
10861 hardcode_action=$hardcode_action
10863 # Whether we should hardcode library paths into libraries.
10864 hardcode_into_libs=$hardcode_into_libs
10866 # Flag to hardcode \$libdir into a binary during linking.
10867 # This must work even if \$libdir does not exist.
10868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10870 # If ld is used when linking, flag to hardcode \$libdir into
10871 # a binary during linking. This must work even if \$libdir does
10873 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10875 # Whether we need a single -rpath flag with a separated argument.
10876 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10878 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10879 # resulting binary.
10880 hardcode_direct=$hardcode_direct
10882 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10883 # resulting binary.
10884 hardcode_minus_L=$hardcode_minus_L
10886 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10887 # the resulting binary.
10888 hardcode_shlibpath_var=$hardcode_shlibpath_var
10890 # Set to yes if building a shared library automatically hardcodes DIR into the library
10891 # and all subsequent libraries and executables linked against it.
10892 hardcode_automatic=$hardcode_automatic
10894 # Variables whose values should be saved in libtool wrapper scripts and
10895 # restored at relink time.
10896 variables_saved_for_relink="$variables_saved_for_relink"
10898 # Whether libtool must link a program against all its dependency libraries.
10899 link_all_deplibs=$link_all_deplibs
10901 # Compile-time system search path for libraries
10902 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10904 # Run-time system search path for libraries
10905 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10907 # Fix the shell variable \$srcfile for the compiler.
10908 fix_srcfile_path=$lt_fix_srcfile_path
10910 # Set to yes if exported symbols are required.
10911 always_export_symbols=$always_export_symbols
10913 # The commands to list exported symbols.
10914 export_symbols_cmds=$lt_export_symbols_cmds
10916 # The commands to extract the exported symbol list from a shared archive.
10917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10919 # Symbols that should not be listed in the preloaded symbols.
10920 exclude_expsyms=$lt_exclude_expsyms
10922 # Symbols that must always be exported.
10923 include_expsyms=$lt_include_expsyms
10925 # ### END LIBTOOL CONFIG
10932 cat <<\EOF >> "$cfgfile"
10934 # AIX sometimes has problems with the GCC collect2 program. For some
10935 # reason, if we set the COLLECT_NAMES environment variable, the problems
10936 # vanish in a puff of smoke.
10937 if test "X${COLLECT_NAMES+set}" != Xset; then
10939 export COLLECT_NAMES
10945 # We use sed instead of cat because bash on DJGPP gets confused if
10946 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10947 # text mode, it properly converts lines to CR/LF. This bash problem
10948 # is reportedly fixed, but why not run on old versions too?
10949 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10951 mv -f "$cfgfile" "$ofile" || \
10952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10956 # If there is no Makefile yet, we rely on a make rule to execute
10957 # `config.status --recheck' to rerun these tests and create the
10958 # libtool script then.
10959 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10960 if test -f "$ltmain_in"; then
10961 test -f Makefile && make "$ltmain"
10967 ac_cpp='$CPP $CPPFLAGS'
10968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10975 # Check whether --with-tags was given.
10976 if test "${with_tags+set}" = set; then
10977 withval=$with_tags; tagnames="$withval"
10981 if test -f "$ltmain" && test -n "$tagnames"; then
10982 if test ! -f "${ofile}"; then
10983 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10984 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10987 if test -z "$LTCC"; then
10988 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10989 if test -z "$LTCC"; then
10990 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10991 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10994 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10997 if test -z "$LTCFLAGS"; then
10998 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11001 # Extract list of available tagged configurations in $ofile.
11002 # Note that this assumes the entire list is on one line.
11003 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11006 for tagname in $tagnames; do
11008 # Check whether tagname contains only valid characters
11009 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11011 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11012 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11013 { (exit 1); exit 1; }; }
11017 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11019 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11020 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11021 { (exit 1); exit 1; }; }
11024 # Update the list of available tags.
11025 if test -n "$tagname"; then
11026 echo appending configuration tag \"$tagname\" to $ofile
11030 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11031 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11032 (test "X$CXX" != "Xg++"))) ; then
11034 ac_cpp='$CXXCPP $CPPFLAGS'
11035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11042 archive_cmds_need_lc_CXX=no
11043 allow_undefined_flag_CXX=
11044 always_export_symbols_CXX=no
11045 archive_expsym_cmds_CXX=
11046 export_dynamic_flag_spec_CXX=
11047 hardcode_direct_CXX=no
11048 hardcode_libdir_flag_spec_CXX=
11049 hardcode_libdir_flag_spec_ld_CXX=
11050 hardcode_libdir_separator_CXX=
11051 hardcode_minus_L_CXX=no
11052 hardcode_shlibpath_var_CXX=unsupported
11053 hardcode_automatic_CXX=no
11055 module_expsym_cmds_CXX=
11056 link_all_deplibs_CXX=unknown
11057 old_archive_cmds_CXX=$old_archive_cmds
11058 no_undefined_flag_CXX=
11059 whole_archive_flag_spec_CXX=
11060 enable_shared_with_static_runtimes_CXX=no
11062 # Dependencies to place before and after the object being linked:
11063 predep_objects_CXX=
11064 postdep_objects_CXX=
11067 compiler_lib_search_path_CXX=
11068 compiler_lib_search_dirs_CXX=
11070 # Source file extension for C++ test sources.
11073 # Object file extension for compiled C++ test sources.
11077 # Code to be used in simple compile tests
11078 lt_simple_compile_test_code="int some_variable = 0;"
11080 # Code to be used in simple link tests
11081 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11085 # If no C compiler was specified, use CC.
11088 # If no C compiler flags were specified, use CFLAGS.
11089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11091 # Allow CC to be a program name with arguments.
11095 # save warnings/boilerplate of simple test code
11096 ac_outfile=conftest.$ac_objext
11097 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11099 _lt_compiler_boilerplate=`cat conftest.err`
11102 ac_outfile=conftest.$ac_objext
11103 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11105 _lt_linker_boilerplate=`cat conftest.err`
11109 # Allow CC to be a program name with arguments.
11114 lt_save_with_gnu_ld=$with_gnu_ld
11115 lt_save_path_LD=$lt_cv_path_LD
11116 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11117 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11119 $as_unset lt_cv_prog_gnu_ld
11121 if test -n "${lt_cv_path_LDCXX+set}"; then
11122 lt_cv_path_LD=$lt_cv_path_LDCXX
11124 $as_unset lt_cv_path_LD
11126 test -z "${LDCXX+set}" || LD=$LDCXX
11130 for cc_temp in $compiler""; do
11132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11141 # We don't want -fno-exception wen compiling C++ code, so set the
11142 # no_builtin_flag separately
11143 if test "$GXX" = yes; then
11144 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11146 lt_prog_compiler_no_builtin_flag_CXX=
11149 if test "$GXX" = yes; then
11150 # Set up default GNU C++ configuration
11153 # Check whether --with-gnu-ld was given.
11154 if test "${with_gnu_ld+set}" = set; then
11155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11161 if test "$GCC" = yes; then
11162 # Check if gcc -print-prog-name=ld gives a path.
11163 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11164 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11167 # gcc leaves a trailing carriage return which upsets mingw
11168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11173 # Accept absolute paths.
11175 re_direlt='/[^/][^/]*/\.\./'
11176 # Canonicalize the pathname of ld
11177 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11178 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11179 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11181 test -z "$LD" && LD="$ac_prog"
11184 # If it fails, then pretend we aren't using GCC.
11188 # If it is relative, then search for the first ld in PATH.
11189 with_gnu_ld=unknown
11192 elif test "$with_gnu_ld" = yes; then
11193 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11194 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11196 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11197 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11199 if test "${lt_cv_path_LD+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 if test -z "$LD"; then
11203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11204 for ac_dir in $PATH; do
11206 test -z "$ac_dir" && ac_dir=.
11207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11208 lt_cv_path_LD="$ac_dir/$ac_prog"
11209 # Check to see if the program is GNU ld. I'd rather use --version,
11210 # but apparently some variants of GNU ld only accept -v.
11211 # Break only if it was the GNU/non-GNU ld that we prefer.
11212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11213 *GNU* | *'with BFD'*)
11214 test "$with_gnu_ld" != no && break
11217 test "$with_gnu_ld" != yes && break
11224 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11228 LD="$lt_cv_path_LD"
11229 if test -n "$LD"; then
11230 { echo "$as_me:$LINENO: result: $LD" >&5
11231 echo "${ECHO_T}$LD" >&6; }
11233 { echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6; }
11236 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11237 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11238 { (exit 1); exit 1; }; }
11239 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11240 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11241 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11245 case `$LD -v 2>&1 </dev/null` in
11246 *GNU* | *'with BFD'*)
11247 lt_cv_prog_gnu_ld=yes
11250 lt_cv_prog_gnu_ld=no
11254 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11255 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11256 with_gnu_ld=$lt_cv_prog_gnu_ld
11260 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11261 # archiving commands below assume that GNU ld is being used.
11262 if test "$with_gnu_ld" = yes; then
11263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11264 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'
11266 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11269 # If archive_cmds runs LD, not CC, wlarc should be empty
11270 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11271 # investigate it a little bit more. (MM)
11274 # ancient GNU ld didn't support --whole-archive et. al.
11275 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11276 grep 'no-whole-archive' > /dev/null; then
11277 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11279 whole_archive_flag_spec_CXX=
11285 # A generic and very simple default shared library creation
11286 # command for GNU C++ for the case where it uses the native
11287 # linker, instead of GNU ld. If possible, this setting should
11288 # overridden to take advantage of the native linker features on
11289 # the platform it is being used on.
11290 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11293 # Commands to make compiler produce verbose output that lists
11294 # what "hidden" libraries, object files and flags are used when
11295 # linking a shared library.
11296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11304 # PORTME: fill in a description of your system's C++ link characteristics
11305 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11306 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11310 # FIXME: insert proper C++ library support
11314 if test "$host_cpu" = ia64; then
11315 # On IA64, the linker does run time linking by default, so we don't
11316 # have to do anything special.
11317 aix_use_runtimelinking=no
11318 exp_sym_flag='-Bexport'
11321 aix_use_runtimelinking=no
11323 # Test if we are trying to use run time linking or normal
11324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11325 # need to do runtime linking.
11326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11327 for ld_flag in $LDFLAGS; do
11330 aix_use_runtimelinking=yes
11338 exp_sym_flag='-bexport'
11339 no_entry_flag='-bnoentry'
11342 # When large executables or shared objects are built, AIX ld can
11343 # have problems creating the table of contents. If linking a library
11344 # or program results in "error TOC overflow" add -mminimal-toc to
11345 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11346 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11348 archive_cmds_CXX=''
11349 hardcode_direct_CXX=yes
11350 hardcode_libdir_separator_CXX=':'
11351 link_all_deplibs_CXX=yes
11353 if test "$GXX" = yes; then
11354 case $host_os in aix4.[012]|aix4.[012].*)
11355 # We only want to do this on AIX 4.2 and lower, the check
11356 # below for broken collect2 doesn't work under 4.3+
11357 collect2name=`${CC} -print-prog-name=collect2`
11358 if test -f "$collect2name" && \
11359 strings "$collect2name" | grep resolve_lib_name >/dev/null
11361 # We have reworked collect2
11364 # We have old collect2
11365 hardcode_direct_CXX=unsupported
11366 # It fails to find uninstalled libraries when the uninstalled
11367 # path is not listed in the libpath. Setting hardcode_minus_L
11368 # to unsupported forces relinking
11369 hardcode_minus_L_CXX=yes
11370 hardcode_libdir_flag_spec_CXX='-L$libdir'
11371 hardcode_libdir_separator_CXX=
11375 shared_flag='-shared'
11376 if test "$aix_use_runtimelinking" = yes; then
11377 shared_flag="$shared_flag "'${wl}-G'
11381 if test "$host_cpu" = ia64; then
11382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11383 # chokes on -Wl,-G. The following line is correct:
11386 if test "$aix_use_runtimelinking" = yes; then
11387 shared_flag='${wl}-G'
11389 shared_flag='${wl}-bM:SRE'
11394 # It seems that -bexpall does not export symbols beginning with
11395 # underscore (_), so it is better to generate a list of symbols to export.
11396 always_export_symbols_CXX=yes
11397 if test "$aix_use_runtimelinking" = yes; then
11398 # Warning - without using the other runtime loading flags (-brtl),
11399 # -berok will link without error, but may produce a broken library.
11400 allow_undefined_flag_CXX='-berok'
11401 # Determine the default libpath from the value encoded in an empty executable.
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (ac_try="$ac_link"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_link") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_cxx_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest$ac_exeext &&
11434 $as_test_x conftest$ac_exeext; then
11436 lt_aix_libpath_sed='
11437 /Import File Strings/,/^$/ {
11443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11444 # Check for a 64-bit object if we didn't find anything.
11445 if test -z "$aix_libpath"; then
11446 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11456 conftest$ac_exeext conftest.$ac_ext
11457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11461 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11463 if test "$host_cpu" = ia64; then
11464 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11465 allow_undefined_flag_CXX="-z nodefs"
11466 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11468 # Determine the default libpath from the value encoded in an empty executable.
11469 cat >conftest.$ac_ext <<_ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && {
11498 test -z "$ac_cxx_werror_flag" ||
11499 test ! -s conftest.err
11500 } && test -s conftest$ac_exeext &&
11501 $as_test_x conftest$ac_exeext; then
11503 lt_aix_libpath_sed='
11504 /Import File Strings/,/^$/ {
11510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11511 # Check for a 64-bit object if we didn't find anything.
11512 if test -z "$aix_libpath"; then
11513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11526 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11527 # Warning - without using the other run time loading flags,
11528 # -berok will link without error, but may produce a broken library.
11529 no_undefined_flag_CXX=' ${wl}-bernotok'
11530 allow_undefined_flag_CXX=' ${wl}-berok'
11531 # Exported symbols can be pulled into shared objects from archives
11532 whole_archive_flag_spec_CXX='$convenience'
11533 archive_cmds_need_lc_CXX=yes
11534 # This is similar to how AIX traditionally builds its shared libraries.
11535 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11542 allow_undefined_flag_CXX=unsupported
11543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11544 # support --undefined. This deserves some investigation. FIXME
11545 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11552 case $cc_basename in
11554 # FIXME: insert proper C++ library support
11560 cygwin* | mingw* | pw32*)
11561 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11562 # as there is no search path for DLLs.
11563 hardcode_libdir_flag_spec_CXX='-L$libdir'
11564 allow_undefined_flag_CXX=unsupported
11565 always_export_symbols_CXX=no
11566 enable_shared_with_static_runtimes_CXX=yes
11568 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11569 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11570 # If the export-symbols file already is a .def file (1st line
11571 # is EXPORTS), use it as is; otherwise, prepend...
11572 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11573 cp $export_symbols $output_objdir/$soname.def;
11575 echo EXPORTS > $output_objdir/$soname.def;
11576 cat $export_symbols >> $output_objdir/$soname.def;
11578 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11583 darwin* | rhapsody*)
11584 archive_cmds_need_lc_CXX=no
11585 hardcode_direct_CXX=no
11586 hardcode_automatic_CXX=yes
11587 hardcode_shlibpath_var_CXX=unsupported
11588 whole_archive_flag_spec_CXX=''
11589 link_all_deplibs_CXX=yes
11590 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11591 if test "$GXX" = yes ; then
11592 output_verbose_link_cmd='echo'
11593 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11594 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11595 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11596 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11597 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11598 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11599 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11602 case $cc_basename in
11604 output_verbose_link_cmd='echo'
11605 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11606 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11607 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11608 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11609 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}'
11619 case $cc_basename in
11621 # FIXME: insert proper C++ library support
11625 # Green Hills C++ Compiler
11626 # FIXME: insert proper C++ library support
11630 # FIXME: insert proper C++ library support
11636 # C++ shared libraries reported to be fairly broken before switch to ELF
11640 archive_cmds_need_lc_CXX=no
11642 freebsd* | dragonfly*)
11643 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11650 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11651 hardcode_libdir_separator_CXX=:
11652 export_dynamic_flag_spec_CXX='${wl}-E'
11653 hardcode_direct_CXX=yes
11654 hardcode_minus_L_CXX=yes # Not in the search PATH,
11655 # but as the default
11656 # location of the library.
11658 case $cc_basename in
11660 # FIXME: insert proper C++ library support
11664 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'
11665 # Commands to make compiler produce verbose output that lists
11666 # what "hidden" libraries, object files and flags are used when
11667 # linking a shared library.
11669 # There doesn't appear to be a way to prevent this compiler from
11670 # explicitly linking system object files so we need to strip them
11671 # from the output so that they don't get included in the library
11673 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'
11676 if test "$GXX" = yes; then
11677 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'
11679 # FIXME: insert proper C++ library support
11686 if test $with_gnu_ld = no; then
11687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11688 hardcode_libdir_separator_CXX=:
11693 export_dynamic_flag_spec_CXX='${wl}-E'
11699 hardcode_direct_CXX=no
11700 hardcode_shlibpath_var_CXX=no
11703 hardcode_direct_CXX=yes
11704 hardcode_minus_L_CXX=yes # Not in the search PATH,
11705 # but as the default
11706 # location of the library.
11710 case $cc_basename in
11712 # FIXME: insert proper C++ library support
11718 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11724 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11731 # There doesn't appear to be a way to prevent this compiler from
11732 # explicitly linking system object files so we need to strip them
11733 # from the output so that they don't get included in the library
11735 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'
11738 if test "$GXX" = yes; then
11739 if test $with_gnu_ld = no; then
11742 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11745 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11748 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'
11753 # FIXME: insert proper C++ library support
11760 hardcode_direct_CXX=no
11761 hardcode_shlibpath_var_CXX=no
11762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11763 export_dynamic_flag_spec_CXX='${wl}-E'
11764 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11765 # Instead, shared libraries are loaded at an image base (0x10000000 by
11766 # default) and relocated if they conflict, which is a slow very memory
11767 # consuming and fragmenting process. To avoid this, we pick a random,
11768 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11769 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11770 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11771 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11774 case $cc_basename in
11777 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11779 # Archives containing C++ object files must be created using
11780 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11781 # necessary to make sure instantiated templates are included
11783 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11786 if test "$GXX" = yes; then
11787 if test "$with_gnu_ld" = no; then
11788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11790 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'
11793 link_all_deplibs_CXX=yes
11796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11797 hardcode_libdir_separator_CXX=:
11799 linux* | k*bsd*-gnu)
11800 case $cc_basename in
11802 # Kuck and Associates, Inc. (KAI) C++ Compiler
11804 # KCC will only create a shared library if the output file
11805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11806 # to its proper name (with version) after linking.
11807 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'
11808 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'
11809 # Commands to make compiler produce verbose output that lists
11810 # what "hidden" libraries, object files and flags are used when
11811 # linking a shared library.
11813 # There doesn't appear to be a way to prevent this compiler from
11814 # explicitly linking system object files so we need to strip them
11815 # from the output so that they don't get included in the library
11817 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'
11819 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11822 # Archives containing C++ object files must be created using
11823 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11829 # version 8.0 and above of icpc choke on multiply defined symbols
11830 # if we add $predep_objects and $postdep_objects, however 7.1 and
11831 # earlier do not add the objects themselves.
11832 case `$CC -V 2>&1` in
11834 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11835 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'
11837 *) # Version 8.0 or newer
11840 ia64*) tmp_idyn=' -i_dynamic';;
11842 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11843 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11846 archive_cmds_need_lc_CXX=no
11847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11848 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11849 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11852 # Portland Group C++ compiler
11853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11854 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11856 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11858 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11862 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11863 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'
11865 runpath_var=LD_RUN_PATH
11866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11867 hardcode_libdir_separator_CXX=:
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11873 # There doesn't appear to be a way to prevent this compiler from
11874 # explicitly linking system object files so we need to strip them
11875 # from the output so that they don't get included in the library
11877 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'
11880 case `$CC -V 2>&1 | sed 5q` in
11883 no_undefined_flag_CXX=' -zdefs'
11884 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11886 hardcode_libdir_flag_spec_CXX='-R$libdir'
11887 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11889 # Not sure whether something based on
11890 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11892 output_verbose_link_cmd='echo'
11894 # Archives containing C++ object files must be created using
11895 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11896 # necessary to make sure instantiated templates are included
11898 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11905 # FIXME: insert proper C++ library support
11909 # FIXME: insert proper C++ library support
11913 case $cc_basename in
11915 # FIXME: insert proper C++ library support
11919 # FIXME: insert proper C++ library support
11925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11926 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11928 hardcode_libdir_flag_spec_CXX='-R$libdir'
11929 hardcode_direct_CXX=yes
11930 hardcode_shlibpath_var_CXX=no
11932 # Workaround some broken pre-1.5 toolchains
11933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11936 # C++ shared libraries are fairly broken
11940 if test -f /usr/libexec/ld.so; then
11941 hardcode_direct_CXX=yes
11942 hardcode_shlibpath_var_CXX=no
11943 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11946 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11947 export_dynamic_flag_spec_CXX='${wl}-E'
11948 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11950 output_verbose_link_cmd='echo'
11956 case $cc_basename in
11958 # Kuck and Associates, Inc. (KAI) C++ Compiler
11960 # KCC will only create a shared library if the output file
11961 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11962 # to its proper name (with version) after linking.
11963 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'
11965 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11966 hardcode_libdir_separator_CXX=:
11968 # Archives containing C++ object files must be created using
11969 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11970 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11974 # Rational C++ 2.4.1
11975 # FIXME: insert proper C++ library support
11979 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11980 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11982 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11983 hardcode_libdir_separator_CXX=:
11985 # Commands to make compiler produce verbose output that lists
11986 # what "hidden" libraries, object files and flags are used when
11987 # linking a shared library.
11989 # There doesn't appear to be a way to prevent this compiler from
11990 # explicitly linking system object files so we need to strip them
11991 # from the output so that they don't get included in the library
11993 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'
11996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11997 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11998 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12001 hardcode_libdir_separator_CXX=:
12003 # Commands to make compiler produce verbose output that lists
12004 # what "hidden" libraries, object files and flags are used when
12005 # linking a shared library.
12006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12009 # FIXME: insert proper C++ library support
12016 case $cc_basename in
12018 # Kuck and Associates, Inc. (KAI) C++ Compiler
12020 # KCC will only create a shared library if the output file
12021 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12022 # to its proper name (with version) after linking.
12023 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'
12025 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12026 hardcode_libdir_separator_CXX=:
12028 # Archives containing C++ object files must be created using
12029 # the KAI C++ compiler.
12030 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12033 # Rational C++ 2.4.1
12034 # FIXME: insert proper C++ library support
12038 allow_undefined_flag_CXX=' -expect_unresolved \*'
12039 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12040 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12041 echo "-hidden">> $lib.exp~
12042 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12045 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12046 hardcode_libdir_separator_CXX=:
12048 # Commands to make compiler produce verbose output that lists
12049 # what "hidden" libraries, object files and flags are used when
12050 # linking a shared library.
12052 # There doesn't appear to be a way to prevent this compiler from
12053 # explicitly linking system object files so we need to strip them
12054 # from the output so that they don't get included in the library
12056 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'
12059 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12060 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12061 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12063 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12064 hardcode_libdir_separator_CXX=:
12066 # Commands to make compiler produce verbose output that lists
12067 # what "hidden" libraries, object files and flags are used when
12068 # linking a shared library.
12069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12072 # FIXME: insert proper C++ library support
12079 # FIXME: insert proper C++ library support
12083 case $cc_basename in
12086 # FIXME: insert proper C++ library support
12091 # FIXME: insert proper C++ library support
12095 # FIXME: insert proper C++ library support
12101 case $cc_basename in
12103 # Sun C++ 4.2, 5.x and Centerline C++
12104 archive_cmds_need_lc_CXX=yes
12105 no_undefined_flag_CXX=' -zdefs'
12106 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12107 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12108 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12110 hardcode_libdir_flag_spec_CXX='-R$libdir'
12111 hardcode_shlibpath_var_CXX=no
12113 solaris2.[0-5] | solaris2.[0-5].*) ;;
12115 # The compiler driver will combine and reorder linker options,
12116 # but understands `-z linker_flag'.
12117 # Supported since Solaris 2.6 (maybe 2.5.1?)
12118 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12121 link_all_deplibs_CXX=yes
12123 output_verbose_link_cmd='echo'
12125 # Archives containing C++ object files must be created using
12126 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12127 # necessary to make sure instantiated templates are included
12129 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12132 # Green Hills C++ Compiler
12133 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12135 # The C++ compiler must be used to create the archive.
12136 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12139 # GNU C++ compiler with Solaris linker
12140 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12141 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12142 if $CC --version | grep -v '^2\.7' > /dev/null; then
12143 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12144 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12145 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12147 # Commands to make compiler produce verbose output that lists
12148 # what "hidden" libraries, object files and flags are used when
12149 # linking a shared library.
12150 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12152 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12154 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12155 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12156 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12158 # Commands to make compiler produce verbose output that lists
12159 # what "hidden" libraries, object files and flags are used when
12160 # linking a shared library.
12161 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12164 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12166 solaris2.[0-5] | solaris2.[0-5].*) ;;
12168 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12176 no_undefined_flag_CXX='${wl}-z,text'
12177 archive_cmds_need_lc_CXX=no
12178 hardcode_shlibpath_var_CXX=no
12179 runpath_var='LD_RUN_PATH'
12181 case $cc_basename in
12183 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12184 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12187 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12192 sysv5* | sco3.2v5* | sco5v6*)
12193 # Note: We can NOT use -z defs as we might desire, because we do not
12194 # link with -lc, and that would cause any symbols used from libc to
12195 # always be unresolved, which means just about no library would
12196 # ever link correctly. If we're not using GNU ld we use -z text
12197 # though, which does catch some bad symbols but isn't as heavy-handed
12199 # For security reasons, it is highly recommended that you always
12200 # use absolute paths for naming shared libraries, and exclude the
12201 # DT_RUNPATH tag from executables and libraries. But doing so
12202 # requires that you compile everything twice, which is a pain.
12203 # So that behaviour is only enabled if SCOABSPATH is set to a
12204 # non-empty value in the environment. Most likely only useful for
12205 # creating official distributions of packages.
12206 # This is a hack until libtool officially supports absolute path
12207 # names for shared libraries.
12208 no_undefined_flag_CXX='${wl}-z,text'
12209 allow_undefined_flag_CXX='${wl}-z,nodefs'
12210 archive_cmds_need_lc_CXX=no
12211 hardcode_shlibpath_var_CXX=no
12212 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12213 hardcode_libdir_separator_CXX=':'
12214 link_all_deplibs_CXX=yes
12215 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12216 runpath_var='LD_RUN_PATH'
12218 case $cc_basename in
12220 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12224 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12225 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12230 case $cc_basename in
12232 # NonStop-UX NCC 3.20
12233 # FIXME: insert proper C++ library support
12237 # FIXME: insert proper C++ library support
12243 # FIXME: insert proper C++ library support
12247 # FIXME: insert proper C++ library support
12251 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12252 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12253 test "$ld_shlibs_CXX" = no && can_build_shared=no
12258 cat > conftest.$ac_ext <<EOF
12262 Foo (void) { a = 0; }
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; then
12273 # Parse the compiler output and extract the necessary
12274 # objects, libraries and library flags.
12276 # Sentinel used to keep track of whether or not we are before
12277 # the conftest object file.
12278 pre_test_object_deps_done=no
12280 # The `*' in the case matches for architectures that use `case' in
12281 # $output_verbose_cmd can trigger glob expansion during the loop
12282 # eval without this substitution.
12283 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12285 for p in `eval $output_verbose_link_cmd`; do
12289 # Some compilers place space between "-{L,R}" and the path.
12290 # Remove the space.
12291 if test $p = "-L" \
12292 || test $p = "-R"; then
12299 if test "$pre_test_object_deps_done" = no; then
12302 # Internal compiler library paths should come after those
12303 # provided the user. The postdeps already come after the
12304 # user supplied libs so there is no need to process them.
12305 if test -z "$compiler_lib_search_path_CXX"; then
12306 compiler_lib_search_path_CXX="${prev}${p}"
12308 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12311 # The "-l" case would never come before the object being
12312 # linked, so don't bother handling this case.
12315 if test -z "$postdeps_CXX"; then
12316 postdeps_CXX="${prev}${p}"
12318 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12324 # This assumes that the test object file only shows up
12325 # once in the compiler output.
12326 if test "$p" = "conftest.$objext"; then
12327 pre_test_object_deps_done=yes
12331 if test "$pre_test_object_deps_done" = no; then
12332 if test -z "$predep_objects_CXX"; then
12333 predep_objects_CXX="$p"
12335 predep_objects_CXX="$predep_objects_CXX $p"
12338 if test -z "$postdep_objects_CXX"; then
12339 postdep_objects_CXX="$p"
12341 postdep_objects_CXX="$postdep_objects_CXX $p"
12346 *) ;; # Ignore the rest.
12354 echo "libtool.m4: error: problem compiling CXX test program"
12357 $rm -f confest.$objext
12359 compiler_lib_search_dirs_CXX=
12360 if test -n "$compiler_lib_search_path_CXX"; then
12361 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12364 # PORTME: override above test on systems where it is broken
12367 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12368 # hack all around it, let's just trust "g++" to DTRT.
12369 predep_objects_CXX=
12370 postdep_objects_CXX=
12375 case `$CC -V 2>&1 | sed 5q` in
12379 # The more standards-conforming stlport4 library is
12380 # incompatible with the Cstd library. Avoid specifying
12381 # it if it's in CXXFLAGS. Ignore libCrun as
12382 # -library=stlport4 depends on it.
12383 case " $CXX $CXXFLAGS " in
12384 *" -library=stlport4 "*)
12385 solaris_use_stlport4=yes
12388 if test "$solaris_use_stlport4" != yes; then
12389 postdeps_CXX='-library=Cstd -library=Crun'
12396 case $cc_basename in
12398 # The more standards-conforming stlport4 library is
12399 # incompatible with the Cstd library. Avoid specifying
12400 # it if it's in CXXFLAGS. Ignore libCrun as
12401 # -library=stlport4 depends on it.
12402 case " $CXX $CXXFLAGS " in
12403 *" -library=stlport4 "*)
12404 solaris_use_stlport4=yes
12408 # Adding this requires a known-good setup of shared libraries for
12409 # Sun compiler versions before 5.6, else PIC objects from an old
12410 # archive will be linked into the output, leading to subtle bugs.
12411 if test "$solaris_use_stlport4" != yes; then
12412 postdeps_CXX='-library=Cstd -library=Crun'
12419 case " $postdeps_CXX " in
12420 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12423 lt_prog_compiler_wl_CXX=
12424 lt_prog_compiler_pic_CXX=
12425 lt_prog_compiler_static_CXX=
12427 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12430 # C++ specific cases for pic, static, wl, etc.
12431 if test "$GXX" = yes; then
12432 lt_prog_compiler_wl_CXX='-Wl,'
12433 lt_prog_compiler_static_CXX='-static'
12437 # All AIX code is PIC.
12438 if test "$host_cpu" = ia64; then
12439 # AIX 5 now supports IA64 processor
12440 lt_prog_compiler_static_CXX='-Bstatic'
12444 # FIXME: we need at least 68020 code to build shared libraries, but
12445 # adding the `-m68020' flag to GCC prevents building anything better,
12447 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12449 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12450 # PIC is the default for these OSes.
12452 mingw* | cygwin* | os2* | pw32*)
12453 # This hack is so that the source file can tell whether it is being
12454 # built for inclusion in a dll (and should export symbols for example).
12455 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12456 # (--disable-auto-import) libraries
12457 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12459 darwin* | rhapsody*)
12460 # PIC is the default on this platform
12461 # Common symbols not allowed in MH_DYLIB files
12462 lt_prog_compiler_pic_CXX='-fno-common'
12465 # DJGPP does not support shared libraries at all
12466 lt_prog_compiler_pic_CXX=
12469 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12470 # Instead, we relocate shared libraries at runtime.
12473 if test -d /usr/nec; then
12474 lt_prog_compiler_pic_CXX=-Kconform_pic
12478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12479 # not for PA HP-UX.
12484 lt_prog_compiler_pic_CXX='-fPIC'
12489 lt_prog_compiler_pic_CXX='-fPIC'
12495 # All AIX code is PIC.
12496 if test "$host_cpu" = ia64; then
12497 # AIX 5 now supports IA64 processor
12498 lt_prog_compiler_static_CXX='-Bstatic'
12500 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12504 case $cc_basename in
12506 # Green Hills C++ Compiler
12507 # _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"
12512 # PIC is the default on this platform
12513 # Common symbols not allowed in MH_DYLIB files
12514 case $cc_basename in
12516 lt_prog_compiler_pic_CXX='-qnocommon'
12517 lt_prog_compiler_wl_CXX='-Wl,'
12522 case $cc_basename in
12524 lt_prog_compiler_pic_CXX='-KPIC'
12527 # Green Hills C++ Compiler
12528 lt_prog_compiler_pic_CXX='-pic'
12534 freebsd* | dragonfly*)
12535 # FreeBSD uses GNU C++
12537 hpux9* | hpux10* | hpux11*)
12538 case $cc_basename in
12540 lt_prog_compiler_wl_CXX='-Wl,'
12541 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12542 if test "$host_cpu" != ia64; then
12543 lt_prog_compiler_pic_CXX='+Z'
12547 lt_prog_compiler_wl_CXX='-Wl,'
12548 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12554 lt_prog_compiler_pic_CXX='+Z'
12563 # This is c89, which is MS Visual C++ (no shared libs)
12564 # Anyone wants to do a port?
12566 irix5* | irix6* | nonstopux*)
12567 case $cc_basename in
12569 lt_prog_compiler_wl_CXX='-Wl,'
12570 lt_prog_compiler_static_CXX='-non_shared'
12571 # CC pic flag -KPIC is the default.
12577 linux* | k*bsd*-gnu)
12578 case $cc_basename in
12581 lt_prog_compiler_wl_CXX='--backend -Wl,'
12582 lt_prog_compiler_pic_CXX='-fPIC'
12586 lt_prog_compiler_wl_CXX='-Wl,'
12587 lt_prog_compiler_pic_CXX='-KPIC'
12588 lt_prog_compiler_static_CXX='-static'
12591 # Portland Group C++ compiler.
12592 lt_prog_compiler_wl_CXX='-Wl,'
12593 lt_prog_compiler_pic_CXX='-fpic'
12594 lt_prog_compiler_static_CXX='-Bstatic'
12598 # Make sure the PIC flag is empty. It appears that all Alpha
12599 # Linux and Compaq Tru64 Unix objects are PIC.
12600 lt_prog_compiler_pic_CXX=
12601 lt_prog_compiler_static_CXX='-non_shared'
12604 case `$CC -V 2>&1 | sed 5q` in
12607 lt_prog_compiler_pic_CXX='-KPIC'
12608 lt_prog_compiler_static_CXX='-Bstatic'
12609 lt_prog_compiler_wl_CXX='-Qoption ld '
12620 case $cc_basename in
12622 lt_prog_compiler_pic_CXX='-W c,exportall'
12630 osf3* | osf4* | osf5*)
12631 case $cc_basename in
12633 lt_prog_compiler_wl_CXX='--backend -Wl,'
12636 # Rational C++ 2.4.1
12637 lt_prog_compiler_pic_CXX='-pic'
12640 # Digital/Compaq C++
12641 lt_prog_compiler_wl_CXX='-Wl,'
12642 # Make sure the PIC flag is empty. It appears that all Alpha
12643 # Linux and Compaq Tru64 Unix objects are PIC.
12644 lt_prog_compiler_pic_CXX=
12645 lt_prog_compiler_static_CXX='-non_shared'
12654 case $cc_basename in
12656 # Sun C++ 4.2, 5.x and Centerline C++
12657 lt_prog_compiler_pic_CXX='-KPIC'
12658 lt_prog_compiler_static_CXX='-Bstatic'
12659 lt_prog_compiler_wl_CXX='-Qoption ld '
12662 # Green Hills C++ Compiler
12663 lt_prog_compiler_pic_CXX='-PIC'
12670 case $cc_basename in
12673 lt_prog_compiler_pic_CXX='-pic'
12674 lt_prog_compiler_static_CXX='-Bstatic'
12678 lt_prog_compiler_pic_CXX='-pic'
12685 case $cc_basename in
12687 # NonStop-UX NCC 3.20
12688 lt_prog_compiler_pic_CXX='-KPIC'
12694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12695 case $cc_basename in
12697 lt_prog_compiler_wl_CXX='-Wl,'
12698 lt_prog_compiler_pic_CXX='-KPIC'
12699 lt_prog_compiler_static_CXX='-Bstatic'
12706 lt_prog_compiler_can_build_shared_CXX=no
12711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12712 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12715 # Check to make sure the PIC flag actually works.
12717 if test -n "$lt_prog_compiler_pic_CXX"; then
12719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12721 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 lt_cv_prog_compiler_pic_works_CXX=no
12725 ac_outfile=conftest.$ac_objext
12726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12727 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12728 # Insert the option either (1) after the last *FLAGS variable, or
12729 # (2) before a word containing "conftest.", or (3) at the end.
12730 # Note that $ac_compile itself does not contain backslashes and begins
12731 # with a dollar sign (not a hyphen), so the echo should work correctly.
12732 # The option is referenced via a variable to avoid confusing sed.
12733 lt_compile=`echo "$ac_compile" | $SED \
12734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736 -e 's:$: $lt_compiler_flag:'`
12737 (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
12738 (eval "$lt_compile" 2>conftest.err)
12740 cat conftest.err >&5
12741 echo "$as_me:12741: \$? = $ac_status" >&5
12742 if (exit $ac_status) && test -s "$ac_outfile"; then
12743 # The compiler can only warn and ignore the option if not recognized
12744 # So say no if there are warnings other than the usual output.
12745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12748 lt_cv_prog_compiler_pic_works_CXX=yes
12754 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12755 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12757 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12758 case $lt_prog_compiler_pic_CXX in
12760 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12763 lt_prog_compiler_pic_CXX=
12764 lt_prog_compiler_can_build_shared_CXX=no
12769 # For platforms which do not support PIC, -DPIC is meaningless:
12771 lt_prog_compiler_pic_CXX=
12774 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12779 # Check to make sure the static flag actually works.
12781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12784 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 lt_cv_prog_compiler_static_works_CXX=no
12788 save_LDFLAGS="$LDFLAGS"
12789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12792 # The linker can only warn and ignore the option if not recognized
12793 # So say no if there are warnings
12794 if test -s conftest.err; then
12795 # Append any errors to the config.log.
12796 cat conftest.err 1>&5
12797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12799 if diff conftest.exp conftest.er2 >/dev/null; then
12800 lt_cv_prog_compiler_static_works_CXX=yes
12803 lt_cv_prog_compiler_static_works_CXX=yes
12807 LDFLAGS="$save_LDFLAGS"
12810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12811 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12813 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12816 lt_prog_compiler_static_CXX=
12820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12822 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 lt_cv_prog_compiler_c_o_CXX=no
12826 $rm -r conftest 2>/dev/null
12830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12832 lt_compiler_flag="-o out/conftest2.$ac_objext"
12833 # Insert the option either (1) after the last *FLAGS variable, or
12834 # (2) before a word containing "conftest.", or (3) at the end.
12835 # Note that $ac_compile itself does not contain backslashes and begins
12836 # with a dollar sign (not a hyphen), so the echo should work correctly.
12837 lt_compile=`echo "$ac_compile" | $SED \
12838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12840 -e 's:$: $lt_compiler_flag:'`
12841 (eval echo "\"\$as_me:12841: $lt_compile\"" >&5)
12842 (eval "$lt_compile" 2>out/conftest.err)
12844 cat out/conftest.err >&5
12845 echo "$as_me:12845: \$? = $ac_status" >&5
12846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12848 # The compiler can only warn and ignore the option if not recognized
12849 # So say no if there are warnings
12850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12853 lt_cv_prog_compiler_c_o_CXX=yes
12858 # SGI C++ compiler will create directory out/ii_files/ for
12859 # template instantiation
12860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12861 $rm out/* && rmdir out
12867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12871 hard_links="nottested"
12872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12873 # do not overwrite the value of need_locks provided by the user
12874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12880 ln conftest.a conftest.b 2>&5 || hard_links=no
12881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12882 { echo "$as_me:$LINENO: result: $hard_links" >&5
12883 echo "${ECHO_T}$hard_links" >&6; }
12884 if test "$hard_links" = no; then
12885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12896 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12899 # If we're using GNU nm, then we don't want the "-C" option.
12900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12902 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'
12904 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'
12908 export_symbols_cmds_CXX="$ltdll_cmds"
12911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12914 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12917 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12919 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12920 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12921 test "$ld_shlibs_CXX" = no && can_build_shared=no
12924 # Do we need to explicitly link libc?
12926 case "x$archive_cmds_need_lc_CXX" in
12928 # Assume -lc should be added
12929 archive_cmds_need_lc_CXX=yes
12931 if test "$enable_shared" = yes && test "$GCC" = yes; then
12932 case $archive_cmds_CXX in
12934 # FIXME: we may have to deal with multi-command sequences.
12937 # Test whether the compiler implicitly links with -lc since on some
12938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12939 # to ld, don't add -lc before -lgcc.
12940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } 2>conftest.err; then
12952 libobjs=conftest.$ac_objext
12954 wl=$lt_prog_compiler_wl_CXX
12955 pic_flag=$lt_prog_compiler_pic_CXX
12961 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12962 allow_undefined_flag_CXX=
12963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12964 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }
12969 archive_cmds_need_lc_CXX=no
12971 archive_cmds_need_lc_CXX=yes
12973 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12975 cat conftest.err 1>&5
12978 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12979 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12986 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12988 library_names_spec=
12989 libname_spec='lib$name'
12993 postuninstall_cmds=
12997 shlibpath_overrides_runpath=unknown
12999 dynamic_linker="$host_os ld.so"
13000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13002 need_lib_prefix=unknown
13003 hardcode_into_libs=no
13005 # when you set need_version to no, make sure it does not cause -set_version
13006 # flags to be left without arguments
13007 need_version=unknown
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13013 shlibpath_var=LIBPATH
13015 # AIX 3 has no versioning support, so we append a major version to the name.
13016 soname_spec='${libname}${release}${shared_ext}$major'
13023 hardcode_into_libs=yes
13024 if test "$host_cpu" = ia64; then
13025 # AIX 5 supports IA64
13026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13027 shlibpath_var=LD_LIBRARY_PATH
13029 # With GCC up to 2.95.x, collect2 would create an import file
13030 # for dependence libraries. The import file would start with
13031 # the line `#! .'. This would cause the generated library to
13032 # depend on `.', always an invalid library. This was fixed in
13033 # development snapshots of GCC prior to 3.0.
13035 aix4 | aix4.[01] | aix4.[01].*)
13036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13041 can_build_shared=no
13045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13046 # soname into executable. Probably we can add versioning support to
13047 # collect2, so additional links can be useful in future.
13048 if test "$aix_use_runtimelinking" = yes; then
13049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13050 # instead of lib<name>.a to let people know that these are not
13051 # typical AIX shared libraries.
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13054 # We preserve .a as extension for shared libraries through AIX4.2
13055 # and later when we are not doing run time linking.
13056 library_names_spec='${libname}${release}.a $libname.a'
13057 soname_spec='${libname}${release}${shared_ext}$major'
13059 shlibpath_var=LIBPATH
13064 library_names_spec='$libname.ixlibrary $libname.a'
13065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13066 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'
13070 library_names_spec='${libname}${shared_ext}'
13071 dynamic_linker="$host_os ld.so"
13072 shlibpath_var=LIBRARY_PATH
13078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079 soname_spec='${libname}${release}${shared_ext}$major'
13080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13084 # the default ld.so.conf also contains /usr/contrib/lib and
13085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13086 # libtool to hard-code these into programs
13089 cygwin* | mingw* | pw32*)
13090 version_type=windows
13095 case $GCC,$host_os in
13096 yes,cygwin* | yes,mingw* | yes,pw32*)
13097 library_names_spec='$libname.dll.a'
13098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13099 postinstall_cmds='base_file=`basename \${file}`~
13100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13101 dldir=$destdir/`dirname \$dlpath`~
13102 test -d \$dldir || mkdir -p \$dldir~
13103 $install_prog $dir/$dlname \$dldir/$dlname~
13104 chmod a+x \$dldir/$dlname'
13105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13106 dlpath=$dir/\$dldll~
13108 shlibpath_overrides_runpath=yes
13112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13117 # MinGW DLLs use traditional 'lib' prefix
13118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13121 # It is most probably a Windows format PATH printed by
13122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13123 # path with ; separators, and with drive letters. We can handle the
13124 # drive letters (cygwin fileutils understands them), so leave them,
13125 # especially as we might pass files found there to a mingw objdump,
13126 # which wouldn't understand a cygwinified path. Ahh.
13127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13133 # pw32 DLLs use 'pw' prefix rather than 'lib'
13134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13143 dynamic_linker='Win32 ld.exe'
13144 # FIXME: first we should search . and the directory the executable is in
13148 darwin* | rhapsody*)
13149 dynamic_linker="$host_os dyld"
13150 version_type=darwin
13153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13154 soname_spec='${libname}${release}${major}$shared_ext'
13155 shlibpath_overrides_runpath=yes
13156 shlibpath_var=DYLD_LIBRARY_PATH
13157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 shlibpath_var=LD_LIBRARY_PATH
13175 freebsd* | dragonfly*)
13176 # DragonFly does not have aout. When/if they implement a new
13177 # versioning mechanism, adjust this.
13178 if test -x /usr/bin/objformat; then
13179 objformat=`/usr/bin/objformat`
13182 freebsd[123]*) objformat=aout ;;
13183 *) objformat=elf ;;
13186 version_type=freebsd-$objformat
13187 case $version_type in
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13198 shlibpath_var=LD_LIBRARY_PATH
13201 shlibpath_overrides_runpath=yes
13203 freebsd3.[01]* | freebsdelf3.[01]*)
13204 shlibpath_overrides_runpath=yes
13205 hardcode_into_libs=yes
13207 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13208 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13209 shlibpath_overrides_runpath=no
13210 hardcode_into_libs=yes
13212 *) # from 4.6 on, and DragonFly
13213 shlibpath_overrides_runpath=yes
13214 hardcode_into_libs=yes
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13224 soname_spec='${libname}${release}${shared_ext}$major'
13225 shlibpath_var=LD_LIBRARY_PATH
13226 hardcode_into_libs=yes
13229 hpux9* | hpux10* | hpux11*)
13230 # Give a soname corresponding to the major version so that dld.sl refuses to
13231 # link against other versions.
13238 hardcode_into_libs=yes
13239 dynamic_linker="$host_os dld.so"
13240 shlibpath_var=LD_LIBRARY_PATH
13241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13243 soname_spec='${libname}${release}${shared_ext}$major'
13244 if test "X$HPUX_IA64_MODE" = X32; then
13245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13253 hardcode_into_libs=yes
13254 dynamic_linker="$host_os dld.sl"
13255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258 soname_spec='${libname}${release}${shared_ext}$major'
13259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13264 dynamic_linker="$host_os dld.sl"
13265 shlibpath_var=SHLIB_PATH
13266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268 soname_spec='${libname}${release}${shared_ext}$major'
13271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13272 postinstall_cmds='chmod 555 $lib'
13279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13280 soname_spec='${libname}${release}${shared_ext}$major'
13281 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 shlibpath_overrides_runpath=no
13284 hardcode_into_libs=yes
13287 irix5* | irix6* | nonstopux*)
13289 nonstopux*) version_type=nonstopux ;;
13291 if test "$lt_cv_prog_gnu_ld" = yes; then
13299 soname_spec='${libname}${release}${shared_ext}$major'
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13302 irix5* | nonstopux*)
13303 libsuff= shlibsuff=
13306 case $LD in # libtool.m4 will add one of these switches to LD
13307 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13308 libsuff= shlibsuff= libmagic=32-bit;;
13309 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13310 libsuff=32 shlibsuff=N32 libmagic=N32;;
13311 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13312 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13313 *) libsuff= shlibsuff= libmagic=never-match;;
13317 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13318 shlibpath_overrides_runpath=no
13319 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13320 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13321 hardcode_into_libs=yes
13324 # No shared lib support for Linux oldld, aout, or coff.
13325 linux*oldld* | linux*aout* | linux*coff*)
13329 # This must be Linux ELF.
13330 linux* | k*bsd*-gnu)
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 shlibpath_overrides_runpath=no
13339 # This implies no fast_install, which is unacceptable.
13340 # Some rework will be needed to allow for fast_install
13341 # before this can be enabled.
13342 hardcode_into_libs=yes
13344 # Append ld.so.conf contents to the search path
13345 if test -f /etc/ld.so.conf; then
13346 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13350 # We used to test for /lib/ld.so.1 and disable shared libraries on
13351 # powerpc, because MkLinux only supported shared libraries with the
13352 # GNU dynamic linker. Since this was broken with cross compilers,
13353 # most powerpc-linux boxes support dynamic linking these days and
13354 # people can always --disable-shared, the test was removed, and we
13355 # assume the GNU/Linux dynamic linker is in use.
13356 dynamic_linker='GNU/Linux ld.so'
13363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13366 dynamic_linker='NetBSD (a.out) ld.so'
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13369 soname_spec='${libname}${release}${shared_ext}$major'
13370 dynamic_linker='NetBSD ld.elf_so'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13374 hardcode_into_libs=yes
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=yes
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 shlibpath_overrides_runpath=yes
13396 sys_lib_dlsearch_path_spec="/usr/lib"
13398 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13400 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13401 *) need_version=no ;;
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13408 openbsd2.[89] | openbsd2.[89].*)
13409 shlibpath_overrides_runpath=no
13412 shlibpath_overrides_runpath=yes
13416 shlibpath_overrides_runpath=yes
13421 libname_spec='$name'
13424 library_names_spec='$libname${shared_ext} $libname.a'
13425 dynamic_linker='OS/2 ld.exe'
13426 shlibpath_var=LIBPATH
13429 osf3* | osf4* | osf5*)
13433 soname_spec='${libname}${release}${shared_ext}$major'
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13437 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=yes
13452 hardcode_into_libs=yes
13453 # ldd complains unless libraries are executable
13454 postinstall_cmds='chmod +x $lib'
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=yes
13463 if test "$with_gnu_ld" = yes; then
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 case $host_vendor in
13476 shlibpath_overrides_runpath=no
13478 export_dynamic_flag_spec='${wl}-Blargedynsym'
13479 runpath_var=LD_RUN_PATH
13487 shlibpath_overrides_runpath=no
13488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13494 if test -d /usr/nec ;then
13496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13497 soname_spec='$libname${shared_ext}.$major'
13498 shlibpath_var=LD_LIBRARY_PATH
13502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13503 version_type=freebsd-elf
13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 hardcode_into_libs=yes
13510 if test "$with_gnu_ld" = yes; then
13511 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13512 shlibpath_overrides_runpath=no
13514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13515 shlibpath_overrides_runpath=yes
13518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13522 sys_lib_dlsearch_path_spec='/usr/lib'
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13536 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13537 echo "${ECHO_T}$dynamic_linker" >&6; }
13538 test "$dynamic_linker" = no && can_build_shared=no
13540 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13553 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13556 if test "$GCC" = yes; then
13557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13560 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13561 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13562 hardcode_action_CXX=
13563 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13564 test -n "$runpath_var_CXX" || \
13565 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13567 # We can hardcode non-existant directories.
13568 if test "$hardcode_direct_CXX" != no &&
13569 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13570 # have to relink, otherwise we might link with an installed library
13571 # when we should be linking with a yet-to-be-installed one
13572 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13573 test "$hardcode_minus_L_CXX" != no; then
13574 # Linking always hardcodes the temporary library directory.
13575 hardcode_action_CXX=relink
13577 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13578 hardcode_action_CXX=immediate
13581 # We cannot hardcode anything, or else we can only hardcode existing
13583 hardcode_action_CXX=unsupported
13585 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13586 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13588 if test "$hardcode_action_CXX" = relink; then
13589 # Fast installation is not supported
13590 enable_fast_install=no
13591 elif test "$shlibpath_overrides_runpath" = yes ||
13592 test "$enable_shared" = no; then
13593 # Fast installation is not necessary
13594 enable_fast_install=needless
13598 # The else clause should only fire when bootstrapping the
13599 # libtool distribution, otherwise you forgot to ship ltmain.sh
13600 # with your package, and you will get complaints that there are
13601 # no rules to generate ltmain.sh.
13602 if test -f "$ltmain"; then
13603 # See if we are running on zsh, and set the options which allow our commands through
13604 # without removal of \ escapes.
13605 if test -n "${ZSH_VERSION+set}" ; then
13606 setopt NO_GLOB_SUBST
13608 # Now quote all the things that may contain metacharacters while being
13609 # careful not to overquote the AC_SUBSTed values. We take copies of the
13610 # variables and quote the copies for generation of the libtool script.
13611 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13613 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13614 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13615 deplibs_check_method reload_flag reload_cmds need_locks \
13616 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13617 lt_cv_sys_global_symbol_to_c_name_address \
13618 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13619 old_postinstall_cmds old_postuninstall_cmds \
13623 lt_prog_compiler_wl_CXX \
13624 lt_prog_compiler_pic_CXX \
13625 lt_prog_compiler_static_CXX \
13626 lt_prog_compiler_no_builtin_flag_CXX \
13627 export_dynamic_flag_spec_CXX \
13628 thread_safe_flag_spec_CXX \
13629 whole_archive_flag_spec_CXX \
13630 enable_shared_with_static_runtimes_CXX \
13631 old_archive_cmds_CXX \
13632 old_archive_from_new_cmds_CXX \
13633 predep_objects_CXX \
13634 postdep_objects_CXX \
13637 compiler_lib_search_path_CXX \
13638 compiler_lib_search_dirs_CXX \
13640 archive_expsym_cmds_CXX \
13641 postinstall_cmds_CXX \
13642 postuninstall_cmds_CXX \
13643 old_archive_from_expsyms_cmds_CXX \
13644 allow_undefined_flag_CXX \
13645 no_undefined_flag_CXX \
13646 export_symbols_cmds_CXX \
13647 hardcode_libdir_flag_spec_CXX \
13648 hardcode_libdir_flag_spec_ld_CXX \
13649 hardcode_libdir_separator_CXX \
13650 hardcode_automatic_CXX \
13652 module_expsym_cmds_CXX \
13653 lt_cv_prog_compiler_c_o_CXX \
13654 fix_srcfile_path_CXX \
13655 exclude_expsyms_CXX \
13656 include_expsyms_CXX; do
13659 old_archive_cmds_CXX | \
13660 old_archive_from_new_cmds_CXX | \
13661 archive_cmds_CXX | \
13662 archive_expsym_cmds_CXX | \
13663 module_cmds_CXX | \
13664 module_expsym_cmds_CXX | \
13665 old_archive_from_expsyms_cmds_CXX | \
13666 export_symbols_cmds_CXX | \
13667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13668 postinstall_cmds | postuninstall_cmds | \
13669 old_postinstall_cmds | old_postuninstall_cmds | \
13670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13671 # Double-quote double-evaled strings.
13672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13681 *'\$0 --fallback-echo"')
13682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13688 cat <<__EOF__ >> "$cfgfile"
13689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13693 # Shell to use when invoking shell scripts.
13696 # Whether or not to build shared libraries.
13697 build_libtool_libs=$enable_shared
13699 # Whether or not to build static libraries.
13700 build_old_libs=$enable_static
13702 # Whether or not to add -lc for building shared libraries.
13703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13705 # Whether or not to disallow shared libs when runtime libs are static
13706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13708 # Whether or not to optimize for fast installation.
13709 fast_install=$enable_fast_install
13712 host_alias=$host_alias
13716 # The build system.
13717 build_alias=$build_alias
13721 # An echo program that does not interpret backslashes.
13726 AR_FLAGS=$lt_AR_FLAGS
13731 # LTCC compiler flags.
13732 LTCFLAGS=$lt_LTCFLAGS
13734 # A language-specific compiler.
13735 CC=$lt_compiler_CXX
13737 # Is the compiler the GNU C compiler?
13743 # The linker used to build libraries.
13746 # Whether we need hard or soft links.
13749 # A BSD-compatible nm program.
13752 # A symbol stripping program
13755 # Used to examine libraries when file_magic_cmd begins "file"
13756 MAGIC_CMD=$MAGIC_CMD
13758 # Used on cygwin: DLL creation program.
13761 # Used on cygwin: object dumper.
13764 # Used on cygwin: assembler.
13767 # The name of the directory that contains temporary libtool files.
13770 # How to create reloadable object files.
13771 reload_flag=$lt_reload_flag
13772 reload_cmds=$lt_reload_cmds
13774 # How to pass a linker flag through the compiler.
13775 wl=$lt_lt_prog_compiler_wl_CXX
13777 # Object file suffix (normally "o").
13778 objext="$ac_objext"
13780 # Old archive suffix (normally "a").
13783 # Shared library suffix (normally ".so").
13784 shrext_cmds='$shrext_cmds'
13786 # Executable file suffix (normally "").
13789 # Additional compiler flags for building library objects.
13790 pic_flag=$lt_lt_prog_compiler_pic_CXX
13793 # What is the maximum length of a command?
13794 max_cmd_len=$lt_cv_sys_max_cmd_len
13796 # Does compiler simultaneously support -c and -o options?
13797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13799 # Must we lock files when doing compilation?
13800 need_locks=$lt_need_locks
13802 # Do we need the lib prefix for modules?
13803 need_lib_prefix=$need_lib_prefix
13805 # Do we need a version for libraries?
13806 need_version=$need_version
13808 # Whether dlopen is supported.
13809 dlopen_support=$enable_dlopen
13811 # Whether dlopen of programs is supported.
13812 dlopen_self=$enable_dlopen_self
13814 # Whether dlopen of statically linked programs is supported.
13815 dlopen_self_static=$enable_dlopen_self_static
13817 # Compiler flag to prevent dynamic linking.
13818 link_static_flag=$lt_lt_prog_compiler_static_CXX
13820 # Compiler flag to turn off builtin functions.
13821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13823 # Compiler flag to allow reflexive dlopens.
13824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13826 # Compiler flag to generate shared objects directly from archives.
13827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13829 # Compiler flag to generate thread-safe objects.
13830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13832 # Library versioning type.
13833 version_type=$version_type
13835 # Format of library name prefix.
13836 libname_spec=$lt_libname_spec
13838 # List of archive names. First name is the real one, the rest are links.
13839 # The last name is the one that the linker finds with -lNAME.
13840 library_names_spec=$lt_library_names_spec
13842 # The coded name of the library, if different from the real name.
13843 soname_spec=$lt_soname_spec
13845 # Commands used to build and install an old-style archive.
13847 old_archive_cmds=$lt_old_archive_cmds_CXX
13848 old_postinstall_cmds=$lt_old_postinstall_cmds
13849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13851 # Create an old-style archive from a shared archive.
13852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13854 # Create a temporary old-style archive to link instead of a shared archive.
13855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13857 # Commands used to build and install a shared archive.
13858 archive_cmds=$lt_archive_cmds_CXX
13859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13860 postinstall_cmds=$lt_postinstall_cmds
13861 postuninstall_cmds=$lt_postuninstall_cmds
13863 # Commands used to build a loadable module (assumed same as above if empty)
13864 module_cmds=$lt_module_cmds_CXX
13865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13867 # Commands to strip libraries.
13868 old_striplib=$lt_old_striplib
13869 striplib=$lt_striplib
13871 # Dependencies to place before the objects being linked to create a
13873 predep_objects=$lt_predep_objects_CXX
13875 # Dependencies to place after the objects being linked to create a
13877 postdep_objects=$lt_postdep_objects_CXX
13879 # Dependencies to place before the objects being linked to create a
13881 predeps=$lt_predeps_CXX
13883 # Dependencies to place after the objects being linked to create a
13885 postdeps=$lt_postdeps_CXX
13887 # The directories searched by this compiler when creating a shared
13889 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13891 # The library search path used internally by the compiler when linking
13892 # a shared library.
13893 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13895 # Method to check whether dependent libraries are shared objects.
13896 deplibs_check_method=$lt_deplibs_check_method
13898 # Command to use when deplibs_check_method == file_magic.
13899 file_magic_cmd=$lt_file_magic_cmd
13901 # Flag that allows shared libraries with undefined symbols to be built.
13902 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13904 # Flag that forces no undefined symbols.
13905 no_undefined_flag=$lt_no_undefined_flag_CXX
13907 # Commands used to finish a libtool library installation in a directory.
13908 finish_cmds=$lt_finish_cmds
13910 # Same as above, but a single script fragment to be evaled but not shown.
13911 finish_eval=$lt_finish_eval
13913 # Take the output of nm and produce a listing of raw symbols and C names.
13914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13916 # Transform the output of nm in a proper C declaration
13917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13919 # Transform the output of nm in a C name address pair
13920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13922 # This is the shared library runtime path variable.
13923 runpath_var=$runpath_var
13925 # This is the shared library path variable.
13926 shlibpath_var=$shlibpath_var
13928 # Is shlibpath searched before the hard-coded library search path?
13929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13931 # How to hardcode a shared library path into an executable.
13932 hardcode_action=$hardcode_action_CXX
13934 # Whether we should hardcode library paths into libraries.
13935 hardcode_into_libs=$hardcode_into_libs
13937 # Flag to hardcode \$libdir into a binary during linking.
13938 # This must work even if \$libdir does not exist.
13939 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13941 # If ld is used when linking, flag to hardcode \$libdir into
13942 # a binary during linking. This must work even if \$libdir does
13944 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13946 # Whether we need a single -rpath flag with a separated argument.
13947 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13949 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13950 # resulting binary.
13951 hardcode_direct=$hardcode_direct_CXX
13953 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13954 # resulting binary.
13955 hardcode_minus_L=$hardcode_minus_L_CXX
13957 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13958 # the resulting binary.
13959 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13961 # Set to yes if building a shared library automatically hardcodes DIR into the library
13962 # and all subsequent libraries and executables linked against it.
13963 hardcode_automatic=$hardcode_automatic_CXX
13965 # Variables whose values should be saved in libtool wrapper scripts and
13966 # restored at relink time.
13967 variables_saved_for_relink="$variables_saved_for_relink"
13969 # Whether libtool must link a program against all its dependency libraries.
13970 link_all_deplibs=$link_all_deplibs_CXX
13972 # Compile-time system search path for libraries
13973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13975 # Run-time system search path for libraries
13976 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13978 # Fix the shell variable \$srcfile for the compiler.
13979 fix_srcfile_path=$lt_fix_srcfile_path
13981 # Set to yes if exported symbols are required.
13982 always_export_symbols=$always_export_symbols_CXX
13984 # The commands to list exported symbols.
13985 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13987 # The commands to extract the exported symbol list from a shared archive.
13988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13990 # Symbols that should not be listed in the preloaded symbols.
13991 exclude_expsyms=$lt_exclude_expsyms_CXX
13993 # Symbols that must always be exported.
13994 include_expsyms=$lt_include_expsyms_CXX
13996 # ### END LIBTOOL TAG CONFIG: $tagname
14002 # If there is no Makefile yet, we rely on a make rule to execute
14003 # `config.status --recheck' to rerun these tests and create the
14004 # libtool script then.
14005 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14006 if test -f "$ltmain_in"; then
14007 test -f Makefile && make "$ltmain"
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14022 with_gnu_ldcxx=$with_gnu_ld
14023 with_gnu_ld=$lt_save_with_gnu_ld
14024 lt_cv_path_LDCXX=$lt_cv_path_LD
14025 lt_cv_path_LD=$lt_save_path_LD
14026 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14027 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14035 if test -n "$F77" && test "X$F77" != "Xno"; then
14038 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14039 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14043 archive_cmds_need_lc_F77=no
14044 allow_undefined_flag_F77=
14045 always_export_symbols_F77=no
14046 archive_expsym_cmds_F77=
14047 export_dynamic_flag_spec_F77=
14048 hardcode_direct_F77=no
14049 hardcode_libdir_flag_spec_F77=
14050 hardcode_libdir_flag_spec_ld_F77=
14051 hardcode_libdir_separator_F77=
14052 hardcode_minus_L_F77=no
14053 hardcode_automatic_F77=no
14055 module_expsym_cmds_F77=
14056 link_all_deplibs_F77=unknown
14057 old_archive_cmds_F77=$old_archive_cmds
14058 no_undefined_flag_F77=
14059 whole_archive_flag_spec_F77=
14060 enable_shared_with_static_runtimes_F77=no
14062 # Source file extension for f77 test sources.
14065 # Object file extension for compiled f77 test sources.
14069 # Code to be used in simple compile tests
14070 lt_simple_compile_test_code="\
14076 # Code to be used in simple link tests
14077 lt_simple_link_test_code="\
14082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14084 # If no C compiler was specified, use CC.
14087 # If no C compiler flags were specified, use CFLAGS.
14088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14090 # Allow CC to be a program name with arguments.
14094 # save warnings/boilerplate of simple test code
14095 ac_outfile=conftest.$ac_objext
14096 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098 _lt_compiler_boilerplate=`cat conftest.err`
14101 ac_outfile=conftest.$ac_objext
14102 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104 _lt_linker_boilerplate=`cat conftest.err`
14108 # Allow CC to be a program name with arguments.
14113 for cc_temp in $compiler""; do
14115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14121 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14124 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14125 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14126 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14127 echo "${ECHO_T}$can_build_shared" >&6; }
14129 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14130 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14131 test "$can_build_shared" = "no" && enable_shared=no
14133 # On AIX, shared libraries and static libraries use the same namespace, and
14134 # are all built from PIC.
14137 test "$enable_shared" = yes && enable_static=no
14138 if test -n "$RANLIB"; then
14139 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14140 postinstall_cmds='$RANLIB $lib'
14144 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14145 test "$enable_shared" = yes && enable_static=no
14149 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14150 echo "${ECHO_T}$enable_shared" >&6; }
14152 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14153 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14154 # Make sure either enable_shared or enable_static is yes.
14155 test "$enable_shared" = yes || enable_static=yes
14156 { echo "$as_me:$LINENO: result: $enable_static" >&5
14157 echo "${ECHO_T}$enable_static" >&6; }
14162 lt_prog_compiler_wl_F77=
14163 lt_prog_compiler_pic_F77=
14164 lt_prog_compiler_static_F77=
14166 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14167 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14169 if test "$GCC" = yes; then
14170 lt_prog_compiler_wl_F77='-Wl,'
14171 lt_prog_compiler_static_F77='-static'
14175 # All AIX code is PIC.
14176 if test "$host_cpu" = ia64; then
14177 # AIX 5 now supports IA64 processor
14178 lt_prog_compiler_static_F77='-Bstatic'
14183 # FIXME: we need at least 68020 code to build shared libraries, but
14184 # adding the `-m68020' flag to GCC prevents building anything better,
14186 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14189 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14190 # PIC is the default for these OSes.
14193 mingw* | cygwin* | pw32* | os2*)
14194 # This hack is so that the source file can tell whether it is being
14195 # built for inclusion in a dll (and should export symbols for example).
14196 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14197 # (--disable-auto-import) libraries
14198 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14201 darwin* | rhapsody*)
14202 # PIC is the default on this platform
14203 # Common symbols not allowed in MH_DYLIB files
14204 lt_prog_compiler_pic_F77='-fno-common'
14208 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14209 # Instead, we relocate shared libraries at runtime.
14213 # Just because we use GCC doesn't mean we suddenly get shared libraries
14214 # on systems that don't support them.
14215 lt_prog_compiler_can_build_shared_F77=no
14220 if test -d /usr/nec; then
14221 lt_prog_compiler_pic_F77=-Kconform_pic
14226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14227 # not for PA HP-UX.
14233 lt_prog_compiler_pic_F77='-fPIC'
14239 lt_prog_compiler_pic_F77='-fPIC'
14243 # PORTME Check for flag to pass linker flags through the system compiler.
14246 lt_prog_compiler_wl_F77='-Wl,'
14247 if test "$host_cpu" = ia64; then
14248 # AIX 5 now supports IA64 processor
14249 lt_prog_compiler_static_F77='-Bstatic'
14251 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14255 # PIC is the default on this platform
14256 # Common symbols not allowed in MH_DYLIB files
14257 case $cc_basename in
14259 lt_prog_compiler_pic_F77='-qnocommon'
14260 lt_prog_compiler_wl_F77='-Wl,'
14265 mingw* | cygwin* | pw32* | os2*)
14266 # This hack is so that the source file can tell whether it is being
14267 # built for inclusion in a dll (and should export symbols for example).
14268 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14271 hpux9* | hpux10* | hpux11*)
14272 lt_prog_compiler_wl_F77='-Wl,'
14273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14274 # not for PA HP-UX.
14280 lt_prog_compiler_pic_F77='+Z'
14283 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14284 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14287 irix5* | irix6* | nonstopux*)
14288 lt_prog_compiler_wl_F77='-Wl,'
14289 # PIC (with -KPIC) is the default.
14290 lt_prog_compiler_static_F77='-non_shared'
14294 lt_prog_compiler_pic_F77='-KPIC'
14295 lt_prog_compiler_static_F77='-Bstatic'
14298 linux* | k*bsd*-gnu)
14299 case $cc_basename in
14301 lt_prog_compiler_wl_F77='-Wl,'
14302 lt_prog_compiler_pic_F77='-KPIC'
14303 lt_prog_compiler_static_F77='-static'
14305 pgcc* | pgf77* | pgf90* | pgf95*)
14306 # Portland Group compilers (*not* the Pentium gcc compiler,
14307 # which looks to be a dead project)
14308 lt_prog_compiler_wl_F77='-Wl,'
14309 lt_prog_compiler_pic_F77='-fpic'
14310 lt_prog_compiler_static_F77='-Bstatic'
14313 lt_prog_compiler_wl_F77='-Wl,'
14314 # All Alpha code is PIC.
14315 lt_prog_compiler_static_F77='-non_shared'
14318 case `$CC -V 2>&1 | sed 5q` in
14321 lt_prog_compiler_pic_F77='-KPIC'
14322 lt_prog_compiler_static_F77='-Bstatic'
14323 lt_prog_compiler_wl_F77='-Wl,'
14326 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14327 lt_prog_compiler_pic_F77='-KPIC'
14328 lt_prog_compiler_static_F77='-Bstatic'
14329 lt_prog_compiler_wl_F77=''
14336 osf3* | osf4* | osf5*)
14337 lt_prog_compiler_wl_F77='-Wl,'
14338 # All OSF/1 code is PIC.
14339 lt_prog_compiler_static_F77='-non_shared'
14343 lt_prog_compiler_static_F77='-non_shared'
14347 lt_prog_compiler_pic_F77='-KPIC'
14348 lt_prog_compiler_static_F77='-Bstatic'
14349 case $cc_basename in
14350 f77* | f90* | f95*)
14351 lt_prog_compiler_wl_F77='-Qoption ld ';;
14353 lt_prog_compiler_wl_F77='-Wl,';;
14358 lt_prog_compiler_wl_F77='-Qoption ld '
14359 lt_prog_compiler_pic_F77='-PIC'
14360 lt_prog_compiler_static_F77='-Bstatic'
14363 sysv4 | sysv4.2uw2* | sysv4.3*)
14364 lt_prog_compiler_wl_F77='-Wl,'
14365 lt_prog_compiler_pic_F77='-KPIC'
14366 lt_prog_compiler_static_F77='-Bstatic'
14370 if test -d /usr/nec ;then
14371 lt_prog_compiler_pic_F77='-Kconform_pic'
14372 lt_prog_compiler_static_F77='-Bstatic'
14376 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14377 lt_prog_compiler_wl_F77='-Wl,'
14378 lt_prog_compiler_pic_F77='-KPIC'
14379 lt_prog_compiler_static_F77='-Bstatic'
14383 lt_prog_compiler_wl_F77='-Wl,'
14384 lt_prog_compiler_can_build_shared_F77=no
14388 lt_prog_compiler_pic_F77='-pic'
14389 lt_prog_compiler_static_F77='-Bstatic'
14393 lt_prog_compiler_can_build_shared_F77=no
14398 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14399 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14402 # Check to make sure the PIC flag actually works.
14404 if test -n "$lt_prog_compiler_pic_F77"; then
14406 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14408 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 lt_cv_prog_compiler_pic_works_F77=no
14412 ac_outfile=conftest.$ac_objext
14413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14415 # Insert the option either (1) after the last *FLAGS variable, or
14416 # (2) before a word containing "conftest.", or (3) at the end.
14417 # Note that $ac_compile itself does not contain backslashes and begins
14418 # with a dollar sign (not a hyphen), so the echo should work correctly.
14419 # The option is referenced via a variable to avoid confusing sed.
14420 lt_compile=`echo "$ac_compile" | $SED \
14421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423 -e 's:$: $lt_compiler_flag:'`
14424 (eval echo "\"\$as_me:14424: $lt_compile\"" >&5)
14425 (eval "$lt_compile" 2>conftest.err)
14427 cat conftest.err >&5
14428 echo "$as_me:14428: \$? = $ac_status" >&5
14429 if (exit $ac_status) && test -s "$ac_outfile"; then
14430 # The compiler can only warn and ignore the option if not recognized
14431 # So say no if there are warnings other than the usual output.
14432 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14435 lt_cv_prog_compiler_pic_works_F77=yes
14441 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14442 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14444 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14445 case $lt_prog_compiler_pic_F77 in
14447 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14450 lt_prog_compiler_pic_F77=
14451 lt_prog_compiler_can_build_shared_F77=no
14456 # For platforms which do not support PIC, -DPIC is meaningless:
14458 lt_prog_compiler_pic_F77=
14461 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14466 # Check to make sure the static flag actually works.
14468 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14469 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14470 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14471 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 lt_cv_prog_compiler_static_works_F77=no
14475 save_LDFLAGS="$LDFLAGS"
14476 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14477 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14479 # The linker can only warn and ignore the option if not recognized
14480 # So say no if there are warnings
14481 if test -s conftest.err; then
14482 # Append any errors to the config.log.
14483 cat conftest.err 1>&5
14484 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486 if diff conftest.exp conftest.er2 >/dev/null; then
14487 lt_cv_prog_compiler_static_works_F77=yes
14490 lt_cv_prog_compiler_static_works_F77=yes
14494 LDFLAGS="$save_LDFLAGS"
14497 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14498 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14500 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14503 lt_prog_compiler_static_F77=
14507 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14508 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14509 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 lt_cv_prog_compiler_c_o_F77=no
14513 $rm -r conftest 2>/dev/null
14517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14519 lt_compiler_flag="-o out/conftest2.$ac_objext"
14520 # Insert the option either (1) after the last *FLAGS variable, or
14521 # (2) before a word containing "conftest.", or (3) at the end.
14522 # Note that $ac_compile itself does not contain backslashes and begins
14523 # with a dollar sign (not a hyphen), so the echo should work correctly.
14524 lt_compile=`echo "$ac_compile" | $SED \
14525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14527 -e 's:$: $lt_compiler_flag:'`
14528 (eval echo "\"\$as_me:14528: $lt_compile\"" >&5)
14529 (eval "$lt_compile" 2>out/conftest.err)
14531 cat out/conftest.err >&5
14532 echo "$as_me:14532: \$? = $ac_status" >&5
14533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14535 # The compiler can only warn and ignore the option if not recognized
14536 # So say no if there are warnings
14537 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14540 lt_cv_prog_compiler_c_o_F77=yes
14545 # SGI C++ compiler will create directory out/ii_files/ for
14546 # template instantiation
14547 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14548 $rm out/* && rmdir out
14554 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14555 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14558 hard_links="nottested"
14559 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14560 # do not overwrite the value of need_locks provided by the user
14561 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14562 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14567 ln conftest.a conftest.b 2>&5 || hard_links=no
14568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14569 { echo "$as_me:$LINENO: result: $hard_links" >&5
14570 echo "${ECHO_T}$hard_links" >&6; }
14571 if test "$hard_links" = no; then
14572 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14573 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14580 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14581 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14584 allow_undefined_flag_F77=
14585 enable_shared_with_static_runtimes_F77=no
14587 archive_expsym_cmds_F77=
14588 old_archive_From_new_cmds_F77=
14589 old_archive_from_expsyms_cmds_F77=
14590 export_dynamic_flag_spec_F77=
14591 whole_archive_flag_spec_F77=
14592 thread_safe_flag_spec_F77=
14593 hardcode_libdir_flag_spec_F77=
14594 hardcode_libdir_flag_spec_ld_F77=
14595 hardcode_libdir_separator_F77=
14596 hardcode_direct_F77=no
14597 hardcode_minus_L_F77=no
14598 hardcode_shlibpath_var_F77=unsupported
14599 link_all_deplibs_F77=unknown
14600 hardcode_automatic_F77=no
14602 module_expsym_cmds_F77=
14603 always_export_symbols_F77=no
14604 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14605 # include_expsyms should be a list of space-separated symbols to be *always*
14606 # included in the symbol list
14607 include_expsyms_F77=
14608 # exclude_expsyms can be an extended regexp of symbols to exclude
14609 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14610 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14611 # as well as any symbol that contains `d'.
14612 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14613 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14614 # platforms (ab)use it in PIC code, but their linkers get confused if
14615 # the symbol is explicitly referenced. Since portable code cannot
14616 # rely on this symbol name, it's probably fine to never include it in
14617 # preloaded symbol tables.
14618 # Exclude shared library initialization/finalization symbols.
14619 extract_expsyms_cmds=
14620 # Just being paranoid about ensuring that cc_basename is set.
14621 for cc_temp in $compiler""; do
14623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14629 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14632 cygwin* | mingw* | pw32*)
14633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14634 # When not using gcc, we currently assume that we are using
14635 # Microsoft Visual C++.
14636 if test "$GCC" != yes; then
14641 # we just hope/assume this is gcc and not c89 (= MSVC++)
14650 if test "$with_gnu_ld" = yes; then
14651 # If archive_cmds runs LD, not CC, wlarc should be empty
14654 # Set some defaults for GNU ld with shared library support. These
14655 # are reset later if shared libraries are not supported. Putting them
14656 # here allows them to be overridden if necessary.
14657 runpath_var=LD_RUN_PATH
14658 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14659 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14660 # ancient GNU ld didn't support --whole-archive et. al.
14661 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14662 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14664 whole_archive_flag_spec_F77=
14666 supports_anon_versioning=no
14667 case `$LD -v 2>/dev/null` in
14668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14671 *\ 2.11.*) ;; # other 2.11 versions
14672 *) supports_anon_versioning=yes ;;
14675 # See if GNU ld supports shared libraries.
14678 # On AIX/PPC, the GNU linker is very broken
14679 if test "$host_cpu" != ia64; then
14683 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14684 *** to be unable to reliably create shared libraries on AIX.
14685 *** Therefore, libtool is disabling shared libraries support. If you
14686 *** really care for shared libraries, you may want to modify your PATH
14687 *** so that a non-GNU linker is found, and then restart.
14694 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)'
14695 hardcode_libdir_flag_spec_F77='-L$libdir'
14696 hardcode_minus_L_F77=yes
14698 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14699 # that the semantics of dynamic libraries on AmigaOS, at least up
14700 # to version 4, is to share data among multiple programs linked
14701 # with the same dynamic library. Since this doesn't match the
14702 # behavior of shared libraries on other platforms, we can't use
14708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14709 allow_undefined_flag_F77=unsupported
14710 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14711 # support --undefined. This deserves some investigation. FIXME
14712 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14718 cygwin* | mingw* | pw32*)
14719 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14720 # as there is no search path for DLLs.
14721 hardcode_libdir_flag_spec_F77='-L$libdir'
14722 allow_undefined_flag_F77=unsupported
14723 always_export_symbols_F77=no
14724 enable_shared_with_static_runtimes_F77=yes
14725 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14727 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14728 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14729 # If the export-symbols file already is a .def file (1st line
14730 # is EXPORTS), use it as is; otherwise, prepend...
14731 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14732 cp $export_symbols $output_objdir/$soname.def;
14734 echo EXPORTS > $output_objdir/$soname.def;
14735 cat $export_symbols >> $output_objdir/$soname.def;
14737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14744 hardcode_direct_F77=no
14745 hardcode_shlibpath_var_F77=no
14746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14747 export_dynamic_flag_spec_F77='${wl}-E'
14748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14749 # Instead, shared libraries are loaded at an image base (0x10000000 by
14750 # default) and relocated if they conflict, which is a slow very memory
14751 # consuming and fragmenting process. To avoid this, we pick a random,
14752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14754 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14755 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14758 gnu* | linux* | k*bsd*-gnu)
14759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14761 case $cc_basename,$host_cpu in
14762 pgcc*) # Portland Group C compiler
14763 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14764 tmp_addflag=' $pic_flag'
14766 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14767 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14768 tmp_addflag=' $pic_flag -Mnomain' ;;
14769 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14770 tmp_addflag=' -i_dynamic' ;;
14771 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14772 tmp_addflag=' -i_dynamic -nofor_main' ;;
14773 ifc* | ifort*) # Intel Fortran compiler
14774 tmp_addflag=' -nofor_main' ;;
14776 case `$CC -V 2>&1 | sed 5q` in
14777 *Sun\ C*) # Sun C 5.9
14778 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14779 tmp_sharedflag='-G' ;;
14780 *Sun\ F*) # Sun Fortran 8.3
14781 tmp_sharedflag='-G' ;;
14783 tmp_sharedflag='-shared' ;;
14785 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 if test $supports_anon_versioning = yes; then
14788 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14790 $echo "local: *; };" >> $output_objdir/$libname.ver~
14791 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14799 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14800 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14803 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14804 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14809 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14813 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14814 *** create shared libraries on Solaris systems. Therefore, libtool
14815 *** is disabling shared libraries support. We urge you to upgrade GNU
14816 *** binutils to release 2.9.1 or newer. Another option is to modify
14817 *** your PATH or compiler configuration so that the native linker is
14818 *** used, and then restart.
14821 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14822 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14823 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14830 case `$LD -v 2>&1` in
14831 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14835 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14836 *** reliably create shared libraries on SCO systems. Therefore, libtool
14837 *** is disabling shared libraries support. We urge you to upgrade GNU
14838 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14839 *** your PATH or compiler configuration so that the native linker is
14840 *** used, and then restart.
14845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14857 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14859 hardcode_direct_F77=yes
14860 hardcode_shlibpath_var_F77=no
14864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14865 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14866 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14873 if test "$ld_shlibs_F77" = no; then
14875 hardcode_libdir_flag_spec_F77=
14876 export_dynamic_flag_spec_F77=
14877 whole_archive_flag_spec_F77=
14880 # PORTME fill in a description of your system's linker (not GNU ld)
14883 allow_undefined_flag_F77=unsupported
14884 always_export_symbols_F77=yes
14885 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'
14886 # Note: this linker hardcodes the directories in LIBPATH if there
14887 # are no directories specified by -L.
14888 hardcode_minus_L_F77=yes
14889 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14890 # Neither direct hardcoding nor static linking is supported with a
14892 hardcode_direct_F77=unsupported
14897 if test "$host_cpu" = ia64; then
14898 # On IA64, the linker does run time linking by default, so we don't
14899 # have to do anything special.
14900 aix_use_runtimelinking=no
14901 exp_sym_flag='-Bexport'
14904 # If we're using GNU nm, then we don't want the "-C" option.
14905 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14906 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14907 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'
14909 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'
14911 aix_use_runtimelinking=no
14913 # Test if we are trying to use run time linking or normal
14914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14915 # need to do runtime linking.
14916 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14917 for ld_flag in $LDFLAGS; do
14918 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14919 aix_use_runtimelinking=yes
14926 exp_sym_flag='-bexport'
14927 no_entry_flag='-bnoentry'
14930 # When large executables or shared objects are built, AIX ld can
14931 # have problems creating the table of contents. If linking a library
14932 # or program results in "error TOC overflow" add -mminimal-toc to
14933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14936 archive_cmds_F77=''
14937 hardcode_direct_F77=yes
14938 hardcode_libdir_separator_F77=':'
14939 link_all_deplibs_F77=yes
14941 if test "$GCC" = yes; then
14942 case $host_os in aix4.[012]|aix4.[012].*)
14943 # We only want to do this on AIX 4.2 and lower, the check
14944 # below for broken collect2 doesn't work under 4.3+
14945 collect2name=`${CC} -print-prog-name=collect2`
14946 if test -f "$collect2name" && \
14947 strings "$collect2name" | grep resolve_lib_name >/dev/null
14949 # We have reworked collect2
14952 # We have old collect2
14953 hardcode_direct_F77=unsupported
14954 # It fails to find uninstalled libraries when the uninstalled
14955 # path is not listed in the libpath. Setting hardcode_minus_L
14956 # to unsupported forces relinking
14957 hardcode_minus_L_F77=yes
14958 hardcode_libdir_flag_spec_F77='-L$libdir'
14959 hardcode_libdir_separator_F77=
14963 shared_flag='-shared'
14964 if test "$aix_use_runtimelinking" = yes; then
14965 shared_flag="$shared_flag "'${wl}-G'
14969 if test "$host_cpu" = ia64; then
14970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14971 # chokes on -Wl,-G. The following line is correct:
14974 if test "$aix_use_runtimelinking" = yes; then
14975 shared_flag='${wl}-G'
14977 shared_flag='${wl}-bM:SRE'
14982 # It seems that -bexpall does not export symbols beginning with
14983 # underscore (_), so it is better to generate a list of symbols to export.
14984 always_export_symbols_F77=yes
14985 if test "$aix_use_runtimelinking" = yes; then
14986 # Warning - without using the other runtime loading flags (-brtl),
14987 # -berok will link without error, but may produce a broken library.
14988 allow_undefined_flag_F77='-berok'
14989 # Determine the default libpath from the value encoded in an empty executable.
14990 cat >conftest.$ac_ext <<_ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_f77_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest$ac_exeext &&
15012 $as_test_x conftest$ac_exeext; then
15014 lt_aix_libpath_sed='
15015 /Import File Strings/,/^$/ {
15021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15022 # Check for a 64-bit object if we didn't find anything.
15023 if test -z "$aix_libpath"; then
15024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034 conftest$ac_exeext conftest.$ac_ext
15035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15037 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15038 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15040 if test "$host_cpu" = ia64; then
15041 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15042 allow_undefined_flag_F77="-z nodefs"
15043 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15045 # Determine the default libpath from the value encoded in an empty executable.
15046 cat >conftest.$ac_ext <<_ACEOF
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_f77_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext &&
15068 $as_test_x conftest$ac_exeext; then
15070 lt_aix_libpath_sed='
15071 /Import File Strings/,/^$/ {
15077 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15078 # Check for a 64-bit object if we didn't find anything.
15079 if test -z "$aix_libpath"; then
15080 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15090 conftest$ac_exeext conftest.$ac_ext
15091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15093 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15094 # Warning - without using the other run time loading flags,
15095 # -berok will link without error, but may produce a broken library.
15096 no_undefined_flag_F77=' ${wl}-bernotok'
15097 allow_undefined_flag_F77=' ${wl}-berok'
15098 # Exported symbols can be pulled into shared objects from archives
15099 whole_archive_flag_spec_F77='$convenience'
15100 archive_cmds_need_lc_F77=yes
15101 # This is similar to how AIX traditionally builds its shared libraries.
15102 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15108 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)'
15109 hardcode_libdir_flag_spec_F77='-L$libdir'
15110 hardcode_minus_L_F77=yes
15111 # see comment about different semantics on the GNU ld section
15116 export_dynamic_flag_spec_F77=-rdynamic
15119 cygwin* | mingw* | pw32*)
15120 # When not using gcc, we currently assume that we are using
15121 # Microsoft Visual C++.
15122 # hardcode_libdir_flag_spec is actually meaningless, as there is
15123 # no search path for DLLs.
15124 hardcode_libdir_flag_spec_F77=' '
15125 allow_undefined_flag_F77=unsupported
15126 # Tell ltmain to make .lib files, not .a files.
15128 # Tell ltmain to make .dll files, not .so files.
15130 # FIXME: Setting linknames here is a bad hack.
15131 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15132 # The linker will automatically build a .lib file if we build a DLL.
15133 old_archive_From_new_cmds_F77='true'
15134 # FIXME: Should let the user specify the lib program.
15135 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15136 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15137 enable_shared_with_static_runtimes_F77=yes
15140 darwin* | rhapsody*)
15142 rhapsody* | darwin1.[012])
15143 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15146 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15147 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15149 case ${MACOSX_DEPLOYMENT_TARGET} in
15151 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15154 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15160 archive_cmds_need_lc_F77=no
15161 hardcode_direct_F77=no
15162 hardcode_automatic_F77=yes
15163 hardcode_shlibpath_var_F77=unsupported
15164 whole_archive_flag_spec_F77=''
15165 link_all_deplibs_F77=yes
15166 if test "$GCC" = yes ; then
15167 output_verbose_link_cmd='echo'
15168 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15169 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15170 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15171 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15173 case $cc_basename in
15175 output_verbose_link_cmd='echo'
15176 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15177 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15178 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15179 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15180 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}'
15190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_libdir_flag_spec_F77='-L$libdir'
15192 hardcode_shlibpath_var_F77=no
15199 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15200 # support. Future versions do this automatically, but an explicit c++rt0.o
15201 # does not break anything, and helps significantly (at the cost of a little
15204 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15205 hardcode_libdir_flag_spec_F77='-R$libdir'
15206 hardcode_direct_F77=yes
15207 hardcode_shlibpath_var_F77=no
15210 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15212 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15213 hardcode_direct_F77=yes
15214 hardcode_minus_L_F77=yes
15215 hardcode_shlibpath_var_F77=no
15218 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15219 freebsd* | dragonfly*)
15220 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15221 hardcode_libdir_flag_spec_F77='-R$libdir'
15222 hardcode_direct_F77=yes
15223 hardcode_shlibpath_var_F77=no
15227 if test "$GCC" = yes; then
15228 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'
15230 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'
15232 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15233 hardcode_libdir_separator_F77=:
15234 hardcode_direct_F77=yes
15236 # hardcode_minus_L: Not really in the search PATH,
15237 # but as the default location of the library.
15238 hardcode_minus_L_F77=yes
15239 export_dynamic_flag_spec_F77='${wl}-E'
15243 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15244 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15246 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15248 if test "$with_gnu_ld" = no; then
15249 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15250 hardcode_libdir_separator_F77=:
15252 hardcode_direct_F77=yes
15253 export_dynamic_flag_spec_F77='${wl}-E'
15255 # hardcode_minus_L: Not really in the search PATH,
15256 # but as the default location of the library.
15257 hardcode_minus_L_F77=yes
15262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15265 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15268 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15271 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15280 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15283 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15287 if test "$with_gnu_ld" = no; then
15288 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15289 hardcode_libdir_separator_F77=:
15293 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15294 hardcode_direct_F77=no
15295 hardcode_shlibpath_var_F77=no
15298 hardcode_direct_F77=yes
15299 export_dynamic_flag_spec_F77='${wl}-E'
15301 # hardcode_minus_L: Not really in the search PATH,
15302 # but as the default location of the library.
15303 hardcode_minus_L_F77=yes
15309 irix5* | irix6* | nonstopux*)
15310 if test "$GCC" = yes; then
15311 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'
15313 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'
15314 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15317 hardcode_libdir_separator_F77=:
15318 link_all_deplibs_F77=yes
15322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15323 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15325 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15327 hardcode_libdir_flag_spec_F77='-R$libdir'
15328 hardcode_direct_F77=yes
15329 hardcode_shlibpath_var_F77=no
15333 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15334 hardcode_direct_F77=yes
15335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15336 hardcode_libdir_separator_F77=:
15337 hardcode_shlibpath_var_F77=no
15341 if test -f /usr/libexec/ld.so; then
15342 hardcode_direct_F77=yes
15343 hardcode_shlibpath_var_F77=no
15344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15345 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15346 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15347 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15348 export_dynamic_flag_spec_F77='${wl}-E'
15351 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15352 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15353 hardcode_libdir_flag_spec_F77='-R$libdir'
15356 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15357 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15367 hardcode_libdir_flag_spec_F77='-L$libdir'
15368 hardcode_minus_L_F77=yes
15369 allow_undefined_flag_F77=unsupported
15370 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'
15371 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15375 if test "$GCC" = yes; then
15376 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15377 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'
15379 allow_undefined_flag_F77=' -expect_unresolved \*'
15380 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'
15382 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15383 hardcode_libdir_separator_F77=:
15386 osf4* | osf5*) # as osf3* with the addition of -msym flag
15387 if test "$GCC" = yes; then
15388 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15389 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'
15390 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15392 allow_undefined_flag_F77=' -expect_unresolved \*'
15393 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'
15394 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~
15395 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15397 # Both c and cxx compiler support -rpath directly
15398 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15400 hardcode_libdir_separator_F77=:
15404 no_undefined_flag_F77=' -z text'
15405 if test "$GCC" = yes; then
15407 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15408 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15409 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15412 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15416 hardcode_libdir_flag_spec_F77='-R$libdir'
15417 hardcode_shlibpath_var_F77=no
15419 solaris2.[0-5] | solaris2.[0-5].*) ;;
15421 # The compiler driver will combine and reorder linker options,
15422 # but understands `-z linker_flag'. GCC discards it without `$wl',
15423 # but is careful enough not to reorder.
15424 # Supported since Solaris 2.6 (maybe 2.5.1?)
15425 if test "$GCC" = yes; then
15426 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15428 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15432 link_all_deplibs_F77=yes
15436 if test "x$host_vendor" = xsequent; then
15437 # Use $CC to link under sequent, because it throws in some extra .o
15438 # files that make .init and .fini sections work.
15439 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15441 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15443 hardcode_libdir_flag_spec_F77='-L$libdir'
15444 hardcode_direct_F77=yes
15445 hardcode_minus_L_F77=yes
15446 hardcode_shlibpath_var_F77=no
15450 case $host_vendor in
15452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_direct_F77=yes # is this really true???
15456 ## LD is ld it makes a PLAMLIB
15457 ## CC just makes a GrossModule.
15458 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15459 reload_cmds_F77='$CC -r -o $output$reload_objs'
15460 hardcode_direct_F77=no
15463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15467 runpath_var='LD_RUN_PATH'
15468 hardcode_shlibpath_var_F77=no
15472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473 hardcode_shlibpath_var_F77=no
15474 export_dynamic_flag_spec_F77='-Bexport'
15478 if test -d /usr/nec; then
15479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480 hardcode_shlibpath_var_F77=no
15481 runpath_var=LD_RUN_PATH
15482 hardcode_runpath_var=yes
15487 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15488 no_undefined_flag_F77='${wl}-z,text'
15489 archive_cmds_need_lc_F77=no
15490 hardcode_shlibpath_var_F77=no
15491 runpath_var='LD_RUN_PATH'
15493 if test "$GCC" = yes; then
15494 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15495 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15497 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 sysv5* | sco3.2v5* | sco5v6*)
15503 # Note: We can NOT use -z defs as we might desire, because we do not
15504 # link with -lc, and that would cause any symbols used from libc to
15505 # always be unresolved, which means just about no library would
15506 # ever link correctly. If we're not using GNU ld we use -z text
15507 # though, which does catch some bad symbols but isn't as heavy-handed
15509 no_undefined_flag_F77='${wl}-z,text'
15510 allow_undefined_flag_F77='${wl}-z,nodefs'
15511 archive_cmds_need_lc_F77=no
15512 hardcode_shlibpath_var_F77=no
15513 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15514 hardcode_libdir_separator_F77=':'
15515 link_all_deplibs_F77=yes
15516 export_dynamic_flag_spec_F77='${wl}-Bexport'
15517 runpath_var='LD_RUN_PATH'
15519 if test "$GCC" = yes; then
15520 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15521 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15523 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_libdir_flag_spec_F77='-L$libdir'
15531 hardcode_shlibpath_var_F77=no
15540 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15541 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15542 test "$ld_shlibs_F77" = no && can_build_shared=no
15545 # Do we need to explicitly link libc?
15547 case "x$archive_cmds_need_lc_F77" in
15549 # Assume -lc should be added
15550 archive_cmds_need_lc_F77=yes
15552 if test "$enable_shared" = yes && test "$GCC" = yes; then
15553 case $archive_cmds_F77 in
15555 # FIXME: we may have to deal with multi-command sequences.
15558 # Test whether the compiler implicitly links with -lc since on some
15559 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15560 # to ld, don't add -lc before -lgcc.
15561 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15562 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15567 (eval $ac_compile) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } 2>conftest.err; then
15573 libobjs=conftest.$ac_objext
15575 wl=$lt_prog_compiler_wl_F77
15576 pic_flag=$lt_prog_compiler_pic_F77
15582 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15583 allow_undefined_flag_F77=
15584 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15585 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }
15590 archive_cmds_need_lc_F77=no
15592 archive_cmds_need_lc_F77=yes
15594 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15596 cat conftest.err 1>&5
15599 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15600 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15607 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15608 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15609 library_names_spec=
15610 libname_spec='lib$name'
15614 postuninstall_cmds=
15618 shlibpath_overrides_runpath=unknown
15620 dynamic_linker="$host_os ld.so"
15621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15623 need_lib_prefix=unknown
15624 hardcode_into_libs=no
15626 # when you set need_version to no, make sure it does not cause -set_version
15627 # flags to be left without arguments
15628 need_version=unknown
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15634 shlibpath_var=LIBPATH
15636 # AIX 3 has no versioning support, so we append a major version to the name.
15637 soname_spec='${libname}${release}${shared_ext}$major'
15644 hardcode_into_libs=yes
15645 if test "$host_cpu" = ia64; then
15646 # AIX 5 supports IA64
15647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15648 shlibpath_var=LD_LIBRARY_PATH
15650 # With GCC up to 2.95.x, collect2 would create an import file
15651 # for dependence libraries. The import file would start with
15652 # the line `#! .'. This would cause the generated library to
15653 # depend on `.', always an invalid library. This was fixed in
15654 # development snapshots of GCC prior to 3.0.
15656 aix4 | aix4.[01] | aix4.[01].*)
15657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15662 can_build_shared=no
15666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15667 # soname into executable. Probably we can add versioning support to
15668 # collect2, so additional links can be useful in future.
15669 if test "$aix_use_runtimelinking" = yes; then
15670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15671 # instead of lib<name>.a to let people know that these are not
15672 # typical AIX shared libraries.
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675 # We preserve .a as extension for shared libraries through AIX4.2
15676 # and later when we are not doing run time linking.
15677 library_names_spec='${libname}${release}.a $libname.a'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LIBPATH
15685 library_names_spec='$libname.ixlibrary $libname.a'
15686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15687 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'
15691 library_names_spec='${libname}${shared_ext}'
15692 dynamic_linker="$host_os ld.so"
15693 shlibpath_var=LIBRARY_PATH
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15705 # the default ld.so.conf also contains /usr/contrib/lib and
15706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15707 # libtool to hard-code these into programs
15710 cygwin* | mingw* | pw32*)
15711 version_type=windows
15716 case $GCC,$host_os in
15717 yes,cygwin* | yes,mingw* | yes,pw32*)
15718 library_names_spec='$libname.dll.a'
15719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15720 postinstall_cmds='base_file=`basename \${file}`~
15721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15722 dldir=$destdir/`dirname \$dlpath`~
15723 test -d \$dldir || mkdir -p \$dldir~
15724 $install_prog $dir/$dlname \$dldir/$dlname~
15725 chmod a+x \$dldir/$dlname'
15726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15727 dlpath=$dir/\$dldll~
15729 shlibpath_overrides_runpath=yes
15733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15738 # MinGW DLLs use traditional 'lib' prefix
15739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15742 # It is most probably a Windows format PATH printed by
15743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15744 # path with ; separators, and with drive letters. We can handle the
15745 # drive letters (cygwin fileutils understands them), so leave them,
15746 # especially as we might pass files found there to a mingw objdump,
15747 # which wouldn't understand a cygwinified path. Ahh.
15748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15754 # pw32 DLLs use 'pw' prefix rather than 'lib'
15755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15764 dynamic_linker='Win32 ld.exe'
15765 # FIXME: first we should search . and the directory the executable is in
15769 darwin* | rhapsody*)
15770 dynamic_linker="$host_os dyld"
15771 version_type=darwin
15774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15775 soname_spec='${libname}${release}${major}$shared_ext'
15776 shlibpath_overrides_runpath=yes
15777 shlibpath_var=DYLD_LIBRARY_PATH
15778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 shlibpath_var=LD_LIBRARY_PATH
15796 freebsd* | dragonfly*)
15797 # DragonFly does not have aout. When/if they implement a new
15798 # versioning mechanism, adjust this.
15799 if test -x /usr/bin/objformat; then
15800 objformat=`/usr/bin/objformat`
15803 freebsd[123]*) objformat=aout ;;
15804 *) objformat=elf ;;
15807 version_type=freebsd-$objformat
15808 case $version_type in
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15819 shlibpath_var=LD_LIBRARY_PATH
15822 shlibpath_overrides_runpath=yes
15824 freebsd3.[01]* | freebsdelf3.[01]*)
15825 shlibpath_overrides_runpath=yes
15826 hardcode_into_libs=yes
15828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15830 shlibpath_overrides_runpath=no
15831 hardcode_into_libs=yes
15833 *) # from 4.6 on, and DragonFly
15834 shlibpath_overrides_runpath=yes
15835 hardcode_into_libs=yes
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 hardcode_into_libs=yes
15850 hpux9* | hpux10* | hpux11*)
15851 # Give a soname corresponding to the major version so that dld.sl refuses to
15852 # link against other versions.
15859 hardcode_into_libs=yes
15860 dynamic_linker="$host_os dld.so"
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 if test "X$HPUX_IA64_MODE" = X32; then
15866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15868 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15874 hardcode_into_libs=yes
15875 dynamic_linker="$host_os dld.sl"
15876 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15885 dynamic_linker="$host_os dld.sl"
15886 shlibpath_var=SHLIB_PATH
15887 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15892 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15893 postinstall_cmds='chmod 555 $lib'
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15901 soname_spec='${libname}${release}${shared_ext}$major'
15902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 shlibpath_overrides_runpath=no
15905 hardcode_into_libs=yes
15908 irix5* | irix6* | nonstopux*)
15910 nonstopux*) version_type=nonstopux ;;
15912 if test "$lt_cv_prog_gnu_ld" = yes; then
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15923 irix5* | nonstopux*)
15924 libsuff= shlibsuff=
15927 case $LD in # libtool.m4 will add one of these switches to LD
15928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15929 libsuff= shlibsuff= libmagic=32-bit;;
15930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15931 libsuff=32 shlibsuff=N32 libmagic=N32;;
15932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15934 *) libsuff= shlibsuff= libmagic=never-match;;
15938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15939 shlibpath_overrides_runpath=no
15940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15942 hardcode_into_libs=yes
15945 # No shared lib support for Linux oldld, aout, or coff.
15946 linux*oldld* | linux*aout* | linux*coff*)
15950 # This must be Linux ELF.
15951 linux* | k*bsd*-gnu)
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15958 shlibpath_var=LD_LIBRARY_PATH
15959 shlibpath_overrides_runpath=no
15960 # This implies no fast_install, which is unacceptable.
15961 # Some rework will be needed to allow for fast_install
15962 # before this can be enabled.
15963 hardcode_into_libs=yes
15965 # Append ld.so.conf contents to the search path
15966 if test -f /etc/ld.so.conf; then
15967 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15968 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15971 # We used to test for /lib/ld.so.1 and disable shared libraries on
15972 # powerpc, because MkLinux only supported shared libraries with the
15973 # GNU dynamic linker. Since this was broken with cross compilers,
15974 # most powerpc-linux boxes support dynamic linking these days and
15975 # people can always --disable-shared, the test was removed, and we
15976 # assume the GNU/Linux dynamic linker is in use.
15977 dynamic_linker='GNU/Linux ld.so'
15984 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15987 dynamic_linker='NetBSD (a.out) ld.so'
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15990 soname_spec='${libname}${release}${shared_ext}$major'
15991 dynamic_linker='NetBSD ld.elf_so'
15993 shlibpath_var=LD_LIBRARY_PATH
15994 shlibpath_overrides_runpath=yes
15995 hardcode_into_libs=yes
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 shlibpath_overrides_runpath=yes
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 shlibpath_overrides_runpath=yes
16017 sys_lib_dlsearch_path_spec="/usr/lib"
16019 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16021 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16022 *) need_version=no ;;
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16026 shlibpath_var=LD_LIBRARY_PATH
16027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16029 openbsd2.[89] | openbsd2.[89].*)
16030 shlibpath_overrides_runpath=no
16033 shlibpath_overrides_runpath=yes
16037 shlibpath_overrides_runpath=yes
16042 libname_spec='$name'
16045 library_names_spec='$libname${shared_ext} $libname.a'
16046 dynamic_linker='OS/2 ld.exe'
16047 shlibpath_var=LIBPATH
16050 osf3* | osf4* | osf5*)
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16058 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 shlibpath_overrides_runpath=yes
16073 hardcode_into_libs=yes
16074 # ldd complains unless libraries are executable
16075 postinstall_cmds='chmod +x $lib'
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16081 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 shlibpath_overrides_runpath=yes
16084 if test "$with_gnu_ld" = yes; then
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 case $host_vendor in
16097 shlibpath_overrides_runpath=no
16099 export_dynamic_flag_spec='${wl}-Blargedynsym'
16100 runpath_var=LD_RUN_PATH
16108 shlibpath_overrides_runpath=no
16109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16115 if test -d /usr/nec ;then
16117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16118 soname_spec='$libname${shared_ext}.$major'
16119 shlibpath_var=LD_LIBRARY_PATH
16123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16124 version_type=freebsd-elf
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 hardcode_into_libs=yes
16131 if test "$with_gnu_ld" = yes; then
16132 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16133 shlibpath_overrides_runpath=no
16135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16136 shlibpath_overrides_runpath=yes
16139 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16143 sys_lib_dlsearch_path_spec='/usr/lib'
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149 soname_spec='${libname}${release}${shared_ext}$major'
16150 shlibpath_var=LD_LIBRARY_PATH
16157 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16158 echo "${ECHO_T}$dynamic_linker" >&6; }
16159 test "$dynamic_linker" = no && can_build_shared=no
16161 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16167 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16168 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16174 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16177 if test "$GCC" = yes; then
16178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16181 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16182 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16183 hardcode_action_F77=
16184 if test -n "$hardcode_libdir_flag_spec_F77" || \
16185 test -n "$runpath_var_F77" || \
16186 test "X$hardcode_automatic_F77" = "Xyes" ; then
16188 # We can hardcode non-existant directories.
16189 if test "$hardcode_direct_F77" != no &&
16190 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16191 # have to relink, otherwise we might link with an installed library
16192 # when we should be linking with a yet-to-be-installed one
16193 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16194 test "$hardcode_minus_L_F77" != no; then
16195 # Linking always hardcodes the temporary library directory.
16196 hardcode_action_F77=relink
16198 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16199 hardcode_action_F77=immediate
16202 # We cannot hardcode anything, or else we can only hardcode existing
16204 hardcode_action_F77=unsupported
16206 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16207 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16209 if test "$hardcode_action_F77" = relink; then
16210 # Fast installation is not supported
16211 enable_fast_install=no
16212 elif test "$shlibpath_overrides_runpath" = yes ||
16213 test "$enable_shared" = no; then
16214 # Fast installation is not necessary
16215 enable_fast_install=needless
16219 # The else clause should only fire when bootstrapping the
16220 # libtool distribution, otherwise you forgot to ship ltmain.sh
16221 # with your package, and you will get complaints that there are
16222 # no rules to generate ltmain.sh.
16223 if test -f "$ltmain"; then
16224 # See if we are running on zsh, and set the options which allow our commands through
16225 # without removal of \ escapes.
16226 if test -n "${ZSH_VERSION+set}" ; then
16227 setopt NO_GLOB_SUBST
16229 # Now quote all the things that may contain metacharacters while being
16230 # careful not to overquote the AC_SUBSTed values. We take copies of the
16231 # variables and quote the copies for generation of the libtool script.
16232 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16234 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16235 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16236 deplibs_check_method reload_flag reload_cmds need_locks \
16237 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16238 lt_cv_sys_global_symbol_to_c_name_address \
16239 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16240 old_postinstall_cmds old_postuninstall_cmds \
16244 lt_prog_compiler_wl_F77 \
16245 lt_prog_compiler_pic_F77 \
16246 lt_prog_compiler_static_F77 \
16247 lt_prog_compiler_no_builtin_flag_F77 \
16248 export_dynamic_flag_spec_F77 \
16249 thread_safe_flag_spec_F77 \
16250 whole_archive_flag_spec_F77 \
16251 enable_shared_with_static_runtimes_F77 \
16252 old_archive_cmds_F77 \
16253 old_archive_from_new_cmds_F77 \
16254 predep_objects_F77 \
16255 postdep_objects_F77 \
16258 compiler_lib_search_path_F77 \
16259 compiler_lib_search_dirs_F77 \
16261 archive_expsym_cmds_F77 \
16262 postinstall_cmds_F77 \
16263 postuninstall_cmds_F77 \
16264 old_archive_from_expsyms_cmds_F77 \
16265 allow_undefined_flag_F77 \
16266 no_undefined_flag_F77 \
16267 export_symbols_cmds_F77 \
16268 hardcode_libdir_flag_spec_F77 \
16269 hardcode_libdir_flag_spec_ld_F77 \
16270 hardcode_libdir_separator_F77 \
16271 hardcode_automatic_F77 \
16273 module_expsym_cmds_F77 \
16274 lt_cv_prog_compiler_c_o_F77 \
16275 fix_srcfile_path_F77 \
16276 exclude_expsyms_F77 \
16277 include_expsyms_F77; do
16280 old_archive_cmds_F77 | \
16281 old_archive_from_new_cmds_F77 | \
16282 archive_cmds_F77 | \
16283 archive_expsym_cmds_F77 | \
16284 module_cmds_F77 | \
16285 module_expsym_cmds_F77 | \
16286 old_archive_from_expsyms_cmds_F77 | \
16287 export_symbols_cmds_F77 | \
16288 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16289 postinstall_cmds | postuninstall_cmds | \
16290 old_postinstall_cmds | old_postuninstall_cmds | \
16291 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16292 # Double-quote double-evaled strings.
16293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16302 *'\$0 --fallback-echo"')
16303 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16309 cat <<__EOF__ >> "$cfgfile"
16310 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16314 # Shell to use when invoking shell scripts.
16317 # Whether or not to build shared libraries.
16318 build_libtool_libs=$enable_shared
16320 # Whether or not to build static libraries.
16321 build_old_libs=$enable_static
16323 # Whether or not to add -lc for building shared libraries.
16324 build_libtool_need_lc=$archive_cmds_need_lc_F77
16326 # Whether or not to disallow shared libs when runtime libs are static
16327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16329 # Whether or not to optimize for fast installation.
16330 fast_install=$enable_fast_install
16333 host_alias=$host_alias
16337 # The build system.
16338 build_alias=$build_alias
16342 # An echo program that does not interpret backslashes.
16347 AR_FLAGS=$lt_AR_FLAGS
16352 # LTCC compiler flags.
16353 LTCFLAGS=$lt_LTCFLAGS
16355 # A language-specific compiler.
16356 CC=$lt_compiler_F77
16358 # Is the compiler the GNU C compiler?
16364 # The linker used to build libraries.
16367 # Whether we need hard or soft links.
16370 # A BSD-compatible nm program.
16373 # A symbol stripping program
16376 # Used to examine libraries when file_magic_cmd begins "file"
16377 MAGIC_CMD=$MAGIC_CMD
16379 # Used on cygwin: DLL creation program.
16382 # Used on cygwin: object dumper.
16385 # Used on cygwin: assembler.
16388 # The name of the directory that contains temporary libtool files.
16391 # How to create reloadable object files.
16392 reload_flag=$lt_reload_flag
16393 reload_cmds=$lt_reload_cmds
16395 # How to pass a linker flag through the compiler.
16396 wl=$lt_lt_prog_compiler_wl_F77
16398 # Object file suffix (normally "o").
16399 objext="$ac_objext"
16401 # Old archive suffix (normally "a").
16404 # Shared library suffix (normally ".so").
16405 shrext_cmds='$shrext_cmds'
16407 # Executable file suffix (normally "").
16410 # Additional compiler flags for building library objects.
16411 pic_flag=$lt_lt_prog_compiler_pic_F77
16414 # What is the maximum length of a command?
16415 max_cmd_len=$lt_cv_sys_max_cmd_len
16417 # Does compiler simultaneously support -c and -o options?
16418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16420 # Must we lock files when doing compilation?
16421 need_locks=$lt_need_locks
16423 # Do we need the lib prefix for modules?
16424 need_lib_prefix=$need_lib_prefix
16426 # Do we need a version for libraries?
16427 need_version=$need_version
16429 # Whether dlopen is supported.
16430 dlopen_support=$enable_dlopen
16432 # Whether dlopen of programs is supported.
16433 dlopen_self=$enable_dlopen_self
16435 # Whether dlopen of statically linked programs is supported.
16436 dlopen_self_static=$enable_dlopen_self_static
16438 # Compiler flag to prevent dynamic linking.
16439 link_static_flag=$lt_lt_prog_compiler_static_F77
16441 # Compiler flag to turn off builtin functions.
16442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16444 # Compiler flag to allow reflexive dlopens.
16445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16447 # Compiler flag to generate shared objects directly from archives.
16448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16450 # Compiler flag to generate thread-safe objects.
16451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16453 # Library versioning type.
16454 version_type=$version_type
16456 # Format of library name prefix.
16457 libname_spec=$lt_libname_spec
16459 # List of archive names. First name is the real one, the rest are links.
16460 # The last name is the one that the linker finds with -lNAME.
16461 library_names_spec=$lt_library_names_spec
16463 # The coded name of the library, if different from the real name.
16464 soname_spec=$lt_soname_spec
16466 # Commands used to build and install an old-style archive.
16468 old_archive_cmds=$lt_old_archive_cmds_F77
16469 old_postinstall_cmds=$lt_old_postinstall_cmds
16470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16472 # Create an old-style archive from a shared archive.
16473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16475 # Create a temporary old-style archive to link instead of a shared archive.
16476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16478 # Commands used to build and install a shared archive.
16479 archive_cmds=$lt_archive_cmds_F77
16480 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16481 postinstall_cmds=$lt_postinstall_cmds
16482 postuninstall_cmds=$lt_postuninstall_cmds
16484 # Commands used to build a loadable module (assumed same as above if empty)
16485 module_cmds=$lt_module_cmds_F77
16486 module_expsym_cmds=$lt_module_expsym_cmds_F77
16488 # Commands to strip libraries.
16489 old_striplib=$lt_old_striplib
16490 striplib=$lt_striplib
16492 # Dependencies to place before the objects being linked to create a
16494 predep_objects=$lt_predep_objects_F77
16496 # Dependencies to place after the objects being linked to create a
16498 postdep_objects=$lt_postdep_objects_F77
16500 # Dependencies to place before the objects being linked to create a
16502 predeps=$lt_predeps_F77
16504 # Dependencies to place after the objects being linked to create a
16506 postdeps=$lt_postdeps_F77
16508 # The directories searched by this compiler when creating a shared
16510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16512 # The library search path used internally by the compiler when linking
16513 # a shared library.
16514 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16516 # Method to check whether dependent libraries are shared objects.
16517 deplibs_check_method=$lt_deplibs_check_method
16519 # Command to use when deplibs_check_method == file_magic.
16520 file_magic_cmd=$lt_file_magic_cmd
16522 # Flag that allows shared libraries with undefined symbols to be built.
16523 allow_undefined_flag=$lt_allow_undefined_flag_F77
16525 # Flag that forces no undefined symbols.
16526 no_undefined_flag=$lt_no_undefined_flag_F77
16528 # Commands used to finish a libtool library installation in a directory.
16529 finish_cmds=$lt_finish_cmds
16531 # Same as above, but a single script fragment to be evaled but not shown.
16532 finish_eval=$lt_finish_eval
16534 # Take the output of nm and produce a listing of raw symbols and C names.
16535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16537 # Transform the output of nm in a proper C declaration
16538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16540 # Transform the output of nm in a C name address pair
16541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16543 # This is the shared library runtime path variable.
16544 runpath_var=$runpath_var
16546 # This is the shared library path variable.
16547 shlibpath_var=$shlibpath_var
16549 # Is shlibpath searched before the hard-coded library search path?
16550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16552 # How to hardcode a shared library path into an executable.
16553 hardcode_action=$hardcode_action_F77
16555 # Whether we should hardcode library paths into libraries.
16556 hardcode_into_libs=$hardcode_into_libs
16558 # Flag to hardcode \$libdir into a binary during linking.
16559 # This must work even if \$libdir does not exist.
16560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16562 # If ld is used when linking, flag to hardcode \$libdir into
16563 # a binary during linking. This must work even if \$libdir does
16565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16567 # Whether we need a single -rpath flag with a separated argument.
16568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16571 # resulting binary.
16572 hardcode_direct=$hardcode_direct_F77
16574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16575 # resulting binary.
16576 hardcode_minus_L=$hardcode_minus_L_F77
16578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16579 # the resulting binary.
16580 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16582 # Set to yes if building a shared library automatically hardcodes DIR into the library
16583 # and all subsequent libraries and executables linked against it.
16584 hardcode_automatic=$hardcode_automatic_F77
16586 # Variables whose values should be saved in libtool wrapper scripts and
16587 # restored at relink time.
16588 variables_saved_for_relink="$variables_saved_for_relink"
16590 # Whether libtool must link a program against all its dependency libraries.
16591 link_all_deplibs=$link_all_deplibs_F77
16593 # Compile-time system search path for libraries
16594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16596 # Run-time system search path for libraries
16597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16599 # Fix the shell variable \$srcfile for the compiler.
16600 fix_srcfile_path=$lt_fix_srcfile_path
16602 # Set to yes if exported symbols are required.
16603 always_export_symbols=$always_export_symbols_F77
16605 # The commands to list exported symbols.
16606 export_symbols_cmds=$lt_export_symbols_cmds_F77
16608 # The commands to extract the exported symbol list from a shared archive.
16609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16611 # Symbols that should not be listed in the preloaded symbols.
16612 exclude_expsyms=$lt_exclude_expsyms_F77
16614 # Symbols that must always be exported.
16615 include_expsyms=$lt_include_expsyms_F77
16617 # ### END LIBTOOL TAG CONFIG: $tagname
16623 # If there is no Makefile yet, we rely on a make rule to execute
16624 # `config.status --recheck' to rerun these tests and create the
16625 # libtool script then.
16626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16627 if test -f "$ltmain_in"; then
16628 test -f Makefile && make "$ltmain"
16634 ac_cpp='$CPP $CPPFLAGS'
16635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16650 # Source file extension for Java test sources.
16653 # Object file extension for compiled Java test sources.
16657 # Code to be used in simple compile tests
16658 lt_simple_compile_test_code="class foo {}"
16660 # Code to be used in simple link tests
16661 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16665 # If no C compiler was specified, use CC.
16668 # If no C compiler flags were specified, use CFLAGS.
16669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16671 # Allow CC to be a program name with arguments.
16675 # save warnings/boilerplate of simple test code
16676 ac_outfile=conftest.$ac_objext
16677 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16679 _lt_compiler_boilerplate=`cat conftest.err`
16682 ac_outfile=conftest.$ac_objext
16683 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16685 _lt_linker_boilerplate=`cat conftest.err`
16689 # Allow CC to be a program name with arguments.
16694 for cc_temp in $compiler""; do
16696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16705 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16706 archive_cmds_need_lc_GCJ=no
16708 old_archive_cmds_GCJ=$old_archive_cmds
16711 lt_prog_compiler_no_builtin_flag_GCJ=
16713 if test "$GCC" = yes; then
16714 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16717 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16718 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16719 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 lt_cv_prog_compiler_rtti_exceptions=no
16723 ac_outfile=conftest.$ac_objext
16724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16725 lt_compiler_flag="-fno-rtti -fno-exceptions"
16726 # Insert the option either (1) after the last *FLAGS variable, or
16727 # (2) before a word containing "conftest.", or (3) at the end.
16728 # Note that $ac_compile itself does not contain backslashes and begins
16729 # with a dollar sign (not a hyphen), so the echo should work correctly.
16730 # The option is referenced via a variable to avoid confusing sed.
16731 lt_compile=`echo "$ac_compile" | $SED \
16732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16734 -e 's:$: $lt_compiler_flag:'`
16735 (eval echo "\"\$as_me:16735: $lt_compile\"" >&5)
16736 (eval "$lt_compile" 2>conftest.err)
16738 cat conftest.err >&5
16739 echo "$as_me:16739: \$? = $ac_status" >&5
16740 if (exit $ac_status) && test -s "$ac_outfile"; then
16741 # The compiler can only warn and ignore the option if not recognized
16742 # So say no if there are warnings other than the usual output.
16743 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16746 lt_cv_prog_compiler_rtti_exceptions=yes
16752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16756 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16763 lt_prog_compiler_wl_GCJ=
16764 lt_prog_compiler_pic_GCJ=
16765 lt_prog_compiler_static_GCJ=
16767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16770 if test "$GCC" = yes; then
16771 lt_prog_compiler_wl_GCJ='-Wl,'
16772 lt_prog_compiler_static_GCJ='-static'
16776 # All AIX code is PIC.
16777 if test "$host_cpu" = ia64; then
16778 # AIX 5 now supports IA64 processor
16779 lt_prog_compiler_static_GCJ='-Bstatic'
16784 # FIXME: we need at least 68020 code to build shared libraries, but
16785 # adding the `-m68020' flag to GCC prevents building anything better,
16787 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16791 # PIC is the default for these OSes.
16794 mingw* | cygwin* | pw32* | os2*)
16795 # This hack is so that the source file can tell whether it is being
16796 # built for inclusion in a dll (and should export symbols for example).
16797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16798 # (--disable-auto-import) libraries
16802 darwin* | rhapsody*)
16803 # PIC is the default on this platform
16804 # Common symbols not allowed in MH_DYLIB files
16805 lt_prog_compiler_pic_GCJ='-fno-common'
16809 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16810 # Instead, we relocate shared libraries at runtime.
16814 # Just because we use GCC doesn't mean we suddenly get shared libraries
16815 # on systems that don't support them.
16816 lt_prog_compiler_can_build_shared_GCJ=no
16821 if test -d /usr/nec; then
16822 lt_prog_compiler_pic_GCJ=-Kconform_pic
16827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16828 # not for PA HP-UX.
16834 lt_prog_compiler_pic_GCJ='-fPIC'
16840 lt_prog_compiler_pic_GCJ='-fPIC'
16844 # PORTME Check for flag to pass linker flags through the system compiler.
16847 lt_prog_compiler_wl_GCJ='-Wl,'
16848 if test "$host_cpu" = ia64; then
16849 # AIX 5 now supports IA64 processor
16850 lt_prog_compiler_static_GCJ='-Bstatic'
16852 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16856 # PIC is the default on this platform
16857 # Common symbols not allowed in MH_DYLIB files
16858 case $cc_basename in
16860 lt_prog_compiler_pic_GCJ='-qnocommon'
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16866 mingw* | cygwin* | pw32* | os2*)
16867 # This hack is so that the source file can tell whether it is being
16868 # built for inclusion in a dll (and should export symbols for example).
16872 hpux9* | hpux10* | hpux11*)
16873 lt_prog_compiler_wl_GCJ='-Wl,'
16874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16875 # not for PA HP-UX.
16881 lt_prog_compiler_pic_GCJ='+Z'
16884 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16885 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16888 irix5* | irix6* | nonstopux*)
16889 lt_prog_compiler_wl_GCJ='-Wl,'
16890 # PIC (with -KPIC) is the default.
16891 lt_prog_compiler_static_GCJ='-non_shared'
16895 lt_prog_compiler_pic_GCJ='-KPIC'
16896 lt_prog_compiler_static_GCJ='-Bstatic'
16899 linux* | k*bsd*-gnu)
16900 case $cc_basename in
16902 lt_prog_compiler_wl_GCJ='-Wl,'
16903 lt_prog_compiler_pic_GCJ='-KPIC'
16904 lt_prog_compiler_static_GCJ='-static'
16906 pgcc* | pgf77* | pgf90* | pgf95*)
16907 # Portland Group compilers (*not* the Pentium gcc compiler,
16908 # which looks to be a dead project)
16909 lt_prog_compiler_wl_GCJ='-Wl,'
16910 lt_prog_compiler_pic_GCJ='-fpic'
16911 lt_prog_compiler_static_GCJ='-Bstatic'
16914 lt_prog_compiler_wl_GCJ='-Wl,'
16915 # All Alpha code is PIC.
16916 lt_prog_compiler_static_GCJ='-non_shared'
16919 case `$CC -V 2>&1 | sed 5q` in
16922 lt_prog_compiler_pic_GCJ='-KPIC'
16923 lt_prog_compiler_static_GCJ='-Bstatic'
16924 lt_prog_compiler_wl_GCJ='-Wl,'
16927 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16928 lt_prog_compiler_pic_GCJ='-KPIC'
16929 lt_prog_compiler_static_GCJ='-Bstatic'
16930 lt_prog_compiler_wl_GCJ=''
16937 osf3* | osf4* | osf5*)
16938 lt_prog_compiler_wl_GCJ='-Wl,'
16939 # All OSF/1 code is PIC.
16940 lt_prog_compiler_static_GCJ='-non_shared'
16944 lt_prog_compiler_static_GCJ='-non_shared'
16948 lt_prog_compiler_pic_GCJ='-KPIC'
16949 lt_prog_compiler_static_GCJ='-Bstatic'
16950 case $cc_basename in
16951 f77* | f90* | f95*)
16952 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16954 lt_prog_compiler_wl_GCJ='-Wl,';;
16959 lt_prog_compiler_wl_GCJ='-Qoption ld '
16960 lt_prog_compiler_pic_GCJ='-PIC'
16961 lt_prog_compiler_static_GCJ='-Bstatic'
16964 sysv4 | sysv4.2uw2* | sysv4.3*)
16965 lt_prog_compiler_wl_GCJ='-Wl,'
16966 lt_prog_compiler_pic_GCJ='-KPIC'
16967 lt_prog_compiler_static_GCJ='-Bstatic'
16971 if test -d /usr/nec ;then
16972 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16973 lt_prog_compiler_static_GCJ='-Bstatic'
16977 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16978 lt_prog_compiler_wl_GCJ='-Wl,'
16979 lt_prog_compiler_pic_GCJ='-KPIC'
16980 lt_prog_compiler_static_GCJ='-Bstatic'
16984 lt_prog_compiler_wl_GCJ='-Wl,'
16985 lt_prog_compiler_can_build_shared_GCJ=no
16989 lt_prog_compiler_pic_GCJ='-pic'
16990 lt_prog_compiler_static_GCJ='-Bstatic'
16994 lt_prog_compiler_can_build_shared_GCJ=no
16999 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17000 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17003 # Check to make sure the PIC flag actually works.
17005 if test -n "$lt_prog_compiler_pic_GCJ"; then
17007 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17008 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17009 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 lt_cv_prog_compiler_pic_works_GCJ=no
17013 ac_outfile=conftest.$ac_objext
17014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17015 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17016 # Insert the option either (1) after the last *FLAGS variable, or
17017 # (2) before a word containing "conftest.", or (3) at the end.
17018 # Note that $ac_compile itself does not contain backslashes and begins
17019 # with a dollar sign (not a hyphen), so the echo should work correctly.
17020 # The option is referenced via a variable to avoid confusing sed.
17021 lt_compile=`echo "$ac_compile" | $SED \
17022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17024 -e 's:$: $lt_compiler_flag:'`
17025 (eval echo "\"\$as_me:17025: $lt_compile\"" >&5)
17026 (eval "$lt_compile" 2>conftest.err)
17028 cat conftest.err >&5
17029 echo "$as_me:17029: \$? = $ac_status" >&5
17030 if (exit $ac_status) && test -s "$ac_outfile"; then
17031 # The compiler can only warn and ignore the option if not recognized
17032 # So say no if there are warnings other than the usual output.
17033 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17036 lt_cv_prog_compiler_pic_works_GCJ=yes
17042 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17043 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17045 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17046 case $lt_prog_compiler_pic_GCJ in
17048 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17051 lt_prog_compiler_pic_GCJ=
17052 lt_prog_compiler_can_build_shared_GCJ=no
17057 # For platforms which do not support PIC, -DPIC is meaningless:
17059 lt_prog_compiler_pic_GCJ=
17062 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17067 # Check to make sure the static flag actually works.
17069 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17070 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17071 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17072 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 lt_cv_prog_compiler_static_works_GCJ=no
17076 save_LDFLAGS="$LDFLAGS"
17077 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17080 # The linker can only warn and ignore the option if not recognized
17081 # So say no if there are warnings
17082 if test -s conftest.err; then
17083 # Append any errors to the config.log.
17084 cat conftest.err 1>&5
17085 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17087 if diff conftest.exp conftest.er2 >/dev/null; then
17088 lt_cv_prog_compiler_static_works_GCJ=yes
17091 lt_cv_prog_compiler_static_works_GCJ=yes
17095 LDFLAGS="$save_LDFLAGS"
17098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17099 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17101 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17104 lt_prog_compiler_static_GCJ=
17108 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17109 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17110 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 lt_cv_prog_compiler_c_o_GCJ=no
17114 $rm -r conftest 2>/dev/null
17118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17120 lt_compiler_flag="-o out/conftest2.$ac_objext"
17121 # Insert the option either (1) after the last *FLAGS variable, or
17122 # (2) before a word containing "conftest.", or (3) at the end.
17123 # Note that $ac_compile itself does not contain backslashes and begins
17124 # with a dollar sign (not a hyphen), so the echo should work correctly.
17125 lt_compile=`echo "$ac_compile" | $SED \
17126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17128 -e 's:$: $lt_compiler_flag:'`
17129 (eval echo "\"\$as_me:17129: $lt_compile\"" >&5)
17130 (eval "$lt_compile" 2>out/conftest.err)
17132 cat out/conftest.err >&5
17133 echo "$as_me:17133: \$? = $ac_status" >&5
17134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17136 # The compiler can only warn and ignore the option if not recognized
17137 # So say no if there are warnings
17138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17141 lt_cv_prog_compiler_c_o_GCJ=yes
17146 # SGI C++ compiler will create directory out/ii_files/ for
17147 # template instantiation
17148 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17149 $rm out/* && rmdir out
17155 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17159 hard_links="nottested"
17160 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17161 # do not overwrite the value of need_locks provided by the user
17162 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17168 ln conftest.a conftest.b 2>&5 || hard_links=no
17169 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17170 { echo "$as_me:$LINENO: result: $hard_links" >&5
17171 echo "${ECHO_T}$hard_links" >&6; }
17172 if test "$hard_links" = no; then
17173 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17181 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17185 allow_undefined_flag_GCJ=
17186 enable_shared_with_static_runtimes_GCJ=no
17188 archive_expsym_cmds_GCJ=
17189 old_archive_From_new_cmds_GCJ=
17190 old_archive_from_expsyms_cmds_GCJ=
17191 export_dynamic_flag_spec_GCJ=
17192 whole_archive_flag_spec_GCJ=
17193 thread_safe_flag_spec_GCJ=
17194 hardcode_libdir_flag_spec_GCJ=
17195 hardcode_libdir_flag_spec_ld_GCJ=
17196 hardcode_libdir_separator_GCJ=
17197 hardcode_direct_GCJ=no
17198 hardcode_minus_L_GCJ=no
17199 hardcode_shlibpath_var_GCJ=unsupported
17200 link_all_deplibs_GCJ=unknown
17201 hardcode_automatic_GCJ=no
17203 module_expsym_cmds_GCJ=
17204 always_export_symbols_GCJ=no
17205 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17206 # include_expsyms should be a list of space-separated symbols to be *always*
17207 # included in the symbol list
17208 include_expsyms_GCJ=
17209 # exclude_expsyms can be an extended regexp of symbols to exclude
17210 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17211 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17212 # as well as any symbol that contains `d'.
17213 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17214 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17215 # platforms (ab)use it in PIC code, but their linkers get confused if
17216 # the symbol is explicitly referenced. Since portable code cannot
17217 # rely on this symbol name, it's probably fine to never include it in
17218 # preloaded symbol tables.
17219 # Exclude shared library initialization/finalization symbols.
17220 extract_expsyms_cmds=
17221 # Just being paranoid about ensuring that cc_basename is set.
17222 for cc_temp in $compiler""; do
17224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17233 cygwin* | mingw* | pw32*)
17234 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17235 # When not using gcc, we currently assume that we are using
17236 # Microsoft Visual C++.
17237 if test "$GCC" != yes; then
17242 # we just hope/assume this is gcc and not c89 (= MSVC++)
17251 if test "$with_gnu_ld" = yes; then
17252 # If archive_cmds runs LD, not CC, wlarc should be empty
17255 # Set some defaults for GNU ld with shared library support. These
17256 # are reset later if shared libraries are not supported. Putting them
17257 # here allows them to be overridden if necessary.
17258 runpath_var=LD_RUN_PATH
17259 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17260 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17261 # ancient GNU ld didn't support --whole-archive et. al.
17262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17263 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17265 whole_archive_flag_spec_GCJ=
17267 supports_anon_versioning=no
17268 case `$LD -v 2>/dev/null` in
17269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17272 *\ 2.11.*) ;; # other 2.11 versions
17273 *) supports_anon_versioning=yes ;;
17276 # See if GNU ld supports shared libraries.
17279 # On AIX/PPC, the GNU linker is very broken
17280 if test "$host_cpu" != ia64; then
17284 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17285 *** to be unable to reliably create shared libraries on AIX.
17286 *** Therefore, libtool is disabling shared libraries support. If you
17287 *** really care for shared libraries, you may want to modify your PATH
17288 *** so that a non-GNU linker is found, and then restart.
17295 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)'
17296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17297 hardcode_minus_L_GCJ=yes
17299 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17300 # that the semantics of dynamic libraries on AmigaOS, at least up
17301 # to version 4, is to share data among multiple programs linked
17302 # with the same dynamic library. Since this doesn't match the
17303 # behavior of shared libraries on other platforms, we can't use
17309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17310 allow_undefined_flag_GCJ=unsupported
17311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17312 # support --undefined. This deserves some investigation. FIXME
17313 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17319 cygwin* | mingw* | pw32*)
17320 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17321 # as there is no search path for DLLs.
17322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17323 allow_undefined_flag_GCJ=unsupported
17324 always_export_symbols_GCJ=no
17325 enable_shared_with_static_runtimes_GCJ=yes
17326 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17328 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17329 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17330 # If the export-symbols file already is a .def file (1st line
17331 # is EXPORTS), use it as is; otherwise, prepend...
17332 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17333 cp $export_symbols $output_objdir/$soname.def;
17335 echo EXPORTS > $output_objdir/$soname.def;
17336 cat $export_symbols >> $output_objdir/$soname.def;
17338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17345 hardcode_direct_GCJ=no
17346 hardcode_shlibpath_var_GCJ=no
17347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17348 export_dynamic_flag_spec_GCJ='${wl}-E'
17349 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17350 # Instead, shared libraries are loaded at an image base (0x10000000 by
17351 # default) and relocated if they conflict, which is a slow very memory
17352 # consuming and fragmenting process. To avoid this, we pick a random,
17353 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17354 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17355 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17356 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17359 gnu* | linux* | k*bsd*-gnu)
17360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17362 case $cc_basename,$host_cpu in
17363 pgcc*) # Portland Group C compiler
17364 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17365 tmp_addflag=' $pic_flag'
17367 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17368 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17369 tmp_addflag=' $pic_flag -Mnomain' ;;
17370 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17371 tmp_addflag=' -i_dynamic' ;;
17372 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17373 tmp_addflag=' -i_dynamic -nofor_main' ;;
17374 ifc* | ifort*) # Intel Fortran compiler
17375 tmp_addflag=' -nofor_main' ;;
17377 case `$CC -V 2>&1 | sed 5q` in
17378 *Sun\ C*) # Sun C 5.9
17379 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17380 tmp_sharedflag='-G' ;;
17381 *Sun\ F*) # Sun Fortran 8.3
17382 tmp_sharedflag='-G' ;;
17384 tmp_sharedflag='-shared' ;;
17386 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17388 if test $supports_anon_versioning = yes; then
17389 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17391 $echo "local: *; };" >> $output_objdir/$libname.ver~
17392 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17401 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17404 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17405 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17410 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17415 *** create shared libraries on Solaris systems. Therefore, libtool
17416 *** is disabling shared libraries support. We urge you to upgrade GNU
17417 *** binutils to release 2.9.1 or newer. Another option is to modify
17418 *** your PATH or compiler configuration so that the native linker is
17419 *** used, and then restart.
17422 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17423 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17424 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17431 case `$LD -v 2>&1` in
17432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17437 *** reliably create shared libraries on SCO systems. Therefore, libtool
17438 *** is disabling shared libraries support. We urge you to upgrade GNU
17439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17440 *** your PATH or compiler configuration so that the native linker is
17441 *** used, and then restart.
17446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17447 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17448 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17449 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17458 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17460 hardcode_direct_GCJ=yes
17461 hardcode_shlibpath_var_GCJ=no
17465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17466 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17467 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17474 if test "$ld_shlibs_GCJ" = no; then
17476 hardcode_libdir_flag_spec_GCJ=
17477 export_dynamic_flag_spec_GCJ=
17478 whole_archive_flag_spec_GCJ=
17481 # PORTME fill in a description of your system's linker (not GNU ld)
17484 allow_undefined_flag_GCJ=unsupported
17485 always_export_symbols_GCJ=yes
17486 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'
17487 # Note: this linker hardcodes the directories in LIBPATH if there
17488 # are no directories specified by -L.
17489 hardcode_minus_L_GCJ=yes
17490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17491 # Neither direct hardcoding nor static linking is supported with a
17493 hardcode_direct_GCJ=unsupported
17498 if test "$host_cpu" = ia64; then
17499 # On IA64, the linker does run time linking by default, so we don't
17500 # have to do anything special.
17501 aix_use_runtimelinking=no
17502 exp_sym_flag='-Bexport'
17505 # If we're using GNU nm, then we don't want the "-C" option.
17506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17508 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'
17510 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'
17512 aix_use_runtimelinking=no
17514 # Test if we are trying to use run time linking or normal
17515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17516 # need to do runtime linking.
17517 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17518 for ld_flag in $LDFLAGS; do
17519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17520 aix_use_runtimelinking=yes
17527 exp_sym_flag='-bexport'
17528 no_entry_flag='-bnoentry'
17531 # When large executables or shared objects are built, AIX ld can
17532 # have problems creating the table of contents. If linking a library
17533 # or program results in "error TOC overflow" add -mminimal-toc to
17534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17537 archive_cmds_GCJ=''
17538 hardcode_direct_GCJ=yes
17539 hardcode_libdir_separator_GCJ=':'
17540 link_all_deplibs_GCJ=yes
17542 if test "$GCC" = yes; then
17543 case $host_os in aix4.[012]|aix4.[012].*)
17544 # We only want to do this on AIX 4.2 and lower, the check
17545 # below for broken collect2 doesn't work under 4.3+
17546 collect2name=`${CC} -print-prog-name=collect2`
17547 if test -f "$collect2name" && \
17548 strings "$collect2name" | grep resolve_lib_name >/dev/null
17550 # We have reworked collect2
17553 # We have old collect2
17554 hardcode_direct_GCJ=unsupported
17555 # It fails to find uninstalled libraries when the uninstalled
17556 # path is not listed in the libpath. Setting hardcode_minus_L
17557 # to unsupported forces relinking
17558 hardcode_minus_L_GCJ=yes
17559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17560 hardcode_libdir_separator_GCJ=
17564 shared_flag='-shared'
17565 if test "$aix_use_runtimelinking" = yes; then
17566 shared_flag="$shared_flag "'${wl}-G'
17570 if test "$host_cpu" = ia64; then
17571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17572 # chokes on -Wl,-G. The following line is correct:
17575 if test "$aix_use_runtimelinking" = yes; then
17576 shared_flag='${wl}-G'
17578 shared_flag='${wl}-bM:SRE'
17583 # It seems that -bexpall does not export symbols beginning with
17584 # underscore (_), so it is better to generate a list of symbols to export.
17585 always_export_symbols_GCJ=yes
17586 if test "$aix_use_runtimelinking" = yes; then
17587 # Warning - without using the other runtime loading flags (-brtl),
17588 # -berok will link without error, but may produce a broken library.
17589 allow_undefined_flag_GCJ='-berok'
17590 # Determine the default libpath from the value encoded in an empty executable.
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17625 lt_aix_libpath_sed='
17626 /Import File Strings/,/^$/ {
17632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17633 # Check for a 64-bit object if we didn't find anything.
17634 if test -z "$aix_libpath"; then
17635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17645 conftest$ac_exeext conftest.$ac_ext
17646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17648 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17649 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17651 if test "$host_cpu" = ia64; then
17652 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17653 allow_undefined_flag_GCJ="-z nodefs"
17654 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17656 # Determine the default libpath from the value encoded in an empty executable.
17657 cat >conftest.$ac_ext <<_ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_link") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest$ac_exeext &&
17689 $as_test_x conftest$ac_exeext; then
17691 lt_aix_libpath_sed='
17692 /Import File Strings/,/^$/ {
17698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17699 # Check for a 64-bit object if we didn't find anything.
17700 if test -z "$aix_libpath"; then
17701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711 conftest$ac_exeext conftest.$ac_ext
17712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17714 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17715 # Warning - without using the other run time loading flags,
17716 # -berok will link without error, but may produce a broken library.
17717 no_undefined_flag_GCJ=' ${wl}-bernotok'
17718 allow_undefined_flag_GCJ=' ${wl}-berok'
17719 # Exported symbols can be pulled into shared objects from archives
17720 whole_archive_flag_spec_GCJ='$convenience'
17721 archive_cmds_need_lc_GCJ=yes
17722 # This is similar to how AIX traditionally builds its shared libraries.
17723 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17729 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)'
17730 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17731 hardcode_minus_L_GCJ=yes
17732 # see comment about different semantics on the GNU ld section
17737 export_dynamic_flag_spec_GCJ=-rdynamic
17740 cygwin* | mingw* | pw32*)
17741 # When not using gcc, we currently assume that we are using
17742 # Microsoft Visual C++.
17743 # hardcode_libdir_flag_spec is actually meaningless, as there is
17744 # no search path for DLLs.
17745 hardcode_libdir_flag_spec_GCJ=' '
17746 allow_undefined_flag_GCJ=unsupported
17747 # Tell ltmain to make .lib files, not .a files.
17749 # Tell ltmain to make .dll files, not .so files.
17751 # FIXME: Setting linknames here is a bad hack.
17752 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17753 # The linker will automatically build a .lib file if we build a DLL.
17754 old_archive_From_new_cmds_GCJ='true'
17755 # FIXME: Should let the user specify the lib program.
17756 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17757 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17758 enable_shared_with_static_runtimes_GCJ=yes
17761 darwin* | rhapsody*)
17763 rhapsody* | darwin1.[012])
17764 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17767 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17768 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17770 case ${MACOSX_DEPLOYMENT_TARGET} in
17772 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17775 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17781 archive_cmds_need_lc_GCJ=no
17782 hardcode_direct_GCJ=no
17783 hardcode_automatic_GCJ=yes
17784 hardcode_shlibpath_var_GCJ=unsupported
17785 whole_archive_flag_spec_GCJ=''
17786 link_all_deplibs_GCJ=yes
17787 if test "$GCC" = yes ; then
17788 output_verbose_link_cmd='echo'
17789 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17790 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17791 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17792 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17794 case $cc_basename in
17796 output_verbose_link_cmd='echo'
17797 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17798 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17800 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17801 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}'
17811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813 hardcode_shlibpath_var_GCJ=no
17820 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17821 # support. Future versions do this automatically, but an explicit c++rt0.o
17822 # does not break anything, and helps significantly (at the cost of a little
17825 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17826 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17827 hardcode_direct_GCJ=yes
17828 hardcode_shlibpath_var_GCJ=no
17831 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17833 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17834 hardcode_direct_GCJ=yes
17835 hardcode_minus_L_GCJ=yes
17836 hardcode_shlibpath_var_GCJ=no
17839 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17840 freebsd* | dragonfly*)
17841 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17842 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17843 hardcode_direct_GCJ=yes
17844 hardcode_shlibpath_var_GCJ=no
17848 if test "$GCC" = yes; then
17849 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'
17851 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'
17853 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17854 hardcode_libdir_separator_GCJ=:
17855 hardcode_direct_GCJ=yes
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
17860 export_dynamic_flag_spec_GCJ='${wl}-E'
17864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17865 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17867 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17869 if test "$with_gnu_ld" = no; then
17870 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17871 hardcode_libdir_separator_GCJ=:
17873 hardcode_direct_GCJ=yes
17874 export_dynamic_flag_spec_GCJ='${wl}-E'
17876 # hardcode_minus_L: Not really in the search PATH,
17877 # but as the default location of the library.
17878 hardcode_minus_L_GCJ=yes
17883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17886 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17889 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17892 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17898 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17901 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17904 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17908 if test "$with_gnu_ld" = no; then
17909 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17910 hardcode_libdir_separator_GCJ=:
17914 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17915 hardcode_direct_GCJ=no
17916 hardcode_shlibpath_var_GCJ=no
17919 hardcode_direct_GCJ=yes
17920 export_dynamic_flag_spec_GCJ='${wl}-E'
17922 # hardcode_minus_L: Not really in the search PATH,
17923 # but as the default location of the library.
17924 hardcode_minus_L_GCJ=yes
17930 irix5* | irix6* | nonstopux*)
17931 if test "$GCC" = yes; then
17932 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'
17934 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'
17935 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17937 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938 hardcode_libdir_separator_GCJ=:
17939 link_all_deplibs_GCJ=yes
17943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17944 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17946 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17948 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17949 hardcode_direct_GCJ=yes
17950 hardcode_shlibpath_var_GCJ=no
17954 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17955 hardcode_direct_GCJ=yes
17956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17957 hardcode_libdir_separator_GCJ=:
17958 hardcode_shlibpath_var_GCJ=no
17962 if test -f /usr/libexec/ld.so; then
17963 hardcode_direct_GCJ=yes
17964 hardcode_shlibpath_var_GCJ=no
17965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17966 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17967 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17969 export_dynamic_flag_spec_GCJ='${wl}-E'
17972 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17973 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17977 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17978 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17988 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17989 hardcode_minus_L_GCJ=yes
17990 allow_undefined_flag_GCJ=unsupported
17991 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'
17992 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17996 if test "$GCC" = yes; then
17997 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17998 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'
18000 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18001 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'
18003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004 hardcode_libdir_separator_GCJ=:
18007 osf4* | osf5*) # as osf3* with the addition of -msym flag
18008 if test "$GCC" = yes; then
18009 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18010 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'
18011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18013 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18014 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'
18015 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~
18016 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18018 # Both c and cxx compiler support -rpath directly
18019 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18021 hardcode_libdir_separator_GCJ=:
18025 no_undefined_flag_GCJ=' -z text'
18026 if test "$GCC" = yes; then
18028 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18029 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18030 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18033 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18034 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18037 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18038 hardcode_shlibpath_var_GCJ=no
18040 solaris2.[0-5] | solaris2.[0-5].*) ;;
18042 # The compiler driver will combine and reorder linker options,
18043 # but understands `-z linker_flag'. GCC discards it without `$wl',
18044 # but is careful enough not to reorder.
18045 # Supported since Solaris 2.6 (maybe 2.5.1?)
18046 if test "$GCC" = yes; then
18047 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18049 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18053 link_all_deplibs_GCJ=yes
18057 if test "x$host_vendor" = xsequent; then
18058 # Use $CC to link under sequent, because it throws in some extra .o
18059 # files that make .init and .fini sections work.
18060 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18062 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18064 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065 hardcode_direct_GCJ=yes
18066 hardcode_minus_L_GCJ=yes
18067 hardcode_shlibpath_var_GCJ=no
18071 case $host_vendor in
18073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18074 hardcode_direct_GCJ=yes # is this really true???
18077 ## LD is ld it makes a PLAMLIB
18078 ## CC just makes a GrossModule.
18079 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18080 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18081 hardcode_direct_GCJ=no
18084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18088 runpath_var='LD_RUN_PATH'
18089 hardcode_shlibpath_var_GCJ=no
18093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094 hardcode_shlibpath_var_GCJ=no
18095 export_dynamic_flag_spec_GCJ='-Bexport'
18099 if test -d /usr/nec; then
18100 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18101 hardcode_shlibpath_var_GCJ=no
18102 runpath_var=LD_RUN_PATH
18103 hardcode_runpath_var=yes
18108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18109 no_undefined_flag_GCJ='${wl}-z,text'
18110 archive_cmds_need_lc_GCJ=no
18111 hardcode_shlibpath_var_GCJ=no
18112 runpath_var='LD_RUN_PATH'
18114 if test "$GCC" = yes; then
18115 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123 sysv5* | sco3.2v5* | sco5v6*)
18124 # Note: We can NOT use -z defs as we might desire, because we do not
18125 # link with -lc, and that would cause any symbols used from libc to
18126 # always be unresolved, which means just about no library would
18127 # ever link correctly. If we're not using GNU ld we use -z text
18128 # though, which does catch some bad symbols but isn't as heavy-handed
18130 no_undefined_flag_GCJ='${wl}-z,text'
18131 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18132 archive_cmds_need_lc_GCJ=no
18133 hardcode_shlibpath_var_GCJ=no
18134 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18135 hardcode_libdir_separator_GCJ=':'
18136 link_all_deplibs_GCJ=yes
18137 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18138 runpath_var='LD_RUN_PATH'
18140 if test "$GCC" = yes; then
18141 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18152 hardcode_shlibpath_var_GCJ=no
18161 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18162 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18163 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18166 # Do we need to explicitly link libc?
18168 case "x$archive_cmds_need_lc_GCJ" in
18170 # Assume -lc should be added
18171 archive_cmds_need_lc_GCJ=yes
18173 if test "$enable_shared" = yes && test "$GCC" = yes; then
18174 case $archive_cmds_GCJ in
18176 # FIXME: we may have to deal with multi-command sequences.
18179 # Test whether the compiler implicitly links with -lc since on some
18180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18181 # to ld, don't add -lc before -lgcc.
18182 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18188 (eval $ac_compile) 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } 2>conftest.err; then
18194 libobjs=conftest.$ac_objext
18196 wl=$lt_prog_compiler_wl_GCJ
18197 pic_flag=$lt_prog_compiler_pic_GCJ
18203 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18204 allow_undefined_flag_GCJ=
18205 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18206 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }
18211 archive_cmds_need_lc_GCJ=no
18213 archive_cmds_need_lc_GCJ=yes
18215 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18217 cat conftest.err 1>&5
18220 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18221 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18228 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18230 library_names_spec=
18231 libname_spec='lib$name'
18235 postuninstall_cmds=
18239 shlibpath_overrides_runpath=unknown
18241 dynamic_linker="$host_os ld.so"
18242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18244 need_lib_prefix=unknown
18245 hardcode_into_libs=no
18247 # when you set need_version to no, make sure it does not cause -set_version
18248 # flags to be left without arguments
18249 need_version=unknown
18254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18255 shlibpath_var=LIBPATH
18257 # AIX 3 has no versioning support, so we append a major version to the name.
18258 soname_spec='${libname}${release}${shared_ext}$major'
18265 hardcode_into_libs=yes
18266 if test "$host_cpu" = ia64; then
18267 # AIX 5 supports IA64
18268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18269 shlibpath_var=LD_LIBRARY_PATH
18271 # With GCC up to 2.95.x, collect2 would create an import file
18272 # for dependence libraries. The import file would start with
18273 # the line `#! .'. This would cause the generated library to
18274 # depend on `.', always an invalid library. This was fixed in
18275 # development snapshots of GCC prior to 3.0.
18277 aix4 | aix4.[01] | aix4.[01].*)
18278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18280 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18283 can_build_shared=no
18287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18288 # soname into executable. Probably we can add versioning support to
18289 # collect2, so additional links can be useful in future.
18290 if test "$aix_use_runtimelinking" = yes; then
18291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18292 # instead of lib<name>.a to let people know that these are not
18293 # typical AIX shared libraries.
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18296 # We preserve .a as extension for shared libraries through AIX4.2
18297 # and later when we are not doing run time linking.
18298 library_names_spec='${libname}${release}.a $libname.a'
18299 soname_spec='${libname}${release}${shared_ext}$major'
18301 shlibpath_var=LIBPATH
18306 library_names_spec='$libname.ixlibrary $libname.a'
18307 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18308 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'
18312 library_names_spec='${libname}${shared_ext}'
18313 dynamic_linker="$host_os ld.so"
18314 shlibpath_var=LIBRARY_PATH
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18323 shlibpath_var=LD_LIBRARY_PATH
18324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18326 # the default ld.so.conf also contains /usr/contrib/lib and
18327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18328 # libtool to hard-code these into programs
18331 cygwin* | mingw* | pw32*)
18332 version_type=windows
18337 case $GCC,$host_os in
18338 yes,cygwin* | yes,mingw* | yes,pw32*)
18339 library_names_spec='$libname.dll.a'
18340 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18341 postinstall_cmds='base_file=`basename \${file}`~
18342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18343 dldir=$destdir/`dirname \$dlpath`~
18344 test -d \$dldir || mkdir -p \$dldir~
18345 $install_prog $dir/$dlname \$dldir/$dlname~
18346 chmod a+x \$dldir/$dlname'
18347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18348 dlpath=$dir/\$dldll~
18350 shlibpath_overrides_runpath=yes
18354 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18355 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18356 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18359 # MinGW DLLs use traditional 'lib' prefix
18360 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18361 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18362 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18363 # It is most probably a Windows format PATH printed by
18364 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18365 # path with ; separators, and with drive letters. We can handle the
18366 # drive letters (cygwin fileutils understands them), so leave them,
18367 # especially as we might pass files found there to a mingw objdump,
18368 # which wouldn't understand a cygwinified path. Ahh.
18369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18375 # pw32 DLLs use 'pw' prefix rather than 'lib'
18376 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18382 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18385 dynamic_linker='Win32 ld.exe'
18386 # FIXME: first we should search . and the directory the executable is in
18390 darwin* | rhapsody*)
18391 dynamic_linker="$host_os dyld"
18392 version_type=darwin
18395 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18396 soname_spec='${libname}${release}${major}$shared_ext'
18397 shlibpath_overrides_runpath=yes
18398 shlibpath_var=DYLD_LIBRARY_PATH
18399 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 shlibpath_var=LD_LIBRARY_PATH
18417 freebsd* | dragonfly*)
18418 # DragonFly does not have aout. When/if they implement a new
18419 # versioning mechanism, adjust this.
18420 if test -x /usr/bin/objformat; then
18421 objformat=`/usr/bin/objformat`
18424 freebsd[123]*) objformat=aout ;;
18425 *) objformat=elf ;;
18428 version_type=freebsd-$objformat
18429 case $version_type in
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18440 shlibpath_var=LD_LIBRARY_PATH
18443 shlibpath_overrides_runpath=yes
18445 freebsd3.[01]* | freebsdelf3.[01]*)
18446 shlibpath_overrides_runpath=yes
18447 hardcode_into_libs=yes
18449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18451 shlibpath_overrides_runpath=no
18452 hardcode_into_libs=yes
18454 *) # from 4.6 on, and DragonFly
18455 shlibpath_overrides_runpath=yes
18456 hardcode_into_libs=yes
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 shlibpath_var=LD_LIBRARY_PATH
18468 hardcode_into_libs=yes
18471 hpux9* | hpux10* | hpux11*)
18472 # Give a soname corresponding to the major version so that dld.sl refuses to
18473 # link against other versions.
18480 hardcode_into_libs=yes
18481 dynamic_linker="$host_os dld.so"
18482 shlibpath_var=LD_LIBRARY_PATH
18483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485 soname_spec='${libname}${release}${shared_ext}$major'
18486 if test "X$HPUX_IA64_MODE" = X32; then
18487 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18489 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18495 hardcode_into_libs=yes
18496 dynamic_linker="$host_os dld.sl"
18497 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18506 dynamic_linker="$host_os dld.sl"
18507 shlibpath_var=SHLIB_PATH
18508 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18510 soname_spec='${libname}${release}${shared_ext}$major'
18513 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18514 postinstall_cmds='chmod 555 $lib'
18521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18522 soname_spec='${libname}${release}${shared_ext}$major'
18523 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18524 shlibpath_var=LD_LIBRARY_PATH
18525 shlibpath_overrides_runpath=no
18526 hardcode_into_libs=yes
18529 irix5* | irix6* | nonstopux*)
18531 nonstopux*) version_type=nonstopux ;;
18533 if test "$lt_cv_prog_gnu_ld" = yes; then
18541 soname_spec='${libname}${release}${shared_ext}$major'
18542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18544 irix5* | nonstopux*)
18545 libsuff= shlibsuff=
18548 case $LD in # libtool.m4 will add one of these switches to LD
18549 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18550 libsuff= shlibsuff= libmagic=32-bit;;
18551 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18552 libsuff=32 shlibsuff=N32 libmagic=N32;;
18553 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18554 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18555 *) libsuff= shlibsuff= libmagic=never-match;;
18559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18560 shlibpath_overrides_runpath=no
18561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18563 hardcode_into_libs=yes
18566 # No shared lib support for Linux oldld, aout, or coff.
18567 linux*oldld* | linux*aout* | linux*coff*)
18571 # This must be Linux ELF.
18572 linux* | k*bsd*-gnu)
18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577 soname_spec='${libname}${release}${shared_ext}$major'
18578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18579 shlibpath_var=LD_LIBRARY_PATH
18580 shlibpath_overrides_runpath=no
18581 # This implies no fast_install, which is unacceptable.
18582 # Some rework will be needed to allow for fast_install
18583 # before this can be enabled.
18584 hardcode_into_libs=yes
18586 # Append ld.so.conf contents to the search path
18587 if test -f /etc/ld.so.conf; then
18588 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18589 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18592 # We used to test for /lib/ld.so.1 and disable shared libraries on
18593 # powerpc, because MkLinux only supported shared libraries with the
18594 # GNU dynamic linker. Since this was broken with cross compilers,
18595 # most powerpc-linux boxes support dynamic linking these days and
18596 # people can always --disable-shared, the test was removed, and we
18597 # assume the GNU/Linux dynamic linker is in use.
18598 dynamic_linker='GNU/Linux ld.so'
18605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18608 dynamic_linker='NetBSD (a.out) ld.so'
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 dynamic_linker='NetBSD ld.elf_so'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=yes
18616 hardcode_into_libs=yes
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 shlibpath_overrides_runpath=yes
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 shlibpath_var=LD_LIBRARY_PATH
18633 shlibpath_overrides_runpath=yes
18638 sys_lib_dlsearch_path_spec="/usr/lib"
18640 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18642 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18643 *) need_version=no ;;
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18647 shlibpath_var=LD_LIBRARY_PATH
18648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18650 openbsd2.[89] | openbsd2.[89].*)
18651 shlibpath_overrides_runpath=no
18654 shlibpath_overrides_runpath=yes
18658 shlibpath_overrides_runpath=yes
18663 libname_spec='$name'
18666 library_names_spec='$libname${shared_ext} $libname.a'
18667 dynamic_linker='OS/2 ld.exe'
18668 shlibpath_var=LIBPATH
18671 osf3* | osf4* | osf5*)
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 shlibpath_overrides_runpath=yes
18694 hardcode_into_libs=yes
18695 # ldd complains unless libraries are executable
18696 postinstall_cmds='chmod +x $lib'
18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18703 shlibpath_var=LD_LIBRARY_PATH
18704 shlibpath_overrides_runpath=yes
18705 if test "$with_gnu_ld" = yes; then
18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714 soname_spec='${libname}${release}${shared_ext}$major'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 case $host_vendor in
18718 shlibpath_overrides_runpath=no
18720 export_dynamic_flag_spec='${wl}-Blargedynsym'
18721 runpath_var=LD_RUN_PATH
18729 shlibpath_overrides_runpath=no
18730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18736 if test -d /usr/nec ;then
18738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18739 soname_spec='$libname${shared_ext}.$major'
18740 shlibpath_var=LD_LIBRARY_PATH
18744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18745 version_type=freebsd-elf
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 hardcode_into_libs=yes
18752 if test "$with_gnu_ld" = yes; then
18753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18754 shlibpath_overrides_runpath=no
18756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18757 shlibpath_overrides_runpath=yes
18760 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18764 sys_lib_dlsearch_path_spec='/usr/lib'
18769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770 soname_spec='${libname}${release}${shared_ext}$major'
18771 shlibpath_var=LD_LIBRARY_PATH
18778 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18779 echo "${ECHO_T}$dynamic_linker" >&6; }
18780 test "$dynamic_linker" = no && can_build_shared=no
18782 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18795 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18798 if test "$GCC" = yes; then
18799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18804 hardcode_action_GCJ=
18805 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18806 test -n "$runpath_var_GCJ" || \
18807 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18809 # We can hardcode non-existant directories.
18810 if test "$hardcode_direct_GCJ" != no &&
18811 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18812 # have to relink, otherwise we might link with an installed library
18813 # when we should be linking with a yet-to-be-installed one
18814 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18815 test "$hardcode_minus_L_GCJ" != no; then
18816 # Linking always hardcodes the temporary library directory.
18817 hardcode_action_GCJ=relink
18819 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18820 hardcode_action_GCJ=immediate
18823 # We cannot hardcode anything, or else we can only hardcode existing
18825 hardcode_action_GCJ=unsupported
18827 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18828 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18830 if test "$hardcode_action_GCJ" = relink; then
18831 # Fast installation is not supported
18832 enable_fast_install=no
18833 elif test "$shlibpath_overrides_runpath" = yes ||
18834 test "$enable_shared" = no; then
18835 # Fast installation is not necessary
18836 enable_fast_install=needless
18840 # The else clause should only fire when bootstrapping the
18841 # libtool distribution, otherwise you forgot to ship ltmain.sh
18842 # with your package, and you will get complaints that there are
18843 # no rules to generate ltmain.sh.
18844 if test -f "$ltmain"; then
18845 # See if we are running on zsh, and set the options which allow our commands through
18846 # without removal of \ escapes.
18847 if test -n "${ZSH_VERSION+set}" ; then
18848 setopt NO_GLOB_SUBST
18850 # Now quote all the things that may contain metacharacters while being
18851 # careful not to overquote the AC_SUBSTed values. We take copies of the
18852 # variables and quote the copies for generation of the libtool script.
18853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18857 deplibs_check_method reload_flag reload_cmds need_locks \
18858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18859 lt_cv_sys_global_symbol_to_c_name_address \
18860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18861 old_postinstall_cmds old_postuninstall_cmds \
18865 lt_prog_compiler_wl_GCJ \
18866 lt_prog_compiler_pic_GCJ \
18867 lt_prog_compiler_static_GCJ \
18868 lt_prog_compiler_no_builtin_flag_GCJ \
18869 export_dynamic_flag_spec_GCJ \
18870 thread_safe_flag_spec_GCJ \
18871 whole_archive_flag_spec_GCJ \
18872 enable_shared_with_static_runtimes_GCJ \
18873 old_archive_cmds_GCJ \
18874 old_archive_from_new_cmds_GCJ \
18875 predep_objects_GCJ \
18876 postdep_objects_GCJ \
18879 compiler_lib_search_path_GCJ \
18880 compiler_lib_search_dirs_GCJ \
18882 archive_expsym_cmds_GCJ \
18883 postinstall_cmds_GCJ \
18884 postuninstall_cmds_GCJ \
18885 old_archive_from_expsyms_cmds_GCJ \
18886 allow_undefined_flag_GCJ \
18887 no_undefined_flag_GCJ \
18888 export_symbols_cmds_GCJ \
18889 hardcode_libdir_flag_spec_GCJ \
18890 hardcode_libdir_flag_spec_ld_GCJ \
18891 hardcode_libdir_separator_GCJ \
18892 hardcode_automatic_GCJ \
18894 module_expsym_cmds_GCJ \
18895 lt_cv_prog_compiler_c_o_GCJ \
18896 fix_srcfile_path_GCJ \
18897 exclude_expsyms_GCJ \
18898 include_expsyms_GCJ; do
18901 old_archive_cmds_GCJ | \
18902 old_archive_from_new_cmds_GCJ | \
18903 archive_cmds_GCJ | \
18904 archive_expsym_cmds_GCJ | \
18905 module_cmds_GCJ | \
18906 module_expsym_cmds_GCJ | \
18907 old_archive_from_expsyms_cmds_GCJ | \
18908 export_symbols_cmds_GCJ | \
18909 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18910 postinstall_cmds | postuninstall_cmds | \
18911 old_postinstall_cmds | old_postuninstall_cmds | \
18912 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18913 # Double-quote double-evaled strings.
18914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18923 *'\$0 --fallback-echo"')
18924 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18930 cat <<__EOF__ >> "$cfgfile"
18931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18935 # Shell to use when invoking shell scripts.
18938 # Whether or not to build shared libraries.
18939 build_libtool_libs=$enable_shared
18941 # Whether or not to build static libraries.
18942 build_old_libs=$enable_static
18944 # Whether or not to add -lc for building shared libraries.
18945 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18947 # Whether or not to disallow shared libs when runtime libs are static
18948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18950 # Whether or not to optimize for fast installation.
18951 fast_install=$enable_fast_install
18954 host_alias=$host_alias
18958 # The build system.
18959 build_alias=$build_alias
18963 # An echo program that does not interpret backslashes.
18968 AR_FLAGS=$lt_AR_FLAGS
18973 # LTCC compiler flags.
18974 LTCFLAGS=$lt_LTCFLAGS
18976 # A language-specific compiler.
18977 CC=$lt_compiler_GCJ
18979 # Is the compiler the GNU C compiler?
18985 # The linker used to build libraries.
18988 # Whether we need hard or soft links.
18991 # A BSD-compatible nm program.
18994 # A symbol stripping program
18997 # Used to examine libraries when file_magic_cmd begins "file"
18998 MAGIC_CMD=$MAGIC_CMD
19000 # Used on cygwin: DLL creation program.
19003 # Used on cygwin: object dumper.
19006 # Used on cygwin: assembler.
19009 # The name of the directory that contains temporary libtool files.
19012 # How to create reloadable object files.
19013 reload_flag=$lt_reload_flag
19014 reload_cmds=$lt_reload_cmds
19016 # How to pass a linker flag through the compiler.
19017 wl=$lt_lt_prog_compiler_wl_GCJ
19019 # Object file suffix (normally "o").
19020 objext="$ac_objext"
19022 # Old archive suffix (normally "a").
19025 # Shared library suffix (normally ".so").
19026 shrext_cmds='$shrext_cmds'
19028 # Executable file suffix (normally "").
19031 # Additional compiler flags for building library objects.
19032 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19035 # What is the maximum length of a command?
19036 max_cmd_len=$lt_cv_sys_max_cmd_len
19038 # Does compiler simultaneously support -c and -o options?
19039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19041 # Must we lock files when doing compilation?
19042 need_locks=$lt_need_locks
19044 # Do we need the lib prefix for modules?
19045 need_lib_prefix=$need_lib_prefix
19047 # Do we need a version for libraries?
19048 need_version=$need_version
19050 # Whether dlopen is supported.
19051 dlopen_support=$enable_dlopen
19053 # Whether dlopen of programs is supported.
19054 dlopen_self=$enable_dlopen_self
19056 # Whether dlopen of statically linked programs is supported.
19057 dlopen_self_static=$enable_dlopen_self_static
19059 # Compiler flag to prevent dynamic linking.
19060 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19062 # Compiler flag to turn off builtin functions.
19063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19065 # Compiler flag to allow reflexive dlopens.
19066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19068 # Compiler flag to generate shared objects directly from archives.
19069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19071 # Compiler flag to generate thread-safe objects.
19072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19074 # Library versioning type.
19075 version_type=$version_type
19077 # Format of library name prefix.
19078 libname_spec=$lt_libname_spec
19080 # List of archive names. First name is the real one, the rest are links.
19081 # The last name is the one that the linker finds with -lNAME.
19082 library_names_spec=$lt_library_names_spec
19084 # The coded name of the library, if different from the real name.
19085 soname_spec=$lt_soname_spec
19087 # Commands used to build and install an old-style archive.
19089 old_archive_cmds=$lt_old_archive_cmds_GCJ
19090 old_postinstall_cmds=$lt_old_postinstall_cmds
19091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19093 # Create an old-style archive from a shared archive.
19094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19096 # Create a temporary old-style archive to link instead of a shared archive.
19097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19099 # Commands used to build and install a shared archive.
19100 archive_cmds=$lt_archive_cmds_GCJ
19101 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19102 postinstall_cmds=$lt_postinstall_cmds
19103 postuninstall_cmds=$lt_postuninstall_cmds
19105 # Commands used to build a loadable module (assumed same as above if empty)
19106 module_cmds=$lt_module_cmds_GCJ
19107 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19109 # Commands to strip libraries.
19110 old_striplib=$lt_old_striplib
19111 striplib=$lt_striplib
19113 # Dependencies to place before the objects being linked to create a
19115 predep_objects=$lt_predep_objects_GCJ
19117 # Dependencies to place after the objects being linked to create a
19119 postdep_objects=$lt_postdep_objects_GCJ
19121 # Dependencies to place before the objects being linked to create a
19123 predeps=$lt_predeps_GCJ
19125 # Dependencies to place after the objects being linked to create a
19127 postdeps=$lt_postdeps_GCJ
19129 # The directories searched by this compiler when creating a shared
19131 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19133 # The library search path used internally by the compiler when linking
19134 # a shared library.
19135 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19137 # Method to check whether dependent libraries are shared objects.
19138 deplibs_check_method=$lt_deplibs_check_method
19140 # Command to use when deplibs_check_method == file_magic.
19141 file_magic_cmd=$lt_file_magic_cmd
19143 # Flag that allows shared libraries with undefined symbols to be built.
19144 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19146 # Flag that forces no undefined symbols.
19147 no_undefined_flag=$lt_no_undefined_flag_GCJ
19149 # Commands used to finish a libtool library installation in a directory.
19150 finish_cmds=$lt_finish_cmds
19152 # Same as above, but a single script fragment to be evaled but not shown.
19153 finish_eval=$lt_finish_eval
19155 # Take the output of nm and produce a listing of raw symbols and C names.
19156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19158 # Transform the output of nm in a proper C declaration
19159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19161 # Transform the output of nm in a C name address pair
19162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19164 # This is the shared library runtime path variable.
19165 runpath_var=$runpath_var
19167 # This is the shared library path variable.
19168 shlibpath_var=$shlibpath_var
19170 # Is shlibpath searched before the hard-coded library search path?
19171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19173 # How to hardcode a shared library path into an executable.
19174 hardcode_action=$hardcode_action_GCJ
19176 # Whether we should hardcode library paths into libraries.
19177 hardcode_into_libs=$hardcode_into_libs
19179 # Flag to hardcode \$libdir into a binary during linking.
19180 # This must work even if \$libdir does not exist.
19181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19183 # If ld is used when linking, flag to hardcode \$libdir into
19184 # a binary during linking. This must work even if \$libdir does
19186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19188 # Whether we need a single -rpath flag with a separated argument.
19189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19192 # resulting binary.
19193 hardcode_direct=$hardcode_direct_GCJ
19195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19196 # resulting binary.
19197 hardcode_minus_L=$hardcode_minus_L_GCJ
19199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19200 # the resulting binary.
19201 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19203 # Set to yes if building a shared library automatically hardcodes DIR into the library
19204 # and all subsequent libraries and executables linked against it.
19205 hardcode_automatic=$hardcode_automatic_GCJ
19207 # Variables whose values should be saved in libtool wrapper scripts and
19208 # restored at relink time.
19209 variables_saved_for_relink="$variables_saved_for_relink"
19211 # Whether libtool must link a program against all its dependency libraries.
19212 link_all_deplibs=$link_all_deplibs_GCJ
19214 # Compile-time system search path for libraries
19215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19217 # Run-time system search path for libraries
19218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19220 # Fix the shell variable \$srcfile for the compiler.
19221 fix_srcfile_path=$lt_fix_srcfile_path
19223 # Set to yes if exported symbols are required.
19224 always_export_symbols=$always_export_symbols_GCJ
19226 # The commands to list exported symbols.
19227 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19229 # The commands to extract the exported symbol list from a shared archive.
19230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19232 # Symbols that should not be listed in the preloaded symbols.
19233 exclude_expsyms=$lt_exclude_expsyms_GCJ
19235 # Symbols that must always be exported.
19236 include_expsyms=$lt_include_expsyms_GCJ
19238 # ### END LIBTOOL TAG CONFIG: $tagname
19244 # If there is no Makefile yet, we rely on a make rule to execute
19245 # `config.status --recheck' to rerun these tests and create the
19246 # libtool script then.
19247 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19248 if test -f "$ltmain_in"; then
19249 test -f Makefile && make "$ltmain"
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270 # Source file extension for RC test sources.
19273 # Object file extension for compiled RC test sources.
19277 # Code to be used in simple compile tests
19278 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19280 # Code to be used in simple link tests
19281 lt_simple_link_test_code="$lt_simple_compile_test_code"
19283 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19285 # If no C compiler was specified, use CC.
19288 # If no C compiler flags were specified, use CFLAGS.
19289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19291 # Allow CC to be a program name with arguments.
19295 # save warnings/boilerplate of simple test code
19296 ac_outfile=conftest.$ac_objext
19297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19299 _lt_compiler_boilerplate=`cat conftest.err`
19302 ac_outfile=conftest.$ac_objext
19303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19305 _lt_linker_boilerplate=`cat conftest.err`
19309 # Allow CC to be a program name with arguments.
19314 for cc_temp in $compiler""; do
19316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19324 lt_cv_prog_compiler_c_o_RC=yes
19326 # The else clause should only fire when bootstrapping the
19327 # libtool distribution, otherwise you forgot to ship ltmain.sh
19328 # with your package, and you will get complaints that there are
19329 # no rules to generate ltmain.sh.
19330 if test -f "$ltmain"; then
19331 # See if we are running on zsh, and set the options which allow our commands through
19332 # without removal of \ escapes.
19333 if test -n "${ZSH_VERSION+set}" ; then
19334 setopt NO_GLOB_SUBST
19336 # Now quote all the things that may contain metacharacters while being
19337 # careful not to overquote the AC_SUBSTed values. We take copies of the
19338 # variables and quote the copies for generation of the libtool script.
19339 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19341 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19342 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19343 deplibs_check_method reload_flag reload_cmds need_locks \
19344 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19345 lt_cv_sys_global_symbol_to_c_name_address \
19346 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19347 old_postinstall_cmds old_postuninstall_cmds \
19351 lt_prog_compiler_wl_RC \
19352 lt_prog_compiler_pic_RC \
19353 lt_prog_compiler_static_RC \
19354 lt_prog_compiler_no_builtin_flag_RC \
19355 export_dynamic_flag_spec_RC \
19356 thread_safe_flag_spec_RC \
19357 whole_archive_flag_spec_RC \
19358 enable_shared_with_static_runtimes_RC \
19359 old_archive_cmds_RC \
19360 old_archive_from_new_cmds_RC \
19361 predep_objects_RC \
19362 postdep_objects_RC \
19365 compiler_lib_search_path_RC \
19366 compiler_lib_search_dirs_RC \
19368 archive_expsym_cmds_RC \
19369 postinstall_cmds_RC \
19370 postuninstall_cmds_RC \
19371 old_archive_from_expsyms_cmds_RC \
19372 allow_undefined_flag_RC \
19373 no_undefined_flag_RC \
19374 export_symbols_cmds_RC \
19375 hardcode_libdir_flag_spec_RC \
19376 hardcode_libdir_flag_spec_ld_RC \
19377 hardcode_libdir_separator_RC \
19378 hardcode_automatic_RC \
19380 module_expsym_cmds_RC \
19381 lt_cv_prog_compiler_c_o_RC \
19382 fix_srcfile_path_RC \
19383 exclude_expsyms_RC \
19384 include_expsyms_RC; do
19387 old_archive_cmds_RC | \
19388 old_archive_from_new_cmds_RC | \
19389 archive_cmds_RC | \
19390 archive_expsym_cmds_RC | \
19392 module_expsym_cmds_RC | \
19393 old_archive_from_expsyms_cmds_RC | \
19394 export_symbols_cmds_RC | \
19395 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19396 postinstall_cmds | postuninstall_cmds | \
19397 old_postinstall_cmds | old_postuninstall_cmds | \
19398 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19399 # Double-quote double-evaled strings.
19400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19409 *'\$0 --fallback-echo"')
19410 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19416 cat <<__EOF__ >> "$cfgfile"
19417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19421 # Shell to use when invoking shell scripts.
19424 # Whether or not to build shared libraries.
19425 build_libtool_libs=$enable_shared
19427 # Whether or not to build static libraries.
19428 build_old_libs=$enable_static
19430 # Whether or not to add -lc for building shared libraries.
19431 build_libtool_need_lc=$archive_cmds_need_lc_RC
19433 # Whether or not to disallow shared libs when runtime libs are static
19434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19436 # Whether or not to optimize for fast installation.
19437 fast_install=$enable_fast_install
19440 host_alias=$host_alias
19444 # The build system.
19445 build_alias=$build_alias
19449 # An echo program that does not interpret backslashes.
19454 AR_FLAGS=$lt_AR_FLAGS
19459 # LTCC compiler flags.
19460 LTCFLAGS=$lt_LTCFLAGS
19462 # A language-specific compiler.
19465 # Is the compiler the GNU C compiler?
19471 # The linker used to build libraries.
19474 # Whether we need hard or soft links.
19477 # A BSD-compatible nm program.
19480 # A symbol stripping program
19483 # Used to examine libraries when file_magic_cmd begins "file"
19484 MAGIC_CMD=$MAGIC_CMD
19486 # Used on cygwin: DLL creation program.
19489 # Used on cygwin: object dumper.
19492 # Used on cygwin: assembler.
19495 # The name of the directory that contains temporary libtool files.
19498 # How to create reloadable object files.
19499 reload_flag=$lt_reload_flag
19500 reload_cmds=$lt_reload_cmds
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl_RC
19505 # Object file suffix (normally "o").
19506 objext="$ac_objext"
19508 # Old archive suffix (normally "a").
19511 # Shared library suffix (normally ".so").
19512 shrext_cmds='$shrext_cmds'
19514 # Executable file suffix (normally "").
19517 # Additional compiler flags for building library objects.
19518 pic_flag=$lt_lt_prog_compiler_pic_RC
19521 # What is the maximum length of a command?
19522 max_cmd_len=$lt_cv_sys_max_cmd_len
19524 # Does compiler simultaneously support -c and -o options?
19525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19527 # Must we lock files when doing compilation?
19528 need_locks=$lt_need_locks
19530 # Do we need the lib prefix for modules?
19531 need_lib_prefix=$need_lib_prefix
19533 # Do we need a version for libraries?
19534 need_version=$need_version
19536 # Whether dlopen is supported.
19537 dlopen_support=$enable_dlopen
19539 # Whether dlopen of programs is supported.
19540 dlopen_self=$enable_dlopen_self
19542 # Whether dlopen of statically linked programs is supported.
19543 dlopen_self_static=$enable_dlopen_self_static
19545 # Compiler flag to prevent dynamic linking.
19546 link_static_flag=$lt_lt_prog_compiler_static_RC
19548 # Compiler flag to turn off builtin functions.
19549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19551 # Compiler flag to allow reflexive dlopens.
19552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19554 # Compiler flag to generate shared objects directly from archives.
19555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19557 # Compiler flag to generate thread-safe objects.
19558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19560 # Library versioning type.
19561 version_type=$version_type
19563 # Format of library name prefix.
19564 libname_spec=$lt_libname_spec
19566 # List of archive names. First name is the real one, the rest are links.
19567 # The last name is the one that the linker finds with -lNAME.
19568 library_names_spec=$lt_library_names_spec
19570 # The coded name of the library, if different from the real name.
19571 soname_spec=$lt_soname_spec
19573 # Commands used to build and install an old-style archive.
19575 old_archive_cmds=$lt_old_archive_cmds_RC
19576 old_postinstall_cmds=$lt_old_postinstall_cmds
19577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19579 # Create an old-style archive from a shared archive.
19580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19582 # Create a temporary old-style archive to link instead of a shared archive.
19583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19585 # Commands used to build and install a shared archive.
19586 archive_cmds=$lt_archive_cmds_RC
19587 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19588 postinstall_cmds=$lt_postinstall_cmds
19589 postuninstall_cmds=$lt_postuninstall_cmds
19591 # Commands used to build a loadable module (assumed same as above if empty)
19592 module_cmds=$lt_module_cmds_RC
19593 module_expsym_cmds=$lt_module_expsym_cmds_RC
19595 # Commands to strip libraries.
19596 old_striplib=$lt_old_striplib
19597 striplib=$lt_striplib
19599 # Dependencies to place before the objects being linked to create a
19601 predep_objects=$lt_predep_objects_RC
19603 # Dependencies to place after the objects being linked to create a
19605 postdep_objects=$lt_postdep_objects_RC
19607 # Dependencies to place before the objects being linked to create a
19609 predeps=$lt_predeps_RC
19611 # Dependencies to place after the objects being linked to create a
19613 postdeps=$lt_postdeps_RC
19615 # The directories searched by this compiler when creating a shared
19617 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19619 # The library search path used internally by the compiler when linking
19620 # a shared library.
19621 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19623 # Method to check whether dependent libraries are shared objects.
19624 deplibs_check_method=$lt_deplibs_check_method
19626 # Command to use when deplibs_check_method == file_magic.
19627 file_magic_cmd=$lt_file_magic_cmd
19629 # Flag that allows shared libraries with undefined symbols to be built.
19630 allow_undefined_flag=$lt_allow_undefined_flag_RC
19632 # Flag that forces no undefined symbols.
19633 no_undefined_flag=$lt_no_undefined_flag_RC
19635 # Commands used to finish a libtool library installation in a directory.
19636 finish_cmds=$lt_finish_cmds
19638 # Same as above, but a single script fragment to be evaled but not shown.
19639 finish_eval=$lt_finish_eval
19641 # Take the output of nm and produce a listing of raw symbols and C names.
19642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19644 # Transform the output of nm in a proper C declaration
19645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19647 # Transform the output of nm in a C name address pair
19648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19650 # This is the shared library runtime path variable.
19651 runpath_var=$runpath_var
19653 # This is the shared library path variable.
19654 shlibpath_var=$shlibpath_var
19656 # Is shlibpath searched before the hard-coded library search path?
19657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19659 # How to hardcode a shared library path into an executable.
19660 hardcode_action=$hardcode_action_RC
19662 # Whether we should hardcode library paths into libraries.
19663 hardcode_into_libs=$hardcode_into_libs
19665 # Flag to hardcode \$libdir into a binary during linking.
19666 # This must work even if \$libdir does not exist.
19667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19669 # If ld is used when linking, flag to hardcode \$libdir into
19670 # a binary during linking. This must work even if \$libdir does
19672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19674 # Whether we need a single -rpath flag with a separated argument.
19675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_direct=$hardcode_direct_RC
19681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19682 # resulting binary.
19683 hardcode_minus_L=$hardcode_minus_L_RC
19685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19686 # the resulting binary.
19687 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19689 # Set to yes if building a shared library automatically hardcodes DIR into the library
19690 # and all subsequent libraries and executables linked against it.
19691 hardcode_automatic=$hardcode_automatic_RC
19693 # Variables whose values should be saved in libtool wrapper scripts and
19694 # restored at relink time.
19695 variables_saved_for_relink="$variables_saved_for_relink"
19697 # Whether libtool must link a program against all its dependency libraries.
19698 link_all_deplibs=$link_all_deplibs_RC
19700 # Compile-time system search path for libraries
19701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19703 # Run-time system search path for libraries
19704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19706 # Fix the shell variable \$srcfile for the compiler.
19707 fix_srcfile_path=$lt_fix_srcfile_path
19709 # Set to yes if exported symbols are required.
19710 always_export_symbols=$always_export_symbols_RC
19712 # The commands to list exported symbols.
19713 export_symbols_cmds=$lt_export_symbols_cmds_RC
19715 # The commands to extract the exported symbol list from a shared archive.
19716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19718 # Symbols that should not be listed in the preloaded symbols.
19719 exclude_expsyms=$lt_exclude_expsyms_RC
19721 # Symbols that must always be exported.
19722 include_expsyms=$lt_include_expsyms_RC
19724 # ### END LIBTOOL TAG CONFIG: $tagname
19730 # If there is no Makefile yet, we rely on a make rule to execute
19731 # `config.status --recheck' to rerun these tests and create the
19732 # libtool script then.
19733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19734 if test -f "$ltmain_in"; then
19735 test -f Makefile && make "$ltmain"
19741 ac_cpp='$CPP $CPPFLAGS'
19742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19752 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19753 { (exit 1); exit 1; }; }
19757 # Append the new tag name to the list of available tags.
19758 if test -n "$tagname" ; then
19759 available_tags="$available_tags $tagname"
19765 # Now substitute the updated list of available tags.
19766 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19767 mv "${ofile}T" "$ofile"
19771 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19772 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19773 { (exit 1); exit 1; }; }
19779 # This can be used to rebuild libtool when needed
19780 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19782 # Always use our own libtool.
19783 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19785 # Prevent multiple expansion
19806 # Check whether --enable-debug was given.
19807 if test "${enable_debug+set}" = set; then
19808 enableval=$enable_debug;
19809 CXXFLAGS="-g -O0 -Wall"
19811 cat >>confdefs.h <<\_ACEOF
19820 # Check whether --with-libldap was given.
19821 if test "${with_libldap+set}" = set; then
19822 withval=$with_libldap;
19823 LIBS="-L$with_libldap $LIBS "
19827 LIBS="-L/usr/local/lib $LIBS "
19834 # Check whether --with-ldap-includes was given.
19835 if test "${with_ldap_includes+set}" = set; then
19836 withval=$with_ldap_includes;
19837 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19841 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19847 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19848 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
19849 if test "${ac_cv_lib_resolv_main+set}" = set; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 ac_check_lib_save_LIBS=$LIBS
19853 LIBS="-lresolv $LIBS"
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_link") 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } && {
19884 test -z "$ac_c_werror_flag" ||
19885 test ! -s conftest.err
19886 } && test -s conftest$ac_exeext &&
19887 $as_test_x conftest$ac_exeext; then
19888 ac_cv_lib_resolv_main=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_cv_lib_resolv_main=no
19896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19897 conftest$ac_exeext conftest.$ac_ext
19898 LIBS=$ac_check_lib_save_LIBS
19900 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19901 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
19902 if test $ac_cv_lib_resolv_main = yes; then
19903 cat >>confdefs.h <<_ACEOF
19904 #define HAVE_LIBRESOLV 1
19907 LIBS="-lresolv $LIBS"
19911 { echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19912 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6; }
19913 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 ac_check_lib_save_LIBS=$LIBS
19917 LIBS="-llber $LIBS"
19918 cat >conftest.$ac_ext <<_ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19925 /* Override any GCC internal prototype to avoid an error.
19926 Use char because int might match the return type of a GCC
19927 builtin and then its argument prototype would still apply. */
19931 char ber_strdup ();
19935 return ber_strdup ();
19940 rm -f conftest.$ac_objext conftest$ac_exeext
19941 if { (ac_try="$ac_link"
19942 case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_link") 2>conftest.er1
19949 grep -v '^ *+' conftest.er1 >conftest.err
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest$ac_exeext &&
19957 $as_test_x conftest$ac_exeext; then
19958 ac_cv_lib_lber_ber_strdup=yes
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 ac_cv_lib_lber_ber_strdup=no
19966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19967 conftest$ac_exeext conftest.$ac_ext
19968 LIBS=$ac_check_lib_save_LIBS
19970 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
19971 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6; }
19972 if test $ac_cv_lib_lber_ber_strdup = yes; then
19978 echo " didn't find ber_strdup in liblber !";
19979 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19980 echo " or try the --with-libldap option.";
19985 { echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
19986 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6; }
19987 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 ac_check_lib_save_LIBS=$LIBS
19994 cat >conftest.$ac_ext <<_ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20001 /* Override any GCC internal prototype to avoid an error.
20002 Use char because int might match the return type of a GCC
20003 builtin and then its argument prototype would still apply. */
20007 char ldap_add_ext ();
20011 return ldap_add_ext ();
20016 rm -f conftest.$ac_objext conftest$ac_exeext
20017 if { (ac_try="$ac_link"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_link") 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && {
20030 test -z "$ac_c_werror_flag" ||
20031 test ! -s conftest.err
20032 } && test -s conftest$ac_exeext &&
20033 $as_test_x conftest$ac_exeext; then
20034 ac_cv_lib_ldap_ldap_add_ext=yes
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_cv_lib_ldap_ldap_add_ext=no
20042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20043 conftest$ac_exeext conftest.$ac_ext
20044 LIBS=$ac_check_lib_save_LIBS
20046 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
20047 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6; }
20048 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
20054 echo " didn't find ldap_add_ext in libldap !";
20055 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
20056 echo " or try the --with-libldap option.";
20061 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20062 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20063 if test "${ac_cv_header_time+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 #include <sys/types.h>
20073 #include <sys/time.h>
20079 if ((struct tm *) 0)
20085 rm -f conftest.$ac_objext
20086 if { (ac_try="$ac_compile"
20087 case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_compile") 2>conftest.er1
20094 grep -v '^ *+' conftest.er1 >conftest.err
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } && {
20099 test -z "$ac_c_werror_flag" ||
20100 test ! -s conftest.err
20101 } && test -s conftest.$ac_objext; then
20102 ac_cv_header_time=yes
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_cv_header_time=no
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20113 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20114 if test $ac_cv_header_time = yes; then
20116 cat >>confdefs.h <<\_ACEOF
20117 #define TIME_WITH_SYS_TIME 1
20124 for ac_header in termios.h ldap.h
20126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 ac_res=`eval echo '${'$as_ac_Header'}'`
20134 { echo "$as_me:$LINENO: result: $ac_res" >&5
20135 echo "${ECHO_T}$ac_res" >&6; }
20137 # Is the header compilable?
20138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 $ac_includes_default
20147 #include <$ac_header>
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20158 grep -v '^ *+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } && {
20163 test -z "$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 } && test -s conftest.$ac_objext; then
20166 ac_header_compiler=yes
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_compiler=no
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20176 echo "${ECHO_T}$ac_header_compiler" >&6; }
20178 # Is the header present?
20179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 #include <$ac_header>
20189 if { (ac_try="$ac_cpp conftest.$ac_ext"
20190 case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20197 grep -v '^ *+' conftest.er1 >conftest.err
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } >/dev/null && {
20202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20203 test ! -s conftest.err
20205 ac_header_preproc=yes
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_header_preproc=no
20213 rm -f conftest.err conftest.$ac_ext
20214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20215 echo "${ECHO_T}$ac_header_preproc" >&6; }
20217 # So? What about this header?
20218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20224 ac_header_preproc=yes
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20240 ## -------------------------------------------- ##
20241 ## Report this to http://www.openldap.org/its/ ##
20242 ## -------------------------------------------- ##
20244 ) | sed "s/^/$as_me: WARNING: /" >&2
20247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 eval "$as_ac_Header=\$ac_header_preproc"
20254 ac_res=`eval echo '${'$as_ac_Header'}'`
20255 { echo "$as_me:$LINENO: result: $ac_res" >&5
20256 echo "${ECHO_T}$ac_res" >&6; }
20259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20260 cat >>confdefs.h <<_ACEOF
20261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20278 $EGREP "ldap_add_ext" >/dev/null 2>&1; then
20284 echo " didn't find ldap_add_ext in ldap.h!";
20285 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
20286 echo " or try --with-ldap-includes option.";
20292 if test "${ac_cv_header_lber_h+set}" = set; then
20293 { echo "$as_me:$LINENO: checking for lber.h" >&5
20294 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
20295 if test "${ac_cv_header_lber_h+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20299 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
20301 # Is the header compilable?
20302 { echo "$as_me:$LINENO: checking lber.h usability" >&5
20303 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6; }
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 $ac_includes_default
20313 rm -f conftest.$ac_objext
20314 if { (ac_try="$ac_compile"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_compile") 2>conftest.er1
20322 grep -v '^ *+' conftest.er1 >conftest.err
20324 cat conftest.err >&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && {
20327 test -z "$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 } && test -s conftest.$ac_objext; then
20330 ac_header_compiler=yes
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ac_header_compiler=no
20338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20340 echo "${ECHO_T}$ac_header_compiler" >&6; }
20342 # Is the header present?
20343 { echo "$as_me:$LINENO: checking lber.h presence" >&5
20344 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6; }
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20353 if { (ac_try="$ac_cpp conftest.$ac_ext"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } >/dev/null && {
20366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20369 ac_header_preproc=yes
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 ac_header_preproc=no
20377 rm -f conftest.err conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20379 echo "${ECHO_T}$ac_header_preproc" >&6; }
20381 # So? What about this header?
20382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20384 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
20385 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
20387 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
20388 ac_header_preproc=yes
20391 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
20392 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
20394 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
20396 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&5
20398 echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
20400 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
20402 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
20404 ## -------------------------------------------- ##
20405 ## Report this to http://www.openldap.org/its/ ##
20406 ## -------------------------------------------- ##
20408 ) | sed "s/^/$as_me: WARNING: /" >&2
20411 { echo "$as_me:$LINENO: checking for lber.h" >&5
20412 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
20413 if test "${ac_cv_header_lber_h+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 ac_cv_header_lber_h=$ac_header_preproc
20418 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20419 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20434 $EGREP "ber_strdup" >/dev/null 2>&1; then
20440 echo " didn't find ber_strdup in lber.h!";
20441 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
20442 echo " or try --with-ldap-includes option.";
20451 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20453 cat >confcache <<\_ACEOF
20454 # This file is a shell script that caches the results of configure
20455 # tests run on this system so they can be shared between configure
20456 # scripts and configure runs, see configure's option --config-cache.
20457 # It is not useful on other systems. If it contains results you don't
20458 # want to keep, you may remove or edit it.
20460 # config.status only pays attention to the cache file if you give it
20461 # the --recheck option to rerun configure.
20463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20465 # following values.
20469 # The following way of writing the cache mishandles newlines in values,
20470 # but we know of no workaround that is simple, portable, and efficient.
20471 # So, we kill variables containing newlines.
20472 # Ultrix sh set writes to stderr and can't be redirected directly,
20473 # and sets the high bit in the cache file unless we assign to the vars.
20475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20476 eval ac_val=\$$ac_var
20480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20484 _ | IFS | as_nl) ;; #(
20485 *) $as_unset $ac_var ;;
20491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20492 *${as_nl}ac_space=\ *)
20493 # `set' does not quote correctly, so add quotes (double-quote
20494 # substitution turns \\\\ into \\, and sed turns \\ into \).
20497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20500 # `set' quotes correctly as required by POSIX, so do not add quotes.
20501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20515 if test -w "$cache_file"; then
20516 test "x$cache_file" != "x/dev/null" &&
20517 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20518 echo "$as_me: updating cache $cache_file" >&6;}
20519 cat confcache >$cache_file
20521 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20528 # Let make expand exec_prefix.
20529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20531 DEFS=-DHAVE_CONFIG_H
20535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20536 # 1. Remove the extension, and $U if already installed.
20537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20538 ac_i=`echo "$ac_i" | sed "$ac_script"`
20539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20540 # will be set to the directory where LIBOBJS objects are built.
20541 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20542 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20544 LIBOBJS=$ac_libobjs
20546 LTLIBOBJS=$ac_ltlibobjs
20549 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20550 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20551 Usually this means the macro was only invoked conditionally." >&5
20552 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20553 Usually this means the macro was only invoked conditionally." >&2;}
20554 { (exit 1); exit 1; }; }
20556 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20557 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20558 Usually this means the macro was only invoked conditionally." >&5
20559 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20560 Usually this means the macro was only invoked conditionally." >&2;}
20561 { (exit 1); exit 1; }; }
20563 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20564 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20565 Usually this means the macro was only invoked conditionally." >&5
20566 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20567 Usually this means the macro was only invoked conditionally." >&2;}
20568 { (exit 1); exit 1; }; }
20571 : ${CONFIG_STATUS=./config.status}
20572 ac_clean_files_save=$ac_clean_files
20573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20576 cat >$CONFIG_STATUS <<_ACEOF
20578 # Generated by $as_me.
20579 # Run this file to recreate the current configuration.
20580 # Compiler output produced by configure, useful for debugging
20581 # configure, is in config.log if it exists.
20584 ac_cs_recheck=false
20586 SHELL=\${CONFIG_SHELL-$SHELL}
20589 cat >>$CONFIG_STATUS <<\_ACEOF
20590 ## --------------------- ##
20591 ## M4sh Initialization. ##
20592 ## --------------------- ##
20594 # Be more Bourne compatible
20595 DUALCASE=1; export DUALCASE # for MKS sh
20596 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20599 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20600 # is contrary to our usage. Disable this feature.
20601 alias -g '${1+"$@"}'='"$@"'
20602 setopt NO_GLOB_SUBST
20604 case `(set -o) 2>/dev/null` in
20605 *posix*) set -o posix ;;
20614 # Avoid depending upon Character Ranges.
20615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20618 as_cr_digits='0123456789'
20619 as_cr_alnum=$as_cr_Letters$as_cr_digits
20621 # The user is always right.
20622 if test "${PATH_SEPARATOR+set}" != set; then
20623 echo "#! /bin/sh" >conf$$.sh
20624 echo "exit 0" >>conf$$.sh
20626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20634 # Support unset when possible.
20635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20643 # We need space, tab and new line, in precisely that order. Quoting is
20644 # there to prevent editors from complaining about space-tab.
20645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20646 # splitting by setting IFS to empty value.)
20651 # Find who we are. Look in the path if we contain no directory separator.
20653 *[\\/]* ) as_myself=$0 ;;
20654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20655 for as_dir in $PATH
20658 test -z "$as_dir" && as_dir=.
20659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20665 # We did not find ourselves, most probably we were run as `sh COMMAND'
20666 # in which case we are not to be found in the path.
20667 if test "x$as_myself" = x; then
20670 if test ! -f "$as_myself"; then
20671 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20672 { (exit 1); exit 1; }
20675 # Work around bugs in pre-3.0 UWIN ksh.
20676 for as_var in ENV MAIL MAILPATH
20677 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20685 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20686 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20687 LC_TELEPHONE LC_TIME
20689 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20690 eval $as_var=C; export $as_var
20692 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20696 # Required to use basename.
20697 if expr a : '\(a\)' >/dev/null 2>&1 &&
20698 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20704 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20705 as_basename=basename
20711 # Name of the executable.
20712 as_me=`$as_basename -- "$0" ||
20713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20714 X"$0" : 'X\(//\)$' \| \
20715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20717 sed '/^.*\/\([^/][^/]*\)\/*$/{
20736 as_lineno_1=$LINENO
20737 as_lineno_2=$LINENO
20738 test "x$as_lineno_1" != "x$as_lineno_2" &&
20739 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20741 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20742 # uniformly replaced by the line number. The first 'sed' inserts a
20743 # line-number line after each line using $LINENO; the second 'sed'
20744 # does the real work. The second script uses 'N' to pair each
20745 # line-number line with the line containing $LINENO, and appends
20746 # trailing '-' during substitution so that $LINENO is not a special
20747 # case at line end.
20748 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20749 # scripts with optimization help from Paolo Bonzini. Blame Lee
20750 # E. McMahon (1931-1989) for sed's syntax. :-)
20762 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20765 ' >$as_me.lineno &&
20766 chmod +x "$as_me.lineno" ||
20767 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20768 { (exit 1); exit 1; }; }
20770 # Don't try to exec as it changes $[0], causing all sort of problems
20771 # (the dirname of $[0] is not the place where we might find the
20772 # original and so on. Autoconf is especially sensitive to this).
20773 . "./$as_me.lineno"
20774 # Exit status is that of the last command.
20779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20785 ECHO_C= ECHO_N= ECHO_T=
20786 case `echo -n x` in
20788 case `echo 'x\c'` in
20789 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20796 if expr a : '\(a\)' >/dev/null 2>&1 &&
20797 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20803 rm -f conf$$ conf$$.exe conf$$.file
20804 if test -d conf$$.dir; then
20805 rm -f conf$$.dir/conf$$.file
20811 if ln -s conf$$.file conf$$ 2>/dev/null; then
20813 # ... but there are two gotchas:
20814 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20815 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20816 # In both cases, we have to default to `cp -p'.
20817 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20819 elif ln conf$$.file conf$$ 2>/dev/null; then
20824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20825 rmdir conf$$.dir 2>/dev/null
20827 if mkdir -p . 2>/dev/null; then
20830 test -d ./-p && rmdir ./-p
20834 if test -x / >/dev/null 2>&1; then
20835 as_test_x='test -x'
20837 if ls -dL / >/dev/null 2>&1; then
20844 if test -d "$1"; then
20850 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20851 ???[sx]*):;;*)false;;esac;fi
20855 as_executable_p=$as_test_x
20857 # Sed expression to map a string onto a valid CPP name.
20858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20860 # Sed expression to map a string onto a valid variable name.
20861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20866 # Save the log message, to keep $[0] and so on meaningful, and to
20867 # report actual input values of CONFIG_FILES etc. instead of their
20868 # values after options handling.
20870 This file was extended by ldapcpplib $as_me , which was
20871 generated by GNU Autoconf 2.61. Invocation command line was
20873 CONFIG_FILES = $CONFIG_FILES
20874 CONFIG_HEADERS = $CONFIG_HEADERS
20875 CONFIG_LINKS = $CONFIG_LINKS
20876 CONFIG_COMMANDS = $CONFIG_COMMANDS
20879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20884 cat >>$CONFIG_STATUS <<_ACEOF
20885 # Files that config.status was made for.
20886 config_files="$ac_config_files"
20887 config_headers="$ac_config_headers"
20888 config_commands="$ac_config_commands"
20892 cat >>$CONFIG_STATUS <<\_ACEOF
20894 \`$as_me' instantiates files from templates according to the
20895 current configuration.
20897 Usage: $0 [OPTIONS] [FILE]...
20899 -h, --help print this help, then exit
20900 -V, --version print version number and configuration settings, then exit
20901 -q, --quiet do not print progress messages
20902 -d, --debug don't remove temporary files
20903 --recheck update $as_me by reconfiguring in the same conditions
20904 --file=FILE[:TEMPLATE]
20905 instantiate the configuration file FILE
20906 --header=FILE[:TEMPLATE]
20907 instantiate the configuration header FILE
20909 Configuration files:
20912 Configuration headers:
20915 Configuration commands:
20918 Report bugs to <bug-autoconf@gnu.org>."
20921 cat >>$CONFIG_STATUS <<_ACEOF
20923 ldapcpplib config.status
20924 configured by $0, generated by GNU Autoconf 2.61,
20925 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20927 Copyright (C) 2006 Free Software Foundation, Inc.
20928 This config.status script is free software; the Free Software Foundation
20929 gives unlimited permission to copy, distribute and modify it."
20937 cat >>$CONFIG_STATUS <<\_ACEOF
20938 # If no file are specified by the user, then we need to provide default
20939 # value. By we need to know if files were specified by the user.
20945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20957 # Handling of the options.
20958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20960 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20961 echo "$ac_cs_version"; exit ;;
20962 --debug | --debu | --deb | --de | --d | -d )
20964 --file | --fil | --fi | --f )
20966 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20967 ac_need_defaults=false;;
20968 --header | --heade | --head | --hea )
20970 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20971 ac_need_defaults=false;;
20973 # Conflict between --help and --header
20974 { echo "$as_me: error: ambiguous option: $1
20975 Try \`$0 --help' for more information." >&2
20976 { (exit 1); exit 1; }; };;
20977 --help | --hel | -h )
20978 echo "$ac_cs_usage"; exit ;;
20979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20983 # This is an error.
20984 -*) { echo "$as_me: error: unrecognized option: $1
20985 Try \`$0 --help' for more information." >&2
20986 { (exit 1); exit 1; }; } ;;
20988 *) ac_config_targets="$ac_config_targets $1"
20989 ac_need_defaults=false ;;
20995 ac_configure_extra_args=
20997 if $ac_cs_silent; then
20999 ac_configure_extra_args="$ac_configure_extra_args --silent"
21003 cat >>$CONFIG_STATUS <<_ACEOF
21004 if \$ac_cs_recheck; then
21005 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21006 CONFIG_SHELL=$SHELL
21007 export CONFIG_SHELL
21008 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21012 cat >>$CONFIG_STATUS <<\_ACEOF
21016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21017 ## Running $as_me. ##
21023 cat >>$CONFIG_STATUS <<_ACEOF
21027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21031 cat >>$CONFIG_STATUS <<\_ACEOF
21033 # Handling of arguments.
21034 for ac_config_target in $ac_config_targets
21036 case $ac_config_target in
21037 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21038 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21040 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21041 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21043 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21044 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21045 { (exit 1); exit 1; }; };;
21050 # If the user did not use the arguments to specify the items to instantiate,
21051 # then the envvar interface is used. Set only those that are not.
21052 # We use the long form for the default assignment because of an extremely
21053 # bizarre bug on SunOS 4.1.3.
21054 if $ac_need_defaults; then
21055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21060 # Have a temporary directory for convenience. Make it in the build tree
21061 # simply because there is no reason against having it here, and in addition,
21062 # creating and moving files from /tmp can sometimes cause problems.
21063 # Hook for its removal unless debugging.
21064 # Note that there is a small window in which the directory will not be cleaned:
21065 # after its creation but before its name has been assigned to `$tmp'.
21069 trap 'exit_status=$?
21070 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21072 trap '{ (exit 1); exit 1; }' 1 2 13 15
21074 # Create a (secure) tmp directory for tmp files.
21077 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21078 test -n "$tmp" && test -d "$tmp"
21081 tmp=./conf$$-$RANDOM
21082 (umask 077 && mkdir "$tmp")
21085 echo "$me: cannot create a temporary directory in ." >&2
21086 { (exit 1); exit 1; }
21090 # Set up the sed scripts for CONFIG_FILES section.
21093 # No need to generate the scripts if there are no CONFIG_FILES.
21094 # This happens for instance when ./config.status config.h
21095 if test -n "$CONFIG_FILES"; then
21102 for ac_last_try in false false false false false :; do
21103 cat >conf$$subs.sed <<_ACEOF
21104 SHELL!$SHELL$ac_delim
21105 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21106 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21107 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21108 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21109 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21110 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21111 exec_prefix!$exec_prefix$ac_delim
21112 prefix!$prefix$ac_delim
21113 program_transform_name!$program_transform_name$ac_delim
21114 bindir!$bindir$ac_delim
21115 sbindir!$sbindir$ac_delim
21116 libexecdir!$libexecdir$ac_delim
21117 datarootdir!$datarootdir$ac_delim
21118 datadir!$datadir$ac_delim
21119 sysconfdir!$sysconfdir$ac_delim
21120 sharedstatedir!$sharedstatedir$ac_delim
21121 localstatedir!$localstatedir$ac_delim
21122 includedir!$includedir$ac_delim
21123 oldincludedir!$oldincludedir$ac_delim
21124 docdir!$docdir$ac_delim
21125 infodir!$infodir$ac_delim
21126 htmldir!$htmldir$ac_delim
21127 dvidir!$dvidir$ac_delim
21128 pdfdir!$pdfdir$ac_delim
21129 psdir!$psdir$ac_delim
21130 libdir!$libdir$ac_delim
21131 localedir!$localedir$ac_delim
21132 mandir!$mandir$ac_delim
21133 DEFS!$DEFS$ac_delim
21134 ECHO_C!$ECHO_C$ac_delim
21135 ECHO_N!$ECHO_N$ac_delim
21136 ECHO_T!$ECHO_T$ac_delim
21137 LIBS!$LIBS$ac_delim
21138 build_alias!$build_alias$ac_delim
21139 host_alias!$host_alias$ac_delim
21140 target_alias!$target_alias$ac_delim
21141 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21142 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21143 INSTALL_DATA!$INSTALL_DATA$ac_delim
21144 am__isrc!$am__isrc$ac_delim
21145 CYGPATH_W!$CYGPATH_W$ac_delim
21146 PACKAGE!$PACKAGE$ac_delim
21147 VERSION!$VERSION$ac_delim
21148 ACLOCAL!$ACLOCAL$ac_delim
21149 AUTOCONF!$AUTOCONF$ac_delim
21150 AUTOMAKE!$AUTOMAKE$ac_delim
21151 AUTOHEADER!$AUTOHEADER$ac_delim
21152 MAKEINFO!$MAKEINFO$ac_delim
21153 install_sh!$install_sh$ac_delim
21154 STRIP!$STRIP$ac_delim
21155 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21156 mkdir_p!$mkdir_p$ac_delim
21158 SET_MAKE!$SET_MAKE$ac_delim
21159 am__leading_dot!$am__leading_dot$ac_delim
21160 AMTAR!$AMTAR$ac_delim
21161 am__tar!$am__tar$ac_delim
21162 am__untar!$am__untar$ac_delim
21163 OPENLDAP_CPP_API_VERSION!$OPENLDAP_CPP_API_VERSION$ac_delim
21165 CXXFLAGS!$CXXFLAGS$ac_delim
21166 LDFLAGS!$LDFLAGS$ac_delim
21167 CPPFLAGS!$CPPFLAGS$ac_delim
21168 ac_ct_CXX!$ac_ct_CXX$ac_delim
21169 EXEEXT!$EXEEXT$ac_delim
21170 OBJEXT!$OBJEXT$ac_delim
21171 DEPDIR!$DEPDIR$ac_delim
21172 am__include!$am__include$ac_delim
21173 am__quote!$am__quote$ac_delim
21174 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21175 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21176 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21177 CXXDEPMODE!$CXXDEPMODE$ac_delim
21178 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21179 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21180 build!$build$ac_delim
21181 build_cpu!$build_cpu$ac_delim
21182 build_vendor!$build_vendor$ac_delim
21183 build_os!$build_os$ac_delim
21184 host!$host$ac_delim
21185 host_cpu!$host_cpu$ac_delim
21186 host_vendor!$host_vendor$ac_delim
21187 host_os!$host_os$ac_delim
21189 CFLAGS!$CFLAGS$ac_delim
21190 ac_ct_CC!$ac_ct_CC$ac_delim
21191 CCDEPMODE!$CCDEPMODE$ac_delim
21192 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21193 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21195 GREP!$GREP$ac_delim
21196 EGREP!$EGREP$ac_delim
21197 LN_S!$LN_S$ac_delim
21198 ECHO!$ECHO$ac_delim
21200 RANLIB!$RANLIB$ac_delim
21203 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21205 elif $ac_last_try; then
21206 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21207 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21208 { (exit 1); exit 1; }; }
21210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21214 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21215 if test -n "$ac_eof"; then
21216 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21217 ac_eof=`expr $ac_eof + 1`
21220 cat >>$CONFIG_STATUS <<_ACEOF
21221 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21225 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21226 s/^/s,@/; s/!/@,|#_!!_#|/
21229 s/'"$ac_delim"'$/,g/; t
21231 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21232 ' >>$CONFIG_STATUS <conf$$subs.sed
21233 rm -f conf$$subs.sed
21234 cat >>$CONFIG_STATUS <<_ACEOF
21240 for ac_last_try in false false false false false :; do
21241 cat >conf$$subs.sed <<_ACEOF
21242 DSYMUTIL!$DSYMUTIL$ac_delim
21243 NMEDIT!$NMEDIT$ac_delim
21245 CXXCPP!$CXXCPP$ac_delim
21247 FFLAGS!$FFLAGS$ac_delim
21248 ac_ct_F77!$ac_ct_F77$ac_delim
21249 LIBTOOL!$LIBTOOL$ac_delim
21250 LIBOBJS!$LIBOBJS$ac_delim
21251 LTLIBOBJS!$LTLIBOBJS$ac_delim
21254 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21256 elif $ac_last_try; then
21257 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21258 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21259 { (exit 1); exit 1; }; }
21261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21265 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21266 if test -n "$ac_eof"; then
21267 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21268 ac_eof=`expr $ac_eof + 1`
21271 cat >>$CONFIG_STATUS <<_ACEOF
21272 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21276 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21277 s/^/s,@/; s/!/@,|#_!!_#|/
21280 s/'"$ac_delim"'$/,g/; t
21282 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21283 ' >>$CONFIG_STATUS <conf$$subs.sed
21284 rm -f conf$$subs.sed
21285 cat >>$CONFIG_STATUS <<_ACEOF
21292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21294 # trailing colons and then remove the whole line if VPATH becomes empty
21295 # (actually we leave an empty line to preserve line numbers).
21296 if test "x$srcdir" = x.; then
21297 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21298 s/:*\$(srcdir):*/:/
21299 s/:*\${srcdir}:*/:/
21301 s/^\([^=]*=[ ]*\):*/\1/
21307 cat >>$CONFIG_STATUS <<\_ACEOF
21308 fi # test -n "$CONFIG_FILES"
21311 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21314 :[FHLC]) ac_mode=$ac_tag; continue;;
21316 case $ac_mode$ac_tag in
21318 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21319 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21320 { (exit 1); exit 1; }; };;
21321 :[FH]-) ac_tag=-:-;;
21322 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21339 -) ac_f="$tmp/stdin";;
21340 *) # Look for the file first in the build tree, then in the source tree
21341 # (if the path is not absolute). The absolute path cannot be DOS-style,
21342 # because $ac_f cannot contain `:'.
21346 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21348 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21349 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21350 { (exit 1); exit 1; }; };;
21352 ac_file_inputs="$ac_file_inputs $ac_f"
21355 # Let's still pretend it is `configure' which instantiates (i.e., don't
21356 # use $as_me), people would be surprised to read:
21357 # /* config.h. Generated by config.status. */
21358 configure_input="Generated from "`IFS=:
21359 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21360 if test x"$ac_file" != x-; then
21361 configure_input="$ac_file. $configure_input"
21362 { echo "$as_me:$LINENO: creating $ac_file" >&5
21363 echo "$as_me: creating $ac_file" >&6;}
21367 *:-:* | *:-) cat >"$tmp/stdin";;
21372 ac_dir=`$as_dirname -- "$ac_file" ||
21373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21374 X"$ac_file" : 'X\(//\)[^/]' \| \
21375 X"$ac_file" : 'X\(//\)$' \| \
21376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21382 /^X\(\/\/\)[^/].*/{
21397 -*) as_dir=./$as_dir;;
21399 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21403 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21404 *) as_qdir=$as_dir;;
21406 as_dirs="'$as_qdir' $as_dirs"
21407 as_dir=`$as_dirname -- "$as_dir" ||
21408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21409 X"$as_dir" : 'X\(//\)[^/]' \| \
21410 X"$as_dir" : 'X\(//\)$' \| \
21411 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21417 /^X\(\/\/\)[^/].*/{
21430 test -d "$as_dir" && break
21432 test -z "$as_dirs" || eval "mkdir $as_dirs"
21433 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21434 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21435 { (exit 1); exit 1; }; }; }
21439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21442 # A ".." for each directory in $ac_dir_suffix.
21443 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21444 case $ac_top_builddir_sub in
21445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21449 ac_abs_top_builddir=$ac_pwd
21450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21451 # for backward compatibility:
21452 ac_top_builddir=$ac_top_build_prefix
21455 .) # We are building in place.
21457 ac_top_srcdir=$ac_top_builddir_sub
21458 ac_abs_top_srcdir=$ac_pwd ;;
21459 [\\/]* | ?:[\\/]* ) # Absolute name.
21460 ac_srcdir=$srcdir$ac_dir_suffix;
21461 ac_top_srcdir=$srcdir
21462 ac_abs_top_srcdir=$srcdir ;;
21463 *) # Relative name.
21464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21465 ac_top_srcdir=$ac_top_build_prefix$srcdir
21466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21478 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21479 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21481 ac_MKDIR_P=$MKDIR_P
21483 [\\/$]* | ?:[\\/]* ) ;;
21484 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489 # If the template does not know about datarootdir, expand it.
21490 # FIXME: This hack should be removed a few years after 2.60.
21491 ac_datarootdir_hack=; ac_datarootdir_seen=
21493 case `sed -n '/datarootdir/ {
21502 ' $ac_file_inputs` in
21503 *datarootdir*) ac_datarootdir_seen=yes;;
21504 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21505 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21506 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21508 cat >>$CONFIG_STATUS <<_ACEOF
21509 ac_datarootdir_hack='
21510 s&@datadir@&$datadir&g
21511 s&@docdir@&$docdir&g
21512 s&@infodir@&$infodir&g
21513 s&@localedir@&$localedir&g
21514 s&@mandir@&$mandir&g
21515 s&\\\${datarootdir}&$datarootdir&g' ;;
21519 # Neutralize VPATH when `$srcdir' = `.'.
21520 # Shell code in configure.ac might set extrasub.
21521 # FIXME: do we really want to maintain this feature?
21522 cat >>$CONFIG_STATUS <<_ACEOF
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21529 s&@configure_input@&$configure_input&;t t
21530 s&@top_builddir@&$ac_top_builddir_sub&;t t
21531 s&@srcdir@&$ac_srcdir&;t t
21532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21533 s&@top_srcdir@&$ac_top_srcdir&;t t
21534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21535 s&@builddir@&$ac_builddir&;t t
21536 s&@abs_builddir@&$ac_abs_builddir&;t t
21537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21538 s&@INSTALL@&$ac_INSTALL&;t t
21539 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21540 $ac_datarootdir_hack
21541 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21546 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21547 which seems to be undefined. Please make sure it is defined." >&5
21548 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21549 which seems to be undefined. Please make sure it is defined." >&2;}
21553 -) cat "$tmp/out"; rm -f "$tmp/out";;
21554 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21563 # Transform confdefs.h into a sed script `conftest.defines', that
21564 # substitutes the proper values into config.h.in to produce config.h.
21565 rm -f conftest.defines conftest.tail
21566 # First, append a space to every undef/define line, to ease matching.
21567 echo 's/$/ /' >conftest.defines
21568 # Then, protect against being on the right side of a sed subst, or in
21569 # an unquoted here document, in config.status. If some macros were
21570 # called several times there might be several #defines for the same
21571 # symbol, which is useless. But do not sort them, since the last
21572 # AC_DEFINE must be honored.
21573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21574 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21575 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21576 # PARAMS is the parameter list in the macro definition--in most cases, it's
21577 # just an empty string.
21578 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21579 ac_dB='\\)[ (].*,\\1define\\2'
21587 s/^[ ]*#[ ]*define[ ][ ]*//
21592 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21593 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21594 ' >>conftest.defines
21596 # Remove the space that was appended to ease matching.
21597 # Then replace #undef with comments. This is necessary, for
21598 # example, in the case of _POSIX_SOURCE, which is predefined and required
21599 # on some systems where configure will not decide to define it.
21600 # (The regexp can be short, since the line contains either #define or #undef.)
21602 s,^[ #]*u.*,/* & */,' >>conftest.defines
21604 # Break up conftest.defines:
21605 ac_max_sed_lines=50
21607 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21608 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21609 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21611 ac_in='$ac_file_inputs'
21612 ac_out='"$tmp/out1"'
21613 ac_nxt='"$tmp/out2"'
21617 # Write a here document:
21618 cat >>$CONFIG_STATUS <<_ACEOF
21619 # First, check the format of the line:
21620 cat >"\$tmp/defines.sed" <<\\CEOF
21621 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21622 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21626 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21628 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21629 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21630 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21631 grep . conftest.tail >/dev/null || break
21632 rm -f conftest.defines
21633 mv conftest.tail conftest.defines
21635 rm -f conftest.defines conftest.tail
21637 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21638 cat >>$CONFIG_STATUS <<\_ACEOF
21639 if test x"$ac_file" != x-; then
21640 echo "/* $configure_input */" >"$tmp/config.h"
21641 cat "$ac_result" >>"$tmp/config.h"
21642 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21644 echo "$as_me: $ac_file is unchanged" >&6;}
21647 mv "$tmp/config.h" $ac_file
21650 echo "/* $configure_input */"
21654 # Compute $ac_file's index in $config_headers.
21657 for _am_header in $config_headers :; do
21658 case $_am_header in
21659 $_am_arg | $_am_arg:* )
21662 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21665 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21666 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21667 X"$_am_arg" : 'X\(//\)[^/]' \| \
21668 X"$_am_arg" : 'X\(//\)$' \| \
21669 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21675 /^X\(\/\/\)[^/].*/{
21687 s/.*/./; q'`/stamp-h$_am_stamp_count
21690 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21691 echo "$as_me: executing $ac_file commands" >&6;}
21696 case $ac_file$ac_mode in
21697 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21698 # Strip MF so we end up with the name of the file.
21699 mf=`echo "$mf" | sed -e 's/:.*$//'`
21700 # Check whether this is an Automake generated Makefile or not.
21701 # We used to match only the files named `Makefile.in', but
21702 # some people rename them; so instead we look at the file content.
21703 # Grep'ing the first line is not enough: some people post-process
21704 # each Makefile.in and add a new line on top of each file to say so.
21705 # Grep'ing the whole file is not good either: AIX grep has a line
21706 # limit of 2048, but all sed's we know have understand at least 4000.
21707 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21708 dirpart=`$as_dirname -- "$mf" ||
21709 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21710 X"$mf" : 'X\(//\)[^/]' \| \
21711 X"$mf" : 'X\(//\)$' \| \
21712 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21718 /^X\(\/\/\)[^/].*/{
21734 # Extract the definition of DEPDIR, am__include, and am__quote
21735 # from the Makefile without running `make'.
21736 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21737 test -z "$DEPDIR" && continue
21738 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21739 test -z "am__include" && continue
21740 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21741 # When using ansi2knr, U may be empty or an underscore; expand it
21742 U=`sed -n 's/^U = //p' < "$mf"`
21743 # Find all dependency output files, they are included files with
21744 # $(DEPDIR) in their names. We invoke sed twice because it is the
21745 # simplest approach to changing $(DEPDIR) to its actual value in the
21747 for file in `sed -n "
21748 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21749 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21750 # Make sure the directory exists.
21751 test -f "$dirpart/$file" && continue
21752 fdir=`$as_dirname -- "$file" ||
21753 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21754 X"$file" : 'X\(//\)[^/]' \| \
21755 X"$file" : 'X\(//\)$' \| \
21756 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21762 /^X\(\/\/\)[^/].*/{
21775 { as_dir=$dirpart/$fdir
21777 -*) as_dir=./$as_dir;;
21779 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21783 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21784 *) as_qdir=$as_dir;;
21786 as_dirs="'$as_qdir' $as_dirs"
21787 as_dir=`$as_dirname -- "$as_dir" ||
21788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21789 X"$as_dir" : 'X\(//\)[^/]' \| \
21790 X"$as_dir" : 'X\(//\)$' \| \
21791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21797 /^X\(\/\/\)[^/].*/{
21810 test -d "$as_dir" && break
21812 test -z "$as_dirs" || eval "mkdir $as_dirs"
21813 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21814 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21815 { (exit 1); exit 1; }; }; }
21816 # echo "creating $dirpart/$file"
21817 echo '# dummy' > "$dirpart/$file"
21826 { (exit 0); exit 0; }
21828 chmod +x $CONFIG_STATUS
21829 ac_clean_files=$ac_clean_files_save
21832 # configure is writing to config.log, and then calls config.status.
21833 # config.status does its own redirection, appending to config.log.
21834 # Unfortunately, on DOS this fails, as config.log is still kept open
21835 # by configure, so config.status won't be able to write to it; its
21836 # output is simply discarded. So we exec the FD to /dev/null,
21837 # effectively closing config.log, so it can be properly (re)opened and
21838 # appended to by config.status. When coming back to configure, we
21839 # need to make the FD available again.
21840 if test "$no_create" != yes; then
21842 ac_config_status_args=
21843 test "$silent" = yes &&
21844 ac_config_status_args="$ac_config_status_args --quiet"
21846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21849 # would make configure fail if this is the last instruction.
21850 $ac_cs_success || { (exit 1); exit 1; }