2 # From configure.in Id: 03855d8ef42a83e02c2c57833127e6e5c7fdb2bf .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for ldapcpplib .
6 # Report bugs to <http://www.openldap.org/its/ >.
8 # Copyright 2000-2015 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
12 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
17 # This configure script is free software; the Free Software Foundation
18 # gives unlimited permission to copy, distribute and modify it.
19 ## -------------------- ##
20 ## M4sh Initialization. ##
21 ## -------------------- ##
23 # Be more Bourne compatible
24 DUALCASE=1; export DUALCASE # for MKS sh
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
33 case `(set -o) 2>/dev/null` in #(
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 # Prefer a ksh shell builtin over an external printf program on Solaris,
50 # but without wasting forks for bash or zsh.
51 if test -z "$BASH_VERSION$ZSH_VERSION" \
52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo_n='print -rn --'
55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61 as_echo_n='/usr/ucb/echo -n'
63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68 expr "X$arg" : "X\\(.*\\)$as_nl";
69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74 as_echo_n='sh -c $as_echo_n_body as_echo'
77 as_echo='sh -c $as_echo_body as_echo'
80 # The user is always right.
81 if test "${PATH_SEPARATOR+set}" != set; then
83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
91 # We need space, tab and new line, in precisely that order. Quoting is
92 # there to prevent editors from complaining about space-tab.
93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
94 # splitting by setting IFS to empty value.)
97 # Find who we are. Look in the path if we contain no directory separator.
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
173 exitcode=1; echo positional parameters were not saved.
175 test x\$exitcode = x0 || exit 1"
176 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org and
238 $0: http://www.openldap.org/its/ about your system,
239 $0: including any error possibly output before this
240 $0: message. Then install a modern shell, or manually run
241 $0: the script under such a shell if you do have one."
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Unset more variables known to interfere with behavior of common tools.
250 CLICOLOR_FORCE= GREP_OPTIONS=
251 unset CLICOLOR_FORCE GREP_OPTIONS
253 ## --------------------- ##
254 ## M4sh Shell Functions. ##
255 ## --------------------- ##
258 # Portably unset VAR.
261 { eval $1=; unset $1;}
265 # as_fn_set_status STATUS
266 # -----------------------
267 # Set $? to STATUS, without forking.
275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 # Create "$as_dir" as a directory, including parents if necessary.
290 -*) as_dir=./$as_dir;;
292 test -d "$as_dir" || eval $as_mkdir_p || {
296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 as_dirs="'$as_qdir' $as_dirs"
300 as_dir=`$as_dirname -- "$as_dir" ||
301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
302 X"$as_dir" : 'X\(//\)[^/]' \| \
303 X"$as_dir" : 'X\(//\)$' \| \
304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
305 $as_echo X"$as_dir" |
306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
323 test -d "$as_dir" && break
325 test -z "$as_dirs" || eval "mkdir $as_dirs"
326 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 # as_fn_append VAR VALUE
331 # ----------------------
332 # Append the text in VALUE to the end of the definition contained in VAR. Take
333 # advantage of any shell optimizations that allow amortized linear growth over
334 # repeated appends, instead of the typical quadratic growth present in naive
336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
337 eval 'as_fn_append ()
350 # Perform arithmetic evaluation on the ARGs, and store the result in the
351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
352 # must be portable across $(()) and expr.
353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
361 as_val=`expr "$@" || test $? -eq 1`
366 # as_fn_error ERROR [LINENO LOG_FD]
367 # ---------------------------------
368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
370 # script with status $?, using 1 if that was 0.
373 as_status=$?; test $as_status -eq 0 && as_status=1
375 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378 $as_echo "$as_me: error: $1" >&2
379 as_fn_exit $as_status
382 if expr a : '\(a\)' >/dev/null 2>&1 &&
383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_me=`$as_basename -- "$0" ||
402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
403 X"$0" : 'X\(//\)$' \| \
404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 # Avoid depending upon Character Ranges.
421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
424 as_cr_digits='0123456789'
425 as_cr_alnum=$as_cr_Letters$as_cr_digits
428 as_lineno_1=$LINENO as_lineno_1a=$LINENO
429 as_lineno_2=$LINENO as_lineno_2a=$LINENO
430 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
431 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
432 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 chmod +x "$as_me.lineno" ||
449 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
459 ECHO_C= ECHO_N= ECHO_T=
460 case `echo -n x` in #(((((
462 case `echo 'xy\c'` in
463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
472 rm -f conf$$ conf$$.exe conf$$.file
473 if test -d conf$$.dir; then
474 rm -f conf$$.dir/conf$$.file
477 mkdir conf$$.dir 2>/dev/null
479 if (echo >conf$$.file) 2>/dev/null; then
480 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 # ... but there are two gotchas:
483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
485 # In both cases, we have to default to `cp -p'.
486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 elif ln conf$$.file conf$$ 2>/dev/null; then
496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
497 rmdir conf$$.dir 2>/dev/null
499 if mkdir -p . 2>/dev/null; then
500 as_mkdir_p='mkdir -p "$as_dir"'
502 test -d ./-p && rmdir ./-p
506 if test -x / >/dev/null 2>&1; then
509 if ls -dL / >/dev/null 2>&1; then
516 if test -d "$1"; then
522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
523 ???[sx]*):;;*)false;;esac;fi
527 as_executable_p=$as_test_x
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 # Check that we are running under the correct shell.
538 SHELL=${CONFIG_SHELL-/bin/sh}
542 # Remove one level of quotation (which was required for Make).
543 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548 if test "X$1" = X--no-reexec; then
549 # Discard the --no-reexec flag, and continue.
551 elif test "X$1" = X--fallback-echo; then
552 # Avoid inline document here, it may be left over
554 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
555 # Yippee, $echo works!
558 # Restart under the correct shell.
559 exec $SHELL "$0" --no-reexec ${1+"$@"}
562 if test "X$1" = X--fallback-echo; then
563 # used as fallback echo
571 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575 if test -z "$ECHO"; then
576 if test "X${echo_test_string+set}" != Xset; then
577 # find a string as large as possible, as long as the shell can cope with it
578 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
579 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
580 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
581 echo_test_string=`eval $cmd` &&
582 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
589 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
598 # So, first we look for a working echo in the user's PATH.
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
613 if test "X$echo" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
620 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
644 echo="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 echo="$CONFIG_SHELL $0 --fallback-echo"
651 # maybe with a smaller string...
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 # Oops. We lost completely, so just stick with echo.
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
679 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 tagnames=${tagnames+${tagnames},}CXX
688 tagnames=${tagnames+${tagnames},}F77
690 test -n "$DJDIR" || exec 7<&0 </dev/null
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
710 # Identity of this package.
711 PACKAGE_NAME='ldapcpplib'
712 PACKAGE_TARNAME='ldapcpplib'
714 PACKAGE_STRING='ldapcpplib '
715 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
718 ac_unique_file="src/LDAPConnection.h"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
722 #ifdef HAVE_SYS_TYPES_H
723 # include <sys/types.h>
725 #ifdef HAVE_SYS_STAT_H
726 # include <sys/stat.h>
732 # ifdef HAVE_STDLIB_H
737 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
742 #ifdef HAVE_STRINGS_H
743 # include <strings.h>
745 #ifdef HAVE_INTTYPES_H
746 # include <inttypes.h>
755 ac_subst_vars='LTLIBOBJS
802 OPENLDAP_CPP_API_VERSION
811 INSTALL_STRIP_PROGRAM
853 program_transform_name
866 enable_option_checking
867 enable_dependency_tracking
879 ac_precious_vars='build_alias
896 # Initialize some variables set by options.
898 ac_init_version=false
899 ac_unrecognized_opts=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
910 program_transform_name=s,x,x,
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 htmldir=$ac_optarg ;;
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1083 -libdir | --libdir | --libdi | --libd)
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1174 -psdir | --psdir | --psdi | --psd | --ps)
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 sbindir=$ac_optarg ;;
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 sharedstatedir=$ac_optarg ;;
1200 -site | --site | --sit)
1202 -site=* | --site=* | --sit=*)
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1258 eval with_$ac_useropt=no ;;
1261 # Obsolete; use --with-x.
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) as_fn_error "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information."
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1311 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1329 # Be sure to have absolute directory names.
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error "pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures ldapcpplib to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of ldapcpplib :";;
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --disable-dependency-tracking speeds up one-time build
1514 --enable-dependency-tracking do not reject slow dependency extractors
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 --with-pic try to use only PIC/non-PIC objects [default=use
1528 --with-tags[=TAGS] include additional configurations [automatic]
1529 --with-libldap=DIR Path to the libldap library /usr/local/lib
1530 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1532 Some influential environment variables:
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CC C compiler command
1541 CFLAGS C compiler flags
1543 CXXCPP C++ preprocessor
1544 F77 Fortran 77 compiler command
1545 FFLAGS Fortran 77 compiler flags
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to <http://www.openldap.org/its/ >.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1613 ldapcpplib configure
1614 generated by GNU Autoconf 2.65
1616 Copyright (C) 2009 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1620 Copyright 2000-2015 The OpenLDAP Foundation. All rights reserved.
1621 Restrictions apply, see COPYRIGHT and LICENSE files.
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1630 # ac_fn_cxx_try_compile LINENO
1631 # ----------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_cxx_try_compile ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext
1637 if { { ac_try="$ac_compile"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_cxx_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext; then :
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 as_fn_set_status $ac_retval
1666 } # ac_fn_cxx_try_compile
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_compile
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 $as_test_x conftest$ac_exeext
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_c_try_link
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } >/dev/null && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 as_fn_set_status $ac_retval
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1794 ac_fn_c_check_header_mongrel ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1818 ac_header_compiler=no
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1834 ac_header_preproc=no
1836 rm -f conftest.err conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ## -------------------------------------------- ##
1861 ## Report this to http://www.openldap.org/its/ ##
1862 ## -------------------------------------------- ##
1864 ) | sed "s/^/$as_me: WARNING: /" >&2
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1872 eval "$3=\$ac_header_compiler"
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_header_mongrel
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 as_fn_set_status $ac_retval
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_header_compile
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1978 # include <limits.h>
1980 # include <assert.h>
1985 /* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1992 /* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995 #if defined __stub_$2 || defined __stub___$2
2007 if ac_fn_c_try_link "$LINENO"; then :
2012 rm -f core conftest.err conftest.$ac_objext \
2013 conftest$ac_exeext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 } # ac_fn_c_check_func
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if { { ac_try="$ac_cpp conftest.$ac_ext"
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } >/dev/null && {
2044 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045 test ! -s conftest.err
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_cxx_try_cpp
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext conftest$ac_exeext
2066 if { { ac_try="$ac_link"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>conftest.err
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_cxx_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest$ac_exeext && {
2085 test "$cross_compiling" = yes ||
2086 $as_test_x conftest$ac_exeext
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2095 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097 # interfere with the next link command; also delete a directory that is
2098 # left behind by Apple's compiler. We do this before executing the actions.
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_cxx_try_link
2105 # ac_fn_f77_try_compile LINENO
2106 # ----------------------------
2107 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_f77_try_compile ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext
2112 if { { ac_try="$ac_compile"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_compile") 2>conftest.err
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_f77_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest.$ac_objext; then :
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139 as_fn_set_status $ac_retval
2141 } # ac_fn_f77_try_compile
2143 # ac_fn_f77_try_link LINENO
2144 # -------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_f77_try_link ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 rm -f conftest.$ac_objext conftest$ac_exeext
2150 if { { ac_try="$ac_link"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>conftest.err
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } && {
2166 test -z "$ac_f77_werror_flag" ||
2167 test ! -s conftest.err
2168 } && test -s conftest$ac_exeext && {
2169 test "$cross_compiling" = yes ||
2170 $as_test_x conftest$ac_exeext
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2180 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2181 # interfere with the next link command; also delete a directory that is
2182 # left behind by Apple's compiler. We do this before executing the actions.
2183 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 as_fn_set_status $ac_retval
2187 } # ac_fn_f77_try_link
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2192 It was created by ldapcpplib $as_me , which was
2193 generated by GNU Autoconf 2.65. Invocation command line was
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2253 ac_must_keep_next=false
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2282 -* ) ac_must_keep_next=true ;;
2285 as_fn_append ac_configure_args " '$ac_arg'"
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2304 ## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##
2309 # The following way of writing the cache mishandles newlines in values,
2311 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2312 eval ac_val=\$$ac_var
2316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 _ | IFS | as_nl) ;; #(
2321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2322 *) { eval $ac_var=; unset $ac_var;} ;;
2327 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2328 *${as_nl}ac_space=\ *)
2330 "s/'\''/'\''\\\\'\'''\''/g;
2331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2342 ## ----------------- ##
2343 ## Output variables. ##
2344 ## ----------------- ##
2347 for ac_var in $ac_subst_vars
2349 eval ac_val=\$$ac_var
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 $as_echo "$ac_var='\''$ac_val'\''"
2357 if test -n "$ac_subst_files"; then
2359 ## ------------------- ##
2360 ## File substitutions. ##
2361 ## ------------------- ##
2364 for ac_var in $ac_subst_files
2366 eval ac_val=\$$ac_var
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 $as_echo "$ac_var='\''$ac_val'\''"
2375 if test -s confdefs.h; then
2385 test "$ac_signal" != 0 &&
2386 $as_echo "$as_me: caught signal $ac_signal"
2387 $as_echo "$as_me: exit $exit_status"
2389 rm -f core *.core core.conftest.* &&
2390 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2393 for ac_signal in 1 2 13 15; do
2394 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2399 rm -f -r conftest* confdefs.h
2401 $as_echo "/* confdefs.h */" > confdefs.h
2403 # Predefined preprocessor variables.
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_NAME "$PACKAGE_NAME"
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_STRING "$PACKAGE_STRING"
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_URL "$PACKAGE_URL"
2430 # Let the site file select an alternate cache file if it wants to.
2431 # Prefer an explicitly selected file to automatically selected ones.
2434 if test -n "$CONFIG_SITE"; then
2435 ac_site_file1=$CONFIG_SITE
2436 elif test "x$prefix" != xNONE; then
2437 ac_site_file1=$prefix/share/config.site
2438 ac_site_file2=$prefix/etc/config.site
2440 ac_site_file1=$ac_default_prefix/share/config.site
2441 ac_site_file2=$ac_default_prefix/etc/config.site
2443 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445 test "x$ac_site_file" = xNONE && continue
2446 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2448 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2449 sed 's/^/| /' "$ac_site_file" >&5
2454 if test -r "$cache_file"; then
2455 # Some versions of bash will fail to source /dev/null (special files
2456 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2457 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2459 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2462 *) . "./$cache_file";;
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2467 $as_echo "$as_me: creating cache $cache_file" >&6;}
2471 # Check that the precious variables saved in the cache have kept the same
2473 ac_cache_corrupted=false
2474 for ac_var in $ac_precious_vars; do
2475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476 eval ac_new_set=\$ac_env_${ac_var}_set
2477 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478 eval ac_new_val=\$ac_env_${ac_var}_value
2479 case $ac_old_set,$ac_new_set in
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2490 if test "x$ac_old_val" != "x$ac_new_val"; then
2491 # differences in whitespace do not lead to failure.
2492 ac_old_val_w=`echo x $ac_old_val`
2493 ac_new_val_w=`echo x $ac_new_val`
2494 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497 ac_cache_corrupted=:
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501 eval $ac_var=\$ac_old_val
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2504 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2506 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 # Pass precious variables to config.status.
2510 if test "$ac_new_set" = set; then
2512 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513 *) ac_arg=$ac_var=$ac_new_val ;;
2515 case " $ac_configure_args " in
2516 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2517 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2521 if $ac_cache_corrupted; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528 ## -------------------- ##
2529 ## Main body of script. ##
2530 ## -------------------- ##
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 am__api_version='1.10'
2543 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2544 for ac_t in install-sh install.sh shtool; do
2545 if test -f "$ac_dir/$ac_t"; then
2547 ac_install_sh="$ac_aux_dir/$ac_t -c"
2552 if test -z "$ac_aux_dir"; then
2553 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if test "${ac_cv_path_install+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2634 rm -rf conftest.one conftest.two conftest.dir
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2662 echo timestamp > conftest.file
2663 # Do `set' in a subshell so we don't clobber the current shell's
2664 # arguments. Must try -L first in case configure is actually a
2665 # symlink; some systems play weird games with the mod time of symlinks
2666 # (eg FreeBSD returns the mod time of the symlink's containing
2669 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2670 if test "$*" = "X"; then
2672 set X `ls -t $srcdir/configure conftest.file`
2675 if test "$*" != "X $srcdir/configure conftest.file" \
2676 && test "$*" != "X conftest.file $srcdir/configure"; then
2678 # If neither matched, then we have a broken ls. This can happen
2679 # if, for instance, CONFIG_SHELL is bash and it inherits a
2680 # broken ls alias from the environment. This has actually
2681 # happened. Such a system could not be considered "sane".
2682 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2686 test "$2" = conftest.file
2692 as_fn_error "newly created file is older than distributed files!
2693 Check your system clock" "$LINENO" 5
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696 $as_echo "yes" >&6; }
2697 test "$program_prefix" != NONE &&
2698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699 # Use a double $ so make ignores it.
2700 test "$program_suffix" != NONE &&
2701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702 # Double any \ or $.
2703 # By default was `s,x,x', remove it if useless.
2704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2710 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2711 # Use eval to expand $SHELL
2712 if eval "$MISSING --run true"; then
2713 am_missing_run="$MISSING --run "
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2717 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2722 if test -z "$MKDIR_P"; then
2723 if test "${ac_cv_path_mkdir+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2730 test -z "$as_dir" && as_dir=.
2731 for ac_prog in mkdir gmkdir; do
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2734 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2735 'mkdir (GNU coreutils) '* | \
2736 'mkdir (coreutils) '* | \
2737 'mkdir (fileutils) '4.1*)
2738 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2748 test -d ./--version && rmdir ./--version
2749 if test "${ac_cv_path_mkdir+set}" = set; then
2750 MKDIR_P="$ac_cv_path_mkdir -p"
2752 # As a last resort, use the slow shell script. Don't cache a
2753 # value for MKDIR_P within a source directory, because that will
2754 # break other packages using the cache if that directory is
2755 # removed, or if the value is a relative name.
2756 MKDIR_P="$ac_install_sh -d"
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2760 $as_echo "$MKDIR_P" >&6; }
2764 [\\/$]* | ?:[\\/]*) ;;
2765 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2768 for ac_prog in gawk mawk nawk awk
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_AWK+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$AWK"; then
2778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_AWK="$ac_prog"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$AWK"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800 $as_echo "$AWK" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2807 test -n "$AWK" && break
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2815 $as_echo_n "(cached) " >&6
2817 cat >conftest.make <<\_ACEOF
2820 @echo '@@@%%%=$(MAKE)=@@@%%%'
2822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2825 eval ac_cv_prog_make_${ac_make}_set=yes;;
2827 eval ac_cv_prog_make_${ac_make}_set=no;;
2831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 SET_MAKE="MAKE=${MAKE-make}"
2841 rm -rf .tst 2>/dev/null
2842 mkdir .tst 2>/dev/null
2843 if test -d .tst; then
2848 rmdir .tst 2>/dev/null
2850 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2851 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2852 # is not polluted with repeated "-I."
2853 am__isrc=' -I$(srcdir)'
2854 # test to see if srcdir already configured
2855 if test -f $srcdir/config.status; then
2856 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2860 # test whether we have cygpath
2861 if test -z "$CYGPATH_W"; then
2862 if (cygpath --version) >/dev/null 2>/dev/null; then
2863 CYGPATH_W='cygpath -w'
2870 # Define the identity of the package.
2871 PACKAGE='ldapcpplib'
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE "$PACKAGE"
2880 cat >>confdefs.h <<_ACEOF
2881 #define VERSION "$VERSION"
2884 # Some tools Automake needs.
2886 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2889 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2892 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2895 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2898 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2902 # Installed binaries are usually stripped using `strip' when the user
2903 # run `make install-strip'. However `strip' might not be the right
2904 # tool to use in cross-compilation environments, therefore Automake
2905 # will honor the `STRIP' environment variable to overrule this program.
2906 if test "$cross_compiling" != no; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_STRIP+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$STRIP"; then
2916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 STRIP=$ac_cv_prog_STRIP
2936 if test -n "$STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938 $as_echo "$STRIP" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$ac_cv_prog_STRIP"; then
2948 # Extract the first word of "strip", so it can be a program name with args.
2949 set dummy strip; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$ac_ct_STRIP"; then
2956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_ac_ct_STRIP="strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2976 if test -n "$ac_ct_STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978 $as_echo "$ac_ct_STRIP" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2984 if test "x$ac_ct_STRIP" = x; then
2987 case $cross_compiling:$ac_tool_warned in
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2996 STRIP="$ac_cv_prog_STRIP"
3000 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002 # We need awk for the "check" target. The system "awk" is bad on
3004 # Always define AMTAR for backward compatibility.
3006 AMTAR=${AMTAR-"${am_missing_run}tar"}
3008 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3014 ac_config_headers="$ac_config_headers src/config.h"
3017 eval `$ac_aux_dir/version.sh`
3018 if test -z "$OL_CPP_API_RELEASE"; then
3019 as_fn_error "could not determine version" "$LINENO" 5
3022 VERSION=$OL_CPP_API_RELEASE
3023 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033 if test -n "$CCC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CXX+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$CXX"; then
3047 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test -n "$CXX"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3069 $as_echo "$CXX" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3076 test -n "$CXX" && break
3079 if test -z "$CXX"; then
3081 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3090 if test -n "$ac_ct_CXX"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_ac_ct_CXX="$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3113 $as_echo "$ac_ct_CXX" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3120 test -n "$ac_ct_CXX" && break
3123 if test "x$ac_ct_CXX" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3142 for ac_option in --version -v -V -qversion; do
3143 { { ac_try="$ac_compiler $ac_option >&5"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3152 if test -s conftest.err; then
3154 ... rest of stderr output deleted ...
3155 10q' conftest.err >conftest.er1
3156 cat conftest.er1 >&5
3158 rm -f conftest.er1 conftest.err
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 # Try to create an executable without -o first, disregard a.out.
3177 # It will help us diagnose broken compilers, and finding out an intuition
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3180 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183 # The possible output files:
3184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3187 for ac_file in $ac_files
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 if { { ac_try="$ac_link_default"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_link_default") 2>&5
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; then :
3207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3210 # so that the user can short-circuit this test for compilers unknown to
3212 for ac_file in $ac_files ''
3214 test -f "$ac_file" || continue
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3219 # We found the default executable, but exeext='' is most
3223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 # We set ac_cv_exeext here because the later test for it is not
3228 # safe: cross compilers may not add the suffix if given an `-o'
3229 # argument, so we may need to know it at that point already.
3230 # Even if this section looks crufty: it has the advantage of
3237 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242 if test -z "$ac_file"; then :
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 { as_fn_set_status 77
3251 as_fn_error "C++ compiler cannot create executables
3252 See \`config.log' for more details." "$LINENO" 5; }; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3258 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260 $as_echo "$ac_file" >&6; }
3261 ac_exeext=$ac_cv_exeext
3263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266 $as_echo_n "checking for suffix of executables... " >&6; }
3267 if { { ac_try="$ac_link"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_link") 2>&5
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3280 # work properly (i.e., refer to `conftest.exe'), while it won't with
3282 for ac_file in conftest.exe conftest conftest.*; do
3283 test -f "$ac_file" || continue
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error "cannot compute suffix of executables: cannot compile and link
3295 See \`config.log' for more details." "$LINENO" 5; }
3297 rm -f conftest conftest$ac_cv_exeext
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299 $as_echo "$ac_cv_exeext" >&6; }
3301 rm -f conftest.$ac_ext
3302 EXEEXT=$ac_cv_exeext
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3317 ac_clean_files="$ac_clean_files conftest.out"
3318 # Check that the compiler produces executables we can run. If not, either
3319 # the compiler is broken, or we cross compile.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321 $as_echo_n "checking whether we are cross compiling... " >&6; }
3322 if test "$cross_compiling" != yes; then
3323 { { ac_try="$ac_link"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3334 if { ac_try='./conftest$ac_cv_exeext'
3335 { { case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_try") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; }; then
3347 if test "$cross_compiling" = maybe; then
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error "cannot run C++ compiled programs.
3353 If you meant to cross compile, use \`--host'.
3354 See \`config.log' for more details." "$LINENO" 5; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359 $as_echo "$cross_compiling" >&6; }
3361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364 $as_echo_n "checking for suffix of object files... " >&6; }
3365 if test "${ac_cv_objext+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 rm -f conftest.o conftest.obj
3380 if { { ac_try="$ac_compile"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compile") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 for ac_file in conftest.o conftest.obj conftest.*; do
3392 test -f "$ac_file" || continue;
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error "cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." "$LINENO" 5; }
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3433 if ac_fn_cxx_try_compile "$LINENO"; then :
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3449 ac_test_CXXFLAGS=${CXXFLAGS+set}
3450 ac_save_CXXFLAGS=$CXXFLAGS
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3453 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3457 ac_cxx_werror_flag=yes
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 if ac_fn_cxx_try_compile "$LINENO"; then :
3472 ac_cv_prog_cxx_g=yes
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 if ac_fn_cxx_try_compile "$LINENO"; then :
3489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3502 if ac_fn_cxx_try_compile "$LINENO"; then :
3503 ac_cv_prog_cxx_g=yes
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3514 if test "$ac_test_CXXFLAGS" = set; then
3515 CXXFLAGS=$ac_save_CXXFLAGS
3516 elif test $ac_cv_prog_cxx_g = yes; then
3517 if test "$GXX" = yes; then
3523 if test "$GXX" = yes; then
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 DEPDIR="${am__leading_dot}deps"
3536 ac_config_commands="$ac_config_commands depfiles"
3539 am_make=${MAKE-make}
3540 cat > confinc << 'END'
3545 # If we don't find an include directive, just comment out the code.
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3547 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3551 # First try GNU make style include.
3552 echo "include confinc" > confmf
3553 # We grep out `Entering directory' and `Leaving directory'
3554 # messages which can occur if `w' ends up in MAKEFLAGS.
3555 # In particular we don't look at `^make:' because GNU make might
3556 # be invoked under some other name (usually "gmake"), in which
3557 # case it prints its new name instead of `make'.
3558 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3563 # Now try BSD make style include.
3564 if test "$am__include" = "#"; then
3565 echo '.include "confinc"' > confmf
3566 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3567 am__include=.include
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3575 $as_echo "$_am_result" >&6; }
3576 rm -f confinc confmf
3578 # Check whether --enable-dependency-tracking was given.
3579 if test "${enable_dependency_tracking+set}" = set; then :
3580 enableval=$enable_dependency_tracking;
3583 if test "x$enable_dependency_tracking" != xno; then
3584 am_depcomp="$ac_aux_dir/depcomp"
3587 if test "x$enable_dependency_tracking" != xno; then
3597 depcc="$CXX" am_compiler_list=
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3600 $as_echo_n "checking dependency style of $depcc... " >&6; }
3601 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3605 # We make a subdir and do the tests there. Otherwise we can end up
3606 # making bogus files that we don't know about and never remove. For
3607 # instance it was reported that on HP-UX the gcc test will end up
3608 # making a dummy file named `D' -- because `-MD' means `put the output
3611 # Copy depcomp to subdir because otherwise we won't find it if we're
3612 # using a relative directory.
3613 cp "$am_depcomp" conftest.dir
3615 # We will build objects and dependencies in a subdirectory because
3616 # it helps to detect inapplicable dependency modes. For instance
3617 # both Tru64's cc and ICC support -MD to output dependencies as a
3618 # side effect of compilation, but ICC will put the dependencies in
3619 # the current directory while Tru64 will put them in the object
3623 am_cv_CXX_dependencies_compiler_type=none
3624 if test "$am_compiler_list" = ""; then
3625 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3627 for depmode in $am_compiler_list; do
3628 # Setup a source with many dependencies, because some compilers
3629 # like to wrap large dependency lists on column 80 (with \), and
3630 # we should not choose a depcomp mode which is confused by this.
3632 # We need to recreate these files for each test, as the compiler may
3633 # overwrite some of them when testing with obscure command lines.
3634 # This happens at least with the AIX C compiler.
3636 for i in 1 2 3 4 5 6; do
3637 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3638 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3639 # Solaris 8's {/usr,}/bin/sh.
3640 touch sub/conftst$i.h
3642 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3646 # after this tag, mechanisms are not by side-effect, so they'll
3647 # only be used when explicitly requested
3648 if test "x$enable_dependency_tracking" = xyes; then
3656 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3657 # mode. It turns out that the SunPro C++ compiler does not properly
3658 # handle `-M -o', and we need to detect this.
3659 if depmode=$depmode \
3660 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3662 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3663 >/dev/null 2>conftest.err &&
3664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3666 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3668 # icc doesn't choke on unknown options, it will just issue warnings
3669 # or remarks (even with -Werror). So we grep stderr for any message
3670 # that says an option was ignored or not supported.
3671 # When given -MP, icc 7.0 and 7.1 complain thusly:
3672 # icc: Command line warning: ignoring option '-M'; no argument required
3673 # The diagnosis changed in icc 8.0:
3674 # icc: Command line remark: option '-MP' not supported
3675 if (grep 'ignoring option' conftest.err ||
3676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3677 am_cv_CXX_dependencies_compiler_type=$depmode
3686 am_cv_CXX_dependencies_compiler_type=none
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3691 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3692 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3695 test "x$enable_dependency_tracking" != xno \
3696 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3697 am__fastdepCXX_TRUE=
3698 am__fastdepCXX_FALSE='#'
3700 am__fastdepCXX_TRUE='#'
3701 am__fastdepCXX_FALSE=
3705 # Check whether --enable-shared was given.
3706 if test "${enable_shared+set}" = set; then :
3707 enableval=$enable_shared; p=${PACKAGE-default}
3709 yes) enable_shared=yes ;;
3710 no) enable_shared=no ;;
3713 # Look at the argument we got. We use all the common list separators.
3714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3715 for pkg in $enableval; do
3717 if test "X$pkg" = "X$p"; then
3729 # Check whether --enable-static was given.
3730 if test "${enable_static+set}" = set; then :
3731 enableval=$enable_static; p=${PACKAGE-default}
3733 yes) enable_static=yes ;;
3734 no) enable_static=no ;;
3737 # Look at the argument we got. We use all the common list separators.
3738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3739 for pkg in $enableval; do
3741 if test "X$pkg" = "X$p"; then
3753 # Check whether --enable-fast-install was given.
3754 if test "${enable_fast_install+set}" = set; then :
3755 enableval=$enable_fast_install; p=${PACKAGE-default}
3757 yes) enable_fast_install=yes ;;
3758 no) enable_fast_install=no ;;
3760 enable_fast_install=no
3761 # Look at the argument we got. We use all the common list separators.
3762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3763 for pkg in $enableval; do
3765 if test "X$pkg" = "X$p"; then
3766 enable_fast_install=yes
3773 enable_fast_install=yes
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782 $as_echo_n "checking build system type... " >&6; }
3783 if test "${ac_cv_build+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3786 ac_build_alias=$build_alias
3787 test "x$ac_build_alias" = x &&
3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789 test "x$ac_build_alias" = x &&
3790 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3792 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3796 $as_echo "$ac_cv_build" >&6; }
3797 case $ac_cv_build in
3799 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3802 ac_save_IFS=$IFS; IFS='-'
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3816 $as_echo_n "checking host system type... " >&6; }
3817 if test "${ac_cv_host+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3820 if test "x$host_alias" = x; then
3821 ac_cv_host=$ac_cv_build
3823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3824 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3829 $as_echo "$ac_cv_host" >&6; }
3832 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3835 ac_save_IFS=$IFS; IFS='-'
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_CC+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 if test -n "$CC"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884 $as_echo "$CC" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3892 if test -z "$ac_cv_prog_CC"; then
3894 # Extract the first word of "gcc", so it can be a program name with args.
3895 set dummy gcc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3901 if test -n "$ac_ct_CC"; then
3902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_ac_ct_CC="gcc"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922 if test -n "$ac_ct_CC"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924 $as_echo "$ac_ct_CC" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3930 if test "x$ac_ct_CC" = x; then
3933 case $cross_compiling:$ac_tool_warned in
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3945 if test -z "$CC"; then
3946 if test -n "$ac_tool_prefix"; then
3947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}cc; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC="${ac_tool_prefix}cc"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3986 if test -z "$CC"; then
3987 # Extract the first word of "cc", so it can be a program name with args.
3988 set dummy cc; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if test "${ac_cv_prog_CC+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006 ac_prog_rejected=yes
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 if test $ac_prog_rejected = yes; then
4018 # We found a bogon in the path, so make sure we never use it.
4019 set dummy $ac_cv_prog_CC
4021 if test $# != 0; then
4022 # We chose a different compiler from the bogus one.
4023 # However, it has the same basename, so the bogon will be chosen
4024 # first if we set CC to just the basename; use the full file name.
4026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 for ac_prog in cl.exe
4046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4083 test -n "$CC" && break
4086 if test -z "$CC"; then
4088 for ac_prog in cl.exe
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4097 if test -n "$ac_ct_CC"; then
4098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_ac_ct_CC="$ac_prog"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120 $as_echo "$ac_ct_CC" >&6; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4127 test -n "$ac_ct_CC" && break
4130 if test "x$ac_ct_CC" = x; then
4133 case $cross_compiling:$ac_tool_warned in
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4137 ac_tool_warned=yes ;;
4146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 as_fn_error "no acceptable C compiler found in \$PATH
4149 See \`config.log' for more details." "$LINENO" 5; }
4151 # Provide some information about the compiler.
4152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4155 for ac_option in --version -v -V -qversion; do
4156 { { ac_try="$ac_compiler $ac_option >&5"
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162 $as_echo "$ac_try_echo"; } >&5
4163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4165 if test -s conftest.err; then
4167 ... rest of stderr output deleted ...
4168 10q' conftest.err >conftest.er1
4169 cat conftest.er1 >&5
4171 rm -f conftest.er1 conftest.err
4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4177 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4178 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4195 if ac_fn_c_try_compile "$LINENO"; then :
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4206 if test $ac_compiler_gnu = yes; then
4211 ac_test_CFLAGS=${CFLAGS+set}
4212 ac_save_CFLAGS=$CFLAGS
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4215 if test "${ac_cv_prog_cc_g+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4218 ac_save_c_werror_flag=$ac_c_werror_flag
4219 ac_c_werror_flag=yes
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4233 if ac_fn_c_try_compile "$LINENO"; then :
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4248 if ac_fn_c_try_compile "$LINENO"; then :
4251 ac_c_werror_flag=$ac_save_c_werror_flag
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4264 if ac_fn_c_try_compile "$LINENO"; then :
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_c_werror_flag=$ac_save_c_werror_flag
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4275 $as_echo "$ac_cv_prog_cc_g" >&6; }
4276 if test "$ac_test_CFLAGS" = set; then
4277 CFLAGS=$ac_save_CFLAGS
4278 elif test $ac_cv_prog_cc_g = yes; then
4279 if test "$GCC" = yes; then
4285 if test "$GCC" = yes; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4292 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4293 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4296 ac_cv_prog_cc_c89=no
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4302 #include <sys/types.h>
4303 #include <sys/stat.h>
4304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4305 struct buf { int x; };
4306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4307 static char *e (p, i)
4313 static char *f (char * (*g) (char **, int), char **p, ...)
4318 s = g (p, va_arg (v,int));
4323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4324 function prototypes and stuff, but not '\xHH' hex character constants.
4325 These don't provoke an error unfortunately, instead are silently treated
4326 as 'x'. The following induces an error, until -std is added to get
4327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4328 array size at least. It's necessary to write '\x00'==0 to get something
4329 that's true only with -std. */
4330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4333 inside strings and character constants. */
4335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4337 int test (int i, double x);
4338 struct s1 {int (*f) (int a);};
4339 struct s2 {int (*f) (double a);};
4340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4354 CC="$ac_save_CC $ac_arg"
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_prog_cc_c89=$ac_arg
4358 rm -f core conftest.err conftest.$ac_objext
4359 test "x$ac_cv_prog_cc_c89" != "xno" && break
4361 rm -f conftest.$ac_ext
4366 case "x$ac_cv_prog_cc_c89" in
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4369 $as_echo "none needed" >&6; } ;;
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372 $as_echo "unsupported" >&6; } ;;
4374 CC="$CC $ac_cv_prog_cc_c89"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4376 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4378 if test "x$ac_cv_prog_cc_c89" != xno; then :
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 depcc="$CC" am_compiler_list=
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4391 $as_echo_n "checking dependency style of $depcc... " >&6; }
4392 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4396 # We make a subdir and do the tests there. Otherwise we can end up
4397 # making bogus files that we don't know about and never remove. For
4398 # instance it was reported that on HP-UX the gcc test will end up
4399 # making a dummy file named `D' -- because `-MD' means `put the output
4402 # Copy depcomp to subdir because otherwise we won't find it if we're
4403 # using a relative directory.
4404 cp "$am_depcomp" conftest.dir
4406 # We will build objects and dependencies in a subdirectory because
4407 # it helps to detect inapplicable dependency modes. For instance
4408 # both Tru64's cc and ICC support -MD to output dependencies as a
4409 # side effect of compilation, but ICC will put the dependencies in
4410 # the current directory while Tru64 will put them in the object
4414 am_cv_CC_dependencies_compiler_type=none
4415 if test "$am_compiler_list" = ""; then
4416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4418 for depmode in $am_compiler_list; do
4419 # Setup a source with many dependencies, because some compilers
4420 # like to wrap large dependency lists on column 80 (with \), and
4421 # we should not choose a depcomp mode which is confused by this.
4423 # We need to recreate these files for each test, as the compiler may
4424 # overwrite some of them when testing with obscure command lines.
4425 # This happens at least with the AIX C compiler.
4427 for i in 1 2 3 4 5 6; do
4428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4429 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4430 # Solaris 8's {/usr,}/bin/sh.
4431 touch sub/conftst$i.h
4433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4437 # after this tag, mechanisms are not by side-effect, so they'll
4438 # only be used when explicitly requested
4439 if test "x$enable_dependency_tracking" = xyes; then
4447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4448 # mode. It turns out that the SunPro C++ compiler does not properly
4449 # handle `-M -o', and we need to detect this.
4450 if depmode=$depmode \
4451 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4454 >/dev/null 2>conftest.err &&
4455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459 # icc doesn't choke on unknown options, it will just issue warnings
4460 # or remarks (even with -Werror). So we grep stderr for any message
4461 # that says an option was ignored or not supported.
4462 # When given -MP, icc 7.0 and 7.1 complain thusly:
4463 # icc: Command line warning: ignoring option '-M'; no argument required
4464 # The diagnosis changed in icc 8.0:
4465 # icc: Command line remark: option '-MP' not supported
4466 if (grep 'ignoring option' conftest.err ||
4467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468 am_cv_CC_dependencies_compiler_type=$depmode
4477 am_cv_CC_dependencies_compiler_type=none
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4482 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4483 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4486 test "x$enable_dependency_tracking" != xno \
4487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4489 am__fastdepCC_FALSE='#'
4491 am__fastdepCC_TRUE='#'
4492 am__fastdepCC_FALSE=
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4497 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4498 if test "${lt_cv_path_SED+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4501 # Loop through the user's path and test for sed and gsed.
4502 # Then use that list of sed's as ones to test for truncation.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for lt_ac_prog in sed gsed; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4511 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4519 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4520 # along with /bin/sed that truncates output.
4521 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4522 test ! -f $lt_ac_sed && continue
4523 cat /dev/null > conftest.in
4525 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4526 # Check for GNU sed and select it if it is found.
4527 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4528 lt_cv_path_SED=$lt_ac_sed
4532 cat conftest.in conftest.in >conftest.tmp
4533 mv conftest.tmp conftest.in
4534 cp conftest.in conftest.nl
4536 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4537 cmp -s conftest.out conftest.nl || break
4538 # 10000 chars as input seems more than enough
4539 test $lt_ac_count -gt 10 && break
4540 lt_ac_count=`expr $lt_ac_count + 1`
4541 if test $lt_ac_count -gt $lt_ac_max; then
4542 lt_ac_max=$lt_ac_count
4543 lt_cv_path_SED=$lt_ac_sed
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4553 $as_echo "$SED" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if test "${ac_cv_path_GREP+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -z "$GREP"; then
4561 ac_path_GREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in grep ggrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573 # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4579 $as_echo_n 0123456789 >"conftest.in"
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'GREP' >> "conftest.nl"
4586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_GREP="$ac_path_GREP"
4592 ac_path_GREP_max=$ac_count
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 $ac_path_GREP_found && break 3
4605 if test -z "$ac_cv_path_GREP"; then
4606 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4609 ac_cv_path_GREP=$GREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615 GREP="$ac_cv_path_GREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if test "${ac_cv_path_EGREP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624 then ac_cv_path_EGREP="$GREP -E"
4626 if test -z "$EGREP"; then
4627 ac_path_EGREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in egrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639 # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4645 $as_echo_n 0123456789 >"conftest.in"
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'EGREP' >> "conftest.nl"
4652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_EGREP="$ac_path_EGREP"
4658 ac_path_EGREP_max=$ac_count
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 $ac_path_EGREP_found && break 3
4671 if test -z "$ac_cv_path_EGREP"; then
4672 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675 ac_cv_path_EGREP=$EGREP
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682 EGREP="$ac_cv_path_EGREP"
4686 # Check whether --with-gnu-ld was given.
4687 if test "${with_gnu_ld+set}" = set; then :
4688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4694 if test "$GCC" = yes; then
4695 # Check if gcc -print-prog-name=ld gives a path.
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4697 $as_echo_n "checking for ld used by $CC... " >&6; }
4700 # gcc leaves a trailing carriage return which upsets mingw
4701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4706 # Accept absolute paths.
4708 re_direlt='/[^/][^/]*/\.\./'
4709 # Canonicalize the pathname of ld
4710 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4712 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4714 test -z "$LD" && LD="$ac_prog"
4717 # If it fails, then pretend we aren't using GCC.
4721 # If it is relative, then search for the first ld in PATH.
4725 elif test "$with_gnu_ld" = yes; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4727 $as_echo_n "checking for GNU ld... " >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4730 $as_echo_n "checking for non-GNU ld... " >&6; }
4732 if test "${lt_cv_path_LD+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4735 if test -z "$LD"; then
4736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4737 for ac_dir in $PATH; do
4739 test -z "$ac_dir" && ac_dir=.
4740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4741 lt_cv_path_LD="$ac_dir/$ac_prog"
4742 # Check to see if the program is GNU ld. I'd rather use --version,
4743 # but apparently some variants of GNU ld only accept -v.
4744 # Break only if it was the GNU/non-GNU ld that we prefer.
4745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4746 *GNU* | *'with BFD'*)
4747 test "$with_gnu_ld" != no && break
4750 test "$with_gnu_ld" != yes && break
4757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4762 if test -n "$LD"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4764 $as_echo "$LD" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4769 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4776 case `$LD -v 2>&1 </dev/null` in
4777 *GNU* | *'with BFD'*)
4778 lt_cv_prog_gnu_ld=yes
4781 lt_cv_prog_gnu_ld=no
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4787 with_gnu_ld=$lt_cv_prog_gnu_ld
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4791 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4792 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4795 lt_cv_ld_reload_flag='-r'
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4798 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4799 reload_flag=$lt_cv_ld_reload_flag
4800 case $reload_flag in
4802 *) reload_flag=" $reload_flag" ;;
4804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4807 if test "$GCC" = yes; then
4808 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4816 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4817 if test "${lt_cv_path_NM+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4820 if test -n "$NM"; then
4821 # Let the user override the test.
4824 lt_nm_to_check="${ac_tool_prefix}nm"
4825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4826 lt_nm_to_check="$lt_nm_to_check nm"
4828 for lt_tmp_nm in $lt_nm_to_check; do
4829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4832 test -z "$ac_dir" && ac_dir=.
4833 tmp_nm="$ac_dir/$lt_tmp_nm"
4834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4835 # Check to see if the nm accepts a BSD-compat flag.
4836 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4837 # nm: unknown option "B" ignored
4838 # Tru64's nm complains that /dev/null is an invalid object file
4839 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4840 */dev/null* | *'Invalid file or object type'*)
4841 lt_cv_path_NM="$tmp_nm -B"
4845 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4847 lt_cv_path_NM="$tmp_nm -p"
4851 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4852 continue # so that we can try to find one that supports BSD flags
4861 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4865 $as_echo "$lt_cv_path_NM" >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4869 $as_echo_n "checking whether ln -s works... " >&6; }
4871 if test "$LN_S" = "ln -s"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873 $as_echo "yes" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4876 $as_echo "no, using $LN_S" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4880 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4881 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4884 lt_cv_file_magic_cmd='$MAGIC_CMD'
4885 lt_cv_file_magic_test_file=
4886 lt_cv_deplibs_check_method='unknown'
4887 # Need to set the preceding variable on all platforms that support
4888 # interlibrary dependencies.
4889 # 'none' -- dependencies not supported.
4890 # `unknown' -- same as none, but documents that we really don't know.
4891 # 'pass_all' -- all dependencies passed with no checks.
4892 # 'test_compile' -- check by making test program.
4893 # 'file_magic [[regex]]' -- check by looking for files in library path
4894 # which responds to the $file_magic_cmd with a given extended regex.
4895 # If you have `file' or equivalent on your system and you're not sure
4896 # whether `pass_all' will *always* work, you probably want this one.
4900 lt_cv_deplibs_check_method=pass_all
4904 lt_cv_deplibs_check_method=pass_all
4908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4909 lt_cv_file_magic_cmd='/usr/bin/file -L'
4910 lt_cv_file_magic_test_file=/shlib/libc.so
4914 # func_win32_libid is a shell function defined in ltmain.sh
4915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916 lt_cv_file_magic_cmd='func_win32_libid'
4920 # Base MSYS/MinGW do not provide the 'file' command needed by
4921 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4922 # unless we find 'file', for example because we are cross-compiling.
4923 if ( file / ) >/dev/null 2>&1; then
4924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925 lt_cv_file_magic_cmd='func_win32_libid'
4927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4928 lt_cv_file_magic_cmd='$OBJDUMP -f'
4932 darwin* | rhapsody*)
4933 lt_cv_deplibs_check_method=pass_all
4936 freebsd* | dragonfly*)
4937 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4940 # Not sure whether the presence of OpenBSD here was a mistake.
4941 # Let's accept both of them until this is cleared up.
4942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4943 lt_cv_file_magic_cmd=/usr/bin/file
4944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4948 lt_cv_deplibs_check_method=pass_all
4953 lt_cv_deplibs_check_method=pass_all
4956 hpux10.20* | hpux11*)
4957 lt_cv_file_magic_cmd=/usr/bin/file
4960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4964 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]'
4965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4979 irix5* | irix6* | nonstopux*)
4981 *-32|*"-32 ") libmagic=32-bit;;
4982 *-n32|*"-n32 ") libmagic=N32;;
4983 *-64|*"-64 ") libmagic=64-bit;;
4984 *) libmagic=never-match;;
4986 lt_cv_deplibs_check_method=pass_all
4989 # This must be Linux ELF.
4990 linux* | k*bsd*-gnu)
4991 lt_cv_deplibs_check_method=pass_all
4994 netbsd* | netbsdelf*-gnu)
4995 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5004 lt_cv_file_magic_cmd=/usr/bin/file
5005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5009 lt_cv_deplibs_check_method=unknown
5013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5020 osf3* | osf4* | osf5*)
5021 lt_cv_deplibs_check_method=pass_all
5025 lt_cv_deplibs_check_method=pass_all
5029 lt_cv_deplibs_check_method=pass_all
5033 case $host_vendor in
5035 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]'
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5039 lt_cv_deplibs_check_method=pass_all
5042 lt_cv_file_magic_cmd='/bin/file'
5043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5046 lt_cv_file_magic_cmd='/bin/file'
5047 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5048 lt_cv_file_magic_test_file=/lib/libc.so
5051 lt_cv_deplibs_check_method=pass_all
5054 lt_cv_deplibs_check_method=pass_all
5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5060 lt_cv_deplibs_check_method=pass_all
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5066 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5067 file_magic_cmd=$lt_cv_file_magic_cmd
5068 deplibs_check_method=$lt_cv_deplibs_check_method
5069 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5074 # If no C compiler was specified, use CC.
5077 # If no C compiler flags were specified, use CFLAGS.
5078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5080 # Allow CC to be a program name with arguments.
5084 # Check whether --enable-libtool-lock was given.
5085 if test "${enable_libtool_lock+set}" = set; then :
5086 enableval=$enable_libtool_lock;
5089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5091 # Some flags need to be propagated to the compiler or linker for good
5095 # Find out which ABI we are using.
5096 echo 'int i;' > conftest.$ac_ext
5097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5098 (eval $ac_compile) 2>&5
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then
5102 case `/usr/bin/file conftest.$ac_objext` in
5114 # Find out which ABI we are using.
5115 echo '#line 5115 "configure"' > conftest.$ac_ext
5116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5117 (eval $ac_compile) 2>&5
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }; then
5121 if test "$lt_cv_prog_gnu_ld" = yes; then
5122 case `/usr/bin/file conftest.$ac_objext` in
5124 LD="${LD-ld} -melf32bsmip"
5127 LD="${LD-ld} -melf32bmipn32"
5130 LD="${LD-ld} -melf64bmip"
5134 case `/usr/bin/file conftest.$ac_objext` in
5150 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5151 s390*-*linux*|sparc*-*linux*)
5152 # Find out which ABI we are using.
5153 echo 'int i;' > conftest.$ac_ext
5154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5155 (eval $ac_compile) 2>&5
5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; }; then
5159 case `/usr/bin/file conftest.o` in
5162 x86_64-*kfreebsd*-gnu)
5163 LD="${LD-ld} -m elf_i386_fbsd"
5166 LD="${LD-ld} -m elf_i386"
5168 ppc64-*linux*|powerpc64-*linux*)
5169 LD="${LD-ld} -m elf32ppclinux"
5172 LD="${LD-ld} -m elf_s390"
5175 LD="${LD-ld} -m elf32_sparc"
5181 x86_64-*kfreebsd*-gnu)
5182 LD="${LD-ld} -m elf_x86_64_fbsd"
5185 LD="${LD-ld} -m elf_x86_64"
5187 ppc*-*linux*|powerpc*-*linux*)
5188 LD="${LD-ld} -m elf64ppc"
5191 LD="${LD-ld} -m elf64_s390"
5194 LD="${LD-ld} -m elf64_sparc"
5204 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5205 SAVE_CFLAGS="$CFLAGS"
5206 CFLAGS="$CFLAGS -belf"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5208 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5209 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5229 if ac_fn_c_try_link "$LINENO"; then :
5230 lt_cv_cc_needs_belf=yes
5232 lt_cv_cc_needs_belf=no
5234 rm -f core conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5244 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5245 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5247 CFLAGS="$SAVE_CFLAGS"
5251 # Find out which ABI we are using.
5252 echo 'int i;' > conftest.$ac_ext
5253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5254 (eval $ac_compile) 2>&5
5256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257 test $ac_status = 0; }; then
5258 case `/usr/bin/file conftest.o` in
5260 case $lt_cv_prog_gnu_ld in
5261 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5263 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5277 need_locks="$enable_libtool_lock"
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5287 # On Suns, sometimes $CPP names a directory.
5288 if test -n "$CPP" && test -d "$CPP"; then
5291 if test -z "$CPP"; then
5292 if test "${ac_cv_prog_CPP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 # Double quotes because CPP needs to be expanded
5296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5299 for ac_c_preproc_warn_flag in '' yes
5301 # Use a header file that comes with gcc, so configuring glibc
5302 # with a fresh cross-compiler works.
5303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5304 # <limits.h> exists even on freestanding compilers.
5305 # On the NeXT, cc -E runs the code through the compiler's parser,
5306 # not just through cpp. "Syntax error" is here to catch this case.
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5310 # include <limits.h>
5312 # include <assert.h>
5316 if ac_fn_c_try_cpp "$LINENO"; then :
5319 # Broken: fails on valid input.
5322 rm -f conftest.err conftest.$ac_ext
5324 # OK, works on sane cases. Now check whether nonexistent headers
5325 # can be detected and how.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <ac_nonexistent.h>
5330 if ac_fn_c_try_cpp "$LINENO"; then :
5331 # Broken: success on invalid input.
5334 # Passes both tests.
5338 rm -f conftest.err conftest.$ac_ext
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.err conftest.$ac_ext
5343 if $ac_preproc_ok; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5358 for ac_c_preproc_warn_flag in '' yes
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5369 # include <limits.h>
5371 # include <assert.h>
5375 if ac_fn_c_try_cpp "$LINENO"; then :
5378 # Broken: fails on valid input.
5381 rm -f conftest.err conftest.$ac_ext
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5390 # Broken: success on invalid input.
5393 # Passes both tests.
5397 rm -f conftest.err conftest.$ac_ext
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.err conftest.$ac_ext
5402 if $ac_preproc_ok; then :
5405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5408 See \`config.log' for more details." "$LINENO" 5; }
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5419 $as_echo_n "checking for ANSI C header files... " >&6; }
5420 if test "${ac_cv_header_stdc+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439 ac_cv_header_stdc=yes
5441 ac_cv_header_stdc=no
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 if test $ac_cv_header_stdc = yes; then
5446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "memchr" >/dev/null 2>&1; then :
5456 ac_cv_header_stdc=no
5462 if test $ac_cv_header_stdc = yes; then
5463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "free" >/dev/null 2>&1; then :
5473 ac_cv_header_stdc=no
5479 if test $ac_cv_header_stdc = yes; then
5480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5481 if test "$cross_compiling" = yes; then :
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5488 #if ((' ' & 0x0FF) == 0x020)
5489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5492 # define ISLOWER(c) \
5493 (('a' <= (c) && (c) <= 'i') \
5494 || ('j' <= (c) && (c) <= 'r') \
5495 || ('s' <= (c) && (c) <= 'z'))
5496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5504 for (i = 0; i < 256; i++)
5505 if (XOR (islower (i), ISLOWER (i))
5506 || toupper (i) != TOUPPER (i))
5511 if ac_fn_c_try_run "$LINENO"; then :
5514 ac_cv_header_stdc=no
5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5517 conftest.$ac_objext conftest.beam conftest.$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5523 $as_echo "$ac_cv_header_stdc" >&6; }
5524 if test $ac_cv_header_stdc = yes; then
5526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5532 inttypes.h stdint.h unistd.h
5534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5537 eval as_val=\$$as_ac_Header
5538 if test "x$as_val" = x""yes; then :
5539 cat >>confdefs.h <<_ACEOF
5540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548 for ac_header in dlfcn.h
5550 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_DLFCN_H 1
5562 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5563 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5564 (test "X$CXX" != "Xg++"))) ; then
5566 ac_cpp='$CXXCPP $CPPFLAGS'
5567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5571 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5572 if test -z "$CXXCPP"; then
5573 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5574 $as_echo_n "(cached) " >&6
5576 # Double quotes because CXXCPP needs to be expanded
5577 for CXXCPP in "$CXX -E" "/lib/cpp"
5580 for ac_cxx_preproc_warn_flag in '' yes
5582 # Use a header file that comes with gcc, so configuring glibc
5583 # with a fresh cross-compiler works.
5584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 # <limits.h> exists even on freestanding compilers.
5586 # On the NeXT, cc -E runs the code through the compiler's parser,
5587 # not just through cpp. "Syntax error" is here to catch this case.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5591 # include <limits.h>
5593 # include <assert.h>
5597 if ac_fn_cxx_try_cpp "$LINENO"; then :
5600 # Broken: fails on valid input.
5603 rm -f conftest.err conftest.$ac_ext
5605 # OK, works on sane cases. Now check whether nonexistent headers
5606 # can be detected and how.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <ac_nonexistent.h>
5611 if ac_fn_cxx_try_cpp "$LINENO"; then :
5612 # Broken: success on invalid input.
5615 # Passes both tests.
5619 rm -f conftest.err conftest.$ac_ext
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5629 ac_cv_prog_CXXCPP=$CXXCPP
5632 CXXCPP=$ac_cv_prog_CXXCPP
5634 ac_cv_prog_CXXCPP=$CXXCPP
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5637 $as_echo "$CXXCPP" >&6; }
5639 for ac_cxx_preproc_warn_flag in '' yes
5641 # Use a header file that comes with gcc, so configuring glibc
5642 # with a fresh cross-compiler works.
5643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5644 # <limits.h> exists even on freestanding compilers.
5645 # On the NeXT, cc -E runs the code through the compiler's parser,
5646 # not just through cpp. "Syntax error" is here to catch this case.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5650 # include <limits.h>
5652 # include <assert.h>
5656 if ac_fn_cxx_try_cpp "$LINENO"; then :
5659 # Broken: fails on valid input.
5662 rm -f conftest.err conftest.$ac_ext
5664 # OK, works on sane cases. Now check whether nonexistent headers
5665 # can be detected and how.
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <ac_nonexistent.h>
5670 if ac_fn_cxx_try_cpp "$LINENO"; then :
5671 # Broken: success on invalid input.
5674 # Passes both tests.
5678 rm -f conftest.err conftest.$ac_ext
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then :
5686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5688 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5689 See \`config.log' for more details." "$LINENO" 5; }
5693 ac_cpp='$CXXCPP $CPPFLAGS'
5694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5703 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5705 if test -n "$ac_tool_prefix"; then
5706 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
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_F77+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$F77"; then
5716 ac_cv_prog_F77="$F77" # Let the user override the test.
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 if test -n "$F77"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5738 $as_echo "$F77" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 test -n "$F77" && break
5748 if test -z "$F77"; then
5750 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
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5759 if test -n "$ac_ct_F77"; then
5760 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_F77="$ac_prog"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5780 if test -n "$ac_ct_F77"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5782 $as_echo "$ac_ct_F77" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5789 test -n "$ac_ct_F77" && break
5792 if test "x$ac_ct_F77" = x; then
5795 case $cross_compiling:$ac_tool_warned in
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5806 # Provide some information about the compiler.
5807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5810 for ac_option in --version -v -V -qversion; do
5811 { { ac_try="$ac_compiler $ac_option >&5"
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817 $as_echo "$ac_try_echo"; } >&5
5818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5820 if test -s conftest.err; then
5822 ... rest of stderr output deleted ...
5823 10q' conftest.err >conftest.er1
5824 cat conftest.er1 >&5
5826 rm -f conftest.er1 conftest.err
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }
5832 # If we don't use `.F' as extension, the preprocessor is not run on the
5833 # input file. (Note that this only needs to work for GNU compilers.)
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5837 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5838 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5841 cat > conftest.$ac_ext <<_ACEOF
5849 if ac_fn_f77_try_compile "$LINENO"; then :
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5859 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5861 ac_test_FFLAGS=${FFLAGS+set}
5862 ac_save_FFLAGS=$FFLAGS
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5865 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5866 if test "${ac_cv_prog_f77_g+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5870 cat > conftest.$ac_ext <<_ACEOF
5875 if ac_fn_f77_try_compile "$LINENO"; then :
5876 ac_cv_prog_f77_g=yes
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5884 $as_echo "$ac_cv_prog_f77_g" >&6; }
5885 if test "$ac_test_FFLAGS" = set; then
5886 FFLAGS=$ac_save_FFLAGS
5887 elif test $ac_cv_prog_f77_g = yes; then
5888 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5894 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5901 if test $ac_compiler_gnu = yes; then
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5914 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5915 # find the maximum length of command line arguments
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5917 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5918 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5926 # On DJGPP, this test can blow up pretty badly due to problems in libc
5927 # (any single argument exceeding 2000 bytes causes a buffer overrun
5928 # during glob expansion). Even if it were fixed, the result of this
5929 # check would be larger than it should be.
5930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5934 # Under GNU Hurd, this test is not required because there is
5935 # no limit to the length of command line arguments.
5936 # Libtool will interpret -1 as no limit whatsoever
5937 lt_cv_sys_max_cmd_len=-1;
5941 # On Win9x/ME, this test blows up -- it succeeds, but takes
5942 # about 5 minutes as the teststring grows exponentially.
5943 # Worse, since 9x/ME are not pre-emptively multitasking,
5944 # you end up with a "frozen" computer, even though with patience
5945 # the test eventually succeeds (with a max line length of 256k).
5946 # Instead, let's just punt: use the minimum linelength reported by
5947 # all of the supported platforms: 8192 (on NT/2K/XP).
5948 lt_cv_sys_max_cmd_len=8192;
5952 # On AmigaOS with pdksh, this test takes hours, literally.
5953 # So we just punt and use a minimum line length of 8192.
5954 lt_cv_sys_max_cmd_len=8192;
5957 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5958 # This has been around since 386BSD, at least. Likely further.
5959 if test -x /sbin/sysctl; then
5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961 elif test -x /usr/sbin/sysctl; then
5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5966 # And add a safety zone
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5972 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973 lt_cv_sys_max_cmd_len=196608
5977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5979 # nice to cause kernel panics so lets avoid the loop below.
5980 # First set a reasonable default.
5981 lt_cv_sys_max_cmd_len=16384
5983 if test -x /sbin/sysconfig; then
5984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5990 lt_cv_sys_max_cmd_len=102400
5992 sysv5* | sco5v6* | sysv4.2uw2*)
5993 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5994 if test -n "$kargmax"; then
5995 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5997 lt_cv_sys_max_cmd_len=32768
6001 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6002 if test -n "$lt_cv_sys_max_cmd_len"; then
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6006 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6007 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6008 = "XX$teststring") >/dev/null 2>&1 &&
6009 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6010 lt_cv_sys_max_cmd_len=$new_result &&
6011 test $i != 17 # 1/2 MB should be enough
6014 teststring=$teststring$teststring
6017 # Add a significant safety factor because C++ compilers can tack on massive
6018 # amounts of additional arguments before passing them to the linker.
6019 # It appears as though 1/2 is a usable value.
6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6027 if test -n $lt_cv_sys_max_cmd_len ; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6032 $as_echo "none" >&6; }
6039 # Check for command to grab the raw symbol name followed by C symbol from nm.
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6041 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6042 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6046 # These are sane defaults that work on at least a few old systems.
6047 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6049 # Character class describing NM global symbol codes.
6050 symcode='[BCDEGRST]'
6052 # Regexp to match symbols that can be accessed directly from C.
6053 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6055 # Transform an extracted symbol line into a proper C declaration
6056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6058 # Transform an extracted symbol line into symbol name and symbol address
6059 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'"
6061 # Define system-specific variables.
6066 cygwin* | mingw* | pw32*)
6067 symcode='[ABCDGISTW]'
6069 hpux*) # Its linker distinguishes data from code symbols
6070 if test "$host_cpu" = ia64; then
6071 symcode='[ABCDEGRST]'
6073 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6074 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'"
6076 linux* | k*bsd*-gnu)
6077 if test "$host_cpu" = ia64; then
6078 symcode='[ABCDGIRSTW]'
6079 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6080 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'"
6084 symcode='[BCDEGRST]'
6087 symcode='[BCDEGQRST]'
6098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6106 # Handle CRLF in mingw tool chain
6110 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6114 # If we're using GNU nm, then use its standard symbol codes.
6115 case `$NM -V 2>&1` in
6116 *GNU* | *'with BFD'*)
6117 symcode='[ABCDGIRSTW]' ;;
6120 # Try without a prefix undercore, then with it.
6121 for ac_symprfx in "" "_"; do
6123 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6124 symxfrm="\\1 $ac_symprfx\\2 \\2"
6126 # Write the raw and C identifiers.
6127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6129 # Check to see that the pipe works correctly.
6133 cat > conftest.$ac_ext <<EOF
6138 void nm_test_func(){}
6142 int main(){nm_test_var='a';nm_test_func();return(0);}
6145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6146 (eval $ac_compile) 2>&5
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }; then
6150 # Now try to grab the symbols.
6152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6153 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; } && test -s "$nlist"; then
6157 # Try sorting and uniquifying the output.
6158 if sort "$nlist" | uniq > "$nlist"T; then
6159 mv -f "$nlist"T "$nlist"
6164 # Make sure that we snagged all the symbols we need.
6165 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6166 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6167 cat <<EOF > conftest.$ac_ext
6173 # Now generate the symbol file.
6174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6176 cat <<EOF >> conftest.$ac_ext
6177 #if defined (__STDC__) && __STDC__
6178 # define lt_ptr_t void *
6180 # define lt_ptr_t char *
6184 /* The mapping between symbol names and symbols. */
6189 lt_preloaded_symbols[] =
6192 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6193 cat <<\EOF >> conftest.$ac_ext
6201 # Now try linking the two files.
6202 mv conftest.$ac_objext conftstm.$ac_objext
6203 lt_save_LIBS="$LIBS"
6204 lt_save_CFLAGS="$CFLAGS"
6205 LIBS="conftstm.$ac_objext"
6206 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6208 (eval $ac_link) 2>&5
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6214 LIBS="$lt_save_LIBS"
6215 CFLAGS="$lt_save_CFLAGS"
6217 echo "cannot find nm_test_func in $nlist" >&5
6220 echo "cannot find nm_test_var in $nlist" >&5
6223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6226 echo "$progname: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 rm -rf conftest* conftst*
6231 # Do not use the global_symbol_pipe unless it works.
6232 if test "$pipe_works" = yes; then
6235 lt_cv_sys_global_symbol_pipe=
6241 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6242 lt_cv_sys_global_symbol_to_cdecl=
6244 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6246 $as_echo "failed" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6249 $as_echo "ok" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6253 $as_echo_n "checking for objdir... " >&6; }
6254 if test "${lt_cv_objdir+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 rm -f .libs 2>/dev/null
6258 mkdir .libs 2>/dev/null
6259 if test -d .libs; then
6262 # MS-DOS does not allow filenames that begin with a dot.
6265 rmdir .libs 2>/dev/null
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6268 $as_echo "$lt_cv_objdir" >&6; }
6269 objdir=$lt_cv_objdir
6277 # AIX sometimes has problems with the GCC collect2 program. For some
6278 # reason, if we set the COLLECT_NAMES environment variable, the problems
6279 # vanish in a puff of smoke.
6280 if test "X${COLLECT_NAMES+set}" != Xset; then
6282 export COLLECT_NAMES
6287 # Sed substitution that helps us do robust quoting. It backslashifies
6288 # metacharacters that are still active within double-quoted strings.
6289 Xsed='sed -e 1s/^X//'
6290 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6292 # Same as above, but do not quote variable references.
6293 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6295 # Sed substitution to delay expansion of an escaped shell variable in a
6296 # double_quote_subst'ed string.
6297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6299 # Sed substitution to avoid accidental globbing in evaled expressions
6300 no_glob_subst='s/\*/\\\*/g'
6306 default_ofile=libtool
6307 can_build_shared=yes
6309 # All known linkers require a `.a' archive for static linking (except MSVC,
6310 # which needs '.lib').
6312 ltmain="$ac_aux_dir/ltmain.sh"
6313 ofile="$default_ofile"
6314 with_gnu_ld="$lt_cv_prog_gnu_ld"
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}ar; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_AR+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$AR"; then
6325 ac_cv_prog_AR="$AR" # Let the user override the test.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_AR="${ac_tool_prefix}ar"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 if test -n "$AR"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6347 $as_echo "$AR" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6355 if test -z "$ac_cv_prog_AR"; then
6357 # Extract the first word of "ar", so it can be a program name with args.
6358 set dummy ar; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$ac_ct_AR"; then
6365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_AR="ar"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6385 if test -n "$ac_ct_AR"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6387 $as_echo "$ac_ct_AR" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6393 if test "x$ac_ct_AR" = x; then
6396 case $cross_compiling:$ac_tool_warned in
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned=yes ;;
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6416 if test -n "$RANLIB"; then
6417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 RANLIB=$ac_cv_prog_RANLIB
6437 if test -n "$RANLIB"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6439 $as_echo "$RANLIB" >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6447 if test -z "$ac_cv_prog_RANLIB"; then
6448 ac_ct_RANLIB=$RANLIB
6449 # Extract the first word of "ranlib", so it can be a program name with args.
6450 set dummy ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 if test -n "$ac_ct_RANLIB"; then
6457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_ac_ct_RANLIB="ranlib"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6477 if test -n "$ac_ct_RANLIB"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6479 $as_echo "$ac_ct_RANLIB" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6485 if test "x$ac_ct_RANLIB" = x; then
6488 case $cross_compiling:$ac_tool_warned in
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6492 ac_tool_warned=yes ;;
6494 RANLIB=$ac_ct_RANLIB
6497 RANLIB="$ac_cv_prog_RANLIB"
6500 if test -n "$ac_tool_prefix"; then
6501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}strip; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if test "${ac_cv_prog_STRIP+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6508 if test -n "$STRIP"; then
6509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 STRIP=$ac_cv_prog_STRIP
6529 if test -n "$STRIP"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6531 $as_echo "$STRIP" >&6; }
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6539 if test -z "$ac_cv_prog_STRIP"; then
6541 # Extract the first word of "strip", so it can be a program name with args.
6542 set dummy strip; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$ac_ct_STRIP"; then
6549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_ac_ct_STRIP="strip"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6569 if test -n "$ac_ct_STRIP"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6571 $as_echo "$ac_ct_STRIP" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6577 if test "x$ac_ct_STRIP" = x; then
6580 case $cross_compiling:$ac_tool_warned in
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6589 STRIP="$ac_cv_prog_STRIP"
6594 old_CFLAGS="$CFLAGS"
6596 # Set sane defaults for various variables
6597 test -z "$AR" && AR=ar
6598 test -z "$AR_FLAGS" && AR_FLAGS=cru
6599 test -z "$AS" && AS=as
6600 test -z "$CC" && CC=cc
6601 test -z "$LTCC" && LTCC=$CC
6602 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6603 test -z "$DLLTOOL" && DLLTOOL=dlltool
6604 test -z "$LD" && LD=ld
6605 test -z "$LN_S" && LN_S="ln -s"
6606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6607 test -z "$NM" && NM=nm
6608 test -z "$SED" && SED=sed
6609 test -z "$OBJDUMP" && OBJDUMP=objdump
6610 test -z "$RANLIB" && RANLIB=:
6611 test -z "$STRIP" && STRIP=:
6612 test -z "$ac_objext" && ac_objext=o
6614 # Determine commands to create old-style static archives.
6615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6616 old_postinstall_cmds='chmod 644 $oldlib'
6617 old_postuninstall_cmds=
6619 if test -n "$RANLIB"; then
6622 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6631 for cc_temp in $compiler""; do
6633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6642 # Only perform the check for file, if the check method requires it
6643 case $deplibs_check_method in
6645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6647 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6656 lt_save_MAGIC_CMD="$MAGIC_CMD"
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6659 for ac_dir in $ac_dummy; do
6661 test -z "$ac_dir" && ac_dir=.
6662 if test -f $ac_dir/${ac_tool_prefix}file; then
6663 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6664 if test -n "$file_magic_test_file"; then
6665 case $deplibs_check_method in
6667 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6670 $EGREP "$file_magic_regex" > /dev/null; then
6675 *** Warning: the command libtool uses to detect shared libraries,
6676 *** $file_magic_cmd, produces output that libtool cannot recognize.
6677 *** The result is that libtool may fail to recognize shared libraries
6678 *** as such. This will affect the creation of libtool libraries that
6679 *** depend on shared libraries, but programs linked with such libtool
6680 *** libraries will work regardless of this problem. Nevertheless, you
6681 *** may want to report the problem to your system manager and/or to
6682 *** bug-libtool@gnu.org
6692 MAGIC_CMD="$lt_save_MAGIC_CMD"
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if test -n "$MAGIC_CMD"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6700 $as_echo "$MAGIC_CMD" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test -z "$lt_cv_path_MAGIC_CMD"; then
6707 if test -n "$ac_tool_prefix"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6709 $as_echo_n "checking for file... " >&6; }
6710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6718 lt_save_MAGIC_CMD="$MAGIC_CMD"
6719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6721 for ac_dir in $ac_dummy; do
6723 test -z "$ac_dir" && ac_dir=.
6724 if test -f $ac_dir/file; then
6725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6726 if test -n "$file_magic_test_file"; then
6727 case $deplibs_check_method in
6729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6732 $EGREP "$file_magic_regex" > /dev/null; then
6737 *** Warning: the command libtool uses to detect shared libraries,
6738 *** $file_magic_cmd, produces output that libtool cannot recognize.
6739 *** The result is that libtool may fail to recognize shared libraries
6740 *** as such. This will affect the creation of libtool libraries that
6741 *** depend on shared libraries, but programs linked with such libtool
6742 *** libraries will work regardless of this problem. Nevertheless, you
6743 *** may want to report the problem to your system manager and/or to
6744 *** bug-libtool@gnu.org
6754 MAGIC_CMD="$lt_save_MAGIC_CMD"
6759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6760 if test -n "$MAGIC_CMD"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6762 $as_echo "$MAGIC_CMD" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6779 rhapsody* | darwin*)
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6788 if test -n "$DSYMUTIL"; then
6789 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6809 if test -n "$DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6811 $as_echo "$DSYMUTIL" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_DSYMUTIL"; then
6820 ac_ct_DSYMUTIL=$DSYMUTIL
6821 # Extract the first word of "dsymutil", so it can be a program name with args.
6822 set dummy dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$ac_ct_DSYMUTIL"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6851 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_DSYMUTIL" = x; then
6860 case $cross_compiling:$ac_tool_warned in
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6866 DSYMUTIL=$ac_ct_DSYMUTIL
6869 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6880 if test -n "$NMEDIT"; then
6881 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 NMEDIT=$ac_cv_prog_NMEDIT
6901 if test -n "$NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6903 $as_echo "$NMEDIT" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6911 if test -z "$ac_cv_prog_NMEDIT"; then
6912 ac_ct_NMEDIT=$NMEDIT
6913 # Extract the first word of "nmedit", so it can be a program name with args.
6914 set dummy nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$ac_ct_NMEDIT"; then
6921 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6941 if test -n "$ac_ct_NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6943 $as_echo "$ac_ct_NMEDIT" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$ac_ct_NMEDIT" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6958 NMEDIT=$ac_ct_NMEDIT
6961 NMEDIT="$ac_cv_prog_NMEDIT"
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6966 $as_echo_n "checking for -single_module linker flag... " >&6; }
6967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6970 lt_cv_apple_cc_single_mod=no
6971 if test -z "${LT_MULTI_MODULE}"; then
6972 # By default we will add the -single_module flag. You can override
6973 # by either setting the environment variable LT_MULTI_MODULE
6974 # non-empty at configure time, or by adding -multi_module to the
6976 echo "int foo(void){return 1;}" > conftest.c
6977 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6978 -dynamiclib ${wl}-single_module conftest.c
6979 if test -f libconftest.dylib; then
6980 lt_cv_apple_cc_single_mod=yes
6981 rm -rf libconftest.dylib*
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6990 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6993 lt_cv_ld_exported_symbols_list=no
6994 save_LDFLAGS=$LDFLAGS
6995 echo "_main" > conftest.sym
6996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7008 if ac_fn_c_try_link "$LINENO"; then :
7009 lt_cv_ld_exported_symbols_list=yes
7011 lt_cv_ld_exported_symbols_list=no
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7015 LDFLAGS="$save_LDFLAGS"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7021 rhapsody* | darwin1.[0123])
7022 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7024 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7026 # if running on 10.5 or later, the deployment target defaults
7027 # to the OS version, if on x86, and 10.4, the deployment
7028 # target defaults to 10.4. Don't you love it?
7029 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7030 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7031 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7039 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7040 _lt_dar_single_mod='$single_module'
7042 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7043 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7045 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7047 if test "$DSYMUTIL" != ":"; then
7048 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7059 # Check whether --enable-libtool-lock was given.
7060 if test "${enable_libtool_lock+set}" = set; then :
7061 enableval=$enable_libtool_lock;
7064 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7067 # Check whether --with-pic was given.
7068 if test "${with_pic+set}" = set; then :
7069 withval=$with_pic; pic_mode="$withval"
7074 test -z "$pic_mode" && pic_mode=default
7076 # Use C for the default configuration in the libtool script
7080 ac_cpp='$CPP $CPPFLAGS'
7081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086 # Source file extension for C test sources.
7089 # Object file extension for compiled C test sources.
7093 # Code to be used in simple compile tests
7094 lt_simple_compile_test_code="int some_variable = 0;"
7096 # Code to be used in simple link tests
7097 lt_simple_link_test_code='int main(){return(0);}'
7100 # If no C compiler was specified, use CC.
7103 # If no C compiler flags were specified, use CFLAGS.
7104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7106 # Allow CC to be a program name with arguments.
7110 # save warnings/boilerplate of simple test code
7111 ac_outfile=conftest.$ac_objext
7112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7114 _lt_compiler_boilerplate=`cat conftest.err`
7117 ac_outfile=conftest.$ac_objext
7118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7120 _lt_linker_boilerplate=`cat conftest.err`
7125 lt_prog_compiler_no_builtin_flag=
7127 if test "$GCC" = yes; then
7128 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7136 lt_cv_prog_compiler_rtti_exceptions=no
7137 ac_outfile=conftest.$ac_objext
7138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7139 lt_compiler_flag="-fno-rtti -fno-exceptions"
7140 # Insert the option either (1) after the last *FLAGS variable, or
7141 # (2) before a word containing "conftest.", or (3) at the end.
7142 # Note that $ac_compile itself does not contain backslashes and begins
7143 # with a dollar sign (not a hyphen), so the echo should work correctly.
7144 # The option is referenced via a variable to avoid confusing sed.
7145 lt_compile=`echo "$ac_compile" | $SED \
7146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7148 -e 's:$: $lt_compiler_flag:'`
7149 (eval echo "\"\$as_me:7149: $lt_compile\"" >&5)
7150 (eval "$lt_compile" 2>conftest.err)
7152 cat conftest.err >&5
7153 echo "$as_me:7153: \$? = $ac_status" >&5
7154 if (exit $ac_status) && test -s "$ac_outfile"; then
7155 # The compiler can only warn and ignore the option if not recognized
7156 # So say no if there are warnings other than the usual output.
7157 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7160 lt_cv_prog_compiler_rtti_exceptions=yes
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7177 lt_prog_compiler_wl=
7178 lt_prog_compiler_pic=
7179 lt_prog_compiler_static=
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7184 if test "$GCC" = yes; then
7185 lt_prog_compiler_wl='-Wl,'
7186 lt_prog_compiler_static='-static'
7190 # All AIX code is PIC.
7191 if test "$host_cpu" = ia64; then
7192 # AIX 5 now supports IA64 processor
7193 lt_prog_compiler_static='-Bstatic'
7198 # FIXME: we need at least 68020 code to build shared libraries, but
7199 # adding the `-m68020' flag to GCC prevents building anything better,
7201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7204 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7205 # PIC is the default for these OSes.
7208 mingw* | cygwin* | pw32* | os2*)
7209 # This hack is so that the source file can tell whether it is being
7210 # built for inclusion in a dll (and should export symbols for example).
7211 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7212 # (--disable-auto-import) libraries
7213 lt_prog_compiler_pic='-DDLL_EXPORT'
7216 darwin* | rhapsody*)
7217 # PIC is the default on this platform
7218 # Common symbols not allowed in MH_DYLIB files
7219 lt_prog_compiler_pic='-fno-common'
7223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7224 # Instead, we relocate shared libraries at runtime.
7228 # Just because we use GCC doesn't mean we suddenly get shared libraries
7229 # on systems that don't support them.
7230 lt_prog_compiler_can_build_shared=no
7235 if test -d /usr/nec; then
7236 lt_prog_compiler_pic=-Kconform_pic
7241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7248 lt_prog_compiler_pic='-fPIC'
7254 lt_prog_compiler_pic='-fPIC'
7258 # PORTME Check for flag to pass linker flags through the system compiler.
7261 lt_prog_compiler_wl='-Wl,'
7262 if test "$host_cpu" = ia64; then
7263 # AIX 5 now supports IA64 processor
7264 lt_prog_compiler_static='-Bstatic'
7266 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7270 # PIC is the default on this platform
7271 # Common symbols not allowed in MH_DYLIB files
7272 case $cc_basename in
7274 lt_prog_compiler_pic='-qnocommon'
7275 lt_prog_compiler_wl='-Wl,'
7280 mingw* | cygwin* | pw32* | os2*)
7281 # This hack is so that the source file can tell whether it is being
7282 # built for inclusion in a dll (and should export symbols for example).
7283 lt_prog_compiler_pic='-DDLL_EXPORT'
7286 hpux9* | hpux10* | hpux11*)
7287 lt_prog_compiler_wl='-Wl,'
7288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7295 lt_prog_compiler_pic='+Z'
7298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7299 lt_prog_compiler_static='${wl}-a ${wl}archive'
7302 irix5* | irix6* | nonstopux*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # PIC (with -KPIC) is the default.
7305 lt_prog_compiler_static='-non_shared'
7309 lt_prog_compiler_pic='-KPIC'
7310 lt_prog_compiler_static='-Bstatic'
7313 linux* | k*bsd*-gnu)
7314 case $cc_basename in
7316 lt_prog_compiler_wl='-Wl,'
7317 lt_prog_compiler_pic='-KPIC'
7318 lt_prog_compiler_static='-static'
7320 pgcc* | pgf77* | pgf90* | pgf95*)
7321 # Portland Group compilers (*not* the Pentium gcc compiler,
7322 # which looks to be a dead project)
7323 lt_prog_compiler_wl='-Wl,'
7324 lt_prog_compiler_pic='-fpic'
7325 lt_prog_compiler_static='-Bstatic'
7328 lt_prog_compiler_wl='-Wl,'
7329 # All Alpha code is PIC.
7330 lt_prog_compiler_static='-non_shared'
7333 case `$CC -V 2>&1 | sed 5q` in
7336 lt_prog_compiler_pic='-KPIC'
7337 lt_prog_compiler_static='-Bstatic'
7338 lt_prog_compiler_wl='-Wl,'
7341 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7342 lt_prog_compiler_pic='-KPIC'
7343 lt_prog_compiler_static='-Bstatic'
7344 lt_prog_compiler_wl=''
7351 osf3* | osf4* | osf5*)
7352 lt_prog_compiler_wl='-Wl,'
7353 # All OSF/1 code is PIC.
7354 lt_prog_compiler_static='-non_shared'
7358 lt_prog_compiler_static='-non_shared'
7362 lt_prog_compiler_pic='-KPIC'
7363 lt_prog_compiler_static='-Bstatic'
7364 case $cc_basename in
7366 lt_prog_compiler_wl='-Qoption ld ';;
7368 lt_prog_compiler_wl='-Wl,';;
7373 lt_prog_compiler_wl='-Qoption ld '
7374 lt_prog_compiler_pic='-PIC'
7375 lt_prog_compiler_static='-Bstatic'
7378 sysv4 | sysv4.2uw2* | sysv4.3*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_pic='-KPIC'
7381 lt_prog_compiler_static='-Bstatic'
7385 if test -d /usr/nec ;then
7386 lt_prog_compiler_pic='-Kconform_pic'
7387 lt_prog_compiler_static='-Bstatic'
7391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7392 lt_prog_compiler_wl='-Wl,'
7393 lt_prog_compiler_pic='-KPIC'
7394 lt_prog_compiler_static='-Bstatic'
7398 lt_prog_compiler_wl='-Wl,'
7399 lt_prog_compiler_can_build_shared=no
7403 lt_prog_compiler_pic='-pic'
7404 lt_prog_compiler_static='-Bstatic'
7408 lt_prog_compiler_can_build_shared=no
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7414 $as_echo "$lt_prog_compiler_pic" >&6; }
7417 # Check to make sure the PIC flag actually works.
7419 if test -n "$lt_prog_compiler_pic"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7423 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7426 lt_cv_prog_compiler_pic_works=no
7427 ac_outfile=conftest.$ac_objext
7428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7430 # Insert the option either (1) after the last *FLAGS variable, or
7431 # (2) before a word containing "conftest.", or (3) at the end.
7432 # Note that $ac_compile itself does not contain backslashes and begins
7433 # with a dollar sign (not a hyphen), so the echo should work correctly.
7434 # The option is referenced via a variable to avoid confusing sed.
7435 lt_compile=`echo "$ac_compile" | $SED \
7436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438 -e 's:$: $lt_compiler_flag:'`
7439 (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440 (eval "$lt_compile" 2>conftest.err)
7442 cat conftest.err >&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 if (exit $ac_status) && test -s "$ac_outfile"; then
7445 # The compiler can only warn and ignore the option if not recognized
7446 # So say no if there are warnings other than the usual output.
7447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7450 lt_cv_prog_compiler_pic_works=yes
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7457 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7459 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7460 case $lt_prog_compiler_pic in
7462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7465 lt_prog_compiler_pic=
7466 lt_prog_compiler_can_build_shared=no
7471 # For platforms which do not support PIC, -DPIC is meaningless:
7473 lt_prog_compiler_pic=
7476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7481 # Check to make sure the static flag actually works.
7483 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7485 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7486 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7489 lt_cv_prog_compiler_static_works=no
7490 save_LDFLAGS="$LDFLAGS"
7491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7494 # The linker can only warn and ignore the option if not recognized
7495 # So say no if there are warnings
7496 if test -s conftest.err; then
7497 # Append any errors to the config.log.
7498 cat conftest.err 1>&5
7499 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501 if diff conftest.exp conftest.er2 >/dev/null; then
7502 lt_cv_prog_compiler_static_works=yes
7505 lt_cv_prog_compiler_static_works=yes
7509 LDFLAGS="$save_LDFLAGS"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7513 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7515 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7518 lt_prog_compiler_static=
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7527 lt_cv_prog_compiler_c_o=no
7528 $rm -r conftest 2>/dev/null
7532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7534 lt_compiler_flag="-o out/conftest2.$ac_objext"
7535 # Insert the option either (1) after the last *FLAGS variable, or
7536 # (2) before a word containing "conftest.", or (3) at the end.
7537 # Note that $ac_compile itself does not contain backslashes and begins
7538 # with a dollar sign (not a hyphen), so the echo should work correctly.
7539 lt_compile=`echo "$ac_compile" | $SED \
7540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7542 -e 's:$: $lt_compiler_flag:'`
7543 (eval echo "\"\$as_me:7543: $lt_compile\"" >&5)
7544 (eval "$lt_compile" 2>out/conftest.err)
7546 cat out/conftest.err >&5
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7550 # The compiler can only warn and ignore the option if not recognized
7551 # So say no if there are warnings
7552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7555 lt_cv_prog_compiler_c_o=yes
7560 # SGI C++ compiler will create directory out/ii_files/ for
7561 # template instantiation
7562 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7563 $rm out/* && rmdir out
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7573 hard_links="nottested"
7574 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7575 # do not overwrite the value of need_locks provided by the user
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7577 $as_echo_n "checking if we can lock with hard links... " >&6; }
7580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7582 ln conftest.a conftest.b 2>&5 || hard_links=no
7583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7585 $as_echo "$hard_links" >&6; }
7586 if test "$hard_links" = no; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7588 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7599 allow_undefined_flag=
7600 enable_shared_with_static_runtimes=no
7602 archive_expsym_cmds=
7603 old_archive_From_new_cmds=
7604 old_archive_from_expsyms_cmds=
7605 export_dynamic_flag_spec=
7606 whole_archive_flag_spec=
7607 thread_safe_flag_spec=
7608 hardcode_libdir_flag_spec=
7609 hardcode_libdir_flag_spec_ld=
7610 hardcode_libdir_separator=
7613 hardcode_shlibpath_var=unsupported
7614 link_all_deplibs=unknown
7615 hardcode_automatic=no
7618 always_export_symbols=no
7619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7620 # include_expsyms should be a list of space-separated symbols to be *always*
7621 # included in the symbol list
7623 # exclude_expsyms can be an extended regexp of symbols to exclude
7624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7626 # as well as any symbol that contains `d'.
7627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7629 # platforms (ab)use it in PIC code, but their linkers get confused if
7630 # the symbol is explicitly referenced. Since portable code cannot
7631 # rely on this symbol name, it's probably fine to never include it in
7632 # preloaded symbol tables.
7633 # Exclude shared library initialization/finalization symbols.
7634 extract_expsyms_cmds=
7635 # Just being paranoid about ensuring that cc_basename is set.
7636 for cc_temp in $compiler""; do
7638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7647 cygwin* | mingw* | pw32*)
7648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7649 # When not using gcc, we currently assume that we are using
7650 # Microsoft Visual C++.
7651 if test "$GCC" != yes; then
7656 # we just hope/assume this is gcc and not c89 (= MSVC++)
7665 if test "$with_gnu_ld" = yes; then
7666 # If archive_cmds runs LD, not CC, wlarc should be empty
7669 # Set some defaults for GNU ld with shared library support. These
7670 # are reset later if shared libraries are not supported. Putting them
7671 # here allows them to be overridden if necessary.
7672 runpath_var=LD_RUN_PATH
7673 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7674 export_dynamic_flag_spec='${wl}--export-dynamic'
7675 # ancient GNU ld didn't support --whole-archive et. al.
7676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7677 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7679 whole_archive_flag_spec=
7681 supports_anon_versioning=no
7682 case `$LD -v 2>/dev/null` in
7683 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7686 *\ 2.11.*) ;; # other 2.11 versions
7687 *) supports_anon_versioning=yes ;;
7690 # See if GNU ld supports shared libraries.
7693 # On AIX/PPC, the GNU linker is very broken
7694 if test "$host_cpu" != ia64; then
7698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7699 *** to be unable to reliably create shared libraries on AIX.
7700 *** Therefore, libtool is disabling shared libraries support. If you
7701 *** really care for shared libraries, you may want to modify your PATH
7702 *** so that a non-GNU linker is found, and then restart.
7709 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)'
7710 hardcode_libdir_flag_spec='-L$libdir'
7711 hardcode_minus_L=yes
7713 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7714 # that the semantics of dynamic libraries on AmigaOS, at least up
7715 # to version 4, is to share data among multiple programs linked
7716 # with the same dynamic library. Since this doesn't match the
7717 # behavior of shared libraries on other platforms, we can't use
7723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724 allow_undefined_flag=unsupported
7725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7726 # support --undefined. This deserves some investigation. FIXME
7727 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7733 cygwin* | mingw* | pw32*)
7734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7735 # as there is no search path for DLLs.
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 allow_undefined_flag=unsupported
7738 always_export_symbols=no
7739 enable_shared_with_static_runtimes=yes
7740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7744 # If the export-symbols file already is a .def file (1st line
7745 # is EXPORTS), use it as is; otherwise, prepend...
7746 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7747 cp $export_symbols $output_objdir/$soname.def;
7749 echo EXPORTS > $output_objdir/$soname.def;
7750 cat $export_symbols >> $output_objdir/$soname.def;
7752 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7760 hardcode_shlibpath_var=no
7761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7762 export_dynamic_flag_spec='${wl}-E'
7763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7764 # Instead, shared libraries are loaded at an image base (0x10000000 by
7765 # default) and relocated if they conflict, which is a slow very memory
7766 # consuming and fragmenting process. To avoid this, we pick a random,
7767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7770 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'
7773 gnu* | linux* | k*bsd*-gnu)
7774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776 case $cc_basename,$host_cpu in
7777 pgcc*) # Portland Group C compiler
7778 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'
7779 tmp_addflag=' $pic_flag'
7781 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7782 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'
7783 tmp_addflag=' $pic_flag -Mnomain' ;;
7784 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7785 tmp_addflag=' -i_dynamic' ;;
7786 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7787 tmp_addflag=' -i_dynamic -nofor_main' ;;
7788 ifc* | ifort*) # Intel Fortran compiler
7789 tmp_addflag=' -nofor_main' ;;
7791 case `$CC -V 2>&1 | sed 5q` in
7792 *Sun\ C*) # Sun C 5.9
7793 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'
7794 tmp_sharedflag='-G' ;;
7795 *Sun\ F*) # Sun Fortran 8.3
7796 tmp_sharedflag='-G' ;;
7798 tmp_sharedflag='-shared' ;;
7800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7802 if test $supports_anon_versioning = yes; then
7803 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7805 $echo "local: *; };" >> $output_objdir/$libname.ver~
7806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7814 netbsd* | netbsdelf*-gnu)
7815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7816 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7829 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7830 *** create shared libraries on Solaris systems. Therefore, libtool
7831 *** is disabling shared libraries support. We urge you to upgrade GNU
7832 *** binutils to release 2.9.1 or newer. Another option is to modify
7833 *** your PATH or compiler configuration so that the native linker is
7834 *** used, and then restart.
7837 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7846 case `$LD -v 2>&1` in
7847 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7851 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7852 *** reliably create shared libraries on SCO systems. Therefore, libtool
7853 *** is disabling shared libraries support. We urge you to upgrade GNU
7854 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7855 *** your PATH or compiler configuration so that the native linker is
7856 *** used, and then restart.
7861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7862 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7873 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7876 hardcode_shlibpath_var=no
7880 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7882 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7889 if test "$ld_shlibs" = no; then
7891 hardcode_libdir_flag_spec=
7892 export_dynamic_flag_spec=
7893 whole_archive_flag_spec=
7896 # PORTME fill in a description of your system's linker (not GNU ld)
7899 allow_undefined_flag=unsupported
7900 always_export_symbols=yes
7901 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'
7902 # Note: this linker hardcodes the directories in LIBPATH if there
7903 # are no directories specified by -L.
7904 hardcode_minus_L=yes
7905 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7906 # Neither direct hardcoding nor static linking is supported with a
7908 hardcode_direct=unsupported
7913 if test "$host_cpu" = ia64; then
7914 # On IA64, the linker does run time linking by default, so we don't
7915 # have to do anything special.
7916 aix_use_runtimelinking=no
7917 exp_sym_flag='-Bexport'
7920 # If we're using GNU nm, then we don't want the "-C" option.
7921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7922 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7923 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'
7925 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'
7927 aix_use_runtimelinking=no
7929 # Test if we are trying to use run time linking or normal
7930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7931 # need to do runtime linking.
7932 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7933 for ld_flag in $LDFLAGS; do
7934 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7935 aix_use_runtimelinking=yes
7942 exp_sym_flag='-bexport'
7943 no_entry_flag='-bnoentry'
7946 # When large executables or shared objects are built, AIX ld can
7947 # have problems creating the table of contents. If linking a library
7948 # or program results in "error TOC overflow" add -mminimal-toc to
7949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7954 hardcode_libdir_separator=':'
7955 link_all_deplibs=yes
7957 if test "$GCC" = yes; then
7958 case $host_os in aix4.[012]|aix4.[012].*)
7959 # We only want to do this on AIX 4.2 and lower, the check
7960 # below for broken collect2 doesn't work under 4.3+
7961 collect2name=`${CC} -print-prog-name=collect2`
7962 if test -f "$collect2name" && \
7963 strings "$collect2name" | grep resolve_lib_name >/dev/null
7965 # We have reworked collect2
7968 # We have old collect2
7969 hardcode_direct=unsupported
7970 # It fails to find uninstalled libraries when the uninstalled
7971 # path is not listed in the libpath. Setting hardcode_minus_L
7972 # to unsupported forces relinking
7973 hardcode_minus_L=yes
7974 hardcode_libdir_flag_spec='-L$libdir'
7975 hardcode_libdir_separator=
7979 shared_flag='-shared'
7980 if test "$aix_use_runtimelinking" = yes; then
7981 shared_flag="$shared_flag "'${wl}-G'
7985 if test "$host_cpu" = ia64; then
7986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7987 # chokes on -Wl,-G. The following line is correct:
7990 if test "$aix_use_runtimelinking" = yes; then
7991 shared_flag='${wl}-G'
7993 shared_flag='${wl}-bM:SRE'
7998 # It seems that -bexpall does not export symbols beginning with
7999 # underscore (_), so it is better to generate a list of symbols to export.
8000 always_export_symbols=yes
8001 if test "$aix_use_runtimelinking" = yes; then
8002 # Warning - without using the other runtime loading flags (-brtl),
8003 # -berok will link without error, but may produce a broken library.
8004 allow_undefined_flag='-berok'
8005 # Determine the default libpath from the value encoded in an empty executable.
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8017 if ac_fn_c_try_link "$LINENO"; then :
8019 lt_aix_libpath_sed='
8020 /Import File Strings/,/^$/ {
8026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8027 # Check for a 64-bit object if we didn't find anything.
8028 if test -z "$aix_libpath"; then
8029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8037 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"
8039 if test "$host_cpu" = ia64; then
8040 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8041 allow_undefined_flag="-z nodefs"
8042 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"
8044 # Determine the default libpath from the value encoded in an empty executable.
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8056 if ac_fn_c_try_link "$LINENO"; then :
8058 lt_aix_libpath_sed='
8059 /Import File Strings/,/^$/ {
8065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8066 # Check for a 64-bit object if we didn't find anything.
8067 if test -z "$aix_libpath"; then
8068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8071 rm -f core conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8075 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8076 # Warning - without using the other run time loading flags,
8077 # -berok will link without error, but may produce a broken library.
8078 no_undefined_flag=' ${wl}-bernotok'
8079 allow_undefined_flag=' ${wl}-berok'
8080 # Exported symbols can be pulled into shared objects from archives
8081 whole_archive_flag_spec='$convenience'
8082 archive_cmds_need_lc=yes
8083 # This is similar to how AIX traditionally builds its shared libraries.
8084 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'
8090 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)'
8091 hardcode_libdir_flag_spec='-L$libdir'
8092 hardcode_minus_L=yes
8093 # see comment about different semantics on the GNU ld section
8098 export_dynamic_flag_spec=-rdynamic
8101 cygwin* | mingw* | pw32*)
8102 # When not using gcc, we currently assume that we are using
8103 # Microsoft Visual C++.
8104 # hardcode_libdir_flag_spec is actually meaningless, as there is
8105 # no search path for DLLs.
8106 hardcode_libdir_flag_spec=' '
8107 allow_undefined_flag=unsupported
8108 # Tell ltmain to make .lib files, not .a files.
8110 # Tell ltmain to make .dll files, not .so files.
8112 # FIXME: Setting linknames here is a bad hack.
8113 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8114 # The linker will automatically build a .lib file if we build a DLL.
8115 old_archive_From_new_cmds='true'
8116 # FIXME: Should let the user specify the lib program.
8117 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8118 fix_srcfile_path='`cygpath -w "$srcfile"`'
8119 enable_shared_with_static_runtimes=yes
8122 darwin* | rhapsody*)
8124 rhapsody* | darwin1.[012])
8125 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8128 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8129 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8131 case ${MACOSX_DEPLOYMENT_TARGET} in
8133 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8136 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8142 archive_cmds_need_lc=no
8144 hardcode_automatic=yes
8145 hardcode_shlibpath_var=unsupported
8146 whole_archive_flag_spec=''
8147 link_all_deplibs=yes
8148 if test "$GCC" = yes ; then
8149 output_verbose_link_cmd='echo'
8150 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8151 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8152 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}"
8153 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}"
8155 case $cc_basename in
8157 output_verbose_link_cmd='echo'
8158 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8159 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8161 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}'
8162 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8173 hardcode_libdir_flag_spec='-L$libdir'
8174 hardcode_shlibpath_var=no
8181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8182 # support. Future versions do this automatically, but an explicit c++rt0.o
8183 # does not break anything, and helps significantly (at the cost of a little
8186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8187 hardcode_libdir_flag_spec='-R$libdir'
8189 hardcode_shlibpath_var=no
8192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8196 hardcode_minus_L=yes
8197 hardcode_shlibpath_var=no
8200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8201 freebsd* | dragonfly*)
8202 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8203 hardcode_libdir_flag_spec='-R$libdir'
8205 hardcode_shlibpath_var=no
8209 if test "$GCC" = yes; then
8210 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'
8212 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'
8214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8215 hardcode_libdir_separator=:
8218 # hardcode_minus_L: Not really in the search PATH,
8219 # but as the default location of the library.
8220 hardcode_minus_L=yes
8221 export_dynamic_flag_spec='${wl}-E'
8225 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8226 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8230 if test "$with_gnu_ld" = no; then
8231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8232 hardcode_libdir_separator=:
8235 export_dynamic_flag_spec='${wl}-E'
8237 # hardcode_minus_L: Not really in the search PATH,
8238 # but as the default location of the library.
8239 hardcode_minus_L=yes
8244 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8247 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8253 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8259 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8265 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8269 if test "$with_gnu_ld" = no; then
8270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8271 hardcode_libdir_separator=:
8275 hardcode_libdir_flag_spec_ld='+b $libdir'
8277 hardcode_shlibpath_var=no
8281 export_dynamic_flag_spec='${wl}-E'
8283 # hardcode_minus_L: Not really in the search PATH,
8284 # but as the default location of the library.
8285 hardcode_minus_L=yes
8291 irix5* | irix6* | nonstopux*)
8292 if test "$GCC" = yes; then
8293 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'
8295 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'
8296 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8299 hardcode_libdir_separator=:
8300 link_all_deplibs=yes
8303 netbsd* | netbsdelf*-gnu)
8304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8307 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8309 hardcode_libdir_flag_spec='-R$libdir'
8311 hardcode_shlibpath_var=no
8315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 hardcode_libdir_separator=:
8319 hardcode_shlibpath_var=no
8323 if test -f /usr/libexec/ld.so; then
8325 hardcode_shlibpath_var=no
8326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8328 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330 export_dynamic_flag_spec='${wl}-E'
8333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8335 hardcode_libdir_flag_spec='-R$libdir'
8338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8349 hardcode_libdir_flag_spec='-L$libdir'
8350 hardcode_minus_L=yes
8351 allow_undefined_flag=unsupported
8352 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'
8353 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8357 if test "$GCC" = yes; then
8358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8359 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'
8361 allow_undefined_flag=' -expect_unresolved \*'
8362 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'
8364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8365 hardcode_libdir_separator=:
8368 osf4* | osf5*) # as osf3* with the addition of -msym flag
8369 if test "$GCC" = yes; then
8370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8371 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'
8372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8374 allow_undefined_flag=' -expect_unresolved \*'
8375 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'
8376 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8377 $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'
8379 # Both c and cxx compiler support -rpath directly
8380 hardcode_libdir_flag_spec='-rpath $libdir'
8382 hardcode_libdir_separator=:
8386 no_undefined_flag=' -z text'
8387 if test "$GCC" = yes; then
8389 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8398 hardcode_libdir_flag_spec='-R$libdir'
8399 hardcode_shlibpath_var=no
8401 solaris2.[0-5] | solaris2.[0-5].*) ;;
8403 # The compiler driver will combine and reorder linker options,
8404 # but understands `-z linker_flag'. GCC discards it without `$wl',
8405 # but is careful enough not to reorder.
8406 # Supported since Solaris 2.6 (maybe 2.5.1?)
8407 if test "$GCC" = yes; then
8408 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8414 link_all_deplibs=yes
8418 if test "x$host_vendor" = xsequent; then
8419 # Use $CC to link under sequent, because it throws in some extra .o
8420 # files that make .init and .fini sections work.
8421 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8425 hardcode_libdir_flag_spec='-L$libdir'
8427 hardcode_minus_L=yes
8428 hardcode_shlibpath_var=no
8432 case $host_vendor in
8434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8435 hardcode_direct=yes # is this really true???
8438 ## LD is ld it makes a PLAMLIB
8439 ## CC just makes a GrossModule.
8440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8441 reload_cmds='$CC -r -o $output$reload_objs'
8445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8449 runpath_var='LD_RUN_PATH'
8450 hardcode_shlibpath_var=no
8454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_shlibpath_var=no
8456 export_dynamic_flag_spec='-Bexport'
8460 if test -d /usr/nec; then
8461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462 hardcode_shlibpath_var=no
8463 runpath_var=LD_RUN_PATH
8464 hardcode_runpath_var=yes
8469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8470 no_undefined_flag='${wl}-z,text'
8471 archive_cmds_need_lc=no
8472 hardcode_shlibpath_var=no
8473 runpath_var='LD_RUN_PATH'
8475 if test "$GCC" = yes; then
8476 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8477 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484 sysv5* | sco3.2v5* | sco5v6*)
8485 # Note: We can NOT use -z defs as we might desire, because we do not
8486 # link with -lc, and that would cause any symbols used from libc to
8487 # always be unresolved, which means just about no library would
8488 # ever link correctly. If we're not using GNU ld we use -z text
8489 # though, which does catch some bad symbols but isn't as heavy-handed
8491 no_undefined_flag='${wl}-z,text'
8492 allow_undefined_flag='${wl}-z,nodefs'
8493 archive_cmds_need_lc=no
8494 hardcode_shlibpath_var=no
8495 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8496 hardcode_libdir_separator=':'
8497 link_all_deplibs=yes
8498 export_dynamic_flag_spec='${wl}-Bexport'
8499 runpath_var='LD_RUN_PATH'
8501 if test "$GCC" = yes; then
8502 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8512 hardcode_libdir_flag_spec='-L$libdir'
8513 hardcode_shlibpath_var=no
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8523 $as_echo "$ld_shlibs" >&6; }
8524 test "$ld_shlibs" = no && can_build_shared=no
8527 # Do we need to explicitly link libc?
8529 case "x$archive_cmds_need_lc" in
8531 # Assume -lc should be added
8532 archive_cmds_need_lc=yes
8534 if test "$enable_shared" = yes && test "$GCC" = yes; then
8535 case $archive_cmds in
8537 # FIXME: we may have to deal with multi-command sequences.
8540 # Test whether the compiler implicitly links with -lc since on some
8541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8542 # to ld, don't add -lc before -lgcc.
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8544 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8549 (eval $ac_compile) 2>&5
8551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8552 test $ac_status = 0; } 2>conftest.err; then
8555 libobjs=conftest.$ac_objext
8557 wl=$lt_prog_compiler_wl
8558 pic_flag=$lt_prog_compiler_pic
8564 lt_save_allow_undefined_flag=$allow_undefined_flag
8565 allow_undefined_flag=
8566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8567 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8570 test $ac_status = 0; }
8572 archive_cmds_need_lc=no
8574 archive_cmds_need_lc=yes
8576 allow_undefined_flag=$lt_save_allow_undefined_flag
8578 cat conftest.err 1>&5
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8582 $as_echo "$archive_cmds_need_lc" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8592 libname_spec='lib$name'
8600 shlibpath_overrides_runpath=unknown
8602 dynamic_linker="$host_os ld.so"
8603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8605 if test "$GCC" = yes; then
8607 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8608 *) lt_awk_arg="/^libraries:/" ;;
8610 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8611 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8612 # if the path contains ";" then we assume it to be the separator
8613 # otherwise default to the standard path separator (i.e. ":") - it is
8614 # assumed that no part of a normal pathname contains ";" but that should
8615 # okay in the real world where ";" in dirpaths is itself problematic.
8616 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8618 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8620 # Ok, now we have the path, separated by spaces, we can step through it
8621 # and add multilib dir if necessary.
8622 lt_tmp_lt_search_path_spec=
8623 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8624 for lt_sys_path in $lt_search_path_spec; do
8625 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8628 test -d "$lt_sys_path" && \
8629 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8632 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8633 BEGIN {RS=" "; FS="/|\n";} {
8636 for (lt_i = NF; lt_i > 0; lt_i--) {
8637 if ($lt_i != "" && $lt_i != ".") {
8638 if ($lt_i == "..") {
8641 if (lt_count == 0) {
8642 lt_foo="/" $lt_i lt_foo;
8649 if (lt_foo != "") { lt_freq[lt_foo]++; }
8650 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8652 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8656 need_lib_prefix=unknown
8657 hardcode_into_libs=no
8659 # when you set need_version to no, make sure it does not cause -set_version
8660 # flags to be left without arguments
8661 need_version=unknown
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8667 shlibpath_var=LIBPATH
8669 # AIX 3 has no versioning support, so we append a major version to the name.
8670 soname_spec='${libname}${release}${shared_ext}$major'
8677 hardcode_into_libs=yes
8678 if test "$host_cpu" = ia64; then
8679 # AIX 5 supports IA64
8680 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8681 shlibpath_var=LD_LIBRARY_PATH
8683 # With GCC up to 2.95.x, collect2 would create an import file
8684 # for dependence libraries. The import file would start with
8685 # the line `#! .'. This would cause the generated library to
8686 # depend on `.', always an invalid library. This was fixed in
8687 # development snapshots of GCC prior to 3.0.
8689 aix4 | aix4.[01] | aix4.[01].*)
8690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8692 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8699 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8700 # soname into executable. Probably we can add versioning support to
8701 # collect2, so additional links can be useful in future.
8702 if test "$aix_use_runtimelinking" = yes; then
8703 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8704 # instead of lib<name>.a to let people know that these are not
8705 # typical AIX shared libraries.
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8708 # We preserve .a as extension for shared libraries through AIX4.2
8709 # and later when we are not doing run time linking.
8710 library_names_spec='${libname}${release}.a $libname.a'
8711 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LIBPATH
8718 library_names_spec='$libname.ixlibrary $libname.a'
8719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8720 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'
8724 library_names_spec='${libname}${shared_ext}'
8725 dynamic_linker="$host_os ld.so"
8726 shlibpath_var=LIBRARY_PATH
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8735 shlibpath_var=LD_LIBRARY_PATH
8736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8738 # the default ld.so.conf also contains /usr/contrib/lib and
8739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8740 # libtool to hard-code these into programs
8743 cygwin* | mingw* | pw32*)
8744 version_type=windows
8749 case $GCC,$host_os in
8750 yes,cygwin* | yes,mingw* | yes,pw32*)
8751 library_names_spec='$libname.dll.a'
8752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8753 postinstall_cmds='base_file=`basename \${file}`~
8754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8755 dldir=$destdir/`dirname \$dlpath`~
8756 test -d \$dldir || mkdir -p \$dldir~
8757 $install_prog $dir/$dlname \$dldir/$dlname~
8758 chmod a+x \$dldir/$dlname'
8759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8760 dlpath=$dir/\$dldll~
8762 shlibpath_overrides_runpath=yes
8766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8771 # MinGW DLLs use traditional 'lib' prefix
8772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8774 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8775 # It is most probably a Windows format PATH printed by
8776 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8777 # path with ; separators, and with drive letters. We can handle the
8778 # drive letters (cygwin fileutils understands them), so leave them,
8779 # especially as we might pass files found there to a mingw objdump,
8780 # which wouldn't understand a cygwinified path. Ahh.
8781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8787 # pw32 DLLs use 'pw' prefix rather than 'lib'
8788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8797 dynamic_linker='Win32 ld.exe'
8798 # FIXME: first we should search . and the directory the executable is in
8802 darwin* | rhapsody*)
8803 dynamic_linker="$host_os dyld"
8807 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8808 soname_spec='${libname}${release}${major}$shared_ext'
8809 shlibpath_overrides_runpath=yes
8810 shlibpath_var=DYLD_LIBRARY_PATH
8811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8830 freebsd* | dragonfly*)
8831 # DragonFly does not have aout. When/if they implement a new
8832 # versioning mechanism, adjust this.
8833 if test -x /usr/bin/objformat; then
8834 objformat=`/usr/bin/objformat`
8837 freebsd[123]*) objformat=aout ;;
8841 version_type=freebsd-$objformat
8842 case $version_type in
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8853 shlibpath_var=LD_LIBRARY_PATH
8856 shlibpath_overrides_runpath=yes
8858 freebsd3.[01]* | freebsdelf3.[01]*)
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8867 *) # from 4.6 on, and DragonFly
8868 shlibpath_overrides_runpath=yes
8869 hardcode_into_libs=yes
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 hardcode_into_libs=yes
8884 hpux9* | hpux10* | hpux11*)
8885 # Give a soname corresponding to the major version so that dld.sl refuses to
8886 # link against other versions.
8893 hardcode_into_libs=yes
8894 dynamic_linker="$host_os dld.so"
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 if test "X$HPUX_IA64_MODE" = X32; then
8900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 hardcode_into_libs=yes
8909 dynamic_linker="$host_os dld.sl"
8910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8919 dynamic_linker="$host_os dld.sl"
8920 shlibpath_var=SHLIB_PATH
8921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927 postinstall_cmds='chmod 555 $lib'
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8942 irix5* | irix6* | nonstopux*)
8944 nonstopux*) version_type=nonstopux ;;
8946 if test "$lt_cv_prog_gnu_ld" = yes; then
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8957 irix5* | nonstopux*)
8961 case $LD in # libtool.m4 will add one of these switches to LD
8962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963 libsuff= shlibsuff= libmagic=32-bit;;
8964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965 libsuff=32 shlibsuff=N32 libmagic=N32;;
8966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968 *) libsuff= shlibsuff= libmagic=never-match;;
8972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973 shlibpath_overrides_runpath=no
8974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976 hardcode_into_libs=yes
8979 # No shared lib support for Linux oldld, aout, or coff.
8980 linux*oldld* | linux*aout* | linux*coff*)
8984 # This must be Linux ELF.
8985 linux* | k*bsd*-gnu)
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=no
8994 # This implies no fast_install, which is unacceptable.
8995 # Some rework will be needed to allow for fast_install
8996 # before this can be enabled.
8997 hardcode_into_libs=yes
8999 # Append ld.so.conf contents to the search path
9000 if test -f /etc/ld.so.conf; then
9001 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' ' '`
9002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9005 # We used to test for /lib/ld.so.1 and disable shared libraries on
9006 # powerpc, because MkLinux only supported shared libraries with the
9007 # GNU dynamic linker. Since this was broken with cross compilers,
9008 # most powerpc-linux boxes support dynamic linking these days and
9009 # people can always --disable-shared, the test was removed, and we
9010 # assume the GNU/Linux dynamic linker is in use.
9011 dynamic_linker='GNU/Linux ld.so'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=no
9022 hardcode_into_libs=yes
9023 dynamic_linker='NetBSD ld.elf_so'
9030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033 dynamic_linker='NetBSD (a.out) ld.so'
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 dynamic_linker='NetBSD ld.elf_so'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9063 sys_lib_dlsearch_path_spec="/usr/lib"
9065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068 *) need_version=no ;;
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9075 openbsd2.[89] | openbsd2.[89].*)
9076 shlibpath_overrides_runpath=no
9079 shlibpath_overrides_runpath=yes
9083 shlibpath_overrides_runpath=yes
9088 libname_spec='$name'
9091 library_names_spec='$libname${shared_ext} $libname.a'
9092 dynamic_linker='OS/2 ld.exe'
9093 shlibpath_var=LIBPATH
9096 osf3* | osf4* | osf5*)
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=yes
9119 hardcode_into_libs=yes
9120 # ldd complains unless libraries are executable
9121 postinstall_cmds='chmod +x $lib'
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=yes
9130 if test "$with_gnu_ld" = yes; then
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 case $host_vendor in
9143 shlibpath_overrides_runpath=no
9145 export_dynamic_flag_spec='${wl}-Blargedynsym'
9146 runpath_var=LD_RUN_PATH
9154 shlibpath_overrides_runpath=no
9155 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9161 if test -d /usr/nec ;then
9163 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9164 soname_spec='$libname${shared_ext}.$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9170 version_type=freebsd-elf
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 hardcode_into_libs=yes
9177 if test "$with_gnu_ld" = yes; then
9178 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9179 shlibpath_overrides_runpath=no
9181 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9182 shlibpath_overrides_runpath=yes
9185 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9189 sys_lib_dlsearch_path_spec='/usr/lib'
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9204 $as_echo "$dynamic_linker" >&6; }
9205 test "$dynamic_linker" = no && can_build_shared=no
9207 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9210 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9213 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9214 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9220 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9223 if test "$GCC" = yes; then
9224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9228 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9230 if test -n "$hardcode_libdir_flag_spec" || \
9231 test -n "$runpath_var" || \
9232 test "X$hardcode_automatic" = "Xyes" ; then
9234 # We can hardcode non-existant directories.
9235 if test "$hardcode_direct" != no &&
9236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9237 # have to relink, otherwise we might link with an installed library
9238 # when we should be linking with a yet-to-be-installed one
9239 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9240 test "$hardcode_minus_L" != no; then
9241 # Linking always hardcodes the temporary library directory.
9242 hardcode_action=relink
9244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9245 hardcode_action=immediate
9248 # We cannot hardcode anything, or else we can only hardcode existing
9250 hardcode_action=unsupported
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9253 $as_echo "$hardcode_action" >&6; }
9255 if test "$hardcode_action" = relink; then
9256 # Fast installation is not supported
9257 enable_fast_install=no
9258 elif test "$shlibpath_overrides_runpath" = yes ||
9259 test "$enable_shared" = no; then
9260 # Fast installation is not necessary
9261 enable_fast_install=needless
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9267 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9268 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9272 $as_echo "yes" >&6; }
9274 # FIXME - insert some real tests, host_os isn't really good enough
9277 if test -n "$STRIP" ; then
9278 striplib="$STRIP -x"
9279 old_striplib="$STRIP -S"
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9281 $as_echo "yes" >&6; }
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 $as_echo "no" >&6; }
9294 if test "x$enable_dlopen" != xyes; then
9295 enable_dlopen=unknown
9296 enable_dlopen_self=unknown
9297 enable_dlopen_self_static=unknown
9304 lt_cv_dlopen="load_add_on"
9306 lt_cv_dlopen_self=yes
9310 lt_cv_dlopen="LoadLibrary"
9315 lt_cv_dlopen="dlopen"
9320 # if libdl is installed we need to link against it
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9322 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9326 ac_check_lib_save_LIBS=$LIBS
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9331 /* Override any GCC internal prototype to avoid an error.
9332 Use char because int might match the return type of a GCC
9333 builtin and then its argument prototype would still apply. */
9346 if ac_fn_c_try_link "$LINENO"; then :
9347 ac_cv_lib_dl_dlopen=yes
9349 ac_cv_lib_dl_dlopen=no
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 LIBS=$ac_check_lib_save_LIBS
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9356 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9357 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9363 lt_cv_dlopen_self=yes
9370 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9371 if test "x$ac_cv_func_shl_load" = x""yes; then :
9372 lt_cv_dlopen="shl_load"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9375 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9379 ac_check_lib_save_LIBS=$LIBS
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9384 /* Override any GCC internal prototype to avoid an error.
9385 Use char because int might match the return type of a GCC
9386 builtin and then its argument prototype would still apply. */
9399 if ac_fn_c_try_link "$LINENO"; then :
9400 ac_cv_lib_dld_shl_load=yes
9402 ac_cv_lib_dld_shl_load=no
9404 rm -f core conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406 LIBS=$ac_check_lib_save_LIBS
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9409 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9410 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9411 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9413 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9414 if test "x$ac_cv_func_dlopen" = x""yes; then :
9415 lt_cv_dlopen="dlopen"
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9422 ac_check_lib_save_LIBS=$LIBS
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9442 if ac_fn_c_try_link "$LINENO"; then :
9443 ac_cv_lib_dl_dlopen=yes
9445 ac_cv_lib_dl_dlopen=no
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 LIBS=$ac_check_lib_save_LIBS
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9452 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9453 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9457 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9461 ac_check_lib_save_LIBS=$LIBS
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9481 if ac_fn_c_try_link "$LINENO"; then :
9482 ac_cv_lib_svld_dlopen=yes
9484 ac_cv_lib_svld_dlopen=no
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 LIBS=$ac_check_lib_save_LIBS
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9491 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9492 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9496 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9497 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9500 ac_check_lib_save_LIBS=$LIBS
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9520 if ac_fn_c_try_link "$LINENO"; then :
9521 ac_cv_lib_dld_dld_link=yes
9523 ac_cv_lib_dld_dld_link=no
9525 rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9530 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9531 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9532 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9553 if test "x$lt_cv_dlopen" != xno; then
9559 case $lt_cv_dlopen in
9561 save_CPPFLAGS="$CPPFLAGS"
9562 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9564 save_LDFLAGS="$LDFLAGS"
9565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9568 LIBS="$lt_cv_dlopen_libs $LIBS"
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9571 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9572 if test "${lt_cv_dlopen_self+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9575 if test "$cross_compiling" = yes; then :
9576 lt_cv_dlopen_self=cross
9578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9579 lt_status=$lt_dlunknown
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9581 "configure"
9582 #include "confdefs.h"
9591 # define LT_DLGLOBAL RTLD_GLOBAL
9594 # define LT_DLGLOBAL DL_GLOBAL
9596 # define LT_DLGLOBAL 0
9600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9601 find out it does not work in some platform. */
9602 #ifndef LT_DLLAZY_OR_NOW
9604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9607 # define LT_DLLAZY_OR_NOW DL_LAZY
9610 # define LT_DLLAZY_OR_NOW RTLD_NOW
9613 # define LT_DLLAZY_OR_NOW DL_NOW
9615 # define LT_DLLAZY_OR_NOW 0
9623 extern "C" void exit (int);
9626 void fnord() { int i=42;}
9629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9630 int status = $lt_dlunknown;
9634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9636 /* dlclose (self); */
9644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9645 (eval $ac_link) 2>&5
9647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9649 (./conftest; exit; ) >&5 2>/dev/null
9652 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9653 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9654 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9657 # compilation failed
9658 lt_cv_dlopen_self=no
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9666 $as_echo "$lt_cv_dlopen_self" >&6; }
9668 if test "x$lt_cv_dlopen_self" = xyes; then
9669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9671 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9672 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9675 if test "$cross_compiling" = yes; then :
9676 lt_cv_dlopen_self_static=cross
9678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9679 lt_status=$lt_dlunknown
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9681 "configure"
9682 #include "confdefs.h"
9691 # define LT_DLGLOBAL RTLD_GLOBAL
9694 # define LT_DLGLOBAL DL_GLOBAL
9696 # define LT_DLGLOBAL 0
9700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9701 find out it does not work in some platform. */
9702 #ifndef LT_DLLAZY_OR_NOW
9704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9707 # define LT_DLLAZY_OR_NOW DL_LAZY
9710 # define LT_DLLAZY_OR_NOW RTLD_NOW
9713 # define LT_DLLAZY_OR_NOW DL_NOW
9715 # define LT_DLLAZY_OR_NOW 0
9723 extern "C" void exit (int);
9726 void fnord() { int i=42;}
9729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9730 int status = $lt_dlunknown;
9734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9736 /* dlclose (self); */
9744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9745 (eval $ac_link) 2>&5
9747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9748 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9749 (./conftest; exit; ) >&5 2>/dev/null
9752 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9753 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9754 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9757 # compilation failed
9758 lt_cv_dlopen_self_static=no
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9766 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9769 CPPFLAGS="$save_CPPFLAGS"
9770 LDFLAGS="$save_LDFLAGS"
9775 case $lt_cv_dlopen_self in
9776 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9777 *) enable_dlopen_self=unknown ;;
9780 case $lt_cv_dlopen_self_static in
9781 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9782 *) enable_dlopen_self_static=unknown ;;
9787 # Report which library types will actually be built
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9789 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9791 $as_echo "$can_build_shared" >&6; }
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9794 $as_echo_n "checking whether to build shared libraries... " >&6; }
9795 test "$can_build_shared" = "no" && enable_shared=no
9797 # On AIX, shared libraries and static libraries use the same namespace, and
9798 # are all built from PIC.
9801 test "$enable_shared" = yes && enable_static=no
9802 if test -n "$RANLIB"; then
9803 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9804 postinstall_cmds='$RANLIB $lib'
9809 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9810 test "$enable_shared" = yes && enable_static=no
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9815 $as_echo "$enable_shared" >&6; }
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9818 $as_echo_n "checking whether to build static libraries... " >&6; }
9819 # Make sure either enable_shared or enable_static is yes.
9820 test "$enable_shared" = yes || enable_static=yes
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9822 $as_echo "$enable_static" >&6; }
9824 # The else clause should only fire when bootstrapping the
9825 # libtool distribution, otherwise you forgot to ship ltmain.sh
9826 # with your package, and you will get complaints that there are
9827 # no rules to generate ltmain.sh.
9828 if test -f "$ltmain"; then
9829 # See if we are running on zsh, and set the options which allow our commands through
9830 # without removal of \ escapes.
9831 if test -n "${ZSH_VERSION+set}" ; then
9832 setopt NO_GLOB_SUBST
9834 # Now quote all the things that may contain metacharacters while being
9835 # careful not to overquote the AC_SUBSTed values. We take copies of the
9836 # variables and quote the copies for generation of the libtool script.
9837 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9839 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9840 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9841 deplibs_check_method reload_flag reload_cmds need_locks \
9842 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9843 lt_cv_sys_global_symbol_to_c_name_address \
9844 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9845 old_postinstall_cmds old_postuninstall_cmds \
9849 lt_prog_compiler_wl \
9850 lt_prog_compiler_pic \
9851 lt_prog_compiler_static \
9852 lt_prog_compiler_no_builtin_flag \
9853 export_dynamic_flag_spec \
9854 thread_safe_flag_spec \
9855 whole_archive_flag_spec \
9856 enable_shared_with_static_runtimes \
9858 old_archive_from_new_cmds \
9863 compiler_lib_search_path \
9864 compiler_lib_search_dirs \
9866 archive_expsym_cmds \
9868 postuninstall_cmds \
9869 old_archive_from_expsyms_cmds \
9870 allow_undefined_flag \
9872 export_symbols_cmds \
9873 hardcode_libdir_flag_spec \
9874 hardcode_libdir_flag_spec_ld \
9875 hardcode_libdir_separator \
9876 hardcode_automatic \
9878 module_expsym_cmds \
9879 lt_cv_prog_compiler_c_o \
9885 old_archive_cmds | \
9886 old_archive_from_new_cmds | \
9888 archive_expsym_cmds | \
9890 module_expsym_cmds | \
9891 old_archive_from_expsyms_cmds | \
9892 export_symbols_cmds | \
9893 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9894 postinstall_cmds | postuninstall_cmds | \
9895 old_postinstall_cmds | old_postuninstall_cmds | \
9896 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9897 # Double-quote double-evaled strings.
9898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9907 *'\$0 --fallback-echo"')
9908 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9913 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9916 $as_echo "$as_me: creating $ofile" >&6;}
9918 cat <<__EOF__ >> "$cfgfile"
9921 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9922 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9925 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9926 # Free Software Foundation, Inc.
9928 # This file is part of GNU Libtool:
9929 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9931 # This program is free software; you can redistribute it and/or modify
9932 # it under the terms of the GNU General Public License as published by
9933 # the Free Software Foundation; either version 2 of the License, or
9934 # (at your option) any later version.
9936 # This program is distributed in the hope that it will be useful, but
9937 # WITHOUT ANY WARRANTY; without even the implied warranty of
9938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9939 # General Public License for more details.
9941 # You should have received a copy of the GNU General Public License
9942 # along with this program; if not, write to the Free Software
9943 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9945 # As a special exception to the GNU General Public License, if you
9946 # distribute this file as part of a program that contains a
9947 # configuration script generated by Autoconf, you may include it under
9948 # the same distribution terms that you use for the rest of that program.
9950 # A sed program that does not truncate output.
9953 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9954 Xsed="$SED -e 1s/^X//"
9956 # The HP-UX ksh and POSIX shell print the target directory to stdout
9958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9960 # The names of the tagged configurations supported by this script.
9963 # ### BEGIN LIBTOOL CONFIG
9965 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9967 # Shell to use when invoking shell scripts.
9970 # Whether or not to build shared libraries.
9971 build_libtool_libs=$enable_shared
9973 # Whether or not to build static libraries.
9974 build_old_libs=$enable_static
9976 # Whether or not to add -lc for building shared libraries.
9977 build_libtool_need_lc=$archive_cmds_need_lc
9979 # Whether or not to disallow shared libs when runtime libs are static
9980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9982 # Whether or not to optimize for fast installation.
9983 fast_install=$enable_fast_install
9986 host_alias=$host_alias
9991 build_alias=$build_alias
9995 # An echo program that does not interpret backslashes.
10000 AR_FLAGS=$lt_AR_FLAGS
10005 # LTCC compiler flags.
10006 LTCFLAGS=$lt_LTCFLAGS
10008 # A language-specific compiler.
10011 # Is the compiler the GNU C compiler?
10017 # The linker used to build libraries.
10020 # Whether we need hard or soft links.
10023 # A BSD-compatible nm program.
10026 # A symbol stripping program
10029 # Used to examine libraries when file_magic_cmd begins "file"
10030 MAGIC_CMD=$MAGIC_CMD
10032 # Used on cygwin: DLL creation program.
10035 # Used on cygwin: object dumper.
10038 # Used on cygwin: assembler.
10041 # The name of the directory that contains temporary libtool files.
10044 # How to create reloadable object files.
10045 reload_flag=$lt_reload_flag
10046 reload_cmds=$lt_reload_cmds
10048 # How to pass a linker flag through the compiler.
10049 wl=$lt_lt_prog_compiler_wl
10051 # Object file suffix (normally "o").
10052 objext="$ac_objext"
10054 # Old archive suffix (normally "a").
10057 # Shared library suffix (normally ".so").
10058 shrext_cmds='$shrext_cmds'
10060 # Executable file suffix (normally "").
10063 # Additional compiler flags for building library objects.
10064 pic_flag=$lt_lt_prog_compiler_pic
10067 # What is the maximum length of a command?
10068 max_cmd_len=$lt_cv_sys_max_cmd_len
10070 # Does compiler simultaneously support -c and -o options?
10071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10073 # Must we lock files when doing compilation?
10074 need_locks=$lt_need_locks
10076 # Do we need the lib prefix for modules?
10077 need_lib_prefix=$need_lib_prefix
10079 # Do we need a version for libraries?
10080 need_version=$need_version
10082 # Whether dlopen is supported.
10083 dlopen_support=$enable_dlopen
10085 # Whether dlopen of programs is supported.
10086 dlopen_self=$enable_dlopen_self
10088 # Whether dlopen of statically linked programs is supported.
10089 dlopen_self_static=$enable_dlopen_self_static
10091 # Compiler flag to prevent dynamic linking.
10092 link_static_flag=$lt_lt_prog_compiler_static
10094 # Compiler flag to turn off builtin functions.
10095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10097 # Compiler flag to allow reflexive dlopens.
10098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10100 # Compiler flag to generate shared objects directly from archives.
10101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10103 # Compiler flag to generate thread-safe objects.
10104 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10106 # Library versioning type.
10107 version_type=$version_type
10109 # Format of library name prefix.
10110 libname_spec=$lt_libname_spec
10112 # List of archive names. First name is the real one, the rest are links.
10113 # The last name is the one that the linker finds with -lNAME.
10114 library_names_spec=$lt_library_names_spec
10116 # The coded name of the library, if different from the real name.
10117 soname_spec=$lt_soname_spec
10119 # Commands used to build and install an old-style archive.
10121 old_archive_cmds=$lt_old_archive_cmds
10122 old_postinstall_cmds=$lt_old_postinstall_cmds
10123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10125 # Create an old-style archive from a shared archive.
10126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10128 # Create a temporary old-style archive to link instead of a shared archive.
10129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10131 # Commands used to build and install a shared archive.
10132 archive_cmds=$lt_archive_cmds
10133 archive_expsym_cmds=$lt_archive_expsym_cmds
10134 postinstall_cmds=$lt_postinstall_cmds
10135 postuninstall_cmds=$lt_postuninstall_cmds
10137 # Commands used to build a loadable module (assumed same as above if empty)
10138 module_cmds=$lt_module_cmds
10139 module_expsym_cmds=$lt_module_expsym_cmds
10141 # Commands to strip libraries.
10142 old_striplib=$lt_old_striplib
10143 striplib=$lt_striplib
10145 # Dependencies to place before the objects being linked to create a
10147 predep_objects=$lt_predep_objects
10149 # Dependencies to place after the objects being linked to create a
10151 postdep_objects=$lt_postdep_objects
10153 # Dependencies to place before the objects being linked to create a
10155 predeps=$lt_predeps
10157 # Dependencies to place after the objects being linked to create a
10159 postdeps=$lt_postdeps
10161 # The directories searched by this compiler when creating a shared
10163 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10165 # The library search path used internally by the compiler when linking
10166 # a shared library.
10167 compiler_lib_search_path=$lt_compiler_lib_search_path
10169 # Method to check whether dependent libraries are shared objects.
10170 deplibs_check_method=$lt_deplibs_check_method
10172 # Command to use when deplibs_check_method == file_magic.
10173 file_magic_cmd=$lt_file_magic_cmd
10175 # Flag that allows shared libraries with undefined symbols to be built.
10176 allow_undefined_flag=$lt_allow_undefined_flag
10178 # Flag that forces no undefined symbols.
10179 no_undefined_flag=$lt_no_undefined_flag
10181 # Commands used to finish a libtool library installation in a directory.
10182 finish_cmds=$lt_finish_cmds
10184 # Same as above, but a single script fragment to be evaled but not shown.
10185 finish_eval=$lt_finish_eval
10187 # Take the output of nm and produce a listing of raw symbols and C names.
10188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10190 # Transform the output of nm in a proper C declaration
10191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10193 # Transform the output of nm in a C name address pair
10194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10196 # This is the shared library runtime path variable.
10197 runpath_var=$runpath_var
10199 # This is the shared library path variable.
10200 shlibpath_var=$shlibpath_var
10202 # Is shlibpath searched before the hard-coded library search path?
10203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10205 # How to hardcode a shared library path into an executable.
10206 hardcode_action=$hardcode_action
10208 # Whether we should hardcode library paths into libraries.
10209 hardcode_into_libs=$hardcode_into_libs
10211 # Flag to hardcode \$libdir into a binary during linking.
10212 # This must work even if \$libdir does not exist.
10213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10215 # If ld is used when linking, flag to hardcode \$libdir into
10216 # a binary during linking. This must work even if \$libdir does
10218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10220 # Whether we need a single -rpath flag with a separated argument.
10221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10224 # resulting binary.
10225 hardcode_direct=$hardcode_direct
10227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10228 # resulting binary.
10229 hardcode_minus_L=$hardcode_minus_L
10231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10232 # the resulting binary.
10233 hardcode_shlibpath_var=$hardcode_shlibpath_var
10235 # Set to yes if building a shared library automatically hardcodes DIR into the library
10236 # and all subsequent libraries and executables linked against it.
10237 hardcode_automatic=$hardcode_automatic
10239 # Variables whose values should be saved in libtool wrapper scripts and
10240 # restored at relink time.
10241 variables_saved_for_relink="$variables_saved_for_relink"
10243 # Whether libtool must link a program against all its dependency libraries.
10244 link_all_deplibs=$link_all_deplibs
10246 # Compile-time system search path for libraries
10247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10249 # Run-time system search path for libraries
10250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10252 # Fix the shell variable \$srcfile for the compiler.
10253 fix_srcfile_path=$lt_fix_srcfile_path
10255 # Set to yes if exported symbols are required.
10256 always_export_symbols=$always_export_symbols
10258 # The commands to list exported symbols.
10259 export_symbols_cmds=$lt_export_symbols_cmds
10261 # The commands to extract the exported symbol list from a shared archive.
10262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10264 # Symbols that should not be listed in the preloaded symbols.
10265 exclude_expsyms=$lt_exclude_expsyms
10267 # Symbols that must always be exported.
10268 include_expsyms=$lt_include_expsyms
10270 # ### END LIBTOOL CONFIG
10277 cat <<\EOF >> "$cfgfile"
10279 # AIX sometimes has problems with the GCC collect2 program. For some
10280 # reason, if we set the COLLECT_NAMES environment variable, the problems
10281 # vanish in a puff of smoke.
10282 if test "X${COLLECT_NAMES+set}" != Xset; then
10284 export COLLECT_NAMES
10290 # We use sed instead of cat because bash on DJGPP gets confused if
10291 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10292 # text mode, it properly converts lines to CR/LF. This bash problem
10293 # is reportedly fixed, but why not run on old versions too?
10294 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10296 mv -f "$cfgfile" "$ofile" || \
10297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10301 # If there is no Makefile yet, we rely on a make rule to execute
10302 # `config.status --recheck' to rerun these tests and create the
10303 # libtool script then.
10304 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10305 if test -f "$ltmain_in"; then
10306 test -f Makefile && make "$ltmain"
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10320 # Check whether --with-tags was given.
10321 if test "${with_tags+set}" = set; then :
10322 withval=$with_tags; tagnames="$withval"
10326 if test -f "$ltmain" && test -n "$tagnames"; then
10327 if test ! -f "${ofile}"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10329 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10332 if test -z "$LTCC"; then
10333 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10334 if test -z "$LTCC"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10336 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10339 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10342 if test -z "$LTCFLAGS"; then
10343 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10346 # Extract list of available tagged configurations in $ofile.
10347 # Note that this assumes the entire list is on one line.
10348 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10351 for tagname in $tagnames; do
10353 # Check whether tagname contains only valid characters
10354 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10356 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
10360 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10362 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
10365 # Update the list of available tags.
10366 if test -n "$tagname"; then
10367 echo appending configuration tag \"$tagname\" to $ofile
10371 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10372 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10373 (test "X$CXX" != "Xg++"))) ; then
10375 ac_cpp='$CXXCPP $CPPFLAGS'
10376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10383 archive_cmds_need_lc_CXX=no
10384 allow_undefined_flag_CXX=
10385 always_export_symbols_CXX=no
10386 archive_expsym_cmds_CXX=
10387 export_dynamic_flag_spec_CXX=
10388 hardcode_direct_CXX=no
10389 hardcode_libdir_flag_spec_CXX=
10390 hardcode_libdir_flag_spec_ld_CXX=
10391 hardcode_libdir_separator_CXX=
10392 hardcode_minus_L_CXX=no
10393 hardcode_shlibpath_var_CXX=unsupported
10394 hardcode_automatic_CXX=no
10396 module_expsym_cmds_CXX=
10397 link_all_deplibs_CXX=unknown
10398 old_archive_cmds_CXX=$old_archive_cmds
10399 no_undefined_flag_CXX=
10400 whole_archive_flag_spec_CXX=
10401 enable_shared_with_static_runtimes_CXX=no
10403 # Dependencies to place before and after the object being linked:
10404 predep_objects_CXX=
10405 postdep_objects_CXX=
10408 compiler_lib_search_path_CXX=
10409 compiler_lib_search_dirs_CXX=
10411 # Source file extension for C++ test sources.
10414 # Object file extension for compiled C++ test sources.
10418 # Code to be used in simple compile tests
10419 lt_simple_compile_test_code="int some_variable = 0;"
10421 # Code to be used in simple link tests
10422 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10426 # If no C compiler was specified, use CC.
10429 # If no C compiler flags were specified, use CFLAGS.
10430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10432 # Allow CC to be a program name with arguments.
10436 # save warnings/boilerplate of simple test code
10437 ac_outfile=conftest.$ac_objext
10438 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10440 _lt_compiler_boilerplate=`cat conftest.err`
10443 ac_outfile=conftest.$ac_objext
10444 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10446 _lt_linker_boilerplate=`cat conftest.err`
10450 # Allow CC to be a program name with arguments.
10455 lt_save_with_gnu_ld=$with_gnu_ld
10456 lt_save_path_LD=$lt_cv_path_LD
10457 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10458 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10460 $as_unset lt_cv_prog_gnu_ld
10462 if test -n "${lt_cv_path_LDCXX+set}"; then
10463 lt_cv_path_LD=$lt_cv_path_LDCXX
10465 $as_unset lt_cv_path_LD
10467 test -z "${LDCXX+set}" || LD=$LDCXX
10471 for cc_temp in $compiler""; do
10473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10482 # We don't want -fno-exception wen compiling C++ code, so set the
10483 # no_builtin_flag separately
10484 if test "$GXX" = yes; then
10485 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10487 lt_prog_compiler_no_builtin_flag_CXX=
10490 if test "$GXX" = yes; then
10491 # Set up default GNU C++ configuration
10494 # Check whether --with-gnu-ld was given.
10495 if test "${with_gnu_ld+set}" = set; then :
10496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10502 if test "$GCC" = yes; then
10503 # Check if gcc -print-prog-name=ld gives a path.
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10505 $as_echo_n "checking for ld used by $CC... " >&6; }
10508 # gcc leaves a trailing carriage return which upsets mingw
10509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10514 # Accept absolute paths.
10516 re_direlt='/[^/][^/]*/\.\./'
10517 # Canonicalize the pathname of ld
10518 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10519 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10520 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10522 test -z "$LD" && LD="$ac_prog"
10525 # If it fails, then pretend we aren't using GCC.
10529 # If it is relative, then search for the first ld in PATH.
10530 with_gnu_ld=unknown
10533 elif test "$with_gnu_ld" = yes; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10535 $as_echo_n "checking for GNU ld... " >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10538 $as_echo_n "checking for non-GNU ld... " >&6; }
10540 if test "${lt_cv_path_LD+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10543 if test -z "$LD"; then
10544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10545 for ac_dir in $PATH; do
10547 test -z "$ac_dir" && ac_dir=.
10548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10549 lt_cv_path_LD="$ac_dir/$ac_prog"
10550 # Check to see if the program is GNU ld. I'd rather use --version,
10551 # but apparently some variants of GNU ld only accept -v.
10552 # Break only if it was the GNU/non-GNU ld that we prefer.
10553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10554 *GNU* | *'with BFD'*)
10555 test "$with_gnu_ld" != no && break
10558 test "$with_gnu_ld" != yes && break
10565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10569 LD="$lt_cv_path_LD"
10570 if test -n "$LD"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10572 $as_echo "$LD" >&6; }
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10577 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10580 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10584 case `$LD -v 2>&1 </dev/null` in
10585 *GNU* | *'with BFD'*)
10586 lt_cv_prog_gnu_ld=yes
10589 lt_cv_prog_gnu_ld=no
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10595 with_gnu_ld=$lt_cv_prog_gnu_ld
10599 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10600 # archiving commands below assume that GNU ld is being used.
10601 if test "$with_gnu_ld" = yes; then
10602 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 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'
10605 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10608 # If archive_cmds runs LD, not CC, wlarc should be empty
10609 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10610 # investigate it a little bit more. (MM)
10613 # ancient GNU ld didn't support --whole-archive et. al.
10614 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10615 grep 'no-whole-archive' > /dev/null; then
10616 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10618 whole_archive_flag_spec_CXX=
10624 # A generic and very simple default shared library creation
10625 # command for GNU C++ for the case where it uses the native
10626 # linker, instead of GNU ld. If possible, this setting should
10627 # overridden to take advantage of the native linker features on
10628 # the platform it is being used on.
10629 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10632 # Commands to make compiler produce verbose output that lists
10633 # what "hidden" libraries, object files and flags are used when
10634 # linking a shared library.
10635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10643 # PORTME: fill in a description of your system's C++ link characteristics
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10645 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10649 # FIXME: insert proper C++ library support
10653 if test "$host_cpu" = ia64; then
10654 # On IA64, the linker does run time linking by default, so we don't
10655 # have to do anything special.
10656 aix_use_runtimelinking=no
10657 exp_sym_flag='-Bexport'
10660 aix_use_runtimelinking=no
10662 # Test if we are trying to use run time linking or normal
10663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10664 # need to do runtime linking.
10665 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10666 for ld_flag in $LDFLAGS; do
10669 aix_use_runtimelinking=yes
10677 exp_sym_flag='-bexport'
10678 no_entry_flag='-bnoentry'
10681 # When large executables or shared objects are built, AIX ld can
10682 # have problems creating the table of contents. If linking a library
10683 # or program results in "error TOC overflow" add -mminimal-toc to
10684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10687 archive_cmds_CXX=''
10688 hardcode_direct_CXX=yes
10689 hardcode_libdir_separator_CXX=':'
10690 link_all_deplibs_CXX=yes
10692 if test "$GXX" = yes; then
10693 case $host_os in aix4.[012]|aix4.[012].*)
10694 # We only want to do this on AIX 4.2 and lower, the check
10695 # below for broken collect2 doesn't work under 4.3+
10696 collect2name=`${CC} -print-prog-name=collect2`
10697 if test -f "$collect2name" && \
10698 strings "$collect2name" | grep resolve_lib_name >/dev/null
10700 # We have reworked collect2
10703 # We have old collect2
10704 hardcode_direct_CXX=unsupported
10705 # It fails to find uninstalled libraries when the uninstalled
10706 # path is not listed in the libpath. Setting hardcode_minus_L
10707 # to unsupported forces relinking
10708 hardcode_minus_L_CXX=yes
10709 hardcode_libdir_flag_spec_CXX='-L$libdir'
10710 hardcode_libdir_separator_CXX=
10714 shared_flag='-shared'
10715 if test "$aix_use_runtimelinking" = yes; then
10716 shared_flag="$shared_flag "'${wl}-G'
10720 if test "$host_cpu" = ia64; then
10721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10722 # chokes on -Wl,-G. The following line is correct:
10725 if test "$aix_use_runtimelinking" = yes; then
10726 shared_flag='${wl}-G'
10728 shared_flag='${wl}-bM:SRE'
10733 # It seems that -bexpall does not export symbols beginning with
10734 # underscore (_), so it is better to generate a list of symbols to export.
10735 always_export_symbols_CXX=yes
10736 if test "$aix_use_runtimelinking" = yes; then
10737 # Warning - without using the other runtime loading flags (-brtl),
10738 # -berok will link without error, but may produce a broken library.
10739 allow_undefined_flag_CXX='-berok'
10740 # Determine the default libpath from the value encoded in an empty executable.
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10752 if ac_fn_cxx_try_link "$LINENO"; then :
10754 lt_aix_libpath_sed='
10755 /Import File Strings/,/^$/ {
10761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10762 # Check for a 64-bit object if we didn't find anything.
10763 if test -z "$aix_libpath"; then
10764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10773 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"
10775 if test "$host_cpu" = ia64; then
10776 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10777 allow_undefined_flag_CXX="-z nodefs"
10778 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"
10780 # Determine the default libpath from the value encoded in an empty executable.
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10792 if ac_fn_cxx_try_link "$LINENO"; then :
10794 lt_aix_libpath_sed='
10795 /Import File Strings/,/^$/ {
10801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10802 # Check for a 64-bit object if we didn't find anything.
10803 if test -z "$aix_libpath"; then
10804 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807 rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10811 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10812 # Warning - without using the other run time loading flags,
10813 # -berok will link without error, but may produce a broken library.
10814 no_undefined_flag_CXX=' ${wl}-bernotok'
10815 allow_undefined_flag_CXX=' ${wl}-berok'
10816 # Exported symbols can be pulled into shared objects from archives
10817 whole_archive_flag_spec_CXX='$convenience'
10818 archive_cmds_need_lc_CXX=yes
10819 # This is similar to how AIX traditionally builds its shared libraries.
10820 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'
10826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10827 allow_undefined_flag_CXX=unsupported
10828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10829 # support --undefined. This deserves some investigation. FIXME
10830 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10837 case $cc_basename in
10839 # FIXME: insert proper C++ library support
10845 cygwin* | mingw* | pw32*)
10846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10847 # as there is no search path for DLLs.
10848 hardcode_libdir_flag_spec_CXX='-L$libdir'
10849 allow_undefined_flag_CXX=unsupported
10850 always_export_symbols_CXX=no
10851 enable_shared_with_static_runtimes_CXX=yes
10853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10854 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'
10855 # If the export-symbols file already is a .def file (1st line
10856 # is EXPORTS), use it as is; otherwise, prepend...
10857 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10858 cp $export_symbols $output_objdir/$soname.def;
10860 echo EXPORTS > $output_objdir/$soname.def;
10861 cat $export_symbols >> $output_objdir/$soname.def;
10863 $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'
10868 darwin* | rhapsody*)
10869 archive_cmds_need_lc_CXX=no
10870 hardcode_direct_CXX=no
10871 hardcode_automatic_CXX=yes
10872 hardcode_shlibpath_var_CXX=unsupported
10873 whole_archive_flag_spec_CXX=''
10874 link_all_deplibs_CXX=yes
10875 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10876 if test "$GXX" = yes ; then
10877 output_verbose_link_cmd='echo'
10878 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}"
10879 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10880 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}"
10881 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}"
10882 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10883 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}"
10884 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}"
10887 case $cc_basename in
10889 output_verbose_link_cmd='echo'
10890 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'
10891 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10893 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}'
10894 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}'
10904 case $cc_basename in
10906 # FIXME: insert proper C++ library support
10910 # Green Hills C++ Compiler
10911 # FIXME: insert proper C++ library support
10915 # FIXME: insert proper C++ library support
10921 # C++ shared libraries reported to be fairly broken before switch to ELF
10925 archive_cmds_need_lc_CXX=no
10927 freebsd* | dragonfly*)
10928 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10935 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10936 hardcode_libdir_separator_CXX=:
10937 export_dynamic_flag_spec_CXX='${wl}-E'
10938 hardcode_direct_CXX=yes
10939 hardcode_minus_L_CXX=yes # Not in the search PATH,
10940 # but as the default
10941 # location of the library.
10943 case $cc_basename in
10945 # FIXME: insert proper C++ library support
10949 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'
10950 # Commands to make compiler produce verbose output that lists
10951 # what "hidden" libraries, object files and flags are used when
10952 # linking a shared library.
10954 # There doesn't appear to be a way to prevent this compiler from
10955 # explicitly linking system object files so we need to strip them
10956 # from the output so that they don't get included in the library
10958 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'
10961 if test "$GXX" = yes; then
10962 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'
10964 # FIXME: insert proper C++ library support
10971 if test $with_gnu_ld = no; then
10972 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10973 hardcode_libdir_separator_CXX=:
10978 export_dynamic_flag_spec_CXX='${wl}-E'
10984 hardcode_direct_CXX=no
10985 hardcode_shlibpath_var_CXX=no
10988 hardcode_direct_CXX=yes
10989 hardcode_minus_L_CXX=yes # Not in the search PATH,
10990 # but as the default
10991 # location of the library.
10995 case $cc_basename in
10997 # FIXME: insert proper C++ library support
11003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11006 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11009 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11012 # Commands to make compiler produce verbose output that lists
11013 # what "hidden" libraries, object files and flags are used when
11014 # linking a shared library.
11016 # There doesn't appear to be a way to prevent this compiler from
11017 # explicitly linking system object files so we need to strip them
11018 # from the output so that they don't get included in the library
11020 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'
11023 if test "$GXX" = yes; then
11024 if test $with_gnu_ld = no; then
11027 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11030 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11033 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'
11038 # FIXME: insert proper C++ library support
11045 hardcode_direct_CXX=no
11046 hardcode_shlibpath_var_CXX=no
11047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11048 export_dynamic_flag_spec_CXX='${wl}-E'
11049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11050 # Instead, shared libraries are loaded at an image base (0x10000000 by
11051 # default) and relocated if they conflict, which is a slow very memory
11052 # consuming and fragmenting process. To avoid this, we pick a random,
11053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11055 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'
11056 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'
11059 case $cc_basename in
11062 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'
11064 # Archives containing C++ object files must be created using
11065 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11066 # necessary to make sure instantiated templates are included
11068 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11071 if test "$GXX" = yes; then
11072 if test "$with_gnu_ld" = no; then
11073 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'
11075 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'
11078 link_all_deplibs_CXX=yes
11081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11082 hardcode_libdir_separator_CXX=:
11084 linux* | k*bsd*-gnu)
11085 case $cc_basename in
11087 # Kuck and Associates, Inc. (KAI) C++ Compiler
11089 # KCC will only create a shared library if the output file
11090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11091 # to its proper name (with version) after linking.
11092 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'
11093 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'
11094 # Commands to make compiler produce verbose output that lists
11095 # what "hidden" libraries, object files and flags are used when
11096 # linking a shared library.
11098 # There doesn't appear to be a way to prevent this compiler from
11099 # explicitly linking system object files so we need to strip them
11100 # from the output so that they don't get included in the library
11102 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'
11104 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11107 # Archives containing C++ object files must be created using
11108 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11109 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11114 # version 8.0 and above of icpc choke on multiply defined symbols
11115 # if we add $predep_objects and $postdep_objects, however 7.1 and
11116 # earlier do not add the objects themselves.
11117 case `$CC -V 2>&1` in
11119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11120 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'
11122 *) # Version 8.0 or newer
11125 ia64*) tmp_idyn=' -i_dynamic';;
11127 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11128 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'
11131 archive_cmds_need_lc_CXX=no
11132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11134 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11137 # Portland Group C++ compiler
11138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11139 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'
11141 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11142 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11143 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'
11147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 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'
11150 runpath_var=LD_RUN_PATH
11151 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11152 hardcode_libdir_separator_CXX=:
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11158 # There doesn't appear to be a way to prevent this compiler from
11159 # explicitly linking system object files so we need to strip them
11160 # from the output so that they don't get included in the library
11162 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'
11165 case `$CC -V 2>&1 | sed 5q` in
11168 no_undefined_flag_CXX=' -zdefs'
11169 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11170 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'
11171 hardcode_libdir_flag_spec_CXX='-R$libdir'
11172 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'
11174 # Not sure whether something based on
11175 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11177 output_verbose_link_cmd='echo'
11179 # Archives containing C++ object files must be created using
11180 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11181 # necessary to make sure instantiated templates are included
11183 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11190 # FIXME: insert proper C++ library support
11194 # FIXME: insert proper C++ library support
11198 case $cc_basename in
11200 # FIXME: insert proper C++ library support
11204 # FIXME: insert proper C++ library support
11209 netbsd* | netbsdelf*-gnu)
11210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11211 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11213 hardcode_libdir_flag_spec_CXX='-R$libdir'
11214 hardcode_direct_CXX=yes
11215 hardcode_shlibpath_var_CXX=no
11217 # Workaround some broken pre-1.5 toolchains
11218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11221 # C++ shared libraries are fairly broken
11225 if test -f /usr/libexec/ld.so; then
11226 hardcode_direct_CXX=yes
11227 hardcode_shlibpath_var_CXX=no
11228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11231 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11232 export_dynamic_flag_spec_CXX='${wl}-E'
11233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11235 output_verbose_link_cmd='echo'
11241 case $cc_basename in
11243 # Kuck and Associates, Inc. (KAI) C++ Compiler
11245 # KCC will only create a shared library if the output file
11246 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11247 # to its proper name (with version) after linking.
11248 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'
11250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11251 hardcode_libdir_separator_CXX=:
11253 # Archives containing C++ object files must be created using
11254 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11255 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11259 # Rational C++ 2.4.1
11260 # FIXME: insert proper C++ library support
11264 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11265 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'
11267 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11268 hardcode_libdir_separator_CXX=:
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11274 # There doesn't appear to be a way to prevent this compiler from
11275 # explicitly linking system object files so we need to strip them
11276 # from the output so that they don't get included in the library
11278 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'
11281 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11282 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11283 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'
11285 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11286 hardcode_libdir_separator_CXX=:
11288 # Commands to make compiler produce verbose output that lists
11289 # what "hidden" libraries, object files and flags are used when
11290 # linking a shared library.
11291 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11294 # FIXME: insert proper C++ library support
11301 case $cc_basename in
11303 # Kuck and Associates, Inc. (KAI) C++ Compiler
11305 # KCC will only create a shared library if the output file
11306 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11307 # to its proper name (with version) after linking.
11308 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'
11310 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11311 hardcode_libdir_separator_CXX=:
11313 # Archives containing C++ object files must be created using
11314 # the KAI C++ compiler.
11315 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11318 # Rational C++ 2.4.1
11319 # FIXME: insert proper C++ library support
11323 allow_undefined_flag_CXX=' -expect_unresolved \*'
11324 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'
11325 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11326 echo "-hidden">> $lib.exp~
11327 $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~
11330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11331 hardcode_libdir_separator_CXX=:
11333 # Commands to make compiler produce verbose output that lists
11334 # what "hidden" libraries, object files and flags are used when
11335 # linking a shared library.
11337 # There doesn't appear to be a way to prevent this compiler from
11338 # explicitly linking system object files so we need to strip them
11339 # from the output so that they don't get included in the library
11341 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'
11344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11346 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'
11348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11349 hardcode_libdir_separator_CXX=:
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11357 # FIXME: insert proper C++ library support
11364 # FIXME: insert proper C++ library support
11368 case $cc_basename in
11371 # FIXME: insert proper C++ library support
11376 # FIXME: insert proper C++ library support
11380 # FIXME: insert proper C++ library support
11386 case $cc_basename in
11388 # Sun C++ 4.2, 5.x and Centerline C++
11389 archive_cmds_need_lc_CXX=yes
11390 no_undefined_flag_CXX=' -zdefs'
11391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11393 $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'
11395 hardcode_libdir_flag_spec_CXX='-R$libdir'
11396 hardcode_shlibpath_var_CXX=no
11398 solaris2.[0-5] | solaris2.[0-5].*) ;;
11400 # The compiler driver will combine and reorder linker options,
11401 # but understands `-z linker_flag'.
11402 # Supported since Solaris 2.6 (maybe 2.5.1?)
11403 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11406 link_all_deplibs_CXX=yes
11408 output_verbose_link_cmd='echo'
11410 # Archives containing C++ object files must be created using
11411 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11412 # necessary to make sure instantiated templates are included
11414 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11417 # Green Hills C++ Compiler
11418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11420 # The C++ compiler must be used to create the archive.
11421 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11424 # GNU C++ compiler with Solaris linker
11425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11426 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11427 if $CC --version | grep -v '^2\.7' > /dev/null; then
11428 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11429 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11430 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11432 # Commands to make compiler produce verbose output that lists
11433 # what "hidden" libraries, object files and flags are used when
11434 # linking a shared library.
11435 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11437 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11439 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11440 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11441 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11443 # Commands to make compiler produce verbose output that lists
11444 # what "hidden" libraries, object files and flags are used when
11445 # linking a shared library.
11446 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11449 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11451 solaris2.[0-5] | solaris2.[0-5].*) ;;
11453 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11461 no_undefined_flag_CXX='${wl}-z,text'
11462 archive_cmds_need_lc_CXX=no
11463 hardcode_shlibpath_var_CXX=no
11464 runpath_var='LD_RUN_PATH'
11466 case $cc_basename in
11468 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11469 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11472 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11477 sysv5* | sco3.2v5* | sco5v6*)
11478 # Note: We can NOT use -z defs as we might desire, because we do not
11479 # link with -lc, and that would cause any symbols used from libc to
11480 # always be unresolved, which means just about no library would
11481 # ever link correctly. If we're not using GNU ld we use -z text
11482 # though, which does catch some bad symbols but isn't as heavy-handed
11484 # For security reasons, it is highly recommended that you always
11485 # use absolute paths for naming shared libraries, and exclude the
11486 # DT_RUNPATH tag from executables and libraries. But doing so
11487 # requires that you compile everything twice, which is a pain.
11488 # So that behaviour is only enabled if SCOABSPATH is set to a
11489 # non-empty value in the environment. Most likely only useful for
11490 # creating official distributions of packages.
11491 # This is a hack until libtool officially supports absolute path
11492 # names for shared libraries.
11493 no_undefined_flag_CXX='${wl}-z,text'
11494 allow_undefined_flag_CXX='${wl}-z,nodefs'
11495 archive_cmds_need_lc_CXX=no
11496 hardcode_shlibpath_var_CXX=no
11497 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11498 hardcode_libdir_separator_CXX=':'
11499 link_all_deplibs_CXX=yes
11500 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11501 runpath_var='LD_RUN_PATH'
11503 case $cc_basename in
11505 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11506 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11509 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11510 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11515 case $cc_basename in
11517 # NonStop-UX NCC 3.20
11518 # FIXME: insert proper C++ library support
11522 # FIXME: insert proper C++ library support
11528 # FIXME: insert proper C++ library support
11532 # FIXME: insert proper C++ library support
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11537 $as_echo "$ld_shlibs_CXX" >&6; }
11538 test "$ld_shlibs_CXX" = no && can_build_shared=no
11543 cat > conftest.$ac_ext <<EOF
11547 Foo (void) { a = 0; }
11553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11554 (eval $ac_compile) 2>&5
11556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557 test $ac_status = 0; }; then
11558 # Parse the compiler output and extract the necessary
11559 # objects, libraries and library flags.
11561 # Sentinel used to keep track of whether or not we are before
11562 # the conftest object file.
11563 pre_test_object_deps_done=no
11565 # The `*' in the case matches for architectures that use `case' in
11566 # $output_verbose_cmd can trigger glob expansion during the loop
11567 # eval without this substitution.
11568 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11570 for p in `eval $output_verbose_link_cmd`; do
11574 # Some compilers place space between "-{L,R}" and the path.
11575 # Remove the space.
11576 if test $p = "-L" \
11577 || test $p = "-R"; then
11584 if test "$pre_test_object_deps_done" = no; then
11587 # Internal compiler library paths should come after those
11588 # provided the user. The postdeps already come after the
11589 # user supplied libs so there is no need to process them.
11590 if test -z "$compiler_lib_search_path_CXX"; then
11591 compiler_lib_search_path_CXX="${prev}${p}"
11593 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11596 # The "-l" case would never come before the object being
11597 # linked, so don't bother handling this case.
11600 if test -z "$postdeps_CXX"; then
11601 postdeps_CXX="${prev}${p}"
11603 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11609 # This assumes that the test object file only shows up
11610 # once in the compiler output.
11611 if test "$p" = "conftest.$objext"; then
11612 pre_test_object_deps_done=yes
11616 if test "$pre_test_object_deps_done" = no; then
11617 if test -z "$predep_objects_CXX"; then
11618 predep_objects_CXX="$p"
11620 predep_objects_CXX="$predep_objects_CXX $p"
11623 if test -z "$postdep_objects_CXX"; then
11624 postdep_objects_CXX="$p"
11626 postdep_objects_CXX="$postdep_objects_CXX $p"
11631 *) ;; # Ignore the rest.
11639 echo "libtool.m4: error: problem compiling CXX test program"
11642 $rm -f confest.$objext
11644 compiler_lib_search_dirs_CXX=
11645 if test -n "$compiler_lib_search_path_CXX"; then
11646 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11649 # PORTME: override above test on systems where it is broken
11652 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11653 # hack all around it, let's just trust "g++" to DTRT.
11654 predep_objects_CXX=
11655 postdep_objects_CXX=
11660 case `$CC -V 2>&1 | sed 5q` in
11664 # The more standards-conforming stlport4 library is
11665 # incompatible with the Cstd library. Avoid specifying
11666 # it if it's in CXXFLAGS. Ignore libCrun as
11667 # -library=stlport4 depends on it.
11668 case " $CXX $CXXFLAGS " in
11669 *" -library=stlport4 "*)
11670 solaris_use_stlport4=yes
11673 if test "$solaris_use_stlport4" != yes; then
11674 postdeps_CXX='-library=Cstd -library=Crun'
11681 case $cc_basename in
11683 # The more standards-conforming stlport4 library is
11684 # incompatible with the Cstd library. Avoid specifying
11685 # it if it's in CXXFLAGS. Ignore libCrun as
11686 # -library=stlport4 depends on it.
11687 case " $CXX $CXXFLAGS " in
11688 *" -library=stlport4 "*)
11689 solaris_use_stlport4=yes
11693 # Adding this requires a known-good setup of shared libraries for
11694 # Sun compiler versions before 5.6, else PIC objects from an old
11695 # archive will be linked into the output, leading to subtle bugs.
11696 if test "$solaris_use_stlport4" != yes; then
11697 postdeps_CXX='-library=Cstd -library=Crun'
11704 case " $postdeps_CXX " in
11705 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11708 lt_prog_compiler_wl_CXX=
11709 lt_prog_compiler_pic_CXX=
11710 lt_prog_compiler_static_CXX=
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11713 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11715 # C++ specific cases for pic, static, wl, etc.
11716 if test "$GXX" = yes; then
11717 lt_prog_compiler_wl_CXX='-Wl,'
11718 lt_prog_compiler_static_CXX='-static'
11722 # All AIX code is PIC.
11723 if test "$host_cpu" = ia64; then
11724 # AIX 5 now supports IA64 processor
11725 lt_prog_compiler_static_CXX='-Bstatic'
11729 # FIXME: we need at least 68020 code to build shared libraries, but
11730 # adding the `-m68020' flag to GCC prevents building anything better,
11732 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11735 # PIC is the default for these OSes.
11737 mingw* | cygwin* | os2* | pw32*)
11738 # This hack is so that the source file can tell whether it is being
11739 # built for inclusion in a dll (and should export symbols for example).
11740 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11741 # (--disable-auto-import) libraries
11742 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11744 darwin* | rhapsody*)
11745 # PIC is the default on this platform
11746 # Common symbols not allowed in MH_DYLIB files
11747 lt_prog_compiler_pic_CXX='-fno-common'
11750 # DJGPP does not support shared libraries at all
11751 lt_prog_compiler_pic_CXX=
11754 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11755 # Instead, we relocate shared libraries at runtime.
11758 if test -d /usr/nec; then
11759 lt_prog_compiler_pic_CXX=-Kconform_pic
11763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11764 # not for PA HP-UX.
11769 lt_prog_compiler_pic_CXX='-fPIC'
11774 lt_prog_compiler_pic_CXX='-fPIC'
11780 # All AIX code is PIC.
11781 if test "$host_cpu" = ia64; then
11782 # AIX 5 now supports IA64 processor
11783 lt_prog_compiler_static_CXX='-Bstatic'
11785 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11789 case $cc_basename in
11791 # Green Hills C++ Compiler
11792 # _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"
11797 # PIC is the default on this platform
11798 # Common symbols not allowed in MH_DYLIB files
11799 case $cc_basename in
11801 lt_prog_compiler_pic_CXX='-qnocommon'
11802 lt_prog_compiler_wl_CXX='-Wl,'
11807 case $cc_basename in
11809 lt_prog_compiler_pic_CXX='-KPIC'
11812 # Green Hills C++ Compiler
11813 lt_prog_compiler_pic_CXX='-pic'
11819 freebsd* | dragonfly*)
11820 # FreeBSD uses GNU C++
11822 hpux9* | hpux10* | hpux11*)
11823 case $cc_basename in
11825 lt_prog_compiler_wl_CXX='-Wl,'
11826 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11827 if test "$host_cpu" != ia64; then
11828 lt_prog_compiler_pic_CXX='+Z'
11832 lt_prog_compiler_wl_CXX='-Wl,'
11833 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11839 lt_prog_compiler_pic_CXX='+Z'
11848 # This is c89, which is MS Visual C++ (no shared libs)
11849 # Anyone wants to do a port?
11851 irix5* | irix6* | nonstopux*)
11852 case $cc_basename in
11854 lt_prog_compiler_wl_CXX='-Wl,'
11855 lt_prog_compiler_static_CXX='-non_shared'
11856 # CC pic flag -KPIC is the default.
11862 linux* | k*bsd*-gnu)
11863 case $cc_basename in
11866 lt_prog_compiler_wl_CXX='--backend -Wl,'
11867 lt_prog_compiler_pic_CXX='-fPIC'
11871 lt_prog_compiler_wl_CXX='-Wl,'
11872 lt_prog_compiler_pic_CXX='-KPIC'
11873 lt_prog_compiler_static_CXX='-static'
11876 # Portland Group C++ compiler.
11877 lt_prog_compiler_wl_CXX='-Wl,'
11878 lt_prog_compiler_pic_CXX='-fpic'
11879 lt_prog_compiler_static_CXX='-Bstatic'
11883 # Make sure the PIC flag is empty. It appears that all Alpha
11884 # Linux and Compaq Tru64 Unix objects are PIC.
11885 lt_prog_compiler_pic_CXX=
11886 lt_prog_compiler_static_CXX='-non_shared'
11889 case `$CC -V 2>&1 | sed 5q` in
11892 lt_prog_compiler_pic_CXX='-KPIC'
11893 lt_prog_compiler_static_CXX='-Bstatic'
11894 lt_prog_compiler_wl_CXX='-Qoption ld '
11905 case $cc_basename in
11907 lt_prog_compiler_pic_CXX='-W c,exportall'
11913 netbsd* | netbsdelf*-gnu)
11915 osf3* | osf4* | osf5*)
11916 case $cc_basename in
11918 lt_prog_compiler_wl_CXX='--backend -Wl,'
11921 # Rational C++ 2.4.1
11922 lt_prog_compiler_pic_CXX='-pic'
11925 # Digital/Compaq C++
11926 lt_prog_compiler_wl_CXX='-Wl,'
11927 # Make sure the PIC flag is empty. It appears that all Alpha
11928 # Linux and Compaq Tru64 Unix objects are PIC.
11929 lt_prog_compiler_pic_CXX=
11930 lt_prog_compiler_static_CXX='-non_shared'
11939 case $cc_basename in
11941 # Sun C++ 4.2, 5.x and Centerline C++
11942 lt_prog_compiler_pic_CXX='-KPIC'
11943 lt_prog_compiler_static_CXX='-Bstatic'
11944 lt_prog_compiler_wl_CXX='-Qoption ld '
11947 # Green Hills C++ Compiler
11948 lt_prog_compiler_pic_CXX='-PIC'
11955 case $cc_basename in
11958 lt_prog_compiler_pic_CXX='-pic'
11959 lt_prog_compiler_static_CXX='-Bstatic'
11963 lt_prog_compiler_pic_CXX='-pic'
11970 case $cc_basename in
11972 # NonStop-UX NCC 3.20
11973 lt_prog_compiler_pic_CXX='-KPIC'
11979 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11980 case $cc_basename in
11982 lt_prog_compiler_wl_CXX='-Wl,'
11983 lt_prog_compiler_pic_CXX='-KPIC'
11984 lt_prog_compiler_static_CXX='-Bstatic'
11991 lt_prog_compiler_can_build_shared_CXX=no
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11997 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12000 # Check to make sure the PIC flag actually works.
12002 if test -n "$lt_prog_compiler_pic_CXX"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12005 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12006 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12009 lt_cv_prog_compiler_pic_works_CXX=no
12010 ac_outfile=conftest.$ac_objext
12011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12012 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12013 # Insert the option either (1) after the last *FLAGS variable, or
12014 # (2) before a word containing "conftest.", or (3) at the end.
12015 # Note that $ac_compile itself does not contain backslashes and begins
12016 # with a dollar sign (not a hyphen), so the echo should work correctly.
12017 # The option is referenced via a variable to avoid confusing sed.
12018 lt_compile=`echo "$ac_compile" | $SED \
12019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12021 -e 's:$: $lt_compiler_flag:'`
12022 (eval echo "\"\$as_me:12022: $lt_compile\"" >&5)
12023 (eval "$lt_compile" 2>conftest.err)
12025 cat conftest.err >&5
12026 echo "$as_me:12026: \$? = $ac_status" >&5
12027 if (exit $ac_status) && test -s "$ac_outfile"; then
12028 # The compiler can only warn and ignore the option if not recognized
12029 # So say no if there are warnings other than the usual output.
12030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12033 lt_cv_prog_compiler_pic_works_CXX=yes
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12040 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12042 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12043 case $lt_prog_compiler_pic_CXX in
12045 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12048 lt_prog_compiler_pic_CXX=
12049 lt_prog_compiler_can_build_shared_CXX=no
12054 # For platforms which do not support PIC, -DPIC is meaningless:
12056 lt_prog_compiler_pic_CXX=
12059 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12064 # Check to make sure the static flag actually works.
12066 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12068 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12069 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12072 lt_cv_prog_compiler_static_works_CXX=no
12073 save_LDFLAGS="$LDFLAGS"
12074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12075 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12077 # The linker can only warn and ignore the option if not recognized
12078 # So say no if there are warnings
12079 if test -s conftest.err; then
12080 # Append any errors to the config.log.
12081 cat conftest.err 1>&5
12082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12084 if diff conftest.exp conftest.er2 >/dev/null; then
12085 lt_cv_prog_compiler_static_works_CXX=yes
12088 lt_cv_prog_compiler_static_works_CXX=yes
12092 LDFLAGS="$save_LDFLAGS"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12096 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12098 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12101 lt_prog_compiler_static_CXX=
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12107 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12110 lt_cv_prog_compiler_c_o_CXX=no
12111 $rm -r conftest 2>/dev/null
12115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12117 lt_compiler_flag="-o out/conftest2.$ac_objext"
12118 # Insert the option either (1) after the last *FLAGS variable, or
12119 # (2) before a word containing "conftest.", or (3) at the end.
12120 # Note that $ac_compile itself does not contain backslashes and begins
12121 # with a dollar sign (not a hyphen), so the echo should work correctly.
12122 lt_compile=`echo "$ac_compile" | $SED \
12123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12125 -e 's:$: $lt_compiler_flag:'`
12126 (eval echo "\"\$as_me:12126: $lt_compile\"" >&5)
12127 (eval "$lt_compile" 2>out/conftest.err)
12129 cat out/conftest.err >&5
12130 echo "$as_me:12130: \$? = $ac_status" >&5
12131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12133 # The compiler can only warn and ignore the option if not recognized
12134 # So say no if there are warnings
12135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12138 lt_cv_prog_compiler_c_o_CXX=yes
12143 # SGI C++ compiler will create directory out/ii_files/ for
12144 # template instantiation
12145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12146 $rm out/* && rmdir out
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12153 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12156 hard_links="nottested"
12157 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12158 # do not overwrite the value of need_locks provided by the user
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12160 $as_echo_n "checking if we can lock with hard links... " >&6; }
12163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12165 ln conftest.a conftest.b 2>&5 || hard_links=no
12166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12168 $as_echo "$hard_links" >&6; }
12169 if test "$hard_links" = no; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12171 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12179 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12181 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12184 # If we're using GNU nm, then we don't want the "-C" option.
12185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12186 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12187 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'
12189 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'
12193 export_symbols_cmds_CXX="$ltdll_cmds"
12196 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'
12198 linux* | k*bsd*-gnu)
12199 link_all_deplibs_CXX=no
12202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12205 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12208 $as_echo "$ld_shlibs_CXX" >&6; }
12209 test "$ld_shlibs_CXX" = no && can_build_shared=no
12212 # Do we need to explicitly link libc?
12214 case "x$archive_cmds_need_lc_CXX" in
12216 # Assume -lc should be added
12217 archive_cmds_need_lc_CXX=yes
12219 if test "$enable_shared" = yes && test "$GCC" = yes; then
12220 case $archive_cmds_CXX in
12222 # FIXME: we may have to deal with multi-command sequences.
12225 # Test whether the compiler implicitly links with -lc since on some
12226 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12227 # to ld, don't add -lc before -lgcc.
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12229 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12234 (eval $ac_compile) 2>&5
12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237 test $ac_status = 0; } 2>conftest.err; then
12240 libobjs=conftest.$ac_objext
12242 wl=$lt_prog_compiler_wl_CXX
12243 pic_flag=$lt_prog_compiler_pic_CXX
12249 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12250 allow_undefined_flag_CXX=
12251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12252 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12255 test $ac_status = 0; }
12257 archive_cmds_need_lc_CXX=no
12259 archive_cmds_need_lc_CXX=yes
12261 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12263 cat conftest.err 1>&5
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12267 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12276 library_names_spec=
12277 libname_spec='lib$name'
12281 postuninstall_cmds=
12285 shlibpath_overrides_runpath=unknown
12287 dynamic_linker="$host_os ld.so"
12288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12290 need_lib_prefix=unknown
12291 hardcode_into_libs=no
12293 # when you set need_version to no, make sure it does not cause -set_version
12294 # flags to be left without arguments
12295 need_version=unknown
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12301 shlibpath_var=LIBPATH
12303 # AIX 3 has no versioning support, so we append a major version to the name.
12304 soname_spec='${libname}${release}${shared_ext}$major'
12311 hardcode_into_libs=yes
12312 if test "$host_cpu" = ia64; then
12313 # AIX 5 supports IA64
12314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12315 shlibpath_var=LD_LIBRARY_PATH
12317 # With GCC up to 2.95.x, collect2 would create an import file
12318 # for dependence libraries. The import file would start with
12319 # the line `#! .'. This would cause the generated library to
12320 # depend on `.', always an invalid library. This was fixed in
12321 # development snapshots of GCC prior to 3.0.
12323 aix4 | aix4.[01] | aix4.[01].*)
12324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12326 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12329 can_build_shared=no
12333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12334 # soname into executable. Probably we can add versioning support to
12335 # collect2, so additional links can be useful in future.
12336 if test "$aix_use_runtimelinking" = yes; then
12337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12338 # instead of lib<name>.a to let people know that these are not
12339 # typical AIX shared libraries.
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12342 # We preserve .a as extension for shared libraries through AIX4.2
12343 # and later when we are not doing run time linking.
12344 library_names_spec='${libname}${release}.a $libname.a'
12345 soname_spec='${libname}${release}${shared_ext}$major'
12347 shlibpath_var=LIBPATH
12352 library_names_spec='$libname.ixlibrary $libname.a'
12353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12354 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'
12358 library_names_spec='${libname}${shared_ext}'
12359 dynamic_linker="$host_os ld.so"
12360 shlibpath_var=LIBRARY_PATH
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12372 # the default ld.so.conf also contains /usr/contrib/lib and
12373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12374 # libtool to hard-code these into programs
12377 cygwin* | mingw* | pw32*)
12378 version_type=windows
12383 case $GCC,$host_os in
12384 yes,cygwin* | yes,mingw* | yes,pw32*)
12385 library_names_spec='$libname.dll.a'
12386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12387 postinstall_cmds='base_file=`basename \${file}`~
12388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12389 dldir=$destdir/`dirname \$dlpath`~
12390 test -d \$dldir || mkdir -p \$dldir~
12391 $install_prog $dir/$dlname \$dldir/$dlname~
12392 chmod a+x \$dldir/$dlname'
12393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12394 dlpath=$dir/\$dldll~
12396 shlibpath_overrides_runpath=yes
12400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12405 # MinGW DLLs use traditional 'lib' prefix
12406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12409 # It is most probably a Windows format PATH printed by
12410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12411 # path with ; separators, and with drive letters. We can handle the
12412 # drive letters (cygwin fileutils understands them), so leave them,
12413 # especially as we might pass files found there to a mingw objdump,
12414 # which wouldn't understand a cygwinified path. Ahh.
12415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12421 # pw32 DLLs use 'pw' prefix rather than 'lib'
12422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12431 dynamic_linker='Win32 ld.exe'
12432 # FIXME: first we should search . and the directory the executable is in
12436 darwin* | rhapsody*)
12437 dynamic_linker="$host_os dyld"
12438 version_type=darwin
12441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12442 soname_spec='${libname}${release}${major}$shared_ext'
12443 shlibpath_overrides_runpath=yes
12444 shlibpath_var=DYLD_LIBRARY_PATH
12445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12463 freebsd* | dragonfly*)
12464 # DragonFly does not have aout. When/if they implement a new
12465 # versioning mechanism, adjust this.
12466 if test -x /usr/bin/objformat; then
12467 objformat=`/usr/bin/objformat`
12470 freebsd[123]*) objformat=aout ;;
12471 *) objformat=elf ;;
12474 version_type=freebsd-$objformat
12475 case $version_type in
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12486 shlibpath_var=LD_LIBRARY_PATH
12489 shlibpath_overrides_runpath=yes
12491 freebsd3.[01]* | freebsdelf3.[01]*)
12492 shlibpath_overrides_runpath=yes
12493 hardcode_into_libs=yes
12495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12500 *) # from 4.6 on, and DragonFly
12501 shlibpath_overrides_runpath=yes
12502 hardcode_into_libs=yes
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 hardcode_into_libs=yes
12517 hpux9* | hpux10* | hpux11*)
12518 # Give a soname corresponding to the major version so that dld.sl refuses to
12519 # link against other versions.
12526 hardcode_into_libs=yes
12527 dynamic_linker="$host_os dld.so"
12528 shlibpath_var=LD_LIBRARY_PATH
12529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12531 soname_spec='${libname}${release}${shared_ext}$major'
12532 if test "X$HPUX_IA64_MODE" = X32; then
12533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12541 hardcode_into_libs=yes
12542 dynamic_linker="$host_os dld.sl"
12543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546 soname_spec='${libname}${release}${shared_ext}$major'
12547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12552 dynamic_linker="$host_os dld.sl"
12553 shlibpath_var=SHLIB_PATH
12554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556 soname_spec='${libname}${release}${shared_ext}$major'
12559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12560 postinstall_cmds='chmod 555 $lib'
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12570 shlibpath_var=LD_LIBRARY_PATH
12571 shlibpath_overrides_runpath=no
12572 hardcode_into_libs=yes
12575 irix5* | irix6* | nonstopux*)
12577 nonstopux*) version_type=nonstopux ;;
12579 if test "$lt_cv_prog_gnu_ld" = yes; then
12587 soname_spec='${libname}${release}${shared_ext}$major'
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12590 irix5* | nonstopux*)
12591 libsuff= shlibsuff=
12594 case $LD in # libtool.m4 will add one of these switches to LD
12595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12596 libsuff= shlibsuff= libmagic=32-bit;;
12597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12598 libsuff=32 shlibsuff=N32 libmagic=N32;;
12599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12601 *) libsuff= shlibsuff= libmagic=never-match;;
12605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12606 shlibpath_overrides_runpath=no
12607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12609 hardcode_into_libs=yes
12612 # No shared lib support for Linux oldld, aout, or coff.
12613 linux*oldld* | linux*aout* | linux*coff*)
12617 # This must be Linux ELF.
12618 linux* | k*bsd*-gnu)
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 soname_spec='${libname}${release}${shared_ext}$major'
12624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 shlibpath_overrides_runpath=no
12627 # This implies no fast_install, which is unacceptable.
12628 # Some rework will be needed to allow for fast_install
12629 # before this can be enabled.
12630 hardcode_into_libs=yes
12632 # Append ld.so.conf contents to the search path
12633 if test -f /etc/ld.so.conf; then
12634 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' ' '`
12635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12638 # We used to test for /lib/ld.so.1 and disable shared libraries on
12639 # powerpc, because MkLinux only supported shared libraries with the
12640 # GNU dynamic linker. Since this was broken with cross compilers,
12641 # most powerpc-linux boxes support dynamic linking these days and
12642 # people can always --disable-shared, the test was removed, and we
12643 # assume the GNU/Linux dynamic linker is in use.
12644 dynamic_linker='GNU/Linux ld.so'
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12652 soname_spec='${libname}${release}${shared_ext}$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 shlibpath_overrides_runpath=no
12655 hardcode_into_libs=yes
12656 dynamic_linker='NetBSD ld.elf_so'
12663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12666 dynamic_linker='NetBSD (a.out) ld.so'
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12669 soname_spec='${libname}${release}${shared_ext}$major'
12670 dynamic_linker='NetBSD ld.elf_so'
12672 shlibpath_var=LD_LIBRARY_PATH
12673 shlibpath_overrides_runpath=yes
12674 hardcode_into_libs=yes
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 shlibpath_overrides_runpath=yes
12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689 soname_spec='${libname}${release}${shared_ext}$major'
12690 shlibpath_var=LD_LIBRARY_PATH
12691 shlibpath_overrides_runpath=yes
12696 sys_lib_dlsearch_path_spec="/usr/lib"
12698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12701 *) need_version=no ;;
12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12708 openbsd2.[89] | openbsd2.[89].*)
12709 shlibpath_overrides_runpath=no
12712 shlibpath_overrides_runpath=yes
12716 shlibpath_overrides_runpath=yes
12721 libname_spec='$name'
12724 library_names_spec='$libname${shared_ext} $libname.a'
12725 dynamic_linker='OS/2 ld.exe'
12726 shlibpath_var=LIBPATH
12729 osf3* | osf4* | osf5*)
12733 soname_spec='${libname}${release}${shared_ext}$major'
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=yes
12752 hardcode_into_libs=yes
12753 # ldd complains unless libraries are executable
12754 postinstall_cmds='chmod +x $lib'
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12760 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12761 shlibpath_var=LD_LIBRARY_PATH
12762 shlibpath_overrides_runpath=yes
12763 if test "$with_gnu_ld" = yes; then
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 case $host_vendor in
12776 shlibpath_overrides_runpath=no
12778 export_dynamic_flag_spec='${wl}-Blargedynsym'
12779 runpath_var=LD_RUN_PATH
12787 shlibpath_overrides_runpath=no
12788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12794 if test -d /usr/nec ;then
12796 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12797 soname_spec='$libname${shared_ext}.$major'
12798 shlibpath_var=LD_LIBRARY_PATH
12802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12803 version_type=freebsd-elf
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12807 soname_spec='${libname}${release}${shared_ext}$major'
12808 shlibpath_var=LD_LIBRARY_PATH
12809 hardcode_into_libs=yes
12810 if test "$with_gnu_ld" = yes; then
12811 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12812 shlibpath_overrides_runpath=no
12814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12815 shlibpath_overrides_runpath=yes
12818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12822 sys_lib_dlsearch_path_spec='/usr/lib'
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 shlibpath_var=LD_LIBRARY_PATH
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12837 $as_echo "$dynamic_linker" >&6; }
12838 test "$dynamic_linker" = no && can_build_shared=no
12840 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12843 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12846 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12847 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12850 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12853 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12855 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12856 if test "$GCC" = yes; then
12857 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12861 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12862 hardcode_action_CXX=
12863 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12864 test -n "$runpath_var_CXX" || \
12865 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12867 # We can hardcode non-existant directories.
12868 if test "$hardcode_direct_CXX" != no &&
12869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12870 # have to relink, otherwise we might link with an installed library
12871 # when we should be linking with a yet-to-be-installed one
12872 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12873 test "$hardcode_minus_L_CXX" != no; then
12874 # Linking always hardcodes the temporary library directory.
12875 hardcode_action_CXX=relink
12877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12878 hardcode_action_CXX=immediate
12881 # We cannot hardcode anything, or else we can only hardcode existing
12883 hardcode_action_CXX=unsupported
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12886 $as_echo "$hardcode_action_CXX" >&6; }
12888 if test "$hardcode_action_CXX" = relink; then
12889 # Fast installation is not supported
12890 enable_fast_install=no
12891 elif test "$shlibpath_overrides_runpath" = yes ||
12892 test "$enable_shared" = no; then
12893 # Fast installation is not necessary
12894 enable_fast_install=needless
12898 # The else clause should only fire when bootstrapping the
12899 # libtool distribution, otherwise you forgot to ship ltmain.sh
12900 # with your package, and you will get complaints that there are
12901 # no rules to generate ltmain.sh.
12902 if test -f "$ltmain"; then
12903 # See if we are running on zsh, and set the options which allow our commands through
12904 # without removal of \ escapes.
12905 if test -n "${ZSH_VERSION+set}" ; then
12906 setopt NO_GLOB_SUBST
12908 # Now quote all the things that may contain metacharacters while being
12909 # careful not to overquote the AC_SUBSTed values. We take copies of the
12910 # variables and quote the copies for generation of the libtool script.
12911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12915 deplibs_check_method reload_flag reload_cmds need_locks \
12916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12917 lt_cv_sys_global_symbol_to_c_name_address \
12918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12919 old_postinstall_cmds old_postuninstall_cmds \
12923 lt_prog_compiler_wl_CXX \
12924 lt_prog_compiler_pic_CXX \
12925 lt_prog_compiler_static_CXX \
12926 lt_prog_compiler_no_builtin_flag_CXX \
12927 export_dynamic_flag_spec_CXX \
12928 thread_safe_flag_spec_CXX \
12929 whole_archive_flag_spec_CXX \
12930 enable_shared_with_static_runtimes_CXX \
12931 old_archive_cmds_CXX \
12932 old_archive_from_new_cmds_CXX \
12933 predep_objects_CXX \
12934 postdep_objects_CXX \
12937 compiler_lib_search_path_CXX \
12938 compiler_lib_search_dirs_CXX \
12940 archive_expsym_cmds_CXX \
12941 postinstall_cmds_CXX \
12942 postuninstall_cmds_CXX \
12943 old_archive_from_expsyms_cmds_CXX \
12944 allow_undefined_flag_CXX \
12945 no_undefined_flag_CXX \
12946 export_symbols_cmds_CXX \
12947 hardcode_libdir_flag_spec_CXX \
12948 hardcode_libdir_flag_spec_ld_CXX \
12949 hardcode_libdir_separator_CXX \
12950 hardcode_automatic_CXX \
12952 module_expsym_cmds_CXX \
12953 lt_cv_prog_compiler_c_o_CXX \
12954 fix_srcfile_path_CXX \
12955 exclude_expsyms_CXX \
12956 include_expsyms_CXX; do
12959 old_archive_cmds_CXX | \
12960 old_archive_from_new_cmds_CXX | \
12961 archive_cmds_CXX | \
12962 archive_expsym_cmds_CXX | \
12963 module_cmds_CXX | \
12964 module_expsym_cmds_CXX | \
12965 old_archive_from_expsyms_cmds_CXX | \
12966 export_symbols_cmds_CXX | \
12967 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12968 postinstall_cmds | postuninstall_cmds | \
12969 old_postinstall_cmds | old_postuninstall_cmds | \
12970 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12971 # Double-quote double-evaled strings.
12972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12981 *'\$0 --fallback-echo"')
12982 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12988 cat <<__EOF__ >> "$cfgfile"
12989 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12993 # Shell to use when invoking shell scripts.
12996 # Whether or not to build shared libraries.
12997 build_libtool_libs=$enable_shared
12999 # Whether or not to build static libraries.
13000 build_old_libs=$enable_static
13002 # Whether or not to add -lc for building shared libraries.
13003 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13005 # Whether or not to disallow shared libs when runtime libs are static
13006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13008 # Whether or not to optimize for fast installation.
13009 fast_install=$enable_fast_install
13012 host_alias=$host_alias
13016 # The build system.
13017 build_alias=$build_alias
13021 # An echo program that does not interpret backslashes.
13026 AR_FLAGS=$lt_AR_FLAGS
13031 # LTCC compiler flags.
13032 LTCFLAGS=$lt_LTCFLAGS
13034 # A language-specific compiler.
13035 CC=$lt_compiler_CXX
13037 # Is the compiler the GNU C compiler?
13043 # The linker used to build libraries.
13046 # Whether we need hard or soft links.
13049 # A BSD-compatible nm program.
13052 # A symbol stripping program
13055 # Used to examine libraries when file_magic_cmd begins "file"
13056 MAGIC_CMD=$MAGIC_CMD
13058 # Used on cygwin: DLL creation program.
13061 # Used on cygwin: object dumper.
13064 # Used on cygwin: assembler.
13067 # The name of the directory that contains temporary libtool files.
13070 # How to create reloadable object files.
13071 reload_flag=$lt_reload_flag
13072 reload_cmds=$lt_reload_cmds
13074 # How to pass a linker flag through the compiler.
13075 wl=$lt_lt_prog_compiler_wl_CXX
13077 # Object file suffix (normally "o").
13078 objext="$ac_objext"
13080 # Old archive suffix (normally "a").
13083 # Shared library suffix (normally ".so").
13084 shrext_cmds='$shrext_cmds'
13086 # Executable file suffix (normally "").
13089 # Additional compiler flags for building library objects.
13090 pic_flag=$lt_lt_prog_compiler_pic_CXX
13093 # What is the maximum length of a command?
13094 max_cmd_len=$lt_cv_sys_max_cmd_len
13096 # Does compiler simultaneously support -c and -o options?
13097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13099 # Must we lock files when doing compilation?
13100 need_locks=$lt_need_locks
13102 # Do we need the lib prefix for modules?
13103 need_lib_prefix=$need_lib_prefix
13105 # Do we need a version for libraries?
13106 need_version=$need_version
13108 # Whether dlopen is supported.
13109 dlopen_support=$enable_dlopen
13111 # Whether dlopen of programs is supported.
13112 dlopen_self=$enable_dlopen_self
13114 # Whether dlopen of statically linked programs is supported.
13115 dlopen_self_static=$enable_dlopen_self_static
13117 # Compiler flag to prevent dynamic linking.
13118 link_static_flag=$lt_lt_prog_compiler_static_CXX
13120 # Compiler flag to turn off builtin functions.
13121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13123 # Compiler flag to allow reflexive dlopens.
13124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13126 # Compiler flag to generate shared objects directly from archives.
13127 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13129 # Compiler flag to generate thread-safe objects.
13130 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13132 # Library versioning type.
13133 version_type=$version_type
13135 # Format of library name prefix.
13136 libname_spec=$lt_libname_spec
13138 # List of archive names. First name is the real one, the rest are links.
13139 # The last name is the one that the linker finds with -lNAME.
13140 library_names_spec=$lt_library_names_spec
13142 # The coded name of the library, if different from the real name.
13143 soname_spec=$lt_soname_spec
13145 # Commands used to build and install an old-style archive.
13147 old_archive_cmds=$lt_old_archive_cmds_CXX
13148 old_postinstall_cmds=$lt_old_postinstall_cmds
13149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13151 # Create an old-style archive from a shared archive.
13152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13154 # Create a temporary old-style archive to link instead of a shared archive.
13155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13157 # Commands used to build and install a shared archive.
13158 archive_cmds=$lt_archive_cmds_CXX
13159 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13160 postinstall_cmds=$lt_postinstall_cmds
13161 postuninstall_cmds=$lt_postuninstall_cmds
13163 # Commands used to build a loadable module (assumed same as above if empty)
13164 module_cmds=$lt_module_cmds_CXX
13165 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13167 # Commands to strip libraries.
13168 old_striplib=$lt_old_striplib
13169 striplib=$lt_striplib
13171 # Dependencies to place before the objects being linked to create a
13173 predep_objects=$lt_predep_objects_CXX
13175 # Dependencies to place after the objects being linked to create a
13177 postdep_objects=$lt_postdep_objects_CXX
13179 # Dependencies to place before the objects being linked to create a
13181 predeps=$lt_predeps_CXX
13183 # Dependencies to place after the objects being linked to create a
13185 postdeps=$lt_postdeps_CXX
13187 # The directories searched by this compiler when creating a shared
13189 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13191 # The library search path used internally by the compiler when linking
13192 # a shared library.
13193 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13195 # Method to check whether dependent libraries are shared objects.
13196 deplibs_check_method=$lt_deplibs_check_method
13198 # Command to use when deplibs_check_method == file_magic.
13199 file_magic_cmd=$lt_file_magic_cmd
13201 # Flag that allows shared libraries with undefined symbols to be built.
13202 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13204 # Flag that forces no undefined symbols.
13205 no_undefined_flag=$lt_no_undefined_flag_CXX
13207 # Commands used to finish a libtool library installation in a directory.
13208 finish_cmds=$lt_finish_cmds
13210 # Same as above, but a single script fragment to be evaled but not shown.
13211 finish_eval=$lt_finish_eval
13213 # Take the output of nm and produce a listing of raw symbols and C names.
13214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13216 # Transform the output of nm in a proper C declaration
13217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13219 # Transform the output of nm in a C name address pair
13220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13222 # This is the shared library runtime path variable.
13223 runpath_var=$runpath_var
13225 # This is the shared library path variable.
13226 shlibpath_var=$shlibpath_var
13228 # Is shlibpath searched before the hard-coded library search path?
13229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13231 # How to hardcode a shared library path into an executable.
13232 hardcode_action=$hardcode_action_CXX
13234 # Whether we should hardcode library paths into libraries.
13235 hardcode_into_libs=$hardcode_into_libs
13237 # Flag to hardcode \$libdir into a binary during linking.
13238 # This must work even if \$libdir does not exist.
13239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13241 # If ld is used when linking, flag to hardcode \$libdir into
13242 # a binary during linking. This must work even if \$libdir does
13244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13246 # Whether we need a single -rpath flag with a separated argument.
13247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13250 # resulting binary.
13251 hardcode_direct=$hardcode_direct_CXX
13253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13254 # resulting binary.
13255 hardcode_minus_L=$hardcode_minus_L_CXX
13257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13258 # the resulting binary.
13259 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13261 # Set to yes if building a shared library automatically hardcodes DIR into the library
13262 # and all subsequent libraries and executables linked against it.
13263 hardcode_automatic=$hardcode_automatic_CXX
13265 # Variables whose values should be saved in libtool wrapper scripts and
13266 # restored at relink time.
13267 variables_saved_for_relink="$variables_saved_for_relink"
13269 # Whether libtool must link a program against all its dependency libraries.
13270 link_all_deplibs=$link_all_deplibs_CXX
13272 # Compile-time system search path for libraries
13273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13275 # Run-time system search path for libraries
13276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13278 # Fix the shell variable \$srcfile for the compiler.
13279 fix_srcfile_path=$lt_fix_srcfile_path
13281 # Set to yes if exported symbols are required.
13282 always_export_symbols=$always_export_symbols_CXX
13284 # The commands to list exported symbols.
13285 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13287 # The commands to extract the exported symbol list from a shared archive.
13288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13290 # Symbols that should not be listed in the preloaded symbols.
13291 exclude_expsyms=$lt_exclude_expsyms_CXX
13293 # Symbols that must always be exported.
13294 include_expsyms=$lt_include_expsyms_CXX
13296 # ### END LIBTOOL TAG CONFIG: $tagname
13302 # If there is no Makefile yet, we rely on a make rule to execute
13303 # `config.status --recheck' to rerun these tests and create the
13304 # libtool script then.
13305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13306 if test -f "$ltmain_in"; then
13307 test -f Makefile && make "$ltmain"
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13322 with_gnu_ldcxx=$with_gnu_ld
13323 with_gnu_ld=$lt_save_with_gnu_ld
13324 lt_cv_path_LDCXX=$lt_cv_path_LD
13325 lt_cv_path_LD=$lt_save_path_LD
13326 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13327 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13335 if test -n "$F77" && test "X$F77" != "Xno"; then
13338 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13339 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13343 archive_cmds_need_lc_F77=no
13344 allow_undefined_flag_F77=
13345 always_export_symbols_F77=no
13346 archive_expsym_cmds_F77=
13347 export_dynamic_flag_spec_F77=
13348 hardcode_direct_F77=no
13349 hardcode_libdir_flag_spec_F77=
13350 hardcode_libdir_flag_spec_ld_F77=
13351 hardcode_libdir_separator_F77=
13352 hardcode_minus_L_F77=no
13353 hardcode_automatic_F77=no
13355 module_expsym_cmds_F77=
13356 link_all_deplibs_F77=unknown
13357 old_archive_cmds_F77=$old_archive_cmds
13358 no_undefined_flag_F77=
13359 whole_archive_flag_spec_F77=
13360 enable_shared_with_static_runtimes_F77=no
13362 # Source file extension for f77 test sources.
13365 # Object file extension for compiled f77 test sources.
13369 # Code to be used in simple compile tests
13370 lt_simple_compile_test_code="\
13376 # Code to be used in simple link tests
13377 lt_simple_link_test_code="\
13382 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13384 # If no C compiler was specified, use CC.
13387 # If no C compiler flags were specified, use CFLAGS.
13388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13390 # Allow CC to be a program name with arguments.
13394 # save warnings/boilerplate of simple test code
13395 ac_outfile=conftest.$ac_objext
13396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13398 _lt_compiler_boilerplate=`cat conftest.err`
13401 ac_outfile=conftest.$ac_objext
13402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13404 _lt_linker_boilerplate=`cat conftest.err`
13408 # Allow CC to be a program name with arguments.
13413 for cc_temp in $compiler""; do
13415 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13416 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13421 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13425 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13427 $as_echo "$can_build_shared" >&6; }
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13430 $as_echo_n "checking whether to build shared libraries... " >&6; }
13431 test "$can_build_shared" = "no" && enable_shared=no
13433 # On AIX, shared libraries and static libraries use the same namespace, and
13434 # are all built from PIC.
13437 test "$enable_shared" = yes && enable_static=no
13438 if test -n "$RANLIB"; then
13439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13440 postinstall_cmds='$RANLIB $lib'
13444 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13445 test "$enable_shared" = yes && enable_static=no
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13450 $as_echo "$enable_shared" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13453 $as_echo_n "checking whether to build static libraries... " >&6; }
13454 # Make sure either enable_shared or enable_static is yes.
13455 test "$enable_shared" = yes || enable_static=yes
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13457 $as_echo "$enable_static" >&6; }
13462 lt_prog_compiler_wl_F77=
13463 lt_prog_compiler_pic_F77=
13464 lt_prog_compiler_static_F77=
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13467 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13469 if test "$GCC" = yes; then
13470 lt_prog_compiler_wl_F77='-Wl,'
13471 lt_prog_compiler_static_F77='-static'
13475 # All AIX code is PIC.
13476 if test "$host_cpu" = ia64; then
13477 # AIX 5 now supports IA64 processor
13478 lt_prog_compiler_static_F77='-Bstatic'
13483 # FIXME: we need at least 68020 code to build shared libraries, but
13484 # adding the `-m68020' flag to GCC prevents building anything better,
13486 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13489 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13490 # PIC is the default for these OSes.
13493 mingw* | cygwin* | pw32* | os2*)
13494 # This hack is so that the source file can tell whether it is being
13495 # built for inclusion in a dll (and should export symbols for example).
13496 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13497 # (--disable-auto-import) libraries
13498 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13501 darwin* | rhapsody*)
13502 # PIC is the default on this platform
13503 # Common symbols not allowed in MH_DYLIB files
13504 lt_prog_compiler_pic_F77='-fno-common'
13508 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13509 # Instead, we relocate shared libraries at runtime.
13513 # Just because we use GCC doesn't mean we suddenly get shared libraries
13514 # on systems that don't support them.
13515 lt_prog_compiler_can_build_shared_F77=no
13520 if test -d /usr/nec; then
13521 lt_prog_compiler_pic_F77=-Kconform_pic
13526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13527 # not for PA HP-UX.
13533 lt_prog_compiler_pic_F77='-fPIC'
13539 lt_prog_compiler_pic_F77='-fPIC'
13543 # PORTME Check for flag to pass linker flags through the system compiler.
13546 lt_prog_compiler_wl_F77='-Wl,'
13547 if test "$host_cpu" = ia64; then
13548 # AIX 5 now supports IA64 processor
13549 lt_prog_compiler_static_F77='-Bstatic'
13551 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13555 # PIC is the default on this platform
13556 # Common symbols not allowed in MH_DYLIB files
13557 case $cc_basename in
13559 lt_prog_compiler_pic_F77='-qnocommon'
13560 lt_prog_compiler_wl_F77='-Wl,'
13565 mingw* | cygwin* | pw32* | os2*)
13566 # This hack is so that the source file can tell whether it is being
13567 # built for inclusion in a dll (and should export symbols for example).
13568 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13571 hpux9* | hpux10* | hpux11*)
13572 lt_prog_compiler_wl_F77='-Wl,'
13573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13574 # not for PA HP-UX.
13580 lt_prog_compiler_pic_F77='+Z'
13583 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13584 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13587 irix5* | irix6* | nonstopux*)
13588 lt_prog_compiler_wl_F77='-Wl,'
13589 # PIC (with -KPIC) is the default.
13590 lt_prog_compiler_static_F77='-non_shared'
13594 lt_prog_compiler_pic_F77='-KPIC'
13595 lt_prog_compiler_static_F77='-Bstatic'
13598 linux* | k*bsd*-gnu)
13599 case $cc_basename in
13601 lt_prog_compiler_wl_F77='-Wl,'
13602 lt_prog_compiler_pic_F77='-KPIC'
13603 lt_prog_compiler_static_F77='-static'
13605 pgcc* | pgf77* | pgf90* | pgf95*)
13606 # Portland Group compilers (*not* the Pentium gcc compiler,
13607 # which looks to be a dead project)
13608 lt_prog_compiler_wl_F77='-Wl,'
13609 lt_prog_compiler_pic_F77='-fpic'
13610 lt_prog_compiler_static_F77='-Bstatic'
13613 lt_prog_compiler_wl_F77='-Wl,'
13614 # All Alpha code is PIC.
13615 lt_prog_compiler_static_F77='-non_shared'
13618 case `$CC -V 2>&1 | sed 5q` in
13621 lt_prog_compiler_pic_F77='-KPIC'
13622 lt_prog_compiler_static_F77='-Bstatic'
13623 lt_prog_compiler_wl_F77='-Wl,'
13626 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13627 lt_prog_compiler_pic_F77='-KPIC'
13628 lt_prog_compiler_static_F77='-Bstatic'
13629 lt_prog_compiler_wl_F77=''
13636 osf3* | osf4* | osf5*)
13637 lt_prog_compiler_wl_F77='-Wl,'
13638 # All OSF/1 code is PIC.
13639 lt_prog_compiler_static_F77='-non_shared'
13643 lt_prog_compiler_static_F77='-non_shared'
13647 lt_prog_compiler_pic_F77='-KPIC'
13648 lt_prog_compiler_static_F77='-Bstatic'
13649 case $cc_basename in
13650 f77* | f90* | f95*)
13651 lt_prog_compiler_wl_F77='-Qoption ld ';;
13653 lt_prog_compiler_wl_F77='-Wl,';;
13658 lt_prog_compiler_wl_F77='-Qoption ld '
13659 lt_prog_compiler_pic_F77='-PIC'
13660 lt_prog_compiler_static_F77='-Bstatic'
13663 sysv4 | sysv4.2uw2* | sysv4.3*)
13664 lt_prog_compiler_wl_F77='-Wl,'
13665 lt_prog_compiler_pic_F77='-KPIC'
13666 lt_prog_compiler_static_F77='-Bstatic'
13670 if test -d /usr/nec ;then
13671 lt_prog_compiler_pic_F77='-Kconform_pic'
13672 lt_prog_compiler_static_F77='-Bstatic'
13676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13677 lt_prog_compiler_wl_F77='-Wl,'
13678 lt_prog_compiler_pic_F77='-KPIC'
13679 lt_prog_compiler_static_F77='-Bstatic'
13683 lt_prog_compiler_wl_F77='-Wl,'
13684 lt_prog_compiler_can_build_shared_F77=no
13688 lt_prog_compiler_pic_F77='-pic'
13689 lt_prog_compiler_static_F77='-Bstatic'
13693 lt_prog_compiler_can_build_shared_F77=no
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13699 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13702 # Check to make sure the PIC flag actually works.
13704 if test -n "$lt_prog_compiler_pic_F77"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13707 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13708 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13711 lt_cv_prog_compiler_pic_works_F77=no
13712 ac_outfile=conftest.$ac_objext
13713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13714 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13715 # Insert the option either (1) after the last *FLAGS variable, or
13716 # (2) before a word containing "conftest.", or (3) at the end.
13717 # Note that $ac_compile itself does not contain backslashes and begins
13718 # with a dollar sign (not a hyphen), so the echo should work correctly.
13719 # The option is referenced via a variable to avoid confusing sed.
13720 lt_compile=`echo "$ac_compile" | $SED \
13721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13723 -e 's:$: $lt_compiler_flag:'`
13724 (eval echo "\"\$as_me:13724: $lt_compile\"" >&5)
13725 (eval "$lt_compile" 2>conftest.err)
13727 cat conftest.err >&5
13728 echo "$as_me:13728: \$? = $ac_status" >&5
13729 if (exit $ac_status) && test -s "$ac_outfile"; then
13730 # The compiler can only warn and ignore the option if not recognized
13731 # So say no if there are warnings other than the usual output.
13732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13735 lt_cv_prog_compiler_pic_works_F77=yes
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13742 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13744 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13745 case $lt_prog_compiler_pic_F77 in
13747 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13750 lt_prog_compiler_pic_F77=
13751 lt_prog_compiler_can_build_shared_F77=no
13756 # For platforms which do not support PIC, -DPIC is meaningless:
13758 lt_prog_compiler_pic_F77=
13761 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13766 # Check to make sure the static flag actually works.
13768 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13770 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13771 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13774 lt_cv_prog_compiler_static_works_F77=no
13775 save_LDFLAGS="$LDFLAGS"
13776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13777 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13779 # The linker can only warn and ignore the option if not recognized
13780 # So say no if there are warnings
13781 if test -s conftest.err; then
13782 # Append any errors to the config.log.
13783 cat conftest.err 1>&5
13784 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13786 if diff conftest.exp conftest.er2 >/dev/null; then
13787 lt_cv_prog_compiler_static_works_F77=yes
13790 lt_cv_prog_compiler_static_works_F77=yes
13794 LDFLAGS="$save_LDFLAGS"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13798 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13800 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13803 lt_prog_compiler_static_F77=
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13809 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13812 lt_cv_prog_compiler_c_o_F77=no
13813 $rm -r conftest 2>/dev/null
13817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13819 lt_compiler_flag="-o out/conftest2.$ac_objext"
13820 # Insert the option either (1) after the last *FLAGS variable, or
13821 # (2) before a word containing "conftest.", or (3) at the end.
13822 # Note that $ac_compile itself does not contain backslashes and begins
13823 # with a dollar sign (not a hyphen), so the echo should work correctly.
13824 lt_compile=`echo "$ac_compile" | $SED \
13825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13827 -e 's:$: $lt_compiler_flag:'`
13828 (eval echo "\"\$as_me:13828: $lt_compile\"" >&5)
13829 (eval "$lt_compile" 2>out/conftest.err)
13831 cat out/conftest.err >&5
13832 echo "$as_me:13832: \$? = $ac_status" >&5
13833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13835 # The compiler can only warn and ignore the option if not recognized
13836 # So say no if there are warnings
13837 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13840 lt_cv_prog_compiler_c_o_F77=yes
13845 # SGI C++ compiler will create directory out/ii_files/ for
13846 # template instantiation
13847 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13848 $rm out/* && rmdir out
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13855 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13858 hard_links="nottested"
13859 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13860 # do not overwrite the value of need_locks provided by the user
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13862 $as_echo_n "checking if we can lock with hard links... " >&6; }
13865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13867 ln conftest.a conftest.b 2>&5 || hard_links=no
13868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13870 $as_echo "$hard_links" >&6; }
13871 if test "$hard_links" = no; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13873 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13881 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13884 allow_undefined_flag_F77=
13885 enable_shared_with_static_runtimes_F77=no
13887 archive_expsym_cmds_F77=
13888 old_archive_From_new_cmds_F77=
13889 old_archive_from_expsyms_cmds_F77=
13890 export_dynamic_flag_spec_F77=
13891 whole_archive_flag_spec_F77=
13892 thread_safe_flag_spec_F77=
13893 hardcode_libdir_flag_spec_F77=
13894 hardcode_libdir_flag_spec_ld_F77=
13895 hardcode_libdir_separator_F77=
13896 hardcode_direct_F77=no
13897 hardcode_minus_L_F77=no
13898 hardcode_shlibpath_var_F77=unsupported
13899 link_all_deplibs_F77=unknown
13900 hardcode_automatic_F77=no
13902 module_expsym_cmds_F77=
13903 always_export_symbols_F77=no
13904 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13905 # include_expsyms should be a list of space-separated symbols to be *always*
13906 # included in the symbol list
13907 include_expsyms_F77=
13908 # exclude_expsyms can be an extended regexp of symbols to exclude
13909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13911 # as well as any symbol that contains `d'.
13912 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13914 # platforms (ab)use it in PIC code, but their linkers get confused if
13915 # the symbol is explicitly referenced. Since portable code cannot
13916 # rely on this symbol name, it's probably fine to never include it in
13917 # preloaded symbol tables.
13918 # Exclude shared library initialization/finalization symbols.
13919 extract_expsyms_cmds=
13920 # Just being paranoid about ensuring that cc_basename is set.
13921 for cc_temp in $compiler""; do
13923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13932 cygwin* | mingw* | pw32*)
13933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13934 # When not using gcc, we currently assume that we are using
13935 # Microsoft Visual C++.
13936 if test "$GCC" != yes; then
13941 # we just hope/assume this is gcc and not c89 (= MSVC++)
13950 if test "$with_gnu_ld" = yes; then
13951 # If archive_cmds runs LD, not CC, wlarc should be empty
13954 # Set some defaults for GNU ld with shared library support. These
13955 # are reset later if shared libraries are not supported. Putting them
13956 # here allows them to be overridden if necessary.
13957 runpath_var=LD_RUN_PATH
13958 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13959 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13960 # ancient GNU ld didn't support --whole-archive et. al.
13961 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13962 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13964 whole_archive_flag_spec_F77=
13966 supports_anon_versioning=no
13967 case `$LD -v 2>/dev/null` in
13968 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13971 *\ 2.11.*) ;; # other 2.11 versions
13972 *) supports_anon_versioning=yes ;;
13975 # See if GNU ld supports shared libraries.
13978 # On AIX/PPC, the GNU linker is very broken
13979 if test "$host_cpu" != ia64; then
13983 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13984 *** to be unable to reliably create shared libraries on AIX.
13985 *** Therefore, libtool is disabling shared libraries support. If you
13986 *** really care for shared libraries, you may want to modify your PATH
13987 *** so that a non-GNU linker is found, and then restart.
13994 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)'
13995 hardcode_libdir_flag_spec_F77='-L$libdir'
13996 hardcode_minus_L_F77=yes
13998 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13999 # that the semantics of dynamic libraries on AmigaOS, at least up
14000 # to version 4, is to share data among multiple programs linked
14001 # with the same dynamic library. Since this doesn't match the
14002 # behavior of shared libraries on other platforms, we can't use
14008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14009 allow_undefined_flag_F77=unsupported
14010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14011 # support --undefined. This deserves some investigation. FIXME
14012 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14018 cygwin* | mingw* | pw32*)
14019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14020 # as there is no search path for DLLs.
14021 hardcode_libdir_flag_spec_F77='-L$libdir'
14022 allow_undefined_flag_F77=unsupported
14023 always_export_symbols_F77=no
14024 enable_shared_with_static_runtimes_F77=yes
14025 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14027 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14028 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14029 # If the export-symbols file already is a .def file (1st line
14030 # is EXPORTS), use it as is; otherwise, prepend...
14031 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14032 cp $export_symbols $output_objdir/$soname.def;
14034 echo EXPORTS > $output_objdir/$soname.def;
14035 cat $export_symbols >> $output_objdir/$soname.def;
14037 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14044 hardcode_direct_F77=no
14045 hardcode_shlibpath_var_F77=no
14046 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14047 export_dynamic_flag_spec_F77='${wl}-E'
14048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14049 # Instead, shared libraries are loaded at an image base (0x10000000 by
14050 # default) and relocated if they conflict, which is a slow very memory
14051 # consuming and fragmenting process. To avoid this, we pick a random,
14052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14054 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'
14055 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'
14058 gnu* | linux* | k*bsd*-gnu)
14059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14061 case $cc_basename,$host_cpu in
14062 pgcc*) # Portland Group C compiler
14063 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'
14064 tmp_addflag=' $pic_flag'
14066 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14067 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'
14068 tmp_addflag=' $pic_flag -Mnomain' ;;
14069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14070 tmp_addflag=' -i_dynamic' ;;
14071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14072 tmp_addflag=' -i_dynamic -nofor_main' ;;
14073 ifc* | ifort*) # Intel Fortran compiler
14074 tmp_addflag=' -nofor_main' ;;
14076 case `$CC -V 2>&1 | sed 5q` in
14077 *Sun\ C*) # Sun C 5.9
14078 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'
14079 tmp_sharedflag='-G' ;;
14080 *Sun\ F*) # Sun Fortran 8.3
14081 tmp_sharedflag='-G' ;;
14083 tmp_sharedflag='-shared' ;;
14085 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087 if test $supports_anon_versioning = yes; then
14088 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14089 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14090 $echo "local: *; };" >> $output_objdir/$libname.ver~
14091 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14093 link_all_deplibs_F77=no
14099 netbsd* | netbsdelf*-gnu)
14100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14101 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14104 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14105 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14110 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14115 *** create shared libraries on Solaris systems. Therefore, libtool
14116 *** is disabling shared libraries support. We urge you to upgrade GNU
14117 *** binutils to release 2.9.1 or newer. Another option is to modify
14118 *** your PATH or compiler configuration so that the native linker is
14119 *** used, and then restart.
14122 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14123 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14124 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14131 case `$LD -v 2>&1` in
14132 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14137 *** reliably create shared libraries on SCO systems. Therefore, libtool
14138 *** is disabling shared libraries support. We urge you to upgrade GNU
14139 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14140 *** your PATH or compiler configuration so that the native linker is
14141 *** used, and then restart.
14146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14147 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14149 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14158 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14160 hardcode_direct_F77=yes
14161 hardcode_shlibpath_var_F77=no
14165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14166 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14174 if test "$ld_shlibs_F77" = no; then
14176 hardcode_libdir_flag_spec_F77=
14177 export_dynamic_flag_spec_F77=
14178 whole_archive_flag_spec_F77=
14181 # PORTME fill in a description of your system's linker (not GNU ld)
14184 allow_undefined_flag_F77=unsupported
14185 always_export_symbols_F77=yes
14186 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'
14187 # Note: this linker hardcodes the directories in LIBPATH if there
14188 # are no directories specified by -L.
14189 hardcode_minus_L_F77=yes
14190 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14191 # Neither direct hardcoding nor static linking is supported with a
14193 hardcode_direct_F77=unsupported
14198 if test "$host_cpu" = ia64; then
14199 # On IA64, the linker does run time linking by default, so we don't
14200 # have to do anything special.
14201 aix_use_runtimelinking=no
14202 exp_sym_flag='-Bexport'
14205 # If we're using GNU nm, then we don't want the "-C" option.
14206 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14207 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14208 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'
14210 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'
14212 aix_use_runtimelinking=no
14214 # Test if we are trying to use run time linking or normal
14215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14216 # need to do runtime linking.
14217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14218 for ld_flag in $LDFLAGS; do
14219 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14220 aix_use_runtimelinking=yes
14227 exp_sym_flag='-bexport'
14228 no_entry_flag='-bnoentry'
14231 # When large executables or shared objects are built, AIX ld can
14232 # have problems creating the table of contents. If linking a library
14233 # or program results in "error TOC overflow" add -mminimal-toc to
14234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14237 archive_cmds_F77=''
14238 hardcode_direct_F77=yes
14239 hardcode_libdir_separator_F77=':'
14240 link_all_deplibs_F77=yes
14242 if test "$GCC" = yes; then
14243 case $host_os in aix4.[012]|aix4.[012].*)
14244 # We only want to do this on AIX 4.2 and lower, the check
14245 # below for broken collect2 doesn't work under 4.3+
14246 collect2name=`${CC} -print-prog-name=collect2`
14247 if test -f "$collect2name" && \
14248 strings "$collect2name" | grep resolve_lib_name >/dev/null
14250 # We have reworked collect2
14253 # We have old collect2
14254 hardcode_direct_F77=unsupported
14255 # It fails to find uninstalled libraries when the uninstalled
14256 # path is not listed in the libpath. Setting hardcode_minus_L
14257 # to unsupported forces relinking
14258 hardcode_minus_L_F77=yes
14259 hardcode_libdir_flag_spec_F77='-L$libdir'
14260 hardcode_libdir_separator_F77=
14264 shared_flag='-shared'
14265 if test "$aix_use_runtimelinking" = yes; then
14266 shared_flag="$shared_flag "'${wl}-G'
14270 if test "$host_cpu" = ia64; then
14271 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14272 # chokes on -Wl,-G. The following line is correct:
14275 if test "$aix_use_runtimelinking" = yes; then
14276 shared_flag='${wl}-G'
14278 shared_flag='${wl}-bM:SRE'
14283 # It seems that -bexpall does not export symbols beginning with
14284 # underscore (_), so it is better to generate a list of symbols to export.
14285 always_export_symbols_F77=yes
14286 if test "$aix_use_runtimelinking" = yes; then
14287 # Warning - without using the other runtime loading flags (-brtl),
14288 # -berok will link without error, but may produce a broken library.
14289 allow_undefined_flag_F77='-berok'
14290 # Determine the default libpath from the value encoded in an empty executable.
14291 cat > conftest.$ac_ext <<_ACEOF
14296 if ac_fn_f77_try_link "$LINENO"; then :
14298 lt_aix_libpath_sed='
14299 /Import File Strings/,/^$/ {
14305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14306 # Check for a 64-bit object if we didn't find anything.
14307 if test -z "$aix_libpath"; then
14308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14315 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14316 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"
14318 if test "$host_cpu" = ia64; then
14319 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14320 allow_undefined_flag_F77="-z nodefs"
14321 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"
14323 # Determine the default libpath from the value encoded in an empty executable.
14324 cat > conftest.$ac_ext <<_ACEOF
14329 if ac_fn_f77_try_link "$LINENO"; then :
14331 lt_aix_libpath_sed='
14332 /Import File Strings/,/^$/ {
14338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14339 # Check for a 64-bit object if we didn't find anything.
14340 if test -z "$aix_libpath"; then
14341 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14344 rm -f core conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14348 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14349 # Warning - without using the other run time loading flags,
14350 # -berok will link without error, but may produce a broken library.
14351 no_undefined_flag_F77=' ${wl}-bernotok'
14352 allow_undefined_flag_F77=' ${wl}-berok'
14353 # Exported symbols can be pulled into shared objects from archives
14354 whole_archive_flag_spec_F77='$convenience'
14355 archive_cmds_need_lc_F77=yes
14356 # This is similar to how AIX traditionally builds its shared libraries.
14357 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'
14363 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)'
14364 hardcode_libdir_flag_spec_F77='-L$libdir'
14365 hardcode_minus_L_F77=yes
14366 # see comment about different semantics on the GNU ld section
14371 export_dynamic_flag_spec_F77=-rdynamic
14374 cygwin* | mingw* | pw32*)
14375 # When not using gcc, we currently assume that we are using
14376 # Microsoft Visual C++.
14377 # hardcode_libdir_flag_spec is actually meaningless, as there is
14378 # no search path for DLLs.
14379 hardcode_libdir_flag_spec_F77=' '
14380 allow_undefined_flag_F77=unsupported
14381 # Tell ltmain to make .lib files, not .a files.
14383 # Tell ltmain to make .dll files, not .so files.
14385 # FIXME: Setting linknames here is a bad hack.
14386 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14387 # The linker will automatically build a .lib file if we build a DLL.
14388 old_archive_From_new_cmds_F77='true'
14389 # FIXME: Should let the user specify the lib program.
14390 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14391 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14392 enable_shared_with_static_runtimes_F77=yes
14395 darwin* | rhapsody*)
14397 rhapsody* | darwin1.[012])
14398 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14401 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14402 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14404 case ${MACOSX_DEPLOYMENT_TARGET} in
14406 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14409 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14415 archive_cmds_need_lc_F77=no
14416 hardcode_direct_F77=no
14417 hardcode_automatic_F77=yes
14418 hardcode_shlibpath_var_F77=unsupported
14419 whole_archive_flag_spec_F77=''
14420 link_all_deplibs_F77=yes
14421 if test "$GCC" = yes ; then
14422 output_verbose_link_cmd='echo'
14423 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}"
14424 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14425 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}"
14426 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}"
14428 case $cc_basename in
14430 output_verbose_link_cmd='echo'
14431 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14432 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14434 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}'
14435 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}'
14445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 hardcode_libdir_flag_spec_F77='-L$libdir'
14447 hardcode_shlibpath_var_F77=no
14454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14455 # support. Future versions do this automatically, but an explicit c++rt0.o
14456 # does not break anything, and helps significantly (at the cost of a little
14459 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14460 hardcode_libdir_flag_spec_F77='-R$libdir'
14461 hardcode_direct_F77=yes
14462 hardcode_shlibpath_var_F77=no
14465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14467 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14468 hardcode_direct_F77=yes
14469 hardcode_minus_L_F77=yes
14470 hardcode_shlibpath_var_F77=no
14473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14474 freebsd* | dragonfly*)
14475 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14476 hardcode_libdir_flag_spec_F77='-R$libdir'
14477 hardcode_direct_F77=yes
14478 hardcode_shlibpath_var_F77=no
14482 if test "$GCC" = yes; then
14483 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'
14485 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'
14487 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14488 hardcode_libdir_separator_F77=:
14489 hardcode_direct_F77=yes
14491 # hardcode_minus_L: Not really in the search PATH,
14492 # but as the default location of the library.
14493 hardcode_minus_L_F77=yes
14494 export_dynamic_flag_spec_F77='${wl}-E'
14498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14499 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14501 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14503 if test "$with_gnu_ld" = no; then
14504 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14505 hardcode_libdir_separator_F77=:
14507 hardcode_direct_F77=yes
14508 export_dynamic_flag_spec_F77='${wl}-E'
14510 # hardcode_minus_L: Not really in the search PATH,
14511 # but as the default location of the library.
14512 hardcode_minus_L_F77=yes
14517 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14520 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14523 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14532 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14538 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14542 if test "$with_gnu_ld" = no; then
14543 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14544 hardcode_libdir_separator_F77=:
14548 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14549 hardcode_direct_F77=no
14550 hardcode_shlibpath_var_F77=no
14553 hardcode_direct_F77=yes
14554 export_dynamic_flag_spec_F77='${wl}-E'
14556 # hardcode_minus_L: Not really in the search PATH,
14557 # but as the default location of the library.
14558 hardcode_minus_L_F77=yes
14564 irix5* | irix6* | nonstopux*)
14565 if test "$GCC" = yes; then
14566 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'
14568 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'
14569 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14571 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14572 hardcode_libdir_separator_F77=:
14573 link_all_deplibs_F77=yes
14576 netbsd* | netbsdelf*-gnu)
14577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14580 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14582 hardcode_libdir_flag_spec_F77='-R$libdir'
14583 hardcode_direct_F77=yes
14584 hardcode_shlibpath_var_F77=no
14588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14589 hardcode_direct_F77=yes
14590 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14591 hardcode_libdir_separator_F77=:
14592 hardcode_shlibpath_var_F77=no
14596 if test -f /usr/libexec/ld.so; then
14597 hardcode_direct_F77=yes
14598 hardcode_shlibpath_var_F77=no
14599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14600 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14601 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14603 export_dynamic_flag_spec_F77='${wl}-E'
14606 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14608 hardcode_libdir_flag_spec_F77='-R$libdir'
14611 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14612 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14622 hardcode_libdir_flag_spec_F77='-L$libdir'
14623 hardcode_minus_L_F77=yes
14624 allow_undefined_flag_F77=unsupported
14625 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'
14626 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14630 if test "$GCC" = yes; then
14631 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14632 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'
14634 allow_undefined_flag_F77=' -expect_unresolved \*'
14635 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'
14637 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14638 hardcode_libdir_separator_F77=:
14641 osf4* | osf5*) # as osf3* with the addition of -msym flag
14642 if test "$GCC" = yes; then
14643 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14644 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'
14645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14647 allow_undefined_flag_F77=' -expect_unresolved \*'
14648 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'
14649 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~
14650 $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'
14652 # Both c and cxx compiler support -rpath directly
14653 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14655 hardcode_libdir_separator_F77=:
14659 no_undefined_flag_F77=' -z text'
14660 if test "$GCC" = yes; then
14662 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14663 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14667 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14668 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14671 hardcode_libdir_flag_spec_F77='-R$libdir'
14672 hardcode_shlibpath_var_F77=no
14674 solaris2.[0-5] | solaris2.[0-5].*) ;;
14676 # The compiler driver will combine and reorder linker options,
14677 # but understands `-z linker_flag'. GCC discards it without `$wl',
14678 # but is careful enough not to reorder.
14679 # Supported since Solaris 2.6 (maybe 2.5.1?)
14680 if test "$GCC" = yes; then
14681 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14683 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14687 link_all_deplibs_F77=yes
14691 if test "x$host_vendor" = xsequent; then
14692 # Use $CC to link under sequent, because it throws in some extra .o
14693 # files that make .init and .fini sections work.
14694 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14696 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14698 hardcode_libdir_flag_spec_F77='-L$libdir'
14699 hardcode_direct_F77=yes
14700 hardcode_minus_L_F77=yes
14701 hardcode_shlibpath_var_F77=no
14705 case $host_vendor in
14707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708 hardcode_direct_F77=yes # is this really true???
14711 ## LD is ld it makes a PLAMLIB
14712 ## CC just makes a GrossModule.
14713 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14714 reload_cmds_F77='$CC -r -o $output$reload_objs'
14715 hardcode_direct_F77=no
14718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14722 runpath_var='LD_RUN_PATH'
14723 hardcode_shlibpath_var_F77=no
14727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 hardcode_shlibpath_var_F77=no
14729 export_dynamic_flag_spec_F77='-Bexport'
14733 if test -d /usr/nec; then
14734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735 hardcode_shlibpath_var_F77=no
14736 runpath_var=LD_RUN_PATH
14737 hardcode_runpath_var=yes
14742 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14743 no_undefined_flag_F77='${wl}-z,text'
14744 archive_cmds_need_lc_F77=no
14745 hardcode_shlibpath_var_F77=no
14746 runpath_var='LD_RUN_PATH'
14748 if test "$GCC" = yes; then
14749 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14752 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14753 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14757 sysv5* | sco3.2v5* | sco5v6*)
14758 # Note: We can NOT use -z defs as we might desire, because we do not
14759 # link with -lc, and that would cause any symbols used from libc to
14760 # always be unresolved, which means just about no library would
14761 # ever link correctly. If we're not using GNU ld we use -z text
14762 # though, which does catch some bad symbols but isn't as heavy-handed
14764 no_undefined_flag_F77='${wl}-z,text'
14765 allow_undefined_flag_F77='${wl}-z,nodefs'
14766 archive_cmds_need_lc_F77=no
14767 hardcode_shlibpath_var_F77=no
14768 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14769 hardcode_libdir_separator_F77=':'
14770 link_all_deplibs_F77=yes
14771 export_dynamic_flag_spec_F77='${wl}-Bexport'
14772 runpath_var='LD_RUN_PATH'
14774 if test "$GCC" = yes; then
14775 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14776 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14778 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14779 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14785 hardcode_libdir_flag_spec_F77='-L$libdir'
14786 hardcode_shlibpath_var_F77=no
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14796 $as_echo "$ld_shlibs_F77" >&6; }
14797 test "$ld_shlibs_F77" = no && can_build_shared=no
14800 # Do we need to explicitly link libc?
14802 case "x$archive_cmds_need_lc_F77" in
14804 # Assume -lc should be added
14805 archive_cmds_need_lc_F77=yes
14807 if test "$enable_shared" = yes && test "$GCC" = yes; then
14808 case $archive_cmds_F77 in
14810 # FIXME: we may have to deal with multi-command sequences.
14813 # Test whether the compiler implicitly links with -lc since on some
14814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14815 # to ld, don't add -lc before -lgcc.
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14822 (eval $ac_compile) 2>&5
14824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14825 test $ac_status = 0; } 2>conftest.err; then
14828 libobjs=conftest.$ac_objext
14830 wl=$lt_prog_compiler_wl_F77
14831 pic_flag=$lt_prog_compiler_pic_F77
14837 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14838 allow_undefined_flag_F77=
14839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14840 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14843 test $ac_status = 0; }
14845 archive_cmds_need_lc_F77=no
14847 archive_cmds_need_lc_F77=yes
14849 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14851 cat conftest.err 1>&5
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14855 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14864 library_names_spec=
14865 libname_spec='lib$name'
14869 postuninstall_cmds=
14873 shlibpath_overrides_runpath=unknown
14875 dynamic_linker="$host_os ld.so"
14876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14878 need_lib_prefix=unknown
14879 hardcode_into_libs=no
14881 # when you set need_version to no, make sure it does not cause -set_version
14882 # flags to be left without arguments
14883 need_version=unknown
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14889 shlibpath_var=LIBPATH
14891 # AIX 3 has no versioning support, so we append a major version to the name.
14892 soname_spec='${libname}${release}${shared_ext}$major'
14899 hardcode_into_libs=yes
14900 if test "$host_cpu" = ia64; then
14901 # AIX 5 supports IA64
14902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14903 shlibpath_var=LD_LIBRARY_PATH
14905 # With GCC up to 2.95.x, collect2 would create an import file
14906 # for dependence libraries. The import file would start with
14907 # the line `#! .'. This would cause the generated library to
14908 # depend on `.', always an invalid library. This was fixed in
14909 # development snapshots of GCC prior to 3.0.
14911 aix4 | aix4.[01] | aix4.[01].*)
14912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14914 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14917 can_build_shared=no
14921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14922 # soname into executable. Probably we can add versioning support to
14923 # collect2, so additional links can be useful in future.
14924 if test "$aix_use_runtimelinking" = yes; then
14925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14926 # instead of lib<name>.a to let people know that these are not
14927 # typical AIX shared libraries.
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 # We preserve .a as extension for shared libraries through AIX4.2
14931 # and later when we are not doing run time linking.
14932 library_names_spec='${libname}${release}.a $libname.a'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14935 shlibpath_var=LIBPATH
14940 library_names_spec='$libname.ixlibrary $libname.a'
14941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14942 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'
14946 library_names_spec='${libname}${shared_ext}'
14947 dynamic_linker="$host_os ld.so"
14948 shlibpath_var=LIBRARY_PATH
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955 soname_spec='${libname}${release}${shared_ext}$major'
14956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14957 shlibpath_var=LD_LIBRARY_PATH
14958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14960 # the default ld.so.conf also contains /usr/contrib/lib and
14961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14962 # libtool to hard-code these into programs
14965 cygwin* | mingw* | pw32*)
14966 version_type=windows
14971 case $GCC,$host_os in
14972 yes,cygwin* | yes,mingw* | yes,pw32*)
14973 library_names_spec='$libname.dll.a'
14974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14975 postinstall_cmds='base_file=`basename \${file}`~
14976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14977 dldir=$destdir/`dirname \$dlpath`~
14978 test -d \$dldir || mkdir -p \$dldir~
14979 $install_prog $dir/$dlname \$dldir/$dlname~
14980 chmod a+x \$dldir/$dlname'
14981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14982 dlpath=$dir/\$dldll~
14984 shlibpath_overrides_runpath=yes
14988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14993 # MinGW DLLs use traditional 'lib' prefix
14994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14996 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14997 # It is most probably a Windows format PATH printed by
14998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14999 # path with ; separators, and with drive letters. We can handle the
15000 # drive letters (cygwin fileutils understands them), so leave them,
15001 # especially as we might pass files found there to a mingw objdump,
15002 # which wouldn't understand a cygwinified path. Ahh.
15003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15009 # pw32 DLLs use 'pw' prefix rather than 'lib'
15010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15019 dynamic_linker='Win32 ld.exe'
15020 # FIXME: first we should search . and the directory the executable is in
15024 darwin* | rhapsody*)
15025 dynamic_linker="$host_os dyld"
15026 version_type=darwin
15029 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15030 soname_spec='${libname}${release}${major}$shared_ext'
15031 shlibpath_overrides_runpath=yes
15032 shlibpath_var=DYLD_LIBRARY_PATH
15033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 shlibpath_var=LD_LIBRARY_PATH
15051 freebsd* | dragonfly*)
15052 # DragonFly does not have aout. When/if they implement a new
15053 # versioning mechanism, adjust this.
15054 if test -x /usr/bin/objformat; then
15055 objformat=`/usr/bin/objformat`
15058 freebsd[123]*) objformat=aout ;;
15059 *) objformat=elf ;;
15062 version_type=freebsd-$objformat
15063 case $version_type in
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15074 shlibpath_var=LD_LIBRARY_PATH
15077 shlibpath_overrides_runpath=yes
15079 freebsd3.[01]* | freebsdelf3.[01]*)
15080 shlibpath_overrides_runpath=yes
15081 hardcode_into_libs=yes
15083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15085 shlibpath_overrides_runpath=no
15086 hardcode_into_libs=yes
15088 *) # from 4.6 on, and DragonFly
15089 shlibpath_overrides_runpath=yes
15090 hardcode_into_libs=yes
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 hardcode_into_libs=yes
15105 hpux9* | hpux10* | hpux11*)
15106 # Give a soname corresponding to the major version so that dld.sl refuses to
15107 # link against other versions.
15114 hardcode_into_libs=yes
15115 dynamic_linker="$host_os dld.so"
15116 shlibpath_var=LD_LIBRARY_PATH
15117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15120 if test "X$HPUX_IA64_MODE" = X32; then
15121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15129 hardcode_into_libs=yes
15130 dynamic_linker="$host_os dld.sl"
15131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15140 dynamic_linker="$host_os dld.sl"
15141 shlibpath_var=SHLIB_PATH
15142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15147 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15148 postinstall_cmds='chmod 555 $lib'
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=no
15160 hardcode_into_libs=yes
15163 irix5* | irix6* | nonstopux*)
15165 nonstopux*) version_type=nonstopux ;;
15167 if test "$lt_cv_prog_gnu_ld" = yes; then
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15178 irix5* | nonstopux*)
15179 libsuff= shlibsuff=
15182 case $LD in # libtool.m4 will add one of these switches to LD
15183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15184 libsuff= shlibsuff= libmagic=32-bit;;
15185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15186 libsuff=32 shlibsuff=N32 libmagic=N32;;
15187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15189 *) libsuff= shlibsuff= libmagic=never-match;;
15193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15194 shlibpath_overrides_runpath=no
15195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15197 hardcode_into_libs=yes
15200 # No shared lib support for Linux oldld, aout, or coff.
15201 linux*oldld* | linux*aout* | linux*coff*)
15205 # This must be Linux ELF.
15206 linux* | k*bsd*-gnu)
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=no
15215 # This implies no fast_install, which is unacceptable.
15216 # Some rework will be needed to allow for fast_install
15217 # before this can be enabled.
15218 hardcode_into_libs=yes
15220 # Append ld.so.conf contents to the search path
15221 if test -f /etc/ld.so.conf; then
15222 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' ' '`
15223 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15226 # We used to test for /lib/ld.so.1 and disable shared libraries on
15227 # powerpc, because MkLinux only supported shared libraries with the
15228 # GNU dynamic linker. Since this was broken with cross compilers,
15229 # most powerpc-linux boxes support dynamic linking these days and
15230 # people can always --disable-shared, the test was removed, and we
15231 # assume the GNU/Linux dynamic linker is in use.
15232 dynamic_linker='GNU/Linux ld.so'
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=no
15243 hardcode_into_libs=yes
15244 dynamic_linker='NetBSD ld.elf_so'
15251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15254 dynamic_linker='NetBSD (a.out) ld.so'
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 dynamic_linker='NetBSD ld.elf_so'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=yes
15262 hardcode_into_libs=yes
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 shlibpath_overrides_runpath=yes
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15284 sys_lib_dlsearch_path_spec="/usr/lib"
15286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15289 *) need_version=no ;;
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15296 openbsd2.[89] | openbsd2.[89].*)
15297 shlibpath_overrides_runpath=no
15300 shlibpath_overrides_runpath=yes
15304 shlibpath_overrides_runpath=yes
15309 libname_spec='$name'
15312 library_names_spec='$libname${shared_ext} $libname.a'
15313 dynamic_linker='OS/2 ld.exe'
15314 shlibpath_var=LIBPATH
15317 osf3* | osf4* | osf5*)
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337 soname_spec='${libname}${release}${shared_ext}$major'
15338 shlibpath_var=LD_LIBRARY_PATH
15339 shlibpath_overrides_runpath=yes
15340 hardcode_into_libs=yes
15341 # ldd complains unless libraries are executable
15342 postinstall_cmds='chmod +x $lib'
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes
15351 if test "$with_gnu_ld" = yes; then
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 case $host_vendor in
15364 shlibpath_overrides_runpath=no
15366 export_dynamic_flag_spec='${wl}-Blargedynsym'
15367 runpath_var=LD_RUN_PATH
15375 shlibpath_overrides_runpath=no
15376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15382 if test -d /usr/nec ;then
15384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15385 soname_spec='$libname${shared_ext}.$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15391 version_type=freebsd-elf
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 hardcode_into_libs=yes
15398 if test "$with_gnu_ld" = yes; then
15399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15400 shlibpath_overrides_runpath=no
15402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15403 shlibpath_overrides_runpath=yes
15406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15410 sys_lib_dlsearch_path_spec='/usr/lib'
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LD_LIBRARY_PATH
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15425 $as_echo "$dynamic_linker" >&6; }
15426 test "$dynamic_linker" = no && can_build_shared=no
15428 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15429 $as_echo_n "(cached) " >&6
15431 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15434 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15435 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15436 $as_echo_n "(cached) " >&6
15438 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15441 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15444 if test "$GCC" = yes; then
15445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15449 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15450 hardcode_action_F77=
15451 if test -n "$hardcode_libdir_flag_spec_F77" || \
15452 test -n "$runpath_var_F77" || \
15453 test "X$hardcode_automatic_F77" = "Xyes" ; then
15455 # We can hardcode non-existant directories.
15456 if test "$hardcode_direct_F77" != no &&
15457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15458 # have to relink, otherwise we might link with an installed library
15459 # when we should be linking with a yet-to-be-installed one
15460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15461 test "$hardcode_minus_L_F77" != no; then
15462 # Linking always hardcodes the temporary library directory.
15463 hardcode_action_F77=relink
15465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15466 hardcode_action_F77=immediate
15469 # We cannot hardcode anything, or else we can only hardcode existing
15471 hardcode_action_F77=unsupported
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15474 $as_echo "$hardcode_action_F77" >&6; }
15476 if test "$hardcode_action_F77" = relink; then
15477 # Fast installation is not supported
15478 enable_fast_install=no
15479 elif test "$shlibpath_overrides_runpath" = yes ||
15480 test "$enable_shared" = no; then
15481 # Fast installation is not necessary
15482 enable_fast_install=needless
15486 # The else clause should only fire when bootstrapping the
15487 # libtool distribution, otherwise you forgot to ship ltmain.sh
15488 # with your package, and you will get complaints that there are
15489 # no rules to generate ltmain.sh.
15490 if test -f "$ltmain"; then
15491 # See if we are running on zsh, and set the options which allow our commands through
15492 # without removal of \ escapes.
15493 if test -n "${ZSH_VERSION+set}" ; then
15494 setopt NO_GLOB_SUBST
15496 # Now quote all the things that may contain metacharacters while being
15497 # careful not to overquote the AC_SUBSTed values. We take copies of the
15498 # variables and quote the copies for generation of the libtool script.
15499 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15501 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15502 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15503 deplibs_check_method reload_flag reload_cmds need_locks \
15504 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15505 lt_cv_sys_global_symbol_to_c_name_address \
15506 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15507 old_postinstall_cmds old_postuninstall_cmds \
15511 lt_prog_compiler_wl_F77 \
15512 lt_prog_compiler_pic_F77 \
15513 lt_prog_compiler_static_F77 \
15514 lt_prog_compiler_no_builtin_flag_F77 \
15515 export_dynamic_flag_spec_F77 \
15516 thread_safe_flag_spec_F77 \
15517 whole_archive_flag_spec_F77 \
15518 enable_shared_with_static_runtimes_F77 \
15519 old_archive_cmds_F77 \
15520 old_archive_from_new_cmds_F77 \
15521 predep_objects_F77 \
15522 postdep_objects_F77 \
15525 compiler_lib_search_path_F77 \
15526 compiler_lib_search_dirs_F77 \
15528 archive_expsym_cmds_F77 \
15529 postinstall_cmds_F77 \
15530 postuninstall_cmds_F77 \
15531 old_archive_from_expsyms_cmds_F77 \
15532 allow_undefined_flag_F77 \
15533 no_undefined_flag_F77 \
15534 export_symbols_cmds_F77 \
15535 hardcode_libdir_flag_spec_F77 \
15536 hardcode_libdir_flag_spec_ld_F77 \
15537 hardcode_libdir_separator_F77 \
15538 hardcode_automatic_F77 \
15540 module_expsym_cmds_F77 \
15541 lt_cv_prog_compiler_c_o_F77 \
15542 fix_srcfile_path_F77 \
15543 exclude_expsyms_F77 \
15544 include_expsyms_F77; do
15547 old_archive_cmds_F77 | \
15548 old_archive_from_new_cmds_F77 | \
15549 archive_cmds_F77 | \
15550 archive_expsym_cmds_F77 | \
15551 module_cmds_F77 | \
15552 module_expsym_cmds_F77 | \
15553 old_archive_from_expsyms_cmds_F77 | \
15554 export_symbols_cmds_F77 | \
15555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15556 postinstall_cmds | postuninstall_cmds | \
15557 old_postinstall_cmds | old_postuninstall_cmds | \
15558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15559 # Double-quote double-evaled strings.
15560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15569 *'\$0 --fallback-echo"')
15570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15576 cat <<__EOF__ >> "$cfgfile"
15577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15581 # Shell to use when invoking shell scripts.
15584 # Whether or not to build shared libraries.
15585 build_libtool_libs=$enable_shared
15587 # Whether or not to build static libraries.
15588 build_old_libs=$enable_static
15590 # Whether or not to add -lc for building shared libraries.
15591 build_libtool_need_lc=$archive_cmds_need_lc_F77
15593 # Whether or not to disallow shared libs when runtime libs are static
15594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15596 # Whether or not to optimize for fast installation.
15597 fast_install=$enable_fast_install
15600 host_alias=$host_alias
15604 # The build system.
15605 build_alias=$build_alias
15609 # An echo program that does not interpret backslashes.
15614 AR_FLAGS=$lt_AR_FLAGS
15619 # LTCC compiler flags.
15620 LTCFLAGS=$lt_LTCFLAGS
15622 # A language-specific compiler.
15623 CC=$lt_compiler_F77
15625 # Is the compiler the GNU C compiler?
15631 # The linker used to build libraries.
15634 # Whether we need hard or soft links.
15637 # A BSD-compatible nm program.
15640 # A symbol stripping program
15643 # Used to examine libraries when file_magic_cmd begins "file"
15644 MAGIC_CMD=$MAGIC_CMD
15646 # Used on cygwin: DLL creation program.
15649 # Used on cygwin: object dumper.
15652 # Used on cygwin: assembler.
15655 # The name of the directory that contains temporary libtool files.
15658 # How to create reloadable object files.
15659 reload_flag=$lt_reload_flag
15660 reload_cmds=$lt_reload_cmds
15662 # How to pass a linker flag through the compiler.
15663 wl=$lt_lt_prog_compiler_wl_F77
15665 # Object file suffix (normally "o").
15666 objext="$ac_objext"
15668 # Old archive suffix (normally "a").
15671 # Shared library suffix (normally ".so").
15672 shrext_cmds='$shrext_cmds'
15674 # Executable file suffix (normally "").
15677 # Additional compiler flags for building library objects.
15678 pic_flag=$lt_lt_prog_compiler_pic_F77
15681 # What is the maximum length of a command?
15682 max_cmd_len=$lt_cv_sys_max_cmd_len
15684 # Does compiler simultaneously support -c and -o options?
15685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15687 # Must we lock files when doing compilation?
15688 need_locks=$lt_need_locks
15690 # Do we need the lib prefix for modules?
15691 need_lib_prefix=$need_lib_prefix
15693 # Do we need a version for libraries?
15694 need_version=$need_version
15696 # Whether dlopen is supported.
15697 dlopen_support=$enable_dlopen
15699 # Whether dlopen of programs is supported.
15700 dlopen_self=$enable_dlopen_self
15702 # Whether dlopen of statically linked programs is supported.
15703 dlopen_self_static=$enable_dlopen_self_static
15705 # Compiler flag to prevent dynamic linking.
15706 link_static_flag=$lt_lt_prog_compiler_static_F77
15708 # Compiler flag to turn off builtin functions.
15709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15711 # Compiler flag to allow reflexive dlopens.
15712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15714 # Compiler flag to generate shared objects directly from archives.
15715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15717 # Compiler flag to generate thread-safe objects.
15718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15720 # Library versioning type.
15721 version_type=$version_type
15723 # Format of library name prefix.
15724 libname_spec=$lt_libname_spec
15726 # List of archive names. First name is the real one, the rest are links.
15727 # The last name is the one that the linker finds with -lNAME.
15728 library_names_spec=$lt_library_names_spec
15730 # The coded name of the library, if different from the real name.
15731 soname_spec=$lt_soname_spec
15733 # Commands used to build and install an old-style archive.
15735 old_archive_cmds=$lt_old_archive_cmds_F77
15736 old_postinstall_cmds=$lt_old_postinstall_cmds
15737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15739 # Create an old-style archive from a shared archive.
15740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15742 # Create a temporary old-style archive to link instead of a shared archive.
15743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15745 # Commands used to build and install a shared archive.
15746 archive_cmds=$lt_archive_cmds_F77
15747 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15748 postinstall_cmds=$lt_postinstall_cmds
15749 postuninstall_cmds=$lt_postuninstall_cmds
15751 # Commands used to build a loadable module (assumed same as above if empty)
15752 module_cmds=$lt_module_cmds_F77
15753 module_expsym_cmds=$lt_module_expsym_cmds_F77
15755 # Commands to strip libraries.
15756 old_striplib=$lt_old_striplib
15757 striplib=$lt_striplib
15759 # Dependencies to place before the objects being linked to create a
15761 predep_objects=$lt_predep_objects_F77
15763 # Dependencies to place after the objects being linked to create a
15765 postdep_objects=$lt_postdep_objects_F77
15767 # Dependencies to place before the objects being linked to create a
15769 predeps=$lt_predeps_F77
15771 # Dependencies to place after the objects being linked to create a
15773 postdeps=$lt_postdeps_F77
15775 # The directories searched by this compiler when creating a shared
15777 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15779 # The library search path used internally by the compiler when linking
15780 # a shared library.
15781 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15783 # Method to check whether dependent libraries are shared objects.
15784 deplibs_check_method=$lt_deplibs_check_method
15786 # Command to use when deplibs_check_method == file_magic.
15787 file_magic_cmd=$lt_file_magic_cmd
15789 # Flag that allows shared libraries with undefined symbols to be built.
15790 allow_undefined_flag=$lt_allow_undefined_flag_F77
15792 # Flag that forces no undefined symbols.
15793 no_undefined_flag=$lt_no_undefined_flag_F77
15795 # Commands used to finish a libtool library installation in a directory.
15796 finish_cmds=$lt_finish_cmds
15798 # Same as above, but a single script fragment to be evaled but not shown.
15799 finish_eval=$lt_finish_eval
15801 # Take the output of nm and produce a listing of raw symbols and C names.
15802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15804 # Transform the output of nm in a proper C declaration
15805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15807 # Transform the output of nm in a C name address pair
15808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15810 # This is the shared library runtime path variable.
15811 runpath_var=$runpath_var
15813 # This is the shared library path variable.
15814 shlibpath_var=$shlibpath_var
15816 # Is shlibpath searched before the hard-coded library search path?
15817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15819 # How to hardcode a shared library path into an executable.
15820 hardcode_action=$hardcode_action_F77
15822 # Whether we should hardcode library paths into libraries.
15823 hardcode_into_libs=$hardcode_into_libs
15825 # Flag to hardcode \$libdir into a binary during linking.
15826 # This must work even if \$libdir does not exist.
15827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15829 # If ld is used when linking, flag to hardcode \$libdir into
15830 # a binary during linking. This must work even if \$libdir does
15832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15834 # Whether we need a single -rpath flag with a separated argument.
15835 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15838 # resulting binary.
15839 hardcode_direct=$hardcode_direct_F77
15841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15842 # resulting binary.
15843 hardcode_minus_L=$hardcode_minus_L_F77
15845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15846 # the resulting binary.
15847 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15849 # Set to yes if building a shared library automatically hardcodes DIR into the library
15850 # and all subsequent libraries and executables linked against it.
15851 hardcode_automatic=$hardcode_automatic_F77
15853 # Variables whose values should be saved in libtool wrapper scripts and
15854 # restored at relink time.
15855 variables_saved_for_relink="$variables_saved_for_relink"
15857 # Whether libtool must link a program against all its dependency libraries.
15858 link_all_deplibs=$link_all_deplibs_F77
15860 # Compile-time system search path for libraries
15861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15863 # Run-time system search path for libraries
15864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15866 # Fix the shell variable \$srcfile for the compiler.
15867 fix_srcfile_path=$lt_fix_srcfile_path
15869 # Set to yes if exported symbols are required.
15870 always_export_symbols=$always_export_symbols_F77
15872 # The commands to list exported symbols.
15873 export_symbols_cmds=$lt_export_symbols_cmds_F77
15875 # The commands to extract the exported symbol list from a shared archive.
15876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15878 # Symbols that should not be listed in the preloaded symbols.
15879 exclude_expsyms=$lt_exclude_expsyms_F77
15881 # Symbols that must always be exported.
15882 include_expsyms=$lt_include_expsyms_F77
15884 # ### END LIBTOOL TAG CONFIG: $tagname
15890 # If there is no Makefile yet, we rely on a make rule to execute
15891 # `config.status --recheck' to rerun these tests and create the
15892 # libtool script then.
15893 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15894 if test -f "$ltmain_in"; then
15895 test -f Makefile && make "$ltmain"
15901 ac_cpp='$CPP $CPPFLAGS'
15902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15914 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15917 # Source file extension for Java test sources.
15920 # Object file extension for compiled Java test sources.
15924 # Code to be used in simple compile tests
15925 lt_simple_compile_test_code="class foo {}"
15927 # Code to be used in simple link tests
15928 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15930 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15932 # If no C compiler was specified, use CC.
15935 # If no C compiler flags were specified, use CFLAGS.
15936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15938 # Allow CC to be a program name with arguments.
15942 # save warnings/boilerplate of simple test code
15943 ac_outfile=conftest.$ac_objext
15944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15946 _lt_compiler_boilerplate=`cat conftest.err`
15949 ac_outfile=conftest.$ac_objext
15950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15952 _lt_linker_boilerplate=`cat conftest.err`
15956 # Allow CC to be a program name with arguments.
15961 for cc_temp in $compiler""; do
15963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15972 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15973 archive_cmds_need_lc_GCJ=no
15975 old_archive_cmds_GCJ=$old_archive_cmds
15978 lt_prog_compiler_no_builtin_flag_GCJ=
15980 if test "$GCC" = yes; then
15981 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15985 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15987 $as_echo_n "(cached) " >&6
15989 lt_cv_prog_compiler_rtti_exceptions=no
15990 ac_outfile=conftest.$ac_objext
15991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15992 lt_compiler_flag="-fno-rtti -fno-exceptions"
15993 # Insert the option either (1) after the last *FLAGS variable, or
15994 # (2) before a word containing "conftest.", or (3) at the end.
15995 # Note that $ac_compile itself does not contain backslashes and begins
15996 # with a dollar sign (not a hyphen), so the echo should work correctly.
15997 # The option is referenced via a variable to avoid confusing sed.
15998 lt_compile=`echo "$ac_compile" | $SED \
15999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16001 -e 's:$: $lt_compiler_flag:'`
16002 (eval echo "\"\$as_me:16002: $lt_compile\"" >&5)
16003 (eval "$lt_compile" 2>conftest.err)
16005 cat conftest.err >&5
16006 echo "$as_me:16006: \$? = $ac_status" >&5
16007 if (exit $ac_status) && test -s "$ac_outfile"; then
16008 # The compiler can only warn and ignore the option if not recognized
16009 # So say no if there are warnings other than the usual output.
16010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16013 lt_cv_prog_compiler_rtti_exceptions=yes
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16020 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16023 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16030 lt_prog_compiler_wl_GCJ=
16031 lt_prog_compiler_pic_GCJ=
16032 lt_prog_compiler_static_GCJ=
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16035 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16037 if test "$GCC" = yes; then
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 lt_prog_compiler_static_GCJ='-static'
16043 # All AIX code is PIC.
16044 if test "$host_cpu" = ia64; then
16045 # AIX 5 now supports IA64 processor
16046 lt_prog_compiler_static_GCJ='-Bstatic'
16051 # FIXME: we need at least 68020 code to build shared libraries, but
16052 # adding the `-m68020' flag to GCC prevents building anything better,
16054 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16058 # PIC is the default for these OSes.
16061 mingw* | cygwin* | pw32* | os2*)
16062 # This hack is so that the source file can tell whether it is being
16063 # built for inclusion in a dll (and should export symbols for example).
16064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16065 # (--disable-auto-import) libraries
16069 darwin* | rhapsody*)
16070 # PIC is the default on this platform
16071 # Common symbols not allowed in MH_DYLIB files
16072 lt_prog_compiler_pic_GCJ='-fno-common'
16076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16077 # Instead, we relocate shared libraries at runtime.
16081 # Just because we use GCC doesn't mean we suddenly get shared libraries
16082 # on systems that don't support them.
16083 lt_prog_compiler_can_build_shared_GCJ=no
16088 if test -d /usr/nec; then
16089 lt_prog_compiler_pic_GCJ=-Kconform_pic
16094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16095 # not for PA HP-UX.
16101 lt_prog_compiler_pic_GCJ='-fPIC'
16107 lt_prog_compiler_pic_GCJ='-fPIC'
16111 # PORTME Check for flag to pass linker flags through the system compiler.
16114 lt_prog_compiler_wl_GCJ='-Wl,'
16115 if test "$host_cpu" = ia64; then
16116 # AIX 5 now supports IA64 processor
16117 lt_prog_compiler_static_GCJ='-Bstatic'
16119 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16123 # PIC is the default on this platform
16124 # Common symbols not allowed in MH_DYLIB files
16125 case $cc_basename in
16127 lt_prog_compiler_pic_GCJ='-qnocommon'
16128 lt_prog_compiler_wl_GCJ='-Wl,'
16133 mingw* | cygwin* | pw32* | os2*)
16134 # This hack is so that the source file can tell whether it is being
16135 # built for inclusion in a dll (and should export symbols for example).
16139 hpux9* | hpux10* | hpux11*)
16140 lt_prog_compiler_wl_GCJ='-Wl,'
16141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16142 # not for PA HP-UX.
16148 lt_prog_compiler_pic_GCJ='+Z'
16151 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16152 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16155 irix5* | irix6* | nonstopux*)
16156 lt_prog_compiler_wl_GCJ='-Wl,'
16157 # PIC (with -KPIC) is the default.
16158 lt_prog_compiler_static_GCJ='-non_shared'
16162 lt_prog_compiler_pic_GCJ='-KPIC'
16163 lt_prog_compiler_static_GCJ='-Bstatic'
16166 linux* | k*bsd*-gnu)
16167 case $cc_basename in
16169 lt_prog_compiler_wl_GCJ='-Wl,'
16170 lt_prog_compiler_pic_GCJ='-KPIC'
16171 lt_prog_compiler_static_GCJ='-static'
16173 pgcc* | pgf77* | pgf90* | pgf95*)
16174 # Portland Group compilers (*not* the Pentium gcc compiler,
16175 # which looks to be a dead project)
16176 lt_prog_compiler_wl_GCJ='-Wl,'
16177 lt_prog_compiler_pic_GCJ='-fpic'
16178 lt_prog_compiler_static_GCJ='-Bstatic'
16181 lt_prog_compiler_wl_GCJ='-Wl,'
16182 # All Alpha code is PIC.
16183 lt_prog_compiler_static_GCJ='-non_shared'
16186 case `$CC -V 2>&1 | sed 5q` in
16189 lt_prog_compiler_pic_GCJ='-KPIC'
16190 lt_prog_compiler_static_GCJ='-Bstatic'
16191 lt_prog_compiler_wl_GCJ='-Wl,'
16194 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16195 lt_prog_compiler_pic_GCJ='-KPIC'
16196 lt_prog_compiler_static_GCJ='-Bstatic'
16197 lt_prog_compiler_wl_GCJ=''
16204 osf3* | osf4* | osf5*)
16205 lt_prog_compiler_wl_GCJ='-Wl,'
16206 # All OSF/1 code is PIC.
16207 lt_prog_compiler_static_GCJ='-non_shared'
16211 lt_prog_compiler_static_GCJ='-non_shared'
16215 lt_prog_compiler_pic_GCJ='-KPIC'
16216 lt_prog_compiler_static_GCJ='-Bstatic'
16217 case $cc_basename in
16218 f77* | f90* | f95*)
16219 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16221 lt_prog_compiler_wl_GCJ='-Wl,';;
16226 lt_prog_compiler_wl_GCJ='-Qoption ld '
16227 lt_prog_compiler_pic_GCJ='-PIC'
16228 lt_prog_compiler_static_GCJ='-Bstatic'
16231 sysv4 | sysv4.2uw2* | sysv4.3*)
16232 lt_prog_compiler_wl_GCJ='-Wl,'
16233 lt_prog_compiler_pic_GCJ='-KPIC'
16234 lt_prog_compiler_static_GCJ='-Bstatic'
16238 if test -d /usr/nec ;then
16239 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16240 lt_prog_compiler_static_GCJ='-Bstatic'
16244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16245 lt_prog_compiler_wl_GCJ='-Wl,'
16246 lt_prog_compiler_pic_GCJ='-KPIC'
16247 lt_prog_compiler_static_GCJ='-Bstatic'
16251 lt_prog_compiler_wl_GCJ='-Wl,'
16252 lt_prog_compiler_can_build_shared_GCJ=no
16256 lt_prog_compiler_pic_GCJ='-pic'
16257 lt_prog_compiler_static_GCJ='-Bstatic'
16261 lt_prog_compiler_can_build_shared_GCJ=no
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16267 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16270 # Check to make sure the PIC flag actually works.
16272 if test -n "$lt_prog_compiler_pic_GCJ"; then
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16275 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16276 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16277 $as_echo_n "(cached) " >&6
16279 lt_cv_prog_compiler_pic_works_GCJ=no
16280 ac_outfile=conftest.$ac_objext
16281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16282 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16283 # Insert the option either (1) after the last *FLAGS variable, or
16284 # (2) before a word containing "conftest.", or (3) at the end.
16285 # Note that $ac_compile itself does not contain backslashes and begins
16286 # with a dollar sign (not a hyphen), so the echo should work correctly.
16287 # The option is referenced via a variable to avoid confusing sed.
16288 lt_compile=`echo "$ac_compile" | $SED \
16289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16291 -e 's:$: $lt_compiler_flag:'`
16292 (eval echo "\"\$as_me:16292: $lt_compile\"" >&5)
16293 (eval "$lt_compile" 2>conftest.err)
16295 cat conftest.err >&5
16296 echo "$as_me:16296: \$? = $ac_status" >&5
16297 if (exit $ac_status) && test -s "$ac_outfile"; then
16298 # The compiler can only warn and ignore the option if not recognized
16299 # So say no if there are warnings other than the usual output.
16300 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16303 lt_cv_prog_compiler_pic_works_GCJ=yes
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16310 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16312 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16313 case $lt_prog_compiler_pic_GCJ in
16315 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16318 lt_prog_compiler_pic_GCJ=
16319 lt_prog_compiler_can_build_shared_GCJ=no
16324 # For platforms which do not support PIC, -DPIC is meaningless:
16326 lt_prog_compiler_pic_GCJ=
16329 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16334 # Check to make sure the static flag actually works.
16336 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16339 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16340 $as_echo_n "(cached) " >&6
16342 lt_cv_prog_compiler_static_works_GCJ=no
16343 save_LDFLAGS="$LDFLAGS"
16344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16347 # The linker can only warn and ignore the option if not recognized
16348 # So say no if there are warnings
16349 if test -s conftest.err; then
16350 # Append any errors to the config.log.
16351 cat conftest.err 1>&5
16352 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16354 if diff conftest.exp conftest.er2 >/dev/null; then
16355 lt_cv_prog_compiler_static_works_GCJ=yes
16358 lt_cv_prog_compiler_static_works_GCJ=yes
16362 LDFLAGS="$save_LDFLAGS"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16366 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16368 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16371 lt_prog_compiler_static_GCJ=
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16377 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16378 $as_echo_n "(cached) " >&6
16380 lt_cv_prog_compiler_c_o_GCJ=no
16381 $rm -r conftest 2>/dev/null
16385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16387 lt_compiler_flag="-o out/conftest2.$ac_objext"
16388 # Insert the option either (1) after the last *FLAGS variable, or
16389 # (2) before a word containing "conftest.", or (3) at the end.
16390 # Note that $ac_compile itself does not contain backslashes and begins
16391 # with a dollar sign (not a hyphen), so the echo should work correctly.
16392 lt_compile=`echo "$ac_compile" | $SED \
16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16395 -e 's:$: $lt_compiler_flag:'`
16396 (eval echo "\"\$as_me:16396: $lt_compile\"" >&5)
16397 (eval "$lt_compile" 2>out/conftest.err)
16399 cat out/conftest.err >&5
16400 echo "$as_me:16400: \$? = $ac_status" >&5
16401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16403 # The compiler can only warn and ignore the option if not recognized
16404 # So say no if there are warnings
16405 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16408 lt_cv_prog_compiler_c_o_GCJ=yes
16413 # SGI C++ compiler will create directory out/ii_files/ for
16414 # template instantiation
16415 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16416 $rm out/* && rmdir out
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16423 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16426 hard_links="nottested"
16427 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16428 # do not overwrite the value of need_locks provided by the user
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16430 $as_echo_n "checking if we can lock with hard links... " >&6; }
16433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16435 ln conftest.a conftest.b 2>&5 || hard_links=no
16436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16438 $as_echo "$hard_links" >&6; }
16439 if test "$hard_links" = no; then
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16441 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16452 allow_undefined_flag_GCJ=
16453 enable_shared_with_static_runtimes_GCJ=no
16455 archive_expsym_cmds_GCJ=
16456 old_archive_From_new_cmds_GCJ=
16457 old_archive_from_expsyms_cmds_GCJ=
16458 export_dynamic_flag_spec_GCJ=
16459 whole_archive_flag_spec_GCJ=
16460 thread_safe_flag_spec_GCJ=
16461 hardcode_libdir_flag_spec_GCJ=
16462 hardcode_libdir_flag_spec_ld_GCJ=
16463 hardcode_libdir_separator_GCJ=
16464 hardcode_direct_GCJ=no
16465 hardcode_minus_L_GCJ=no
16466 hardcode_shlibpath_var_GCJ=unsupported
16467 link_all_deplibs_GCJ=unknown
16468 hardcode_automatic_GCJ=no
16470 module_expsym_cmds_GCJ=
16471 always_export_symbols_GCJ=no
16472 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16473 # include_expsyms should be a list of space-separated symbols to be *always*
16474 # included in the symbol list
16475 include_expsyms_GCJ=
16476 # exclude_expsyms can be an extended regexp of symbols to exclude
16477 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16478 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16479 # as well as any symbol that contains `d'.
16480 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16481 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16482 # platforms (ab)use it in PIC code, but their linkers get confused if
16483 # the symbol is explicitly referenced. Since portable code cannot
16484 # rely on this symbol name, it's probably fine to never include it in
16485 # preloaded symbol tables.
16486 # Exclude shared library initialization/finalization symbols.
16487 extract_expsyms_cmds=
16488 # Just being paranoid about ensuring that cc_basename is set.
16489 for cc_temp in $compiler""; do
16491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16500 cygwin* | mingw* | pw32*)
16501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16502 # When not using gcc, we currently assume that we are using
16503 # Microsoft Visual C++.
16504 if test "$GCC" != yes; then
16509 # we just hope/assume this is gcc and not c89 (= MSVC++)
16518 if test "$with_gnu_ld" = yes; then
16519 # If archive_cmds runs LD, not CC, wlarc should be empty
16522 # Set some defaults for GNU ld with shared library support. These
16523 # are reset later if shared libraries are not supported. Putting them
16524 # here allows them to be overridden if necessary.
16525 runpath_var=LD_RUN_PATH
16526 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16527 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16528 # ancient GNU ld didn't support --whole-archive et. al.
16529 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16530 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16532 whole_archive_flag_spec_GCJ=
16534 supports_anon_versioning=no
16535 case `$LD -v 2>/dev/null` in
16536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16539 *\ 2.11.*) ;; # other 2.11 versions
16540 *) supports_anon_versioning=yes ;;
16543 # See if GNU ld supports shared libraries.
16546 # On AIX/PPC, the GNU linker is very broken
16547 if test "$host_cpu" != ia64; then
16551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16552 *** to be unable to reliably create shared libraries on AIX.
16553 *** Therefore, libtool is disabling shared libraries support. If you
16554 *** really care for shared libraries, you may want to modify your PATH
16555 *** so that a non-GNU linker is found, and then restart.
16562 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)'
16563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16564 hardcode_minus_L_GCJ=yes
16566 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16567 # that the semantics of dynamic libraries on AmigaOS, at least up
16568 # to version 4, is to share data among multiple programs linked
16569 # with the same dynamic library. Since this doesn't match the
16570 # behavior of shared libraries on other platforms, we can't use
16576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16577 allow_undefined_flag_GCJ=unsupported
16578 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16579 # support --undefined. This deserves some investigation. FIXME
16580 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16586 cygwin* | mingw* | pw32*)
16587 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16588 # as there is no search path for DLLs.
16589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16590 allow_undefined_flag_GCJ=unsupported
16591 always_export_symbols_GCJ=no
16592 enable_shared_with_static_runtimes_GCJ=yes
16593 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16595 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16597 # If the export-symbols file already is a .def file (1st line
16598 # is EXPORTS), use it as is; otherwise, prepend...
16599 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16600 cp $export_symbols $output_objdir/$soname.def;
16602 echo EXPORTS > $output_objdir/$soname.def;
16603 cat $export_symbols >> $output_objdir/$soname.def;
16605 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16612 hardcode_direct_GCJ=no
16613 hardcode_shlibpath_var_GCJ=no
16614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16615 export_dynamic_flag_spec_GCJ='${wl}-E'
16616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16617 # Instead, shared libraries are loaded at an image base (0x10000000 by
16618 # default) and relocated if they conflict, which is a slow very memory
16619 # consuming and fragmenting process. To avoid this, we pick a random,
16620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16621 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16622 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'
16623 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'
16626 gnu* | linux* | k*bsd*-gnu)
16627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16629 case $cc_basename,$host_cpu in
16630 pgcc*) # Portland Group C compiler
16631 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'
16632 tmp_addflag=' $pic_flag'
16634 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16635 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'
16636 tmp_addflag=' $pic_flag -Mnomain' ;;
16637 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16638 tmp_addflag=' -i_dynamic' ;;
16639 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16640 tmp_addflag=' -i_dynamic -nofor_main' ;;
16641 ifc* | ifort*) # Intel Fortran compiler
16642 tmp_addflag=' -nofor_main' ;;
16644 case `$CC -V 2>&1 | sed 5q` in
16645 *Sun\ C*) # Sun C 5.9
16646 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'
16647 tmp_sharedflag='-G' ;;
16648 *Sun\ F*) # Sun Fortran 8.3
16649 tmp_sharedflag='-G' ;;
16651 tmp_sharedflag='-shared' ;;
16653 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16655 if test $supports_anon_versioning = yes; then
16656 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16658 $echo "local: *; };" >> $output_objdir/$libname.ver~
16659 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16661 link_all_deplibs_GCJ=no
16667 netbsd* | netbsdelf*-gnu)
16668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16669 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16678 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16683 *** create shared libraries on Solaris systems. Therefore, libtool
16684 *** is disabling shared libraries support. We urge you to upgrade GNU
16685 *** binutils to release 2.9.1 or newer. Another option is to modify
16686 *** your PATH or compiler configuration so that the native linker is
16687 *** used, and then restart.
16690 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16699 case `$LD -v 2>&1` in
16700 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16704 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16705 *** reliably create shared libraries on SCO systems. Therefore, libtool
16706 *** is disabling shared libraries support. We urge you to upgrade GNU
16707 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16708 *** your PATH or compiler configuration so that the native linker is
16709 *** used, and then restart.
16714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16715 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16716 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16717 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16726 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16728 hardcode_direct_GCJ=yes
16729 hardcode_shlibpath_var_GCJ=no
16733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16734 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16735 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16742 if test "$ld_shlibs_GCJ" = no; then
16744 hardcode_libdir_flag_spec_GCJ=
16745 export_dynamic_flag_spec_GCJ=
16746 whole_archive_flag_spec_GCJ=
16749 # PORTME fill in a description of your system's linker (not GNU ld)
16752 allow_undefined_flag_GCJ=unsupported
16753 always_export_symbols_GCJ=yes
16754 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'
16755 # Note: this linker hardcodes the directories in LIBPATH if there
16756 # are no directories specified by -L.
16757 hardcode_minus_L_GCJ=yes
16758 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16759 # Neither direct hardcoding nor static linking is supported with a
16761 hardcode_direct_GCJ=unsupported
16766 if test "$host_cpu" = ia64; then
16767 # On IA64, the linker does run time linking by default, so we don't
16768 # have to do anything special.
16769 aix_use_runtimelinking=no
16770 exp_sym_flag='-Bexport'
16773 # If we're using GNU nm, then we don't want the "-C" option.
16774 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16775 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16776 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'
16778 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'
16780 aix_use_runtimelinking=no
16782 # Test if we are trying to use run time linking or normal
16783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16784 # need to do runtime linking.
16785 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16786 for ld_flag in $LDFLAGS; do
16787 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16788 aix_use_runtimelinking=yes
16795 exp_sym_flag='-bexport'
16796 no_entry_flag='-bnoentry'
16799 # When large executables or shared objects are built, AIX ld can
16800 # have problems creating the table of contents. If linking a library
16801 # or program results in "error TOC overflow" add -mminimal-toc to
16802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16805 archive_cmds_GCJ=''
16806 hardcode_direct_GCJ=yes
16807 hardcode_libdir_separator_GCJ=':'
16808 link_all_deplibs_GCJ=yes
16810 if test "$GCC" = yes; then
16811 case $host_os in aix4.[012]|aix4.[012].*)
16812 # We only want to do this on AIX 4.2 and lower, the check
16813 # below for broken collect2 doesn't work under 4.3+
16814 collect2name=`${CC} -print-prog-name=collect2`
16815 if test -f "$collect2name" && \
16816 strings "$collect2name" | grep resolve_lib_name >/dev/null
16818 # We have reworked collect2
16821 # We have old collect2
16822 hardcode_direct_GCJ=unsupported
16823 # It fails to find uninstalled libraries when the uninstalled
16824 # path is not listed in the libpath. Setting hardcode_minus_L
16825 # to unsupported forces relinking
16826 hardcode_minus_L_GCJ=yes
16827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16828 hardcode_libdir_separator_GCJ=
16832 shared_flag='-shared'
16833 if test "$aix_use_runtimelinking" = yes; then
16834 shared_flag="$shared_flag "'${wl}-G'
16838 if test "$host_cpu" = ia64; then
16839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16840 # chokes on -Wl,-G. The following line is correct:
16843 if test "$aix_use_runtimelinking" = yes; then
16844 shared_flag='${wl}-G'
16846 shared_flag='${wl}-bM:SRE'
16851 # It seems that -bexpall does not export symbols beginning with
16852 # underscore (_), so it is better to generate a list of symbols to export.
16853 always_export_symbols_GCJ=yes
16854 if test "$aix_use_runtimelinking" = yes; then
16855 # Warning - without using the other runtime loading flags (-brtl),
16856 # -berok will link without error, but may produce a broken library.
16857 allow_undefined_flag_GCJ='-berok'
16858 # Determine the default libpath from the value encoded in an empty executable.
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16870 if ac_fn_c_try_link "$LINENO"; then :
16872 lt_aix_libpath_sed='
16873 /Import File Strings/,/^$/ {
16879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16880 # Check for a 64-bit object if we didn't find anything.
16881 if test -z "$aix_libpath"; then
16882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16885 rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16889 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16890 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"
16892 if test "$host_cpu" = ia64; then
16893 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16894 allow_undefined_flag_GCJ="-z nodefs"
16895 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"
16897 # Determine the default libpath from the value encoded in an empty executable.
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16909 if ac_fn_c_try_link "$LINENO"; then :
16911 lt_aix_libpath_sed='
16912 /Import File Strings/,/^$/ {
16918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16919 # Check for a 64-bit object if we didn't find anything.
16920 if test -z "$aix_libpath"; then
16921 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16924 rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16928 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16929 # Warning - without using the other run time loading flags,
16930 # -berok will link without error, but may produce a broken library.
16931 no_undefined_flag_GCJ=' ${wl}-bernotok'
16932 allow_undefined_flag_GCJ=' ${wl}-berok'
16933 # Exported symbols can be pulled into shared objects from archives
16934 whole_archive_flag_spec_GCJ='$convenience'
16935 archive_cmds_need_lc_GCJ=yes
16936 # This is similar to how AIX traditionally builds its shared libraries.
16937 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'
16943 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)'
16944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16945 hardcode_minus_L_GCJ=yes
16946 # see comment about different semantics on the GNU ld section
16951 export_dynamic_flag_spec_GCJ=-rdynamic
16954 cygwin* | mingw* | pw32*)
16955 # When not using gcc, we currently assume that we are using
16956 # Microsoft Visual C++.
16957 # hardcode_libdir_flag_spec is actually meaningless, as there is
16958 # no search path for DLLs.
16959 hardcode_libdir_flag_spec_GCJ=' '
16960 allow_undefined_flag_GCJ=unsupported
16961 # Tell ltmain to make .lib files, not .a files.
16963 # Tell ltmain to make .dll files, not .so files.
16965 # FIXME: Setting linknames here is a bad hack.
16966 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16967 # The linker will automatically build a .lib file if we build a DLL.
16968 old_archive_From_new_cmds_GCJ='true'
16969 # FIXME: Should let the user specify the lib program.
16970 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16971 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16972 enable_shared_with_static_runtimes_GCJ=yes
16975 darwin* | rhapsody*)
16977 rhapsody* | darwin1.[012])
16978 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16981 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16982 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16984 case ${MACOSX_DEPLOYMENT_TARGET} in
16986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16989 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16995 archive_cmds_need_lc_GCJ=no
16996 hardcode_direct_GCJ=no
16997 hardcode_automatic_GCJ=yes
16998 hardcode_shlibpath_var_GCJ=unsupported
16999 whole_archive_flag_spec_GCJ=''
17000 link_all_deplibs_GCJ=yes
17001 if test "$GCC" = yes ; then
17002 output_verbose_link_cmd='echo'
17003 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}"
17004 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17005 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}"
17006 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}"
17008 case $cc_basename in
17010 output_verbose_link_cmd='echo'
17011 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17012 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17013 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17014 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}'
17015 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}'
17025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17027 hardcode_shlibpath_var_GCJ=no
17034 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17035 # support. Future versions do this automatically, but an explicit c++rt0.o
17036 # does not break anything, and helps significantly (at the cost of a little
17039 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17040 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17041 hardcode_direct_GCJ=yes
17042 hardcode_shlibpath_var_GCJ=no
17045 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17048 hardcode_direct_GCJ=yes
17049 hardcode_minus_L_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=no
17053 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17054 freebsd* | dragonfly*)
17055 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17057 hardcode_direct_GCJ=yes
17058 hardcode_shlibpath_var_GCJ=no
17062 if test "$GCC" = yes; then
17063 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'
17065 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'
17067 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17068 hardcode_libdir_separator_GCJ=:
17069 hardcode_direct_GCJ=yes
17071 # hardcode_minus_L: Not really in the search PATH,
17072 # but as the default location of the library.
17073 hardcode_minus_L_GCJ=yes
17074 export_dynamic_flag_spec_GCJ='${wl}-E'
17078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17079 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17083 if test "$with_gnu_ld" = no; then
17084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17085 hardcode_libdir_separator_GCJ=:
17087 hardcode_direct_GCJ=yes
17088 export_dynamic_flag_spec_GCJ='${wl}-E'
17090 # hardcode_minus_L: Not really in the search PATH,
17091 # but as the default location of the library.
17092 hardcode_minus_L_GCJ=yes
17097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17100 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17106 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17115 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17122 if test "$with_gnu_ld" = no; then
17123 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17124 hardcode_libdir_separator_GCJ=:
17128 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17129 hardcode_direct_GCJ=no
17130 hardcode_shlibpath_var_GCJ=no
17133 hardcode_direct_GCJ=yes
17134 export_dynamic_flag_spec_GCJ='${wl}-E'
17136 # hardcode_minus_L: Not really in the search PATH,
17137 # but as the default location of the library.
17138 hardcode_minus_L_GCJ=yes
17144 irix5* | irix6* | nonstopux*)
17145 if test "$GCC" = yes; then
17146 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'
17148 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'
17149 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152 hardcode_libdir_separator_GCJ=:
17153 link_all_deplibs_GCJ=yes
17156 netbsd* | netbsdelf*-gnu)
17157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17160 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17162 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17163 hardcode_direct_GCJ=yes
17164 hardcode_shlibpath_var_GCJ=no
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=yes
17170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17171 hardcode_libdir_separator_GCJ=:
17172 hardcode_shlibpath_var_GCJ=no
17176 if test -f /usr/libexec/ld.so; then
17177 hardcode_direct_GCJ=yes
17178 hardcode_shlibpath_var_GCJ=no
17179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17180 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17181 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17183 export_dynamic_flag_spec_GCJ='${wl}-E'
17186 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17191 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17203 hardcode_minus_L_GCJ=yes
17204 allow_undefined_flag_GCJ=unsupported
17205 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'
17206 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17210 if test "$GCC" = yes; then
17211 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17212 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'
17214 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17215 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'
17217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17218 hardcode_libdir_separator_GCJ=:
17221 osf4* | osf5*) # as osf3* with the addition of -msym flag
17222 if test "$GCC" = yes; then
17223 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17224 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'
17225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17227 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17228 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'
17229 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~
17230 $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'
17232 # Both c and cxx compiler support -rpath directly
17233 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17235 hardcode_libdir_separator_GCJ=:
17239 no_undefined_flag_GCJ=' -z text'
17240 if test "$GCC" = yes; then
17242 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17243 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17244 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17247 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17248 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17249 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17251 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17252 hardcode_shlibpath_var_GCJ=no
17254 solaris2.[0-5] | solaris2.[0-5].*) ;;
17256 # The compiler driver will combine and reorder linker options,
17257 # but understands `-z linker_flag'. GCC discards it without `$wl',
17258 # but is careful enough not to reorder.
17259 # Supported since Solaris 2.6 (maybe 2.5.1?)
17260 if test "$GCC" = yes; then
17261 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17263 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17267 link_all_deplibs_GCJ=yes
17271 if test "x$host_vendor" = xsequent; then
17272 # Use $CC to link under sequent, because it throws in some extra .o
17273 # files that make .init and .fini sections work.
17274 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17276 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279 hardcode_direct_GCJ=yes
17280 hardcode_minus_L_GCJ=yes
17281 hardcode_shlibpath_var_GCJ=no
17285 case $host_vendor in
17287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17288 hardcode_direct_GCJ=yes # is this really true???
17291 ## LD is ld it makes a PLAMLIB
17292 ## CC just makes a GrossModule.
17293 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17294 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17295 hardcode_direct_GCJ=no
17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17302 runpath_var='LD_RUN_PATH'
17303 hardcode_shlibpath_var_GCJ=no
17307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308 hardcode_shlibpath_var_GCJ=no
17309 export_dynamic_flag_spec_GCJ='-Bexport'
17313 if test -d /usr/nec; then
17314 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17315 hardcode_shlibpath_var_GCJ=no
17316 runpath_var=LD_RUN_PATH
17317 hardcode_runpath_var=yes
17322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17323 no_undefined_flag_GCJ='${wl}-z,text'
17324 archive_cmds_need_lc_GCJ=no
17325 hardcode_shlibpath_var_GCJ=no
17326 runpath_var='LD_RUN_PATH'
17328 if test "$GCC" = yes; then
17329 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17332 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17333 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17337 sysv5* | sco3.2v5* | sco5v6*)
17338 # Note: We can NOT use -z defs as we might desire, because we do not
17339 # link with -lc, and that would cause any symbols used from libc to
17340 # always be unresolved, which means just about no library would
17341 # ever link correctly. If we're not using GNU ld we use -z text
17342 # though, which does catch some bad symbols but isn't as heavy-handed
17344 no_undefined_flag_GCJ='${wl}-z,text'
17345 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17346 archive_cmds_need_lc_GCJ=no
17347 hardcode_shlibpath_var_GCJ=no
17348 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17349 hardcode_libdir_separator_GCJ=':'
17350 link_all_deplibs_GCJ=yes
17351 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17352 runpath_var='LD_RUN_PATH'
17354 if test "$GCC" = yes; then
17355 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17356 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17358 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17366 hardcode_shlibpath_var_GCJ=no
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17376 $as_echo "$ld_shlibs_GCJ" >&6; }
17377 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17380 # Do we need to explicitly link libc?
17382 case "x$archive_cmds_need_lc_GCJ" in
17384 # Assume -lc should be added
17385 archive_cmds_need_lc_GCJ=yes
17387 if test "$enable_shared" = yes && test "$GCC" = yes; then
17388 case $archive_cmds_GCJ in
17390 # FIXME: we may have to deal with multi-command sequences.
17393 # Test whether the compiler implicitly links with -lc since on some
17394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17395 # to ld, don't add -lc before -lgcc.
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17397 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17402 (eval $ac_compile) 2>&5
17404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17405 test $ac_status = 0; } 2>conftest.err; then
17408 libobjs=conftest.$ac_objext
17410 wl=$lt_prog_compiler_wl_GCJ
17411 pic_flag=$lt_prog_compiler_pic_GCJ
17417 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17418 allow_undefined_flag_GCJ=
17419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17420 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17423 test $ac_status = 0; }
17425 archive_cmds_need_lc_GCJ=no
17427 archive_cmds_need_lc_GCJ=yes
17429 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17431 cat conftest.err 1>&5
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17435 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17443 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17444 library_names_spec=
17445 libname_spec='lib$name'
17449 postuninstall_cmds=
17453 shlibpath_overrides_runpath=unknown
17455 dynamic_linker="$host_os ld.so"
17456 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17458 need_lib_prefix=unknown
17459 hardcode_into_libs=no
17461 # when you set need_version to no, make sure it does not cause -set_version
17462 # flags to be left without arguments
17463 need_version=unknown
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17469 shlibpath_var=LIBPATH
17471 # AIX 3 has no versioning support, so we append a major version to the name.
17472 soname_spec='${libname}${release}${shared_ext}$major'
17479 hardcode_into_libs=yes
17480 if test "$host_cpu" = ia64; then
17481 # AIX 5 supports IA64
17482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17483 shlibpath_var=LD_LIBRARY_PATH
17485 # With GCC up to 2.95.x, collect2 would create an import file
17486 # for dependence libraries. The import file would start with
17487 # the line `#! .'. This would cause the generated library to
17488 # depend on `.', always an invalid library. This was fixed in
17489 # development snapshots of GCC prior to 3.0.
17491 aix4 | aix4.[01] | aix4.[01].*)
17492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17494 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17497 can_build_shared=no
17501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17502 # soname into executable. Probably we can add versioning support to
17503 # collect2, so additional links can be useful in future.
17504 if test "$aix_use_runtimelinking" = yes; then
17505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17506 # instead of lib<name>.a to let people know that these are not
17507 # typical AIX shared libraries.
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 # We preserve .a as extension for shared libraries through AIX4.2
17511 # and later when we are not doing run time linking.
17512 library_names_spec='${libname}${release}.a $libname.a'
17513 soname_spec='${libname}${release}${shared_ext}$major'
17515 shlibpath_var=LIBPATH
17520 library_names_spec='$libname.ixlibrary $libname.a'
17521 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17522 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'
17526 library_names_spec='${libname}${shared_ext}'
17527 dynamic_linker="$host_os ld.so"
17528 shlibpath_var=LIBRARY_PATH
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17537 shlibpath_var=LD_LIBRARY_PATH
17538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17540 # the default ld.so.conf also contains /usr/contrib/lib and
17541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17542 # libtool to hard-code these into programs
17545 cygwin* | mingw* | pw32*)
17546 version_type=windows
17551 case $GCC,$host_os in
17552 yes,cygwin* | yes,mingw* | yes,pw32*)
17553 library_names_spec='$libname.dll.a'
17554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17555 postinstall_cmds='base_file=`basename \${file}`~
17556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17557 dldir=$destdir/`dirname \$dlpath`~
17558 test -d \$dldir || mkdir -p \$dldir~
17559 $install_prog $dir/$dlname \$dldir/$dlname~
17560 chmod a+x \$dldir/$dlname'
17561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17562 dlpath=$dir/\$dldll~
17564 shlibpath_overrides_runpath=yes
17568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17573 # MinGW DLLs use traditional 'lib' prefix
17574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17577 # It is most probably a Windows format PATH printed by
17578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17579 # path with ; separators, and with drive letters. We can handle the
17580 # drive letters (cygwin fileutils understands them), so leave them,
17581 # especially as we might pass files found there to a mingw objdump,
17582 # which wouldn't understand a cygwinified path. Ahh.
17583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17589 # pw32 DLLs use 'pw' prefix rather than 'lib'
17590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17599 dynamic_linker='Win32 ld.exe'
17600 # FIXME: first we should search . and the directory the executable is in
17604 darwin* | rhapsody*)
17605 dynamic_linker="$host_os dyld"
17606 version_type=darwin
17609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17610 soname_spec='${libname}${release}${major}$shared_ext'
17611 shlibpath_overrides_runpath=yes
17612 shlibpath_var=DYLD_LIBRARY_PATH
17613 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17631 freebsd* | dragonfly*)
17632 # DragonFly does not have aout. When/if they implement a new
17633 # versioning mechanism, adjust this.
17634 if test -x /usr/bin/objformat; then
17635 objformat=`/usr/bin/objformat`
17638 freebsd[123]*) objformat=aout ;;
17639 *) objformat=elf ;;
17642 version_type=freebsd-$objformat
17643 case $version_type in
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17654 shlibpath_var=LD_LIBRARY_PATH
17657 shlibpath_overrides_runpath=yes
17659 freebsd3.[01]* | freebsdelf3.[01]*)
17660 shlibpath_overrides_runpath=yes
17661 hardcode_into_libs=yes
17663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17665 shlibpath_overrides_runpath=no
17666 hardcode_into_libs=yes
17668 *) # from 4.6 on, and DragonFly
17669 shlibpath_overrides_runpath=yes
17670 hardcode_into_libs=yes
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 hardcode_into_libs=yes
17685 hpux9* | hpux10* | hpux11*)
17686 # Give a soname corresponding to the major version so that dld.sl refuses to
17687 # link against other versions.
17694 hardcode_into_libs=yes
17695 dynamic_linker="$host_os dld.so"
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17699 soname_spec='${libname}${release}${shared_ext}$major'
17700 if test "X$HPUX_IA64_MODE" = X32; then
17701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17703 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17709 hardcode_into_libs=yes
17710 dynamic_linker="$host_os dld.sl"
17711 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17720 dynamic_linker="$host_os dld.sl"
17721 shlibpath_var=SHLIB_PATH
17722 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17727 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17728 postinstall_cmds='chmod 555 $lib'
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17736 soname_spec='${libname}${release}${shared_ext}$major'
17737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17738 shlibpath_var=LD_LIBRARY_PATH
17739 shlibpath_overrides_runpath=no
17740 hardcode_into_libs=yes
17743 irix5* | irix6* | nonstopux*)
17745 nonstopux*) version_type=nonstopux ;;
17747 if test "$lt_cv_prog_gnu_ld" = yes; then
17755 soname_spec='${libname}${release}${shared_ext}$major'
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17758 irix5* | nonstopux*)
17759 libsuff= shlibsuff=
17762 case $LD in # libtool.m4 will add one of these switches to LD
17763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17764 libsuff= shlibsuff= libmagic=32-bit;;
17765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17766 libsuff=32 shlibsuff=N32 libmagic=N32;;
17767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17769 *) libsuff= shlibsuff= libmagic=never-match;;
17773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17774 shlibpath_overrides_runpath=no
17775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17777 hardcode_into_libs=yes
17780 # No shared lib support for Linux oldld, aout, or coff.
17781 linux*oldld* | linux*aout* | linux*coff*)
17785 # This must be Linux ELF.
17786 linux* | k*bsd*-gnu)
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17791 soname_spec='${libname}${release}${shared_ext}$major'
17792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17793 shlibpath_var=LD_LIBRARY_PATH
17794 shlibpath_overrides_runpath=no
17795 # This implies no fast_install, which is unacceptable.
17796 # Some rework will be needed to allow for fast_install
17797 # before this can be enabled.
17798 hardcode_into_libs=yes
17800 # Append ld.so.conf contents to the search path
17801 if test -f /etc/ld.so.conf; then
17802 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' ' '`
17803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17806 # We used to test for /lib/ld.so.1 and disable shared libraries on
17807 # powerpc, because MkLinux only supported shared libraries with the
17808 # GNU dynamic linker. Since this was broken with cross compilers,
17809 # most powerpc-linux boxes support dynamic linking these days and
17810 # people can always --disable-shared, the test was removed, and we
17811 # assume the GNU/Linux dynamic linker is in use.
17812 dynamic_linker='GNU/Linux ld.so'
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath=no
17823 hardcode_into_libs=yes
17824 dynamic_linker='NetBSD ld.elf_so'
17831 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17834 dynamic_linker='NetBSD (a.out) ld.so'
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 dynamic_linker='NetBSD ld.elf_so'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 shlibpath_overrides_runpath=yes
17842 hardcode_into_libs=yes
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 shlibpath_overrides_runpath=yes
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 shlibpath_overrides_runpath=yes
17864 sys_lib_dlsearch_path_spec="/usr/lib"
17866 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17868 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17869 *) need_version=no ;;
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17873 shlibpath_var=LD_LIBRARY_PATH
17874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17876 openbsd2.[89] | openbsd2.[89].*)
17877 shlibpath_overrides_runpath=no
17880 shlibpath_overrides_runpath=yes
17884 shlibpath_overrides_runpath=yes
17889 libname_spec='$name'
17892 library_names_spec='$libname${shared_ext} $libname.a'
17893 dynamic_linker='OS/2 ld.exe'
17894 shlibpath_var=LIBPATH
17897 osf3* | osf4* | osf5*)
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 shlibpath_var=LD_LIBRARY_PATH
17904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 shlibpath_var=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath=yes
17920 hardcode_into_libs=yes
17921 # ldd complains unless libraries are executable
17922 postinstall_cmds='chmod +x $lib'
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 shlibpath_overrides_runpath=yes
17931 if test "$with_gnu_ld" = yes; then
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 shlibpath_var=LD_LIBRARY_PATH
17942 case $host_vendor in
17944 shlibpath_overrides_runpath=no
17946 export_dynamic_flag_spec='${wl}-Blargedynsym'
17947 runpath_var=LD_RUN_PATH
17955 shlibpath_overrides_runpath=no
17956 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17962 if test -d /usr/nec ;then
17964 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17965 soname_spec='$libname${shared_ext}.$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17971 version_type=freebsd-elf
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 hardcode_into_libs=yes
17978 if test "$with_gnu_ld" = yes; then
17979 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17980 shlibpath_overrides_runpath=no
17982 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17983 shlibpath_overrides_runpath=yes
17986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17990 sys_lib_dlsearch_path_spec='/usr/lib'
17995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17996 soname_spec='${libname}${release}${shared_ext}$major'
17997 shlibpath_var=LD_LIBRARY_PATH
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18005 $as_echo "$dynamic_linker" >&6; }
18006 test "$dynamic_linker" = no && can_build_shared=no
18008 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18009 $as_echo_n "(cached) " >&6
18011 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18014 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18015 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18018 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18024 if test "$GCC" = yes; then
18025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18029 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18030 hardcode_action_GCJ=
18031 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18032 test -n "$runpath_var_GCJ" || \
18033 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18035 # We can hardcode non-existant directories.
18036 if test "$hardcode_direct_GCJ" != no &&
18037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18038 # have to relink, otherwise we might link with an installed library
18039 # when we should be linking with a yet-to-be-installed one
18040 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18041 test "$hardcode_minus_L_GCJ" != no; then
18042 # Linking always hardcodes the temporary library directory.
18043 hardcode_action_GCJ=relink
18045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18046 hardcode_action_GCJ=immediate
18049 # We cannot hardcode anything, or else we can only hardcode existing
18051 hardcode_action_GCJ=unsupported
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18054 $as_echo "$hardcode_action_GCJ" >&6; }
18056 if test "$hardcode_action_GCJ" = relink; then
18057 # Fast installation is not supported
18058 enable_fast_install=no
18059 elif test "$shlibpath_overrides_runpath" = yes ||
18060 test "$enable_shared" = no; then
18061 # Fast installation is not necessary
18062 enable_fast_install=needless
18066 # The else clause should only fire when bootstrapping the
18067 # libtool distribution, otherwise you forgot to ship ltmain.sh
18068 # with your package, and you will get complaints that there are
18069 # no rules to generate ltmain.sh.
18070 if test -f "$ltmain"; then
18071 # See if we are running on zsh, and set the options which allow our commands through
18072 # without removal of \ escapes.
18073 if test -n "${ZSH_VERSION+set}" ; then
18074 setopt NO_GLOB_SUBST
18076 # Now quote all the things that may contain metacharacters while being
18077 # careful not to overquote the AC_SUBSTed values. We take copies of the
18078 # variables and quote the copies for generation of the libtool script.
18079 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18083 deplibs_check_method reload_flag reload_cmds need_locks \
18084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18085 lt_cv_sys_global_symbol_to_c_name_address \
18086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18087 old_postinstall_cmds old_postuninstall_cmds \
18091 lt_prog_compiler_wl_GCJ \
18092 lt_prog_compiler_pic_GCJ \
18093 lt_prog_compiler_static_GCJ \
18094 lt_prog_compiler_no_builtin_flag_GCJ \
18095 export_dynamic_flag_spec_GCJ \
18096 thread_safe_flag_spec_GCJ \
18097 whole_archive_flag_spec_GCJ \
18098 enable_shared_with_static_runtimes_GCJ \
18099 old_archive_cmds_GCJ \
18100 old_archive_from_new_cmds_GCJ \
18101 predep_objects_GCJ \
18102 postdep_objects_GCJ \
18105 compiler_lib_search_path_GCJ \
18106 compiler_lib_search_dirs_GCJ \
18108 archive_expsym_cmds_GCJ \
18109 postinstall_cmds_GCJ \
18110 postuninstall_cmds_GCJ \
18111 old_archive_from_expsyms_cmds_GCJ \
18112 allow_undefined_flag_GCJ \
18113 no_undefined_flag_GCJ \
18114 export_symbols_cmds_GCJ \
18115 hardcode_libdir_flag_spec_GCJ \
18116 hardcode_libdir_flag_spec_ld_GCJ \
18117 hardcode_libdir_separator_GCJ \
18118 hardcode_automatic_GCJ \
18120 module_expsym_cmds_GCJ \
18121 lt_cv_prog_compiler_c_o_GCJ \
18122 fix_srcfile_path_GCJ \
18123 exclude_expsyms_GCJ \
18124 include_expsyms_GCJ; do
18127 old_archive_cmds_GCJ | \
18128 old_archive_from_new_cmds_GCJ | \
18129 archive_cmds_GCJ | \
18130 archive_expsym_cmds_GCJ | \
18131 module_cmds_GCJ | \
18132 module_expsym_cmds_GCJ | \
18133 old_archive_from_expsyms_cmds_GCJ | \
18134 export_symbols_cmds_GCJ | \
18135 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18136 postinstall_cmds | postuninstall_cmds | \
18137 old_postinstall_cmds | old_postuninstall_cmds | \
18138 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18139 # Double-quote double-evaled strings.
18140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18149 *'\$0 --fallback-echo"')
18150 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18156 cat <<__EOF__ >> "$cfgfile"
18157 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18161 # Shell to use when invoking shell scripts.
18164 # Whether or not to build shared libraries.
18165 build_libtool_libs=$enable_shared
18167 # Whether or not to build static libraries.
18168 build_old_libs=$enable_static
18170 # Whether or not to add -lc for building shared libraries.
18171 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18173 # Whether or not to disallow shared libs when runtime libs are static
18174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18176 # Whether or not to optimize for fast installation.
18177 fast_install=$enable_fast_install
18180 host_alias=$host_alias
18184 # The build system.
18185 build_alias=$build_alias
18189 # An echo program that does not interpret backslashes.
18194 AR_FLAGS=$lt_AR_FLAGS
18199 # LTCC compiler flags.
18200 LTCFLAGS=$lt_LTCFLAGS
18202 # A language-specific compiler.
18203 CC=$lt_compiler_GCJ
18205 # Is the compiler the GNU C compiler?
18211 # The linker used to build libraries.
18214 # Whether we need hard or soft links.
18217 # A BSD-compatible nm program.
18220 # A symbol stripping program
18223 # Used to examine libraries when file_magic_cmd begins "file"
18224 MAGIC_CMD=$MAGIC_CMD
18226 # Used on cygwin: DLL creation program.
18229 # Used on cygwin: object dumper.
18232 # Used on cygwin: assembler.
18235 # The name of the directory that contains temporary libtool files.
18238 # How to create reloadable object files.
18239 reload_flag=$lt_reload_flag
18240 reload_cmds=$lt_reload_cmds
18242 # How to pass a linker flag through the compiler.
18243 wl=$lt_lt_prog_compiler_wl_GCJ
18245 # Object file suffix (normally "o").
18246 objext="$ac_objext"
18248 # Old archive suffix (normally "a").
18251 # Shared library suffix (normally ".so").
18252 shrext_cmds='$shrext_cmds'
18254 # Executable file suffix (normally "").
18257 # Additional compiler flags for building library objects.
18258 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18261 # What is the maximum length of a command?
18262 max_cmd_len=$lt_cv_sys_max_cmd_len
18264 # Does compiler simultaneously support -c and -o options?
18265 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18267 # Must we lock files when doing compilation?
18268 need_locks=$lt_need_locks
18270 # Do we need the lib prefix for modules?
18271 need_lib_prefix=$need_lib_prefix
18273 # Do we need a version for libraries?
18274 need_version=$need_version
18276 # Whether dlopen is supported.
18277 dlopen_support=$enable_dlopen
18279 # Whether dlopen of programs is supported.
18280 dlopen_self=$enable_dlopen_self
18282 # Whether dlopen of statically linked programs is supported.
18283 dlopen_self_static=$enable_dlopen_self_static
18285 # Compiler flag to prevent dynamic linking.
18286 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18288 # Compiler flag to turn off builtin functions.
18289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18291 # Compiler flag to allow reflexive dlopens.
18292 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18294 # Compiler flag to generate shared objects directly from archives.
18295 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18297 # Compiler flag to generate thread-safe objects.
18298 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18300 # Library versioning type.
18301 version_type=$version_type
18303 # Format of library name prefix.
18304 libname_spec=$lt_libname_spec
18306 # List of archive names. First name is the real one, the rest are links.
18307 # The last name is the one that the linker finds with -lNAME.
18308 library_names_spec=$lt_library_names_spec
18310 # The coded name of the library, if different from the real name.
18311 soname_spec=$lt_soname_spec
18313 # Commands used to build and install an old-style archive.
18315 old_archive_cmds=$lt_old_archive_cmds_GCJ
18316 old_postinstall_cmds=$lt_old_postinstall_cmds
18317 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18319 # Create an old-style archive from a shared archive.
18320 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18322 # Create a temporary old-style archive to link instead of a shared archive.
18323 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18325 # Commands used to build and install a shared archive.
18326 archive_cmds=$lt_archive_cmds_GCJ
18327 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18328 postinstall_cmds=$lt_postinstall_cmds
18329 postuninstall_cmds=$lt_postuninstall_cmds
18331 # Commands used to build a loadable module (assumed same as above if empty)
18332 module_cmds=$lt_module_cmds_GCJ
18333 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18335 # Commands to strip libraries.
18336 old_striplib=$lt_old_striplib
18337 striplib=$lt_striplib
18339 # Dependencies to place before the objects being linked to create a
18341 predep_objects=$lt_predep_objects_GCJ
18343 # Dependencies to place after the objects being linked to create a
18345 postdep_objects=$lt_postdep_objects_GCJ
18347 # Dependencies to place before the objects being linked to create a
18349 predeps=$lt_predeps_GCJ
18351 # Dependencies to place after the objects being linked to create a
18353 postdeps=$lt_postdeps_GCJ
18355 # The directories searched by this compiler when creating a shared
18357 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18359 # The library search path used internally by the compiler when linking
18360 # a shared library.
18361 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18363 # Method to check whether dependent libraries are shared objects.
18364 deplibs_check_method=$lt_deplibs_check_method
18366 # Command to use when deplibs_check_method == file_magic.
18367 file_magic_cmd=$lt_file_magic_cmd
18369 # Flag that allows shared libraries with undefined symbols to be built.
18370 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18372 # Flag that forces no undefined symbols.
18373 no_undefined_flag=$lt_no_undefined_flag_GCJ
18375 # Commands used to finish a libtool library installation in a directory.
18376 finish_cmds=$lt_finish_cmds
18378 # Same as above, but a single script fragment to be evaled but not shown.
18379 finish_eval=$lt_finish_eval
18381 # Take the output of nm and produce a listing of raw symbols and C names.
18382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18384 # Transform the output of nm in a proper C declaration
18385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18387 # Transform the output of nm in a C name address pair
18388 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18390 # This is the shared library runtime path variable.
18391 runpath_var=$runpath_var
18393 # This is the shared library path variable.
18394 shlibpath_var=$shlibpath_var
18396 # Is shlibpath searched before the hard-coded library search path?
18397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18399 # How to hardcode a shared library path into an executable.
18400 hardcode_action=$hardcode_action_GCJ
18402 # Whether we should hardcode library paths into libraries.
18403 hardcode_into_libs=$hardcode_into_libs
18405 # Flag to hardcode \$libdir into a binary during linking.
18406 # This must work even if \$libdir does not exist.
18407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18409 # If ld is used when linking, flag to hardcode \$libdir into
18410 # a binary during linking. This must work even if \$libdir does
18412 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18414 # Whether we need a single -rpath flag with a separated argument.
18415 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18417 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18418 # resulting binary.
18419 hardcode_direct=$hardcode_direct_GCJ
18421 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18422 # resulting binary.
18423 hardcode_minus_L=$hardcode_minus_L_GCJ
18425 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18426 # the resulting binary.
18427 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18429 # Set to yes if building a shared library automatically hardcodes DIR into the library
18430 # and all subsequent libraries and executables linked against it.
18431 hardcode_automatic=$hardcode_automatic_GCJ
18433 # Variables whose values should be saved in libtool wrapper scripts and
18434 # restored at relink time.
18435 variables_saved_for_relink="$variables_saved_for_relink"
18437 # Whether libtool must link a program against all its dependency libraries.
18438 link_all_deplibs=$link_all_deplibs_GCJ
18440 # Compile-time system search path for libraries
18441 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18443 # Run-time system search path for libraries
18444 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18446 # Fix the shell variable \$srcfile for the compiler.
18447 fix_srcfile_path=$lt_fix_srcfile_path
18449 # Set to yes if exported symbols are required.
18450 always_export_symbols=$always_export_symbols_GCJ
18452 # The commands to list exported symbols.
18453 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18455 # The commands to extract the exported symbol list from a shared archive.
18456 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18458 # Symbols that should not be listed in the preloaded symbols.
18459 exclude_expsyms=$lt_exclude_expsyms_GCJ
18461 # Symbols that must always be exported.
18462 include_expsyms=$lt_include_expsyms_GCJ
18464 # ### END LIBTOOL TAG CONFIG: $tagname
18470 # If there is no Makefile yet, we rely on a make rule to execute
18471 # `config.status --recheck' to rerun these tests and create the
18472 # libtool script then.
18473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18474 if test -f "$ltmain_in"; then
18475 test -f Makefile && make "$ltmain"
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18496 # Source file extension for RC test sources.
18499 # Object file extension for compiled RC test sources.
18503 # Code to be used in simple compile tests
18504 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18506 # Code to be used in simple link tests
18507 lt_simple_link_test_code="$lt_simple_compile_test_code"
18509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18511 # If no C compiler was specified, use CC.
18514 # If no C compiler flags were specified, use CFLAGS.
18515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18517 # Allow CC to be a program name with arguments.
18521 # save warnings/boilerplate of simple test code
18522 ac_outfile=conftest.$ac_objext
18523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18525 _lt_compiler_boilerplate=`cat conftest.err`
18528 ac_outfile=conftest.$ac_objext
18529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18531 _lt_linker_boilerplate=`cat conftest.err`
18535 # Allow CC to be a program name with arguments.
18540 for cc_temp in $compiler""; do
18542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18548 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18550 lt_cv_prog_compiler_c_o_RC=yes
18552 # The else clause should only fire when bootstrapping the
18553 # libtool distribution, otherwise you forgot to ship ltmain.sh
18554 # with your package, and you will get complaints that there are
18555 # no rules to generate ltmain.sh.
18556 if test -f "$ltmain"; then
18557 # See if we are running on zsh, and set the options which allow our commands through
18558 # without removal of \ escapes.
18559 if test -n "${ZSH_VERSION+set}" ; then
18560 setopt NO_GLOB_SUBST
18562 # Now quote all the things that may contain metacharacters while being
18563 # careful not to overquote the AC_SUBSTed values. We take copies of the
18564 # variables and quote the copies for generation of the libtool script.
18565 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18567 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18568 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18569 deplibs_check_method reload_flag reload_cmds need_locks \
18570 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18571 lt_cv_sys_global_symbol_to_c_name_address \
18572 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18573 old_postinstall_cmds old_postuninstall_cmds \
18577 lt_prog_compiler_wl_RC \
18578 lt_prog_compiler_pic_RC \
18579 lt_prog_compiler_static_RC \
18580 lt_prog_compiler_no_builtin_flag_RC \
18581 export_dynamic_flag_spec_RC \
18582 thread_safe_flag_spec_RC \
18583 whole_archive_flag_spec_RC \
18584 enable_shared_with_static_runtimes_RC \
18585 old_archive_cmds_RC \
18586 old_archive_from_new_cmds_RC \
18587 predep_objects_RC \
18588 postdep_objects_RC \
18591 compiler_lib_search_path_RC \
18592 compiler_lib_search_dirs_RC \
18594 archive_expsym_cmds_RC \
18595 postinstall_cmds_RC \
18596 postuninstall_cmds_RC \
18597 old_archive_from_expsyms_cmds_RC \
18598 allow_undefined_flag_RC \
18599 no_undefined_flag_RC \
18600 export_symbols_cmds_RC \
18601 hardcode_libdir_flag_spec_RC \
18602 hardcode_libdir_flag_spec_ld_RC \
18603 hardcode_libdir_separator_RC \
18604 hardcode_automatic_RC \
18606 module_expsym_cmds_RC \
18607 lt_cv_prog_compiler_c_o_RC \
18608 fix_srcfile_path_RC \
18609 exclude_expsyms_RC \
18610 include_expsyms_RC; do
18613 old_archive_cmds_RC | \
18614 old_archive_from_new_cmds_RC | \
18615 archive_cmds_RC | \
18616 archive_expsym_cmds_RC | \
18618 module_expsym_cmds_RC | \
18619 old_archive_from_expsyms_cmds_RC | \
18620 export_symbols_cmds_RC | \
18621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18622 postinstall_cmds | postuninstall_cmds | \
18623 old_postinstall_cmds | old_postuninstall_cmds | \
18624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18625 # Double-quote double-evaled strings.
18626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18635 *'\$0 --fallback-echo"')
18636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18642 cat <<__EOF__ >> "$cfgfile"
18643 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18647 # Shell to use when invoking shell scripts.
18650 # Whether or not to build shared libraries.
18651 build_libtool_libs=$enable_shared
18653 # Whether or not to build static libraries.
18654 build_old_libs=$enable_static
18656 # Whether or not to add -lc for building shared libraries.
18657 build_libtool_need_lc=$archive_cmds_need_lc_RC
18659 # Whether or not to disallow shared libs when runtime libs are static
18660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18662 # Whether or not to optimize for fast installation.
18663 fast_install=$enable_fast_install
18666 host_alias=$host_alias
18670 # The build system.
18671 build_alias=$build_alias
18675 # An echo program that does not interpret backslashes.
18680 AR_FLAGS=$lt_AR_FLAGS
18685 # LTCC compiler flags.
18686 LTCFLAGS=$lt_LTCFLAGS
18688 # A language-specific compiler.
18691 # Is the compiler the GNU C compiler?
18697 # The linker used to build libraries.
18700 # Whether we need hard or soft links.
18703 # A BSD-compatible nm program.
18706 # A symbol stripping program
18709 # Used to examine libraries when file_magic_cmd begins "file"
18710 MAGIC_CMD=$MAGIC_CMD
18712 # Used on cygwin: DLL creation program.
18715 # Used on cygwin: object dumper.
18718 # Used on cygwin: assembler.
18721 # The name of the directory that contains temporary libtool files.
18724 # How to create reloadable object files.
18725 reload_flag=$lt_reload_flag
18726 reload_cmds=$lt_reload_cmds
18728 # How to pass a linker flag through the compiler.
18729 wl=$lt_lt_prog_compiler_wl_RC
18731 # Object file suffix (normally "o").
18732 objext="$ac_objext"
18734 # Old archive suffix (normally "a").
18737 # Shared library suffix (normally ".so").
18738 shrext_cmds='$shrext_cmds'
18740 # Executable file suffix (normally "").
18743 # Additional compiler flags for building library objects.
18744 pic_flag=$lt_lt_prog_compiler_pic_RC
18747 # What is the maximum length of a command?
18748 max_cmd_len=$lt_cv_sys_max_cmd_len
18750 # Does compiler simultaneously support -c and -o options?
18751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18753 # Must we lock files when doing compilation?
18754 need_locks=$lt_need_locks
18756 # Do we need the lib prefix for modules?
18757 need_lib_prefix=$need_lib_prefix
18759 # Do we need a version for libraries?
18760 need_version=$need_version
18762 # Whether dlopen is supported.
18763 dlopen_support=$enable_dlopen
18765 # Whether dlopen of programs is supported.
18766 dlopen_self=$enable_dlopen_self
18768 # Whether dlopen of statically linked programs is supported.
18769 dlopen_self_static=$enable_dlopen_self_static
18771 # Compiler flag to prevent dynamic linking.
18772 link_static_flag=$lt_lt_prog_compiler_static_RC
18774 # Compiler flag to turn off builtin functions.
18775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18777 # Compiler flag to allow reflexive dlopens.
18778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18780 # Compiler flag to generate shared objects directly from archives.
18781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18783 # Compiler flag to generate thread-safe objects.
18784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18786 # Library versioning type.
18787 version_type=$version_type
18789 # Format of library name prefix.
18790 libname_spec=$lt_libname_spec
18792 # List of archive names. First name is the real one, the rest are links.
18793 # The last name is the one that the linker finds with -lNAME.
18794 library_names_spec=$lt_library_names_spec
18796 # The coded name of the library, if different from the real name.
18797 soname_spec=$lt_soname_spec
18799 # Commands used to build and install an old-style archive.
18801 old_archive_cmds=$lt_old_archive_cmds_RC
18802 old_postinstall_cmds=$lt_old_postinstall_cmds
18803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18805 # Create an old-style archive from a shared archive.
18806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18808 # Create a temporary old-style archive to link instead of a shared archive.
18809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18811 # Commands used to build and install a shared archive.
18812 archive_cmds=$lt_archive_cmds_RC
18813 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18814 postinstall_cmds=$lt_postinstall_cmds
18815 postuninstall_cmds=$lt_postuninstall_cmds
18817 # Commands used to build a loadable module (assumed same as above if empty)
18818 module_cmds=$lt_module_cmds_RC
18819 module_expsym_cmds=$lt_module_expsym_cmds_RC
18821 # Commands to strip libraries.
18822 old_striplib=$lt_old_striplib
18823 striplib=$lt_striplib
18825 # Dependencies to place before the objects being linked to create a
18827 predep_objects=$lt_predep_objects_RC
18829 # Dependencies to place after the objects being linked to create a
18831 postdep_objects=$lt_postdep_objects_RC
18833 # Dependencies to place before the objects being linked to create a
18835 predeps=$lt_predeps_RC
18837 # Dependencies to place after the objects being linked to create a
18839 postdeps=$lt_postdeps_RC
18841 # The directories searched by this compiler when creating a shared
18843 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18845 # The library search path used internally by the compiler when linking
18846 # a shared library.
18847 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18849 # Method to check whether dependent libraries are shared objects.
18850 deplibs_check_method=$lt_deplibs_check_method
18852 # Command to use when deplibs_check_method == file_magic.
18853 file_magic_cmd=$lt_file_magic_cmd
18855 # Flag that allows shared libraries with undefined symbols to be built.
18856 allow_undefined_flag=$lt_allow_undefined_flag_RC
18858 # Flag that forces no undefined symbols.
18859 no_undefined_flag=$lt_no_undefined_flag_RC
18861 # Commands used to finish a libtool library installation in a directory.
18862 finish_cmds=$lt_finish_cmds
18864 # Same as above, but a single script fragment to be evaled but not shown.
18865 finish_eval=$lt_finish_eval
18867 # Take the output of nm and produce a listing of raw symbols and C names.
18868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18870 # Transform the output of nm in a proper C declaration
18871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18873 # Transform the output of nm in a C name address pair
18874 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18876 # This is the shared library runtime path variable.
18877 runpath_var=$runpath_var
18879 # This is the shared library path variable.
18880 shlibpath_var=$shlibpath_var
18882 # Is shlibpath searched before the hard-coded library search path?
18883 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18885 # How to hardcode a shared library path into an executable.
18886 hardcode_action=$hardcode_action_RC
18888 # Whether we should hardcode library paths into libraries.
18889 hardcode_into_libs=$hardcode_into_libs
18891 # Flag to hardcode \$libdir into a binary during linking.
18892 # This must work even if \$libdir does not exist.
18893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18895 # If ld is used when linking, flag to hardcode \$libdir into
18896 # a binary during linking. This must work even if \$libdir does
18898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18900 # Whether we need a single -rpath flag with a separated argument.
18901 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18903 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18904 # resulting binary.
18905 hardcode_direct=$hardcode_direct_RC
18907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18908 # resulting binary.
18909 hardcode_minus_L=$hardcode_minus_L_RC
18911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18912 # the resulting binary.
18913 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18915 # Set to yes if building a shared library automatically hardcodes DIR into the library
18916 # and all subsequent libraries and executables linked against it.
18917 hardcode_automatic=$hardcode_automatic_RC
18919 # Variables whose values should be saved in libtool wrapper scripts and
18920 # restored at relink time.
18921 variables_saved_for_relink="$variables_saved_for_relink"
18923 # Whether libtool must link a program against all its dependency libraries.
18924 link_all_deplibs=$link_all_deplibs_RC
18926 # Compile-time system search path for libraries
18927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18929 # Run-time system search path for libraries
18930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18932 # Fix the shell variable \$srcfile for the compiler.
18933 fix_srcfile_path=$lt_fix_srcfile_path
18935 # Set to yes if exported symbols are required.
18936 always_export_symbols=$always_export_symbols_RC
18938 # The commands to list exported symbols.
18939 export_symbols_cmds=$lt_export_symbols_cmds_RC
18941 # The commands to extract the exported symbol list from a shared archive.
18942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18944 # Symbols that should not be listed in the preloaded symbols.
18945 exclude_expsyms=$lt_exclude_expsyms_RC
18947 # Symbols that must always be exported.
18948 include_expsyms=$lt_include_expsyms_RC
18950 # ### END LIBTOOL TAG CONFIG: $tagname
18956 # If there is no Makefile yet, we rely on a make rule to execute
18957 # `config.status --recheck' to rerun these tests and create the
18958 # libtool script then.
18959 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18960 if test -f "$ltmain_in"; then
18961 test -f Makefile && make "$ltmain"
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18977 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
18981 # Append the new tag name to the list of available tags.
18982 if test -n "$tagname" ; then
18983 available_tags="$available_tags $tagname"
18989 # Now substitute the updated list of available tags.
18990 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18991 mv "${ofile}T" "$ofile"
18995 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
19001 # This can be used to rebuild libtool when needed
19002 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19004 # Always use our own libtool.
19005 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19007 # Prevent multiple expansion
19028 # Check whether --enable-debug was given.
19029 if test "${enable_debug+set}" = set; then :
19030 enableval=$enable_debug;
19031 CXXFLAGS="-g -O0 -Wall"
19033 $as_echo "#define WITH_DEBUG /**/" >>confdefs.h
19040 # Check whether --with-libldap was given.
19041 if test "${with_libldap+set}" = set; then :
19042 withval=$with_libldap;
19043 LIBS="-L$with_libldap $LIBS "
19047 LIBS="-L/usr/local/lib $LIBS "
19054 # Check whether --with-ldap-includes was given.
19055 if test "${with_ldap_includes+set}" = set; then :
19056 withval=$with_ldap_includes;
19057 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19061 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
19067 $as_echo_n "checking for main in -lresolv... " >&6; }
19068 if test "${ac_cv_lib_resolv_main+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19071 ac_check_lib_save_LIBS=$LIBS
19072 LIBS="-lresolv $LIBS"
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h. */
19085 if ac_fn_c_try_link "$LINENO"; then :
19086 ac_cv_lib_resolv_main=yes
19088 ac_cv_lib_resolv_main=no
19090 rm -f core conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
19095 $as_echo "$ac_cv_lib_resolv_main" >&6; }
19096 if test "x$ac_cv_lib_resolv_main" = x""yes; then :
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_LIBRESOLV 1
19101 LIBS="-lresolv $LIBS"
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_strdup in -llber" >&5
19106 $as_echo_n "checking for ber_strdup in -llber... " >&6; }
19107 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then :
19108 $as_echo_n "(cached) " >&6
19110 ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-llber $LIBS"
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19115 /* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19121 char ber_strdup ();
19125 return ber_strdup ();
19130 if ac_fn_c_try_link "$LINENO"; then :
19131 ac_cv_lib_lber_ber_strdup=yes
19133 ac_cv_lib_lber_ber_strdup=no
19135 rm -f core conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
19137 LIBS=$ac_check_lib_save_LIBS
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_strdup" >&5
19140 $as_echo "$ac_cv_lib_lber_ber_strdup" >&6; }
19141 if test "x$ac_cv_lib_lber_ber_strdup" = x""yes; then :
19147 echo " didn't find ber_strdup in liblber !";
19148 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19149 echo " or try the --with-libldap option.";
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_add_ext in -lldap" >&5
19155 $as_echo_n "checking for ldap_add_ext in -lldap... " >&6; }
19156 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then :
19157 $as_echo_n "(cached) " >&6
19159 ac_check_lib_save_LIBS=$LIBS
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19166 /* Override any GCC internal prototype to avoid an error.
19167 Use char because int might match the return type of a GCC
19168 builtin and then its argument prototype would still apply. */
19172 char ldap_add_ext ();
19176 return ldap_add_ext ();
19181 if ac_fn_c_try_link "$LINENO"; then :
19182 ac_cv_lib_ldap_ldap_add_ext=yes
19184 ac_cv_lib_ldap_ldap_add_ext=no
19186 rm -f core conftest.err conftest.$ac_objext \
19187 conftest$ac_exeext conftest.$ac_ext
19188 LIBS=$ac_check_lib_save_LIBS
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19191 $as_echo "$ac_cv_lib_ldap_ldap_add_ext" >&6; }
19192 if test "x$ac_cv_lib_ldap_ldap_add_ext" = x""yes; then :
19198 echo " didn't find ldap_add_ext in libldap !";
19199 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19200 echo " or try the --with-libldap option.";
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19206 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19207 if test "${ac_cv_header_time+set}" = set; then :
19208 $as_echo_n "(cached) " >&6
19210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211 /* end confdefs.h. */
19212 #include <sys/types.h>
19213 #include <sys/time.h>
19219 if ((struct tm *) 0)
19225 if ac_fn_c_try_compile "$LINENO"; then :
19226 ac_cv_header_time=yes
19228 ac_cv_header_time=no
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19233 $as_echo "$ac_cv_header_time" >&6; }
19234 if test $ac_cv_header_time = yes; then
19236 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19240 for ac_header in termios.h ldap.h
19242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19243 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19244 eval as_val=\$$as_ac_Header
19245 if test "x$as_val" = x""yes; then :
19246 cat >>confdefs.h <<_ACEOF
19247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255 /* end confdefs.h. */
19259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19260 $EGREP "ldap_add_ext" >/dev/null 2>&1; then :
19266 echo " didn't find ldap_add_ext in ldap.h!";
19267 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19268 echo " or try --with-ldap-includes option.";
19274 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
19275 if test "x$ac_cv_header_lber_h" = x""yes; then :
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19286 $EGREP "ber_strdup" >/dev/null 2>&1; then :
19292 echo " didn't find ber_strdup in lber.h!";
19293 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19294 echo " or try --with-ldap-includes option.";
19303 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
19305 cat >confcache <<\_ACEOF
19306 # This file is a shell script that caches the results of configure
19307 # tests run on this system so they can be shared between configure
19308 # scripts and configure runs, see configure's option --config-cache.
19309 # It is not useful on other systems. If it contains results you don't
19310 # want to keep, you may remove or edit it.
19312 # config.status only pays attention to the cache file if you give it
19313 # the --recheck option to rerun configure.
19315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19317 # following values.
19321 # The following way of writing the cache mishandles newlines in values,
19322 # but we know of no workaround that is simple, portable, and efficient.
19323 # So, we kill variables containing newlines.
19324 # Ultrix sh set writes to stderr and can't be redirected directly,
19325 # and sets the high bit in the cache file unless we assign to the vars.
19327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19328 eval ac_val=\$$ac_var
19332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19336 _ | IFS | as_nl) ;; #(
19337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19338 *) { eval $ac_var=; unset $ac_var;} ;;
19344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19345 *${as_nl}ac_space=\ *)
19346 # `set' does not quote correctly, so add quotes: double-quote
19347 # substitution turns \\\\ into \\, and sed turns \\ into \.
19350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19353 # `set' quotes correctly as required by POSIX, so do not add quotes.
19354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19368 if test -w "$cache_file"; then
19369 test "x$cache_file" != "x/dev/null" &&
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19371 $as_echo "$as_me: updating cache $cache_file" >&6;}
19372 cat confcache >$cache_file
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19375 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19381 # Let make expand exec_prefix.
19382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19384 DEFS=-DHAVE_CONFIG_H
19388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19389 # 1. Remove the extension, and $U if already installed.
19390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19391 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19393 # will be set to the directory where LIBOBJS objects are built.
19394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19397 LIBOBJS=$ac_libobjs
19399 LTLIBOBJS=$ac_ltlibobjs
19402 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19403 as_fn_error "conditional \"AMDEP\" was never defined.
19404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19406 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19407 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19410 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19411 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19415 : ${CONFIG_STATUS=./config.status}
19417 ac_clean_files_save=$ac_clean_files
19418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19422 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19424 # Generated by $as_me.
19425 # Run this file to recreate the current configuration.
19426 # Compiler output produced by configure, useful for debugging
19427 # configure, is in config.log if it exists.
19430 ac_cs_recheck=false
19433 SHELL=\${CONFIG_SHELL-$SHELL}
19436 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19437 ## -------------------- ##
19438 ## M4sh Initialization. ##
19439 ## -------------------- ##
19441 # Be more Bourne compatible
19442 DUALCASE=1; export DUALCASE # for MKS sh
19443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19447 # is contrary to our usage. Disable this feature.
19448 alias -g '${1+"$@"}'='"$@"'
19449 setopt NO_GLOB_SUBST
19451 case `(set -o) 2>/dev/null` in #(
19463 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19464 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19467 # Prefer a ksh shell builtin over an external printf program on Solaris,
19468 # but without wasting forks for bash or zsh.
19469 if test -z "$BASH_VERSION$ZSH_VERSION" \
19470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19471 as_echo='print -r --'
19472 as_echo_n='print -rn --'
19473 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19474 as_echo='printf %s\n'
19475 as_echo_n='printf %s'
19477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19479 as_echo_n='/usr/ucb/echo -n'
19481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19482 as_echo_n_body='eval
19486 expr "X$arg" : "X\\(.*\\)$as_nl";
19487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19491 export as_echo_n_body
19492 as_echo_n='sh -c $as_echo_n_body as_echo'
19494 export as_echo_body
19495 as_echo='sh -c $as_echo_body as_echo'
19498 # The user is always right.
19499 if test "${PATH_SEPARATOR+set}" != set; then
19501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19509 # We need space, tab and new line, in precisely that order. Quoting is
19510 # there to prevent editors from complaining about space-tab.
19511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19512 # splitting by setting IFS to empty value.)
19515 # Find who we are. Look in the path if we contain no directory separator.
19517 *[\\/]* ) as_myself=$0 ;;
19518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19519 for as_dir in $PATH
19522 test -z "$as_dir" && as_dir=.
19523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19529 # We did not find ourselves, most probably we were run as `sh COMMAND'
19530 # in which case we are not to be found in the path.
19531 if test "x$as_myself" = x; then
19534 if test ! -f "$as_myself"; then
19535 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19539 # Unset variables that we do not need and which cause bugs (e.g. in
19540 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19541 # suppresses any "Segmentation fault" message there. '((' could
19542 # trigger a bug in pdksh 5.2.14.
19543 for as_var in BASH_ENV ENV MAIL MAILPATH
19544 do eval test x\${$as_var+set} = xset \
19545 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19558 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19561 # as_fn_error ERROR [LINENO LOG_FD]
19562 # ---------------------------------
19563 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19564 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19565 # script with status $?, using 1 if that was 0.
19568 as_status=$?; test $as_status -eq 0 && as_status=1
19570 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19571 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19573 $as_echo "$as_me: error: $1" >&2
19574 as_fn_exit $as_status
19578 # as_fn_set_status STATUS
19579 # -----------------------
19580 # Set $? to STATUS, without forking.
19581 as_fn_set_status ()
19584 } # as_fn_set_status
19586 # as_fn_exit STATUS
19587 # -----------------
19588 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19592 as_fn_set_status $1
19598 # Portably unset VAR.
19601 { eval $1=; unset $1;}
19603 as_unset=as_fn_unset
19604 # as_fn_append VAR VALUE
19605 # ----------------------
19606 # Append the text in VALUE to the end of the definition contained in VAR. Take
19607 # advantage of any shell optimizations that allow amortized linear growth over
19608 # repeated appends, instead of the typical quadratic growth present in naive
19610 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19611 eval 'as_fn_append ()
19622 # as_fn_arith ARG...
19623 # ------------------
19624 # Perform arithmetic evaluation on the ARGs, and store the result in the
19625 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19626 # must be portable across $(()) and expr.
19627 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19628 eval 'as_fn_arith ()
19635 as_val=`expr "$@" || test $? -eq 1`
19640 if expr a : '\(a\)' >/dev/null 2>&1 &&
19641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19647 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19648 as_basename=basename
19653 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19659 as_me=`$as_basename -- "$0" ||
19660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19661 X"$0" : 'X\(//\)$' \| \
19662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19664 sed '/^.*\/\([^/][^/]*\)\/*$/{
19678 # Avoid depending upon Character Ranges.
19679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19682 as_cr_digits='0123456789'
19683 as_cr_alnum=$as_cr_Letters$as_cr_digits
19685 ECHO_C= ECHO_N= ECHO_T=
19686 case `echo -n x` in #(((((
19688 case `echo 'xy\c'` in
19689 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19691 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19698 rm -f conf$$ conf$$.exe conf$$.file
19699 if test -d conf$$.dir; then
19700 rm -f conf$$.dir/conf$$.file
19703 mkdir conf$$.dir 2>/dev/null
19705 if (echo >conf$$.file) 2>/dev/null; then
19706 if ln -s conf$$.file conf$$ 2>/dev/null; then
19708 # ... but there are two gotchas:
19709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19711 # In both cases, we have to default to `cp -p'.
19712 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19714 elif ln conf$$.file conf$$ 2>/dev/null; then
19722 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19723 rmdir conf$$.dir 2>/dev/null
19728 # Create "$as_dir" as a directory, including parents if necessary.
19733 -*) as_dir=./$as_dir;;
19735 test -d "$as_dir" || eval $as_mkdir_p || {
19739 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19740 *) as_qdir=$as_dir;;
19742 as_dirs="'$as_qdir' $as_dirs"
19743 as_dir=`$as_dirname -- "$as_dir" ||
19744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19745 X"$as_dir" : 'X\(//\)[^/]' \| \
19746 X"$as_dir" : 'X\(//\)$' \| \
19747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19748 $as_echo X"$as_dir" |
19749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19753 /^X\(\/\/\)[^/].*/{
19766 test -d "$as_dir" && break
19768 test -z "$as_dirs" || eval "mkdir $as_dirs"
19769 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19773 if mkdir -p . 2>/dev/null; then
19774 as_mkdir_p='mkdir -p "$as_dir"'
19776 test -d ./-p && rmdir ./-p
19780 if test -x / >/dev/null 2>&1; then
19781 as_test_x='test -x'
19783 if ls -dL / >/dev/null 2>&1; then
19790 if test -d "$1"; then
19796 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19797 ???[sx]*):;;*)false;;esac;fi
19801 as_executable_p=$as_test_x
19803 # Sed expression to map a string onto a valid CPP name.
19804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19806 # Sed expression to map a string onto a valid variable name.
19807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19811 ## ----------------------------------- ##
19812 ## Main body of $CONFIG_STATUS script. ##
19813 ## ----------------------------------- ##
19815 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19818 # Save the log message, to keep $0 and so on meaningful, and to
19819 # report actual input values of CONFIG_FILES etc. instead of their
19820 # values after options handling.
19822 This file was extended by ldapcpplib $as_me , which was
19823 generated by GNU Autoconf 2.65. Invocation command line was
19825 CONFIG_FILES = $CONFIG_FILES
19826 CONFIG_HEADERS = $CONFIG_HEADERS
19827 CONFIG_LINKS = $CONFIG_LINKS
19828 CONFIG_COMMANDS = $CONFIG_COMMANDS
19831 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19836 case $ac_config_files in *"
19837 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19840 case $ac_config_headers in *"
19841 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19846 # Files that config.status was made for.
19847 config_files="$ac_config_files"
19848 config_headers="$ac_config_headers"
19849 config_commands="$ac_config_commands"
19853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19855 \`$as_me' instantiates files and other configuration actions
19856 from templates according to the current configuration. Unless the files
19857 and actions are specified as TAGs, all are instantiated by default.
19859 Usage: $0 [OPTION]... [TAG]...
19861 -h, --help print this help, then exit
19862 -V, --version print version number and configuration settings, then exit
19863 --config print configuration, then exit
19864 -q, --quiet, --silent
19865 do not print progress messages
19866 -d, --debug don't remove temporary files
19867 --recheck update $as_me by reconfiguring in the same conditions
19868 --file=FILE[:TEMPLATE]
19869 instantiate the configuration file FILE
19870 --header=FILE[:TEMPLATE]
19871 instantiate the configuration header FILE
19873 Configuration files:
19876 Configuration headers:
19879 Configuration commands:
19882 Report bugs to <http://www.openldap.org/its/ >."
19885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19886 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19888 ldapcpplib config.status
19889 configured by $0, generated by GNU Autoconf 2.65,
19890 with options \\"\$ac_cs_config\\"
19892 Copyright (C) 2009 Free Software Foundation, Inc.
19893 This config.status script is free software; the Free Software Foundation
19894 gives unlimited permission to copy, distribute and modify it."
19901 test -n "\$AWK" || AWK=awk
19904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19905 # The default lists apply if the user does not specify any file.
19911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19923 # Handling of the options.
19924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19926 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19927 $as_echo "$ac_cs_version"; exit ;;
19928 --config | --confi | --conf | --con | --co | --c )
19929 $as_echo "$ac_cs_config"; exit ;;
19930 --debug | --debu | --deb | --de | --d | -d )
19932 --file | --fil | --fi | --f )
19935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19937 as_fn_append CONFIG_FILES " '$ac_optarg'"
19938 ac_need_defaults=false;;
19939 --header | --heade | --head | --hea )
19942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19944 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19945 ac_need_defaults=false;;
19947 # Conflict between --help and --header
19948 as_fn_error "ambiguous option: \`$1'
19949 Try \`$0 --help' for more information.";;
19950 --help | --hel | -h )
19951 $as_echo "$ac_cs_usage"; exit ;;
19952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19956 # This is an error.
19957 -*) as_fn_error "unrecognized option: \`$1'
19958 Try \`$0 --help' for more information." ;;
19960 *) as_fn_append ac_config_targets " $1"
19961 ac_need_defaults=false ;;
19967 ac_configure_extra_args=
19969 if $ac_cs_silent; then
19971 ac_configure_extra_args="$ac_configure_extra_args --silent"
19975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19976 if \$ac_cs_recheck; then
19977 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19980 CONFIG_SHELL='$SHELL'
19981 export CONFIG_SHELL
19986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19991 ## Running $as_me. ##
19997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20001 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20007 # Handling of arguments.
20008 for ac_config_target in $ac_config_targets
20010 case $ac_config_target in
20011 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20012 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20015 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20017 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20022 # If the user did not use the arguments to specify the items to instantiate,
20023 # then the envvar interface is used. Set only those that are not.
20024 # We use the long form for the default assignment because of an extremely
20025 # bizarre bug on SunOS 4.1.3.
20026 if $ac_need_defaults; then
20027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20032 # Have a temporary directory for convenience. Make it in the build tree
20033 # simply because there is no reason against having it here, and in addition,
20034 # creating and moving files from /tmp can sometimes cause problems.
20035 # Hook for its removal unless debugging.
20036 # Note that there is a small window in which the directory will not be cleaned:
20037 # after its creation but before its name has been assigned to `$tmp'.
20041 trap 'exit_status=$?
20042 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20044 trap 'as_fn_exit 1' 1 2 13 15
20046 # Create a (secure) tmp directory for tmp files.
20049 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20050 test -n "$tmp" && test -d "$tmp"
20053 tmp=./conf$$-$RANDOM
20054 (umask 077 && mkdir "$tmp")
20055 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20057 # Set up the scripts for CONFIG_FILES section.
20058 # No need to generate them if there are no CONFIG_FILES.
20059 # This happens for instance with `./config.status config.h'.
20060 if test -n "$CONFIG_FILES"; then
20063 ac_cr=`echo X | tr X '\015'`
20064 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20065 # But we know of no other shell where ac_cr would be empty at this
20066 # point, so we can use a bashism as a fallback.
20067 if test "x$ac_cr" = x; then
20068 eval ac_cr=\$\'\\r\'
20070 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20071 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20074 ac_cs_awk_cr=$ac_cr
20077 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20082 echo "cat >conf$$subs.awk <<_ACEOF" &&
20083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20085 } >conf$$subs.sh ||
20086 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20087 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20089 for ac_last_try in false false false false false :; do
20090 . ./conf$$subs.sh ||
20091 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20093 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20094 if test $ac_delim_n = $ac_delim_num; then
20096 elif $ac_last_try; then
20097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20102 rm -f conf$$subs.sh
20104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20105 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20109 s/^/S["/; s/!.*/"]=/
20119 s/\(.\{148\}\)..*/\1/
20121 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20133 s/\(.\{148\}\)..*/\1/
20135 s/["\\]/\\&/g; s/^/"/; s/$/"/
20139 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20144 ' <conf$$subs.awk | sed '
20149 ' >>$CONFIG_STATUS || ac_write_fail=1
20150 rm -f conf$$subs.awk
20151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20153 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20154 for (key in S) S_is_set[key] = 1
20160 nfields = split(line, field, "@")
20162 len = length(field[1])
20163 for (i = 2; i < nfields; i++) {
20165 keylen = length(key)
20166 if (S_is_set[key]) {
20168 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20169 len += length(value) + length(field[++i])
20180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20181 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20182 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20185 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20186 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20189 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20191 # trailing colons and then remove the whole line if VPATH becomes empty
20192 # (actually we leave an empty line to preserve line numbers).
20193 if test "x$srcdir" = x.; then
20194 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20195 s/:*\$(srcdir):*/:/
20196 s/:*\${srcdir}:*/:/
20198 s/^\([^=]*=[ ]*\):*/\1/
20204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20205 fi # test -n "$CONFIG_FILES"
20207 # Set up the scripts for CONFIG_HEADERS section.
20208 # No need to generate them if there are no CONFIG_HEADERS.
20209 # This happens for instance with `./config.status Makefile'.
20210 if test -n "$CONFIG_HEADERS"; then
20211 cat >"$tmp/defines.awk" <<\_ACAWK ||
20215 # Transform confdefs.h into an awk script `defines.awk', embedded as
20216 # here-document in config.status, that substitutes the proper values into
20217 # config.h.in to produce config.h.
20219 # Create a delimiter string that does not exist in confdefs.h, to ease
20220 # handling of long lines.
20222 for ac_last_try in false false :; do
20223 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20224 if test -z "$ac_t"; then
20226 elif $ac_last_try; then
20227 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20233 # For the awk script, D is an array of macro values keyed by name,
20234 # likewise P contains macro parameters if any. Preserve backslash
20235 # newline sequences.
20237 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20239 s/.\{148\}/&'"$ac_delim"'/g
20242 s/^[ ]*#[ ]*define[ ][ ]*/ /
20249 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20251 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20256 D["\1"]=" \3\\\\\\n"\\/p
20258 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20263 s/.\{148\}/&'"$ac_delim"'/g
20268 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20271 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20273 ' <confdefs.h | sed '
20274 s/'"$ac_delim"'/"\\\
20275 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20278 for (key in D) D_is_set[key] = 1
20281 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20283 split(line, arg, " ")
20284 if (arg[1] == "#") {
20288 defundef = substr(arg[1], 2)
20291 split(mac1, mac2, "(") #)
20293 prefix = substr(line, 1, index(line, defundef) - 1)
20294 if (D_is_set[macro]) {
20295 # Preserve the white space surrounding the "#".
20296 print prefix "define", macro P[macro] D[macro]
20299 # Replace #undef with comments. This is necessary, for example,
20300 # in the case of _POSIX_SOURCE, which is predefined and required
20301 # on some systems where configure will not decide to define it.
20302 if (defundef == "undef") {
20303 print "/*", prefix defundef, macro, "*/"
20311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20312 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20313 fi # test -n "$CONFIG_HEADERS"
20316 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20321 :[FHLC]) ac_mode=$ac_tag; continue;;
20323 case $ac_mode$ac_tag in
20325 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20326 :[FH]-) ac_tag=-:-;;
20327 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20344 -) ac_f="$tmp/stdin";;
20345 *) # Look for the file first in the build tree, then in the source tree
20346 # (if the path is not absolute). The absolute path cannot be DOS-style,
20347 # because $ac_f cannot contain `:'.
20351 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20353 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20355 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20356 as_fn_append ac_file_inputs " '$ac_f'"
20359 # Let's still pretend it is `configure' which instantiates (i.e., don't
20360 # use $as_me), people would be surprised to read:
20361 # /* config.h. Generated by config.status. */
20362 configure_input='Generated from '`
20363 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20365 if test x"$ac_file" != x-; then
20366 configure_input="$ac_file. $configure_input"
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20368 $as_echo "$as_me: creating $ac_file" >&6;}
20370 # Neutralize special characters interpreted by sed in replacement strings.
20371 case $configure_input in #(
20372 *\&* | *\|* | *\\* )
20373 ac_sed_conf_input=`$as_echo "$configure_input" |
20374 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20375 *) ac_sed_conf_input=$configure_input;;
20379 *:-:* | *:-) cat >"$tmp/stdin" \
20380 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20385 ac_dir=`$as_dirname -- "$ac_file" ||
20386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20387 X"$ac_file" : 'X\(//\)[^/]' \| \
20388 X"$ac_file" : 'X\(//\)$' \| \
20389 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20390 $as_echo X"$ac_file" |
20391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20395 /^X\(\/\/\)[^/].*/{
20408 as_dir="$ac_dir"; as_fn_mkdir_p
20412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20415 # A ".." for each directory in $ac_dir_suffix.
20416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20417 case $ac_top_builddir_sub in
20418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20422 ac_abs_top_builddir=$ac_pwd
20423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20424 # for backward compatibility:
20425 ac_top_builddir=$ac_top_build_prefix
20428 .) # We are building in place.
20430 ac_top_srcdir=$ac_top_builddir_sub
20431 ac_abs_top_srcdir=$ac_pwd ;;
20432 [\\/]* | ?:[\\/]* ) # Absolute name.
20433 ac_srcdir=$srcdir$ac_dir_suffix;
20434 ac_top_srcdir=$srcdir
20435 ac_abs_top_srcdir=$srcdir ;;
20436 *) # Relative name.
20437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20438 ac_top_srcdir=$ac_top_build_prefix$srcdir
20439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20451 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20452 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20454 ac_MKDIR_P=$MKDIR_P
20456 [\\/$]* | ?:[\\/]* ) ;;
20457 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20462 # If the template does not know about datarootdir, expand it.
20463 # FIXME: This hack should be removed a few years after 2.60.
20464 ac_datarootdir_hack=; ac_datarootdir_seen=
20475 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20476 *datarootdir*) ac_datarootdir_seen=yes;;
20477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20479 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20482 ac_datarootdir_hack='
20483 s&@datadir@&$datadir&g
20484 s&@docdir@&$docdir&g
20485 s&@infodir@&$infodir&g
20486 s&@localedir@&$localedir&g
20487 s&@mandir@&$mandir&g
20488 s&\\\${datarootdir}&$datarootdir&g' ;;
20492 # Neutralize VPATH when `$srcdir' = `.'.
20493 # Shell code in configure.ac might set extrasub.
20494 # FIXME: do we really want to maintain this feature?
20495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20496 ac_sed_extra="$ac_vpsub
20499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20502 s|@configure_input@|$ac_sed_conf_input|;t t
20503 s&@top_builddir@&$ac_top_builddir_sub&;t t
20504 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20505 s&@srcdir@&$ac_srcdir&;t t
20506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20507 s&@top_srcdir@&$ac_top_srcdir&;t t
20508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20509 s&@builddir@&$ac_builddir&;t t
20510 s&@abs_builddir@&$ac_abs_builddir&;t t
20511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20512 s&@INSTALL@&$ac_INSTALL&;t t
20513 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20514 $ac_datarootdir_hack
20516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20517 || as_fn_error "could not create $ac_file" "$LINENO" 5
20519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20520 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20523 which seems to be undefined. Please make sure it is defined." >&5
20524 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20525 which seems to be undefined. Please make sure it is defined." >&2;}
20529 -) cat "$tmp/out" && rm -f "$tmp/out";;
20530 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20532 || as_fn_error "could not create $ac_file" "$LINENO" 5
20538 if test x"$ac_file" != x-; then
20540 $as_echo "/* $configure_input */" \
20541 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20542 } >"$tmp/config.h" \
20543 || as_fn_error "could not create $ac_file" "$LINENO" 5
20544 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20546 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20549 mv "$tmp/config.h" "$ac_file" \
20550 || as_fn_error "could not create $ac_file" "$LINENO" 5
20553 $as_echo "/* $configure_input */" \
20554 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20555 || as_fn_error "could not create -" "$LINENO" 5
20557 # Compute "$ac_file"'s index in $config_headers.
20560 for _am_header in $config_headers :; do
20561 case $_am_header in
20562 $_am_arg | $_am_arg:* )
20565 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20568 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20569 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20570 X"$_am_arg" : 'X\(//\)[^/]' \| \
20571 X"$_am_arg" : 'X\(//\)$' \| \
20572 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20573 $as_echo X"$_am_arg" |
20574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20578 /^X\(\/\/\)[^/].*/{
20590 s/.*/./; q'`/stamp-h$_am_stamp_count
20593 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20594 $as_echo "$as_me: executing $ac_file commands" >&6;}
20599 case $ac_file$ac_mode in
20600 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20601 # Strip MF so we end up with the name of the file.
20602 mf=`echo "$mf" | sed -e 's/:.*$//'`
20603 # Check whether this is an Automake generated Makefile or not.
20604 # We used to match only the files named `Makefile.in', but
20605 # some people rename them; so instead we look at the file content.
20606 # Grep'ing the first line is not enough: some people post-process
20607 # each Makefile.in and add a new line on top of each file to say so.
20608 # Grep'ing the whole file is not good either: AIX grep has a line
20609 # limit of 2048, but all sed's we know have understand at least 4000.
20610 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20611 dirpart=`$as_dirname -- "$mf" ||
20612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20613 X"$mf" : 'X\(//\)[^/]' \| \
20614 X"$mf" : 'X\(//\)$' \| \
20615 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20621 /^X\(\/\/\)[^/].*/{
20637 # Extract the definition of DEPDIR, am__include, and am__quote
20638 # from the Makefile without running `make'.
20639 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20640 test -z "$DEPDIR" && continue
20641 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20642 test -z "am__include" && continue
20643 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20644 # When using ansi2knr, U may be empty or an underscore; expand it
20645 U=`sed -n 's/^U = //p' < "$mf"`
20646 # Find all dependency output files, they are included files with
20647 # $(DEPDIR) in their names. We invoke sed twice because it is the
20648 # simplest approach to changing $(DEPDIR) to its actual value in the
20650 for file in `sed -n "
20651 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20652 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20653 # Make sure the directory exists.
20654 test -f "$dirpart/$file" && continue
20655 fdir=`$as_dirname -- "$file" ||
20656 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20657 X"$file" : 'X\(//\)[^/]' \| \
20658 X"$file" : 'X\(//\)$' \| \
20659 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20660 $as_echo X"$file" |
20661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20665 /^X\(\/\/\)[^/].*/{
20678 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20679 # echo "creating $dirpart/$file"
20680 echo '# dummy' > "$dirpart/$file"
20691 ac_clean_files=$ac_clean_files_save
20693 test $ac_write_fail = 0 ||
20694 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20697 # configure is writing to config.log, and then calls config.status.
20698 # config.status does its own redirection, appending to config.log.
20699 # Unfortunately, on DOS this fails, as config.log is still kept open
20700 # by configure, so config.status won't be able to write to it; its
20701 # output is simply discarded. So we exec the FD to /dev/null,
20702 # effectively closing config.log, so it can be properly (re)opened and
20703 # appended to by config.status. When coming back to configure, we
20704 # need to make the FD available again.
20705 if test "$no_create" != yes; then
20707 ac_config_status_args=
20708 test "$silent" = yes &&
20709 ac_config_status_args="$ac_config_status_args --quiet"
20711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20714 # would make configure fail if this is the last instruction.
20715 $ac_cs_success || as_fn_exit $?
20717 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20719 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}