2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Protocol Buffers 2.6.1.
5 # Report bugs to <protobuf@googlegroups.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: protobuf@googlegroups.com about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='Protocol Buffers'
592 PACKAGE_TARNAME='protobuf'
593 PACKAGE_VERSION='2.6.1'
594 PACKAGE_STRING='Protocol Buffers 2.6.1'
595 PACKAGE_BUGREPORT='protobuf@googlegroups.com'
598 ac_unique_file="src/google/protobuf/message.cc"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
644 USE_EXTERNAL_PROTOC_FALSE
645 USE_EXTERNAL_PROTOC_TRUE
712 INSTALL_STRIP_PROGRAM
740 MAINTAINER_MODE_FALSE
769 program_transform_name
782 enable_option_checking
783 enable_maintainer_mode
787 enable_dependency_tracking
797 ac_precious_vars='build_alias
809 ac_subdirs_all='gtest'
811 # Initialize some variables set by options.
813 ac_init_version=false
814 ac_unrecognized_opts=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name=s,x,x,
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
900 cache_file=config.cache ;;
902 -datadir | --datadir | --datadi | --datad)
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
928 eval enable_$ac_useropt=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
954 eval enable_$ac_useropt=\$ac_optarg ;;
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
969 -help | --help | --hel | --he | -h)
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 htmldir=$ac_optarg ;;
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
999 -libdir | --libdir | --libdi | --libd)
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1090 -psdir | --psdir | --psdi | --psd | --ps)
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 sbindir=$ac_optarg ;;
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 sharedstatedir=$ac_optarg ;;
1116 -site | --site | --sit)
1118 -site=* | --site=* | --sit=*)
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval with_$ac_useropt=\$ac_optarg ;;
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1174 eval with_$ac_useropt=no ;;
1177 # Obsolete; use --with-x.
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information"
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error $? "missing argument to $ac_option"
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 # Check all directory arguments for consistency.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1245 # Be sure to have absolute directory names.
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1258 target=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 elif test "x$build_alias" != "x$host_alias"; then
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272 test "$silent" = yes && exec 6>/dev/null
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1315 ac_srcdir_defaulted=no
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 # Report the --help message.
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1349 \`configure' configures Protocol Buffers 2.6.1 to adapt to many kinds of systems.
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1356 Defaults for the options are specified in brackets.
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1380 For better control, use the options below.
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/protobuf]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1418 if test -n "$ac_init_help"; then
1419 case $ac_init_help in
1420 short | recursive ) echo "Configuration of Protocol Buffers 2.6.1:";;
1425 --disable-option-checking ignore unrecognized --enable/--with options
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --disable-maintainer-mode
1429 disable make rules and dependencies not useful (and
1430 sometimes confusing) to the casual installer
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
1437 --disable-64bit-solaris Build 64 bit binary on Solaris [default=on]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-static[=PKGS] build static libraries [default=yes]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-zlib include classes for streaming compressed data in and
1449 --with-protoc=COMMAND use the given protoc command instead of building a
1450 new one when building tests (useful for
1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-sysroot=DIR Search for dependent libraries within DIR
1456 (or the compiler's sysroot if not specified).
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1468 CXXCPP C++ preprocessor
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <protobuf@googlegroups.com>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 Protocol Buffers configure 2.6.1
1537 generated by GNU Autoconf 2.69
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1586 } # ac_fn_c_try_compile
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_cxx_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_cxx_try_compile
1626 # ac_fn_cxx_try_cpp LINENO
1627 # ------------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_cxx_try_cpp ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1649 test ! -s conftest.err
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_cxx_try_cpp
1663 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1664 # ---------------------------------------------------------
1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666 # the include files in INCLUDES and setting the cache variable VAR
1668 ac_fn_cxx_check_header_mongrel ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if eval \${$3+:} false; then :
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1681 # Is the header compilable?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683 $as_echo_n "checking $2 usability... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1689 if ac_fn_cxx_try_compile "$LINENO"; then :
1690 ac_header_compiler=yes
1692 ac_header_compiler=no
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696 $as_echo "$ac_header_compiler" >&6; }
1698 # Is the header present?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700 $as_echo_n "checking $2 presence... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1705 if ac_fn_cxx_try_cpp "$LINENO"; then :
1706 ac_header_preproc=yes
1708 ac_header_preproc=no
1710 rm -f conftest.err conftest.i conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712 $as_echo "$ac_header_preproc" >&6; }
1714 # So? What about this header?
1715 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1726 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1730 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ( $as_echo "## ---------------------------------------- ##
1734 ## Report this to protobuf@googlegroups.com ##
1735 ## ---------------------------------------- ##"
1736 ) | sed "s/^/$as_me: WARNING: /" >&2
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 eval "$3=\$ac_header_compiler"
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_cxx_check_header_mongrel
1754 # ac_fn_cxx_try_run LINENO
1755 # ------------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_cxx_try_run ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=$ac_status
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_cxx_try_run
1796 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1797 # ---------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_cxx_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_cxx_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_cxx_check_header_compile
1827 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
1828 # -----------------------------------------------
1829 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1831 ac_fn_cxx_check_decl ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 as_decl_name=`echo $2|sed 's/ *(.*//'`
1835 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1837 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1847 #ifndef $as_decl_name
1849 (void) $as_decl_use;
1851 (void) $as_decl_name;
1859 if ac_fn_cxx_try_compile "$LINENO"; then :
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 } # ac_fn_cxx_check_decl
1873 # ac_fn_c_try_link LINENO
1874 # -----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 test -x conftest$ac_exeext
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_c_try_link
1919 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists and can be compiled using the include files in
1922 # INCLUDES, setting the cache variable VAR accordingly.
1923 ac_fn_c_check_header_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1936 if ac_fn_c_try_compile "$LINENO"; then :
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_header_compile
1950 # ac_fn_c_check_func LINENO FUNC VAR
1951 # ----------------------------------
1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1953 ac_fn_c_check_func ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965 #define $2 innocuous_$2
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1973 # include <limits.h>
1975 # include <assert.h>
1980 /* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined __stub_$2 || defined __stub___$2
2002 if ac_fn_c_try_link "$LINENO"; then :
2007 rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_func
2017 # ac_fn_cxx_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_link ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 test -x conftest$ac_exeext
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_cxx_try_link
2063 # ac_fn_cxx_check_func LINENO FUNC VAR
2064 # ------------------------------------
2065 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2066 ac_fn_cxx_check_func ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2078 #define $2 innocuous_$2
2080 /* System header to define __stub macros and hopefully few prototypes,
2081 which can conflict with char $2 (); below.
2082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2083 <limits.h> exists even on freestanding compilers. */
2086 # include <limits.h>
2088 # include <assert.h>
2093 /* Override any GCC internal prototype to avoid an error.
2094 Use char because int might match the return type of a GCC
2095 builtin and then its argument prototype would still apply. */
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined __stub_$2 || defined __stub___$2
2115 if ac_fn_cxx_try_link "$LINENO"; then :
2120 rm -f core conftest.err conftest.$ac_objext \
2121 conftest$ac_exeext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_cxx_check_func
2129 cat >config.log <<_ACEOF
2130 This file contains any messages produced by compilers while
2131 running configure, to aid debugging if configure makes a mistake.
2133 It was created by Protocol Buffers $as_me 2.6.1, which was
2134 generated by GNU Autoconf 2.69. Invocation command line was
2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir=.
2170 $as_echo "PATH: $as_dir"
2186 # Keep a trace of the command line.
2187 # Strip out --no-create and --no-recursion so they do not pile up.
2188 # Strip out --silent because we don't want to record it for future runs.
2189 # Also quote any args containing shell meta-characters.
2190 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_must_keep_next=false
2200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202 | -silent | --silent | --silen | --sile | --sil)
2205 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2210 as_fn_append ac_configure_args1 " '$ac_arg'"
2211 if test $ac_must_keep_next = true; then
2212 ac_must_keep_next=false # Got value, back to normal.
2215 *=* | --config-cache | -C | -disable-* | --disable-* \
2216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218 | -with-* | --with-* | -without-* | --without-* | --x)
2219 case "$ac_configure_args0 " in
2220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2223 -* ) ac_must_keep_next=true ;;
2226 as_fn_append ac_configure_args " '$ac_arg'"
2231 { ac_configure_args0=; unset ac_configure_args0;}
2232 { ac_configure_args1=; unset ac_configure_args1;}
2234 # When interrupted or exit'd, cleanup temporary files, and complete
2235 # config.log. We remove comments because anyway the quotes in there
2236 # would cause problems or look ugly.
2237 # WARNING: Use '\'' to represent an apostrophe within the trap.
2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239 trap 'exit_status=$?
2240 # Save into config.log some information that might help in debugging.
2244 $as_echo "## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##"
2248 # The following way of writing the cache mishandles newlines in values,
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2259 _ | IFS | as_nl) ;; #(
2260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261 *) { eval $ac_var=; unset $ac_var;} ;;
2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
2269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2280 $as_echo "## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##"
2284 for ac_var in $ac_subst_vars
2286 eval ac_val=\$$ac_var
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 $as_echo "$ac_var='\''$ac_val'\''"
2294 if test -n "$ac_subst_files"; then
2295 $as_echo "## ------------------- ##
2296 ## File substitutions. ##
2297 ## ------------------- ##"
2299 for ac_var in $ac_subst_files
2301 eval ac_val=\$$ac_var
2303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 $as_echo "$ac_var='\''$ac_val'\''"
2310 if test -s confdefs.h; then
2311 $as_echo "## ----------- ##
2318 test "$ac_signal" != 0 &&
2319 $as_echo "$as_me: caught signal $ac_signal"
2320 $as_echo "$as_me: exit $exit_status"
2322 rm -f core *.core core.conftest.* &&
2323 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2326 for ac_signal in 1 2 13 15; do
2327 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2332 rm -f -r conftest* confdefs.h
2334 $as_echo "/* confdefs.h */" > confdefs.h
2336 # Predefined preprocessor variables.
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_NAME "$PACKAGE_NAME"
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_STRING "$PACKAGE_STRING"
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_URL "$PACKAGE_URL"
2363 # Let the site file select an alternate cache file if it wants to.
2364 # Prefer an explicitly selected file to automatically selected ones.
2367 if test -n "$CONFIG_SITE"; then
2368 # We do not want a PATH search for config.site.
2369 case $CONFIG_SITE in #((
2370 -*) ac_site_file1=./$CONFIG_SITE;;
2371 */*) ac_site_file1=$CONFIG_SITE;;
2372 *) ac_site_file1=./$CONFIG_SITE;;
2374 elif test "x$prefix" != xNONE; then
2375 ac_site_file1=$prefix/share/config.site
2376 ac_site_file2=$prefix/etc/config.site
2378 ac_site_file1=$ac_default_prefix/share/config.site
2379 ac_site_file2=$ac_default_prefix/etc/config.site
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383 test "x$ac_site_file" = xNONE && continue
2384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387 sed 's/^/| /' "$ac_site_file" >&5
2389 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 as_fn_error $? "failed to load site script $ac_site_file
2392 See \`config.log' for more details" "$LINENO" 5; }
2396 if test -r "$cache_file"; then
2397 # Some versions of bash will fail to source /dev/null (special files
2398 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2399 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401 $as_echo "$as_me: loading cache $cache_file" >&6;}
2403 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404 *) . "./$cache_file";;
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409 $as_echo "$as_me: creating cache $cache_file" >&6;}
2413 # Check that the precious variables saved in the cache have kept the same
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418 eval ac_new_set=\$ac_env_${ac_var}_set
2419 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420 eval ac_new_val=\$ac_env_${ac_var}_value
2421 case $ac_old_set,$ac_new_set in
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425 ac_cache_corrupted=: ;;
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2432 if test "x$ac_old_val" != "x$ac_new_val"; then
2433 # differences in whitespace do not lead to failure.
2434 ac_old_val_w=`echo x $ac_old_val`
2435 ac_new_val_w=`echo x $ac_new_val`
2436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439 ac_cache_corrupted=:
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443 eval $ac_var=\$ac_old_val
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2446 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2451 # Pass precious variables to config.status.
2452 if test "$ac_new_set" = set; then
2454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455 *) ac_arg=$ac_var=$ac_new_val ;;
2457 case " $ac_configure_args " in
2458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2459 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463 if $ac_cache_corrupted; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2484 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2485 # Check whether --enable-maintainer-mode was given.
2486 if test "${enable_maintainer_mode+set}" = set; then :
2487 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2489 USE_MAINTAINER_MODE=yes
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2493 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2494 if test $USE_MAINTAINER_MODE = yes; then
2495 MAINTAINER_MODE_TRUE=
2496 MAINTAINER_MODE_FALSE='#'
2498 MAINTAINER_MODE_TRUE='#'
2499 MAINTAINER_MODE_FALSE=
2502 MAINT=$MAINTAINER_MODE_TRUE
2507 ac_config_headers="$ac_config_headers config.h"
2511 # autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily
2512 # the best choice for libprotobuf.
2513 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
2516 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
2521 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2522 if test -f "$ac_dir/install-sh"; then
2524 ac_install_sh="$ac_aux_dir/install-sh -c"
2526 elif test -f "$ac_dir/install.sh"; then
2528 ac_install_sh="$ac_aux_dir/install.sh -c"
2530 elif test -f "$ac_dir/shtool"; then
2532 ac_install_sh="$ac_aux_dir/shtool install -c"
2536 if test -z "$ac_aux_dir"; then
2537 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2540 # These three variables are undocumented and unsupported,
2541 # and are intended to be withdrawn in a future Autoconf release.
2542 # They can cause serious problems if a builder's source tree is in a directory
2543 # whose full name contains unusual characters.
2544 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2545 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2546 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2549 # Make sure we can run config.sub.
2550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2554 $as_echo_n "checking build system type... " >&6; }
2555 if ${ac_cv_build+:} false; then :
2556 $as_echo_n "(cached) " >&6
2558 ac_build_alias=$build_alias
2559 test "x$ac_build_alias" = x &&
2560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2561 test "x$ac_build_alias" = x &&
2562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2568 $as_echo "$ac_cv_build" >&6; }
2569 case $ac_cv_build in
2571 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2574 ac_save_IFS=$IFS; IFS='-'
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2588 $as_echo_n "checking host system type... " >&6; }
2589 if ${ac_cv_host+:} false; then :
2590 $as_echo_n "(cached) " >&6
2592 if test "x$host_alias" = x; then
2593 ac_cv_host=$ac_cv_build
2595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2601 $as_echo "$ac_cv_host" >&6; }
2604 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2607 ac_save_IFS=$IFS; IFS='-'
2613 # Remember, the first character of IFS is used to create $*,
2614 # except with old shells:
2617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2621 $as_echo_n "checking target system type... " >&6; }
2622 if ${ac_cv_target+:} false; then :
2623 $as_echo_n "(cached) " >&6
2625 if test "x$target_alias" = x; then
2626 ac_cv_target=$ac_cv_host
2628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2634 $as_echo "$ac_cv_target" >&6; }
2635 case $ac_cv_target in
2637 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2639 target=$ac_cv_target
2640 ac_save_IFS=$IFS; IFS='-'
2646 # Remember, the first character of IFS is used to create $*,
2647 # except with old shells:
2650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2653 # The aliases save the names the user supplied, while $host etc.
2654 # will get canonicalized.
2655 test -n "$target_alias" &&
2656 test "$program_prefix$program_suffix$program_transform_name" = \
2658 program_prefix=${target_alias}-
2660 am__api_version='1.14'
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # OS/2's system install, which has a completely different semantic
2674 # ./install, which can be erroneously created by make from ./install.sh.
2675 # Reject install programs that cannot install multiple files.
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2677 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2678 if test -z "$INSTALL"; then
2679 if ${ac_cv_path_install+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2688 case $as_dir/ in #((
2689 ./ | .// | /[cC]/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2731 rm -rf conftest.one conftest.two conftest.dir
2734 if test "${ac_cv_path_install+set}" = set; then
2735 INSTALL=$ac_cv_path_install
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for INSTALL within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 INSTALL=$ac_install_sh
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745 $as_echo "$INSTALL" >&6; }
2747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748 # It thinks the first close brace ends the variable substitution.
2749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756 $as_echo_n "checking whether build environment is sane... " >&6; }
2757 # Reject unsafe characters in $srcdir or the absolute working directory
2758 # name. Accept space and tab only in the latter.
2762 *[\\\"\#\$\&\'\`$am_lf]*)
2763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2770 # Do 'set' in a subshell so we don't clobber the current shell's
2771 # arguments. Must try -L first in case configure is actually a
2772 # symlink; some systems play weird games with the mod time of symlinks
2773 # (eg FreeBSD returns the mod time of the symlink's containing
2777 for am_try in 1 2; do
2778 echo "timestamp, slept: $am_has_slept" > conftest.file
2779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2782 set X `ls -t "$srcdir/configure" conftest.file`
2784 if test "$*" != "X $srcdir/configure conftest.file" \
2785 && test "$*" != "X conftest.file $srcdir/configure"; then
2787 # If neither matched, then we have a broken ls. This can happen
2788 # if, for instance, CONFIG_SHELL is bash and it inherits a
2789 # broken ls alias from the environment. This has actually
2790 # happened. Such a system could not be considered "sane".
2791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2792 alias in your environment" "$LINENO" 5
2794 if test "$2" = conftest.file || test $am_try -eq 2; then
2801 test "$2" = conftest.file
2807 as_fn_error $? "newly created file is older than distributed files!
2808 Check your system clock" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811 $as_echo "yes" >&6; }
2812 # If we didn't sleep, we still need to ensure time stamps of config.status and
2813 # generated files are strictly newer.
2815 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2822 test "$program_prefix" != NONE &&
2823 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824 # Use a double $ so make ignores it.
2825 test "$program_suffix" != NONE &&
2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827 # Double any \ or $.
2828 # By default was `s,x,x', remove it if useless.
2829 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2832 # expand $ac_aux_dir to an absolute path
2833 am_aux_dir=`cd $ac_aux_dir && pwd`
2835 if test x"${MISSING+set}" != xset; then
2838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2840 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2843 # Use eval to expand $SHELL
2844 if eval "$MISSING --is-lightweight"; then
2845 am_missing_run="$MISSING "
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2852 if test x"${install_sh}" != xset; then
2855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2857 install_sh="\${SHELL} $am_aux_dir/install-sh"
2861 # Installed binaries are usually stripped using 'strip' when the user
2862 # run "make install-strip". However 'strip' might not be the right
2863 # tool to use in cross-compilation environments, therefore Automake
2864 # will honor the 'STRIP' environment variable to overrule this program.
2865 if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}strip; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_STRIP+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$STRIP"; then
2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 STRIP=$ac_cv_prog_STRIP
2895 if test -n "$STRIP"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897 $as_echo "$STRIP" >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2905 if test -z "$ac_cv_prog_STRIP"; then
2907 # Extract the first word of "strip", so it can be a program name with args.
2908 set dummy strip; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2912 $as_echo_n "(cached) " >&6
2914 if test -n "$ac_ct_STRIP"; then
2915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_ac_ct_STRIP="strip"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935 if test -n "$ac_ct_STRIP"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2937 $as_echo "$ac_ct_STRIP" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2943 if test "x$ac_ct_STRIP" = x; then
2946 case $cross_compiling:$ac_tool_warned in
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2955 STRIP="$ac_cv_prog_STRIP"
2959 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2962 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2963 if test -z "$MKDIR_P"; then
2964 if ${ac_cv_path_mkdir+:} false; then :
2965 $as_echo_n "(cached) " >&6
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2971 test -z "$as_dir" && as_dir=.
2972 for ac_prog in mkdir gmkdir; do
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976 'mkdir (GNU coreutils) '* | \
2977 'mkdir (coreutils) '* | \
2978 'mkdir (fileutils) '4.1*)
2979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2989 test -d ./--version && rmdir ./--version
2990 if test "${ac_cv_path_mkdir+set}" = set; then
2991 MKDIR_P="$ac_cv_path_mkdir -p"
2993 # As a last resort, use the slow shell script. Don't cache a
2994 # value for MKDIR_P within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the value is a relative name.
2997 MKDIR_P="$ac_install_sh -d"
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3001 $as_echo "$MKDIR_P" >&6; }
3003 for ac_prog in gawk mawk nawk awk
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_AWK+:} false; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_AWK="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test -n "$AWK"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035 $as_echo "$AWK" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3042 test -n "$AWK" && break
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3050 $as_echo_n "(cached) " >&6
3052 cat >conftest.make <<\_ACEOF
3055 @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060 eval ac_cv_prog_make_${ac_make}_set=yes;;
3062 eval ac_cv_prog_make_${ac_make}_set=no;;
3066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 SET_MAKE="MAKE=${MAKE-make}"
3076 rm -rf .tst 2>/dev/null
3077 mkdir .tst 2>/dev/null
3078 if test -d .tst; then
3083 rmdir .tst 2>/dev/null
3085 # Check whether --enable-silent-rules was given.
3086 if test "${enable_silent_rules+set}" = set; then :
3087 enableval=$enable_silent_rules;
3090 case $enable_silent_rules in # (((
3091 yes) AM_DEFAULT_VERBOSITY=0;;
3092 no) AM_DEFAULT_VERBOSITY=1;;
3093 *) AM_DEFAULT_VERBOSITY=1;;
3095 am_make=${MAKE-make}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3098 if ${am_cv_make_support_nested_variables+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 if $as_echo 'TRUE=$(BAR$(V))
3107 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108 am_cv_make_support_nested_variables=yes
3110 am_cv_make_support_nested_variables=no
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3115 if test $am_cv_make_support_nested_variables = yes; then
3117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3119 AM_V=$AM_DEFAULT_VERBOSITY
3120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3144 # Define the identity of the package.
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3158 # Some tools Automake needs.
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174 # For better backward compatibility. To be removed once Automake 1.9.x
3175 # dies out for good. For more background, see:
3176 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3177 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3178 mkdir_p='$(MKDIR_P)'
3180 # We need awk for the "check" target. The system "awk" is bad on
3182 # Always define AMTAR for backward compatibility. Yes, it's still used
3183 # in the wild :-( We should find a proper way to deprecate it ...
3187 # We'll loop over all known methods to create a tar archive until one works.
3188 _am_tools='gnutar pax cpio none'
3190 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3197 # POSIX will say in a future version that running "rm -f" with no argument
3198 # is OK; and we want to be able to make that assumption in our Makefile
3199 # recipes. So use an aggressive probe to check that the usage we want is
3200 # actually supported "in the wild" to an acceptable degree.
3201 # See automake bug#10828.
3202 # To make any issue more visible, cause the running configure to be aborted
3203 # by default if the 'rm' program in use doesn't match our expectations; the
3204 # user can still override this though.
3205 if rm -f && rm -fr && rm -rf; then : OK; else
3209 Your 'rm' program seems unable to run without file operands specified
3210 on the command line, even when the '-f' option is present. This is contrary
3211 to the behaviour of most rm programs out there, and not conforming with
3212 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3214 Please tell bug-automake@gnu.org about your system, including the value
3215 of your $PATH and any error possibly output before this message. This
3216 can help us improve future automake versions.
3219 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3220 echo 'Configuration will proceed anyway, since you have set the' >&2
3221 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3225 Aborting the configuration process, to ensure you take notice of the issue.
3227 You can download and install GNU coreutils to get an 'rm' implementation
3228 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3230 If you want to complete the configuration process using your problematic
3231 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3232 to "yes", and re-run configure.
3235 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3240 # Check whether --with-zlib was given.
3241 if test "${with_zlib+set}" = set; then :
3249 # Check whether --with-protoc was given.
3250 if test "${with_protoc+set}" = set; then :
3251 withval=$with_protoc;
3257 # Checks for programs.
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3302 if test -z "$ac_cv_prog_CC"; then
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CC="gcc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3340 if test "x$ac_ct_CC" = x; then
3343 case $cross_compiling:$ac_tool_warned in
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CC="${ac_tool_prefix}cc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 if test -n "$CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3396 if test -z "$CC"; then
3397 # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3493 test -n "$CC" && break
3496 if test -z "$CC"; then
3498 for ac_prog in cl.exe
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_CC="$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$ac_ct_CC" && break
3540 if test "x$ac_ct_CC" = x; then
3543 case $cross_compiling:$ac_tool_warned in
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details" "$LINENO" 5; }
3561 # Provide some information about the compiler.
3562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3565 for ac_option in --version -v -V -qversion; do
3566 { { ac_try="$ac_compiler $ac_option >&5"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3575 if test -s conftest.err; then
3577 ... rest of stderr output deleted ...
3578 10q' conftest.err >conftest.er1
3579 cat conftest.er1 >&5
3581 rm -f conftest.er1 conftest.err
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3597 ac_clean_files_save=$ac_clean_files
3598 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3599 # Try to create an executable without -o first, disregard a.out.
3600 # It will help us diagnose broken compilers, and finding out an intuition
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603 $as_echo_n "checking whether the C compiler works... " >&6; }
3604 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3606 # The possible output files:
3607 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3610 for ac_file in $ac_files
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3619 if { { ac_try="$ac_link_default"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link_default") 2>&5
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3631 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3632 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3633 # so that the user can short-circuit this test for compilers unknown to
3635 for ac_file in $ac_files ''
3637 test -f "$ac_file" || continue
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3642 # We found the default executable, but exeext='' is most
3646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650 # We set ac_cv_exeext here because the later test for it is not
3651 # safe: cross compilers may not add the suffix if given an `-o'
3652 # argument, so we may need to know it at that point already.
3653 # Even if this section looks crufty: it has the advantage of
3660 test "$ac_cv_exeext" = no && ac_cv_exeext=
3665 if test -z "$ac_file"; then :
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error 77 "C compiler cannot create executables
3674 See \`config.log' for more details" "$LINENO" 5; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677 $as_echo "yes" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3680 $as_echo_n "checking for C compiler default output file name... " >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3682 $as_echo "$ac_file" >&6; }
3683 ac_exeext=$ac_cv_exeext
3685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3688 $as_echo_n "checking for suffix of executables... " >&6; }
3689 if { { ac_try="$ac_link"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_link") 2>&5
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then :
3700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3702 # work properly (i.e., refer to `conftest.exe'), while it won't with
3704 for ac_file in conftest.exe conftest conftest.*; do
3705 test -f "$ac_file" || continue
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3717 See \`config.log' for more details" "$LINENO" 5; }
3719 rm -f conftest conftest$ac_cv_exeext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3721 $as_echo "$ac_cv_exeext" >&6; }
3723 rm -f conftest.$ac_ext
3724 EXEEXT=$ac_cv_exeext
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3732 FILE *f = fopen ("conftest.out", "w");
3733 return ferror (f) || fclose (f) != 0;
3739 ac_clean_files="$ac_clean_files conftest.out"
3740 # Check that the compiler produces executables we can run. If not, either
3741 # the compiler is broken, or we cross compile.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743 $as_echo_n "checking whether we are cross compiling... " >&6; }
3744 if test "$cross_compiling" != yes; then
3745 { { ac_try="$ac_link"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }
3756 if { ac_try='./conftest$ac_cv_exeext'
3757 { { case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_try") 2>&5
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }; }; then
3769 if test "$cross_compiling" = maybe; then
3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error $? "cannot run C compiled programs.
3775 If you meant to cross compile, use \`--host'.
3776 See \`config.log' for more details" "$LINENO" 5; }
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781 $as_echo "$cross_compiling" >&6; }
3783 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3784 ac_clean_files=$ac_clean_files_save
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3786 $as_echo_n "checking for suffix of object files... " >&6; }
3787 if ${ac_cv_objext+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3801 rm -f conftest.o conftest.obj
3802 if { { ac_try="$ac_compile"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_compile") 2>&5
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; then :
3813 for ac_file in conftest.o conftest.obj conftest.*; do
3814 test -f "$ac_file" || continue;
3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3822 $as_echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $? "cannot compute suffix of object files: cannot compile
3828 See \`config.log' for more details" "$LINENO" 5; }
3830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3833 $as_echo "$ac_cv_objext" >&6; }
3834 OBJEXT=$ac_cv_objext
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3838 if ${ac_cv_c_compiler_gnu+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3855 if ac_fn_c_try_compile "$LINENO"; then :
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3865 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3866 if test $ac_compiler_gnu = yes; then
3871 ac_test_CFLAGS=${CFLAGS+set}
3872 ac_save_CFLAGS=$CFLAGS
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3874 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3875 if ${ac_cv_prog_cc_g+:} false; then :
3876 $as_echo_n "(cached) " >&6
3878 ac_save_c_werror_flag=$ac_c_werror_flag
3879 ac_c_werror_flag=yes
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3893 if ac_fn_c_try_compile "$LINENO"; then :
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 if ac_fn_c_try_compile "$LINENO"; then :
3911 ac_c_werror_flag=$ac_save_c_werror_flag
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3924 if ac_fn_c_try_compile "$LINENO"; then :
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_c_werror_flag=$ac_save_c_werror_flag
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3935 $as_echo "$ac_cv_prog_cc_g" >&6; }
3936 if test "$ac_test_CFLAGS" = set; then
3937 CFLAGS=$ac_save_CFLAGS
3938 elif test $ac_cv_prog_cc_g = yes; then
3939 if test "$GCC" = yes; then
3945 if test "$GCC" = yes; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3952 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3953 if ${ac_cv_prog_cc_c89+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 ac_cv_prog_cc_c89=no
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3964 struct buf { int x; };
3965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3966 static char *e (p, i)
3972 static char *f (char * (*g) (char **, int), char **p, ...)
3977 s = g (p, va_arg (v,int));
3982 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3983 function prototypes and stuff, but not '\xHH' hex character constants.
3984 These don't provoke an error unfortunately, instead are silently treated
3985 as 'x'. The following induces an error, until -std is added to get
3986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3987 array size at least. It's necessary to write '\x00'==0 to get something
3988 that's true only with -std. */
3989 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3991 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3992 inside strings and character constants. */
3994 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3996 int test (int i, double x);
3997 struct s1 {int (*f) (int a);};
3998 struct s2 {int (*f) (double a);};
3999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4010 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4011 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4013 CC="$ac_save_CC $ac_arg"
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_c89=$ac_arg
4017 rm -f core conftest.err conftest.$ac_objext
4018 test "x$ac_cv_prog_cc_c89" != "xno" && break
4020 rm -f conftest.$ac_ext
4025 case "x$ac_cv_prog_cc_c89" in
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4028 $as_echo "none needed" >&6; } ;;
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 $as_echo "unsupported" >&6; } ;;
4033 CC="$CC $ac_cv_prog_cc_c89"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4035 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4037 if test "x$ac_cv_prog_cc_c89" != xno; then :
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4053 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4054 if ${am_cv_prog_cc_c_o+:} false; then :
4055 $as_echo_n "(cached) " >&6
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4068 # Make sure it works both with $CC and with simple cc.
4069 # Following AC_PROG_CC_C_O, we do the test twice because some
4070 # compilers refuse to overwrite an existing .o file with -o,
4071 # though they will create one.
4072 am_cv_prog_cc_c_o=yes
4074 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4075 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } \
4079 && test -f conftest2.$ac_objext; then
4082 am_cv_prog_cc_c_o=no
4086 rm -f core conftest*
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4090 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4091 if test "$am_cv_prog_cc_c_o" != yes; then
4092 # Losing compiler, so override with the script.
4093 # FIXME: It is wrong to rewrite CC.
4094 # But if we don't then we get into trouble of one sort or another.
4095 # A longer-term fix would be to have automake use am__CC in this case,
4096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097 CC="$am_aux_dir/compile $CC"
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 DEPDIR="${am__leading_dot}deps"
4107 ac_config_commands="$ac_config_commands depfiles"
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4113 @echo this is the am__doit target
4116 # If we don't find an include directive, just comment out the code.
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4118 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # Ignore all kinds of additional output from 'make'.
4125 case `$am_make -s -f confmf 2> /dev/null` in #(
4126 *the\ am__doit\ target*)
4132 # Now try BSD make style include.
4133 if test "$am__include" = "#"; then
4134 echo '.include "confinc"' > confmf
4135 case `$am_make -s -f confmf 2> /dev/null` in #(
4136 *the\ am__doit\ target*)
4137 am__include=.include
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4146 $as_echo "$_am_result" >&6; }
4147 rm -f confinc confmf
4149 # Check whether --enable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then :
4151 enableval=$enable_dependency_tracking;
4154 if test "x$enable_dependency_tracking" != xno; then
4155 am_depcomp="$ac_aux_dir/depcomp"
4159 if test "x$enable_dependency_tracking" != xno; then
4169 depcc="$CC" am_compiler_list=
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4172 $as_echo_n "checking dependency style of $depcc... " >&6; }
4173 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4174 $as_echo_n "(cached) " >&6
4176 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4177 # We make a subdir and do the tests there. Otherwise we can end up
4178 # making bogus files that we don't know about and never remove. For
4179 # instance it was reported that on HP-UX the gcc test will end up
4180 # making a dummy file named 'D' -- because '-MD' means "put the output
4184 # Copy depcomp to subdir because otherwise we won't find it if we're
4185 # using a relative directory.
4186 cp "$am_depcomp" conftest.dir
4188 # We will build objects and dependencies in a subdirectory because
4189 # it helps to detect inapplicable dependency modes. For instance
4190 # both Tru64's cc and ICC support -MD to output dependencies as a
4191 # side effect of compilation, but ICC will put the dependencies in
4192 # the current directory while Tru64 will put them in the object
4196 am_cv_CC_dependencies_compiler_type=none
4197 if test "$am_compiler_list" = ""; then
4198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4201 case " $depcc " in #(
4202 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4205 for depmode in $am_compiler_list; do
4206 # Setup a source with many dependencies, because some compilers
4207 # like to wrap large dependency lists on column 80 (with \), and
4208 # we should not choose a depcomp mode which is confused by this.
4210 # We need to recreate these files for each test, as the compiler may
4211 # overwrite some of them when testing with obscure command lines.
4212 # This happens at least with the AIX C compiler.
4214 for i in 1 2 3 4 5 6; do
4215 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4216 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4217 # Solaris 10 /bin/sh.
4218 echo '/* dummy */' > sub/conftst$i.h
4220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4222 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4223 # mode. It turns out that the SunPro C++ compiler does not properly
4224 # handle '-M -o', and we need to detect this. Also, some Intel
4225 # versions had trouble with output in subdirs.
4226 am__obj=sub/conftest.${OBJEXT-o}
4227 am__minus_obj="-o $am__obj"
4230 # This depmode causes a compiler race in universal mode.
4231 test "$am__universal" = false || continue
4234 # After this tag, mechanisms are not by side-effect, so they'll
4235 # only be used when explicitly requested.
4236 if test "x$enable_dependency_tracking" = xyes; then
4242 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4243 # This compiler won't grok '-c -o', but also, the minuso test has
4244 # not run yet. These depmodes are late enough in the game, and
4245 # so weak that their functioning should not be impacted.
4246 am__obj=conftest.${OBJEXT-o}
4251 if depmode=$depmode \
4252 source=sub/conftest.c object=$am__obj \
4253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4254 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4255 >/dev/null 2>conftest.err &&
4256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4260 # icc doesn't choke on unknown options, it will just issue warnings
4261 # or remarks (even with -Werror). So we grep stderr for any message
4262 # that says an option was ignored or not supported.
4263 # When given -MP, icc 7.0 and 7.1 complain thusly:
4264 # icc: Command line warning: ignoring option '-M'; no argument required
4265 # The diagnosis changed in icc 8.0:
4266 # icc: Command line remark: option '-MP' not supported
4267 if (grep 'ignoring option' conftest.err ||
4268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4269 am_cv_CC_dependencies_compiler_type=$depmode
4278 am_cv_CC_dependencies_compiler_type=none
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4283 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4287 test "x$enable_dependency_tracking" != xno \
4288 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4290 am__fastdepCC_FALSE='#'
4292 am__fastdepCC_TRUE='#'
4293 am__fastdepCC_FALSE=
4298 ac_cpp='$CXXCPP $CPPFLAGS'
4299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4302 if test -z "$CXX"; then
4303 if test -n "$CCC"; then
4306 if test -n "$ac_tool_prefix"; then
4307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CXX+:} false; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -n "$CXX"; then
4317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 if test -n "$CXX"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4339 $as_echo "$CXX" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4346 test -n "$CXX" && break
4349 if test -z "$CXX"; then
4351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 if test -n "$ac_ct_CXX"; then
4361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_CXX="$ac_prog"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4381 if test -n "$ac_ct_CXX"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4383 $as_echo "$ac_ct_CXX" >&6; }
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4390 test -n "$ac_ct_CXX" && break
4393 if test "x$ac_ct_CXX" = x; then
4396 case $cross_compiling:$ac_tool_warned in
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4408 # Provide some information about the compiler.
4409 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4412 for ac_option in --version -v -V -qversion; do
4413 { { ac_try="$ac_compiler $ac_option >&5"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4422 if test -s conftest.err; then
4424 ... rest of stderr output deleted ...
4425 10q' conftest.err >conftest.er1
4426 cat conftest.er1 >&5
4428 rm -f conftest.er1 conftest.err
4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4434 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4435 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4436 $as_echo_n "(cached) " >&6
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4452 if ac_fn_cxx_try_compile "$LINENO"; then :
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4462 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4463 if test $ac_compiler_gnu = yes; then
4468 ac_test_CXXFLAGS=${CXXFLAGS+set}
4469 ac_save_CXXFLAGS=$CXXFLAGS
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4471 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4472 if ${ac_cv_prog_cxx_g+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4476 ac_cxx_werror_flag=yes
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4490 if ac_fn_cxx_try_compile "$LINENO"; then :
4491 ac_cv_prog_cxx_g=yes
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4505 if ac_fn_cxx_try_compile "$LINENO"; then :
4508 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 if ac_fn_cxx_try_compile "$LINENO"; then :
4522 ac_cv_prog_cxx_g=yes
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4532 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4533 if test "$ac_test_CXXFLAGS" = set; then
4534 CXXFLAGS=$ac_save_CXXFLAGS
4535 elif test $ac_cv_prog_cxx_g = yes; then
4536 if test "$GXX" = yes; then
4542 if test "$GXX" = yes; then
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 depcc="$CXX" am_compiler_list=
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4557 $as_echo_n "checking dependency style of $depcc... " >&6; }
4558 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4562 # We make a subdir and do the tests there. Otherwise we can end up
4563 # making bogus files that we don't know about and never remove. For
4564 # instance it was reported that on HP-UX the gcc test will end up
4565 # making a dummy file named 'D' -- because '-MD' means "put the output
4569 # Copy depcomp to subdir because otherwise we won't find it if we're
4570 # using a relative directory.
4571 cp "$am_depcomp" conftest.dir
4573 # We will build objects and dependencies in a subdirectory because
4574 # it helps to detect inapplicable dependency modes. For instance
4575 # both Tru64's cc and ICC support -MD to output dependencies as a
4576 # side effect of compilation, but ICC will put the dependencies in
4577 # the current directory while Tru64 will put them in the object
4581 am_cv_CXX_dependencies_compiler_type=none
4582 if test "$am_compiler_list" = ""; then
4583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4586 case " $depcc " in #(
4587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4590 for depmode in $am_compiler_list; do
4591 # Setup a source with many dependencies, because some compilers
4592 # like to wrap large dependency lists on column 80 (with \), and
4593 # we should not choose a depcomp mode which is confused by this.
4595 # We need to recreate these files for each test, as the compiler may
4596 # overwrite some of them when testing with obscure command lines.
4597 # This happens at least with the AIX C compiler.
4599 for i in 1 2 3 4 5 6; do
4600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4602 # Solaris 10 /bin/sh.
4603 echo '/* dummy */' > sub/conftst$i.h
4605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4607 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4608 # mode. It turns out that the SunPro C++ compiler does not properly
4609 # handle '-M -o', and we need to detect this. Also, some Intel
4610 # versions had trouble with output in subdirs.
4611 am__obj=sub/conftest.${OBJEXT-o}
4612 am__minus_obj="-o $am__obj"
4615 # This depmode causes a compiler race in universal mode.
4616 test "$am__universal" = false || continue
4619 # After this tag, mechanisms are not by side-effect, so they'll
4620 # only be used when explicitly requested.
4621 if test "x$enable_dependency_tracking" = xyes; then
4627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4628 # This compiler won't grok '-c -o', but also, the minuso test has
4629 # not run yet. These depmodes are late enough in the game, and
4630 # so weak that their functioning should not be impacted.
4631 am__obj=conftest.${OBJEXT-o}
4636 if depmode=$depmode \
4637 source=sub/conftest.c object=$am__obj \
4638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4640 >/dev/null 2>conftest.err &&
4641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4645 # icc doesn't choke on unknown options, it will just issue warnings
4646 # or remarks (even with -Werror). So we grep stderr for any message
4647 # that says an option was ignored or not supported.
4648 # When given -MP, icc 7.0 and 7.1 complain thusly:
4649 # icc: Command line warning: ignoring option '-M'; no argument required
4650 # The diagnosis changed in icc 8.0:
4651 # icc: Command line remark: option '-MP' not supported
4652 if (grep 'ignoring option' conftest.err ||
4653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4654 am_cv_CXX_dependencies_compiler_type=$depmode
4663 am_cv_CXX_dependencies_compiler_type=none
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4668 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4672 test "x$enable_dependency_tracking" != xno \
4673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4674 am__fastdepCXX_TRUE=
4675 am__fastdepCXX_FALSE='#'
4677 am__fastdepCXX_TRUE='#'
4678 am__fastdepCXX_FALSE=
4683 ac_cpp='$CXXCPP $CPPFLAGS'
4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4690 ac_cpp='$CXXCPP $CPPFLAGS'
4691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4695 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4696 if test -z "$CXXCPP"; then
4697 if ${ac_cv_prog_CXXCPP+:} false; then :
4698 $as_echo_n "(cached) " >&6
4700 # Double quotes because CXXCPP needs to be expanded
4701 for CXXCPP in "$CXX -E" "/lib/cpp"
4704 for ac_cxx_preproc_warn_flag in '' yes
4706 # Use a header file that comes with gcc, so configuring glibc
4707 # with a fresh cross-compiler works.
4708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709 # <limits.h> exists even on freestanding compilers.
4710 # On the NeXT, cc -E runs the code through the compiler's parser,
4711 # not just through cpp. "Syntax error" is here to catch this case.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4715 # include <limits.h>
4717 # include <assert.h>
4721 if ac_fn_cxx_try_cpp "$LINENO"; then :
4724 # Broken: fails on valid input.
4727 rm -f conftest.err conftest.i conftest.$ac_ext
4729 # OK, works on sane cases. Now check whether nonexistent headers
4730 # can be detected and how.
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 #include <ac_nonexistent.h>
4735 if ac_fn_cxx_try_cpp "$LINENO"; then :
4736 # Broken: success on invalid input.
4739 # Passes both tests.
4743 rm -f conftest.err conftest.i conftest.$ac_ext
4746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747 rm -f conftest.i conftest.err conftest.$ac_ext
4748 if $ac_preproc_ok; then :
4753 ac_cv_prog_CXXCPP=$CXXCPP
4756 CXXCPP=$ac_cv_prog_CXXCPP
4758 ac_cv_prog_CXXCPP=$CXXCPP
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4761 $as_echo "$CXXCPP" >&6; }
4763 for ac_cxx_preproc_warn_flag in '' yes
4765 # Use a header file that comes with gcc, so configuring glibc
4766 # with a fresh cross-compiler works.
4767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768 # <limits.h> exists even on freestanding compilers.
4769 # On the NeXT, cc -E runs the code through the compiler's parser,
4770 # not just through cpp. "Syntax error" is here to catch this case.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4774 # include <limits.h>
4776 # include <assert.h>
4780 if ac_fn_cxx_try_cpp "$LINENO"; then :
4783 # Broken: fails on valid input.
4786 rm -f conftest.err conftest.i conftest.$ac_ext
4788 # OK, works on sane cases. Now check whether nonexistent headers
4789 # can be detected and how.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4794 if ac_fn_cxx_try_cpp "$LINENO"; then :
4795 # Broken: success on invalid input.
4798 # Passes both tests.
4802 rm -f conftest.err conftest.i conftest.$ac_ext
4805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4806 rm -f conftest.i conftest.err conftest.$ac_ext
4807 if $ac_preproc_ok; then :
4810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4812 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4813 See \`config.log' for more details" "$LINENO" 5; }
4817 ac_cpp='$CXXCPP $CPPFLAGS'
4818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4824 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4825 if ${ac_cv_path_GREP+:} false; then :
4826 $as_echo_n "(cached) " >&6
4828 if test -z "$GREP"; then
4829 ac_path_GREP_found=false
4830 # Loop through the user's path and test for each of PROGNAME-LIST
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4835 test -z "$as_dir" && as_dir=.
4836 for ac_prog in grep ggrep; do
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4839 as_fn_executable_p "$ac_path_GREP" || continue
4840 # Check for GNU ac_path_GREP and select it if it is found.
4841 # Check for GNU $ac_path_GREP
4842 case `"$ac_path_GREP" --version 2>&1` in
4844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4847 $as_echo_n 0123456789 >"conftest.in"
4850 cat "conftest.in" "conftest.in" >"conftest.tmp"
4851 mv "conftest.tmp" "conftest.in"
4852 cp "conftest.in" "conftest.nl"
4853 $as_echo 'GREP' >> "conftest.nl"
4854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4856 as_fn_arith $ac_count + 1 && ac_count=$as_val
4857 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4858 # Best one so far, save it but keep looking for a better one
4859 ac_cv_path_GREP="$ac_path_GREP"
4860 ac_path_GREP_max=$ac_count
4862 # 10*(2^10) chars as input seems more than enough
4863 test $ac_count -gt 10 && break
4865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4868 $ac_path_GREP_found && break 3
4873 if test -z "$ac_cv_path_GREP"; then
4874 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4877 ac_cv_path_GREP=$GREP
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4882 $as_echo "$ac_cv_path_GREP" >&6; }
4883 GREP="$ac_cv_path_GREP"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4887 $as_echo_n "checking for egrep... " >&6; }
4888 if ${ac_cv_path_EGREP+:} false; then :
4889 $as_echo_n "(cached) " >&6
4891 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4892 then ac_cv_path_EGREP="$GREP -E"
4894 if test -z "$EGREP"; then
4895 ac_path_EGREP_found=false
4896 # Loop through the user's path and test for each of PROGNAME-LIST
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4901 test -z "$as_dir" && as_dir=.
4902 for ac_prog in egrep; do
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4905 as_fn_executable_p "$ac_path_EGREP" || continue
4906 # Check for GNU ac_path_EGREP and select it if it is found.
4907 # Check for GNU $ac_path_EGREP
4908 case `"$ac_path_EGREP" --version 2>&1` in
4910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4913 $as_echo_n 0123456789 >"conftest.in"
4916 cat "conftest.in" "conftest.in" >"conftest.tmp"
4917 mv "conftest.tmp" "conftest.in"
4918 cp "conftest.in" "conftest.nl"
4919 $as_echo 'EGREP' >> "conftest.nl"
4920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4922 as_fn_arith $ac_count + 1 && ac_count=$as_val
4923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4924 # Best one so far, save it but keep looking for a better one
4925 ac_cv_path_EGREP="$ac_path_EGREP"
4926 ac_path_EGREP_max=$ac_count
4928 # 10*(2^10) chars as input seems more than enough
4929 test $ac_count -gt 10 && break
4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4934 $ac_path_EGREP_found && break 3
4939 if test -z "$ac_cv_path_EGREP"; then
4940 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4943 ac_cv_path_EGREP=$EGREP
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4949 $as_echo "$ac_cv_path_EGREP" >&6; }
4950 EGREP="$ac_cv_path_EGREP"
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4954 $as_echo_n "checking for ANSI C header files... " >&6; }
4955 if ${ac_cv_header_stdc+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4973 if ac_fn_cxx_try_compile "$LINENO"; then :
4974 ac_cv_header_stdc=yes
4976 ac_cv_header_stdc=no
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 if test $ac_cv_header_stdc = yes; then
4981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "memchr" >/dev/null 2>&1; then :
4991 ac_cv_header_stdc=no
4997 if test $ac_cv_header_stdc = yes; then
4998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005 $EGREP "free" >/dev/null 2>&1; then :
5008 ac_cv_header_stdc=no
5014 if test $ac_cv_header_stdc = yes; then
5015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016 if test "$cross_compiling" = yes; then :
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5023 #if ((' ' & 0x0FF) == 0x020)
5024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5027 # define ISLOWER(c) \
5028 (('a' <= (c) && (c) <= 'i') \
5029 || ('j' <= (c) && (c) <= 'r') \
5030 || ('s' <= (c) && (c) <= 'z'))
5031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039 for (i = 0; i < 256; i++)
5040 if (XOR (islower (i), ISLOWER (i))
5041 || toupper (i) != TOUPPER (i))
5046 if ac_fn_cxx_try_run "$LINENO"; then :
5049 ac_cv_header_stdc=no
5051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5052 conftest.$ac_objext conftest.beam conftest.$ac_ext
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5058 $as_echo "$ac_cv_header_stdc" >&6; }
5059 if test $ac_cv_header_stdc = yes; then
5061 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5065 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5066 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5067 inttypes.h stdint.h unistd.h
5069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5073 cat >>confdefs.h <<_ACEOF
5074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5083 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5084 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5091 if test "$MINIX" = yes; then
5093 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5096 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5099 $as_echo "#define _MINIX 1" >>confdefs.h
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5105 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5106 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5107 $as_echo_n "(cached) " >&6
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 # define __EXTENSIONS__ 1
5113 $ac_includes_default
5122 if ac_fn_cxx_try_compile "$LINENO"; then :
5123 ac_cv_safe_to_define___extensions__=yes
5125 ac_cv_safe_to_define___extensions__=no
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5130 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5131 test $ac_cv_safe_to_define___extensions__ = yes &&
5132 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5134 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5136 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5138 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5140 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5148 if test "$GCC" = yes; then
5155 # let the Makefile know if we're gcc
5157 # test_util.cc takes forever to compile with GCC and optimization turned on.
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5
5159 $as_echo_n "checking C++ compiler flags...... " >&6; }
5160 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5162 if test "$GCC" = "yes"; then :
5164 PROTOBUF_OPT_FLAG="-O2"
5165 CXXFLAGS="${CXXFLAGS} -g"
5169 # Protocol Buffers contains several checks that are intended to be used only
5170 # for debugging and which might hurt performance. Most users are probably
5171 # end users who don't want these checks, so add -DNDEBUG by default.
5172 CXXFLAGS="$CXXFLAGS -DNDEBUG"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5
5175 $as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5
5180 $as_echo "use user-supplied: $CXXFLAGS" >&6; }
5189 ac_cpp='$CXXCPP $CPPFLAGS'
5190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194 ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default"
5195 if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then :
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5209 # Check whether --enable-64bit-solaris was given.
5210 if test "${enable_64bit_solaris+set}" = set; then :
5211 enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval"
5213 ac_enable_64bit="yes"
5217 if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5219 CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}"
5225 for ac_prog in isainfo
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_ISAINFO+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 if test -n "$ISAINFO"; then
5235 ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_ISAINFO="$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 ISAINFO=$ac_cv_prog_ISAINFO
5255 if test -n "$ISAINFO"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5
5257 $as_echo "$ISAINFO" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5264 test -n "$ISAINFO" && break
5266 test -n "$ISAINFO" || ISAINFO="no"
5268 if test "x$ISAINFO" != "xno"; then :
5269 isainfo_b=`${ISAINFO} -b`
5274 if test "$isainfo_b" != "x"; then :
5277 isainfo_k=`${ISAINFO} -k`
5279 if test "x$ac_enable_64bit" = "xyes"; then :
5283 $as_echo "#define SOLARIS_64BIT_ENABLED 1" >>confdefs.h
5285 if test "x$libdir" = "x\${exec_prefix}/lib"; then :
5287 libdir="${libdir}/${isainfo_k}"
5291 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5293 CXXFLAGS="${CXXFLAGS} -m64"
5294 ac_cv_env_CXXFLAGS_set=set
5295 ac_cv_env_CXXFLAGS_value='-m64'
5299 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
5301 CFLAGS="${CFLAGS} -m64"
5302 ac_cv_env_CFLAGS_set=set
5303 ac_cv_env_CFLAGS_value='-m64'
5307 if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then :
5309 CXXFLAGS="-xmemalign=8s ${CXXFLAGS}"
5321 # Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5331 macro_version='2.4.2'
5332 macro_revision='1.3337'
5346 ltmain="$ac_aux_dir/ltmain.sh"
5348 # Backslashify metacharacters that are still active within
5349 # double-quoted strings.
5350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5352 # Same as above, but do not quote variable references.
5353 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5355 # Sed substitution to delay expansion of an escaped shell variable in a
5356 # double_quote_subst'ed string.
5357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5359 # Sed substitution to delay expansion of an escaped single quote.
5360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5362 # Sed substitution to avoid accidental globbing in evaled expressions
5363 no_glob_subst='s/\*/\\\*/g'
5365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5370 $as_echo_n "checking how to print strings... " >&6; }
5371 # Test print first, because it will be a builtin if present.
5372 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5375 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5378 # Use this function as a fallback that always works.
5379 func_fallback_echo ()
5381 eval 'cat <<_LTECHO_EOF
5385 ECHO='func_fallback_echo'
5388 # func_echo_all arg...
5389 # Invoke $ECHO with all args, space-separated.
5396 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5397 $as_echo "printf" >&6; } ;;
5398 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5399 $as_echo "print -r" >&6; } ;;
5400 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5401 $as_echo "cat" >&6; } ;;
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5419 if ${ac_cv_path_SED+:} false; then :
5420 $as_echo_n "(cached) " >&6
5422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5423 for ac_i in 1 2 3 4 5 6 7; do
5424 ac_script="$ac_script$as_nl$ac_script"
5426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5427 { ac_script=; unset ac_script;}
5428 if test -z "$SED"; then
5429 ac_path_SED_found=false
5430 # Loop through the user's path and test for each of PROGNAME-LIST
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir=.
5436 for ac_prog in sed gsed; do
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5439 as_fn_executable_p "$ac_path_SED" || continue
5440 # Check for GNU ac_path_SED and select it if it is found.
5441 # Check for GNU $ac_path_SED
5442 case `"$ac_path_SED" --version 2>&1` in
5444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5447 $as_echo_n 0123456789 >"conftest.in"
5450 cat "conftest.in" "conftest.in" >"conftest.tmp"
5451 mv "conftest.tmp" "conftest.in"
5452 cp "conftest.in" "conftest.nl"
5453 $as_echo '' >> "conftest.nl"
5454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456 as_fn_arith $ac_count + 1 && ac_count=$as_val
5457 if test $ac_count -gt ${ac_path_SED_max-0}; then
5458 # Best one so far, save it but keep looking for a better one
5459 ac_cv_path_SED="$ac_path_SED"
5460 ac_path_SED_max=$ac_count
5462 # 10*(2^10) chars as input seems more than enough
5463 test $ac_count -gt 10 && break
5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5468 $ac_path_SED_found && break 3
5473 if test -z "$ac_cv_path_SED"; then
5474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5482 $as_echo "$ac_cv_path_SED" >&6; }
5483 SED="$ac_cv_path_SED"
5486 test -z "$SED" && SED=sed
5487 Xsed="$SED -e 1s/^X//"
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5500 $as_echo_n "checking for fgrep... " >&6; }
5501 if ${ac_cv_path_FGREP+:} false; then :
5502 $as_echo_n "(cached) " >&6
5504 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5505 then ac_cv_path_FGREP="$GREP -F"
5507 if test -z "$FGREP"; then
5508 ac_path_FGREP_found=false
5509 # Loop through the user's path and test for each of PROGNAME-LIST
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5514 test -z "$as_dir" && as_dir=.
5515 for ac_prog in fgrep; do
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5518 as_fn_executable_p "$ac_path_FGREP" || continue
5519 # Check for GNU ac_path_FGREP and select it if it is found.
5520 # Check for GNU $ac_path_FGREP
5521 case `"$ac_path_FGREP" --version 2>&1` in
5523 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5526 $as_echo_n 0123456789 >"conftest.in"
5529 cat "conftest.in" "conftest.in" >"conftest.tmp"
5530 mv "conftest.tmp" "conftest.in"
5531 cp "conftest.in" "conftest.nl"
5532 $as_echo 'FGREP' >> "conftest.nl"
5533 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5535 as_fn_arith $ac_count + 1 && ac_count=$as_val
5536 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5537 # Best one so far, save it but keep looking for a better one
5538 ac_cv_path_FGREP="$ac_path_FGREP"
5539 ac_path_FGREP_max=$ac_count
5541 # 10*(2^10) chars as input seems more than enough
5542 test $ac_count -gt 10 && break
5544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5547 $ac_path_FGREP_found && break 3
5552 if test -z "$ac_cv_path_FGREP"; then
5553 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5556 ac_cv_path_FGREP=$FGREP
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5562 $as_echo "$ac_cv_path_FGREP" >&6; }
5563 FGREP="$ac_cv_path_FGREP"
5566 test -z "$GREP" && GREP=grep
5586 # Check whether --with-gnu-ld was given.
5587 if test "${with_gnu_ld+set}" = set; then :
5588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5594 if test "$GCC" = yes; then
5595 # Check if gcc -print-prog-name=ld gives a path.
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5597 $as_echo_n "checking for ld used by $CC... " >&6; }
5600 # gcc leaves a trailing carriage return which upsets mingw
5601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5606 # Accept absolute paths.
5608 re_direlt='/[^/][^/]*/\.\./'
5609 # Canonicalize the pathname of ld
5610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5614 test -z "$LD" && LD="$ac_prog"
5617 # If it fails, then pretend we aren't using GCC.
5621 # If it is relative, then search for the first ld in PATH.
5625 elif test "$with_gnu_ld" = yes; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5627 $as_echo_n "checking for GNU ld... " >&6; }
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5630 $as_echo_n "checking for non-GNU ld... " >&6; }
5632 if ${lt_cv_path_LD+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 if test -z "$LD"; then
5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637 for ac_dir in $PATH; do
5639 test -z "$ac_dir" && ac_dir=.
5640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5641 lt_cv_path_LD="$ac_dir/$ac_prog"
5642 # Check to see if the program is GNU ld. I'd rather use --version,
5643 # but apparently some variants of GNU ld only accept -v.
5644 # Break only if it was the GNU/non-GNU ld that we prefer.
5645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5646 *GNU* | *'with BFD'*)
5647 test "$with_gnu_ld" != no && break
5650 test "$with_gnu_ld" != yes && break
5657 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5662 if test -n "$LD"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5664 $as_echo "$LD" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5669 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5671 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5672 if ${lt_cv_prog_gnu_ld+:} false; then :
5673 $as_echo_n "(cached) " >&6
5675 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5676 case `$LD -v 2>&1 </dev/null` in
5677 *GNU* | *'with BFD'*)
5678 lt_cv_prog_gnu_ld=yes
5681 lt_cv_prog_gnu_ld=no
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5686 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5687 with_gnu_ld=$lt_cv_prog_gnu_ld
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5698 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5699 if ${lt_cv_path_NM+:} false; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -n "$NM"; then
5703 # Let the user override the test.
5706 lt_nm_to_check="${ac_tool_prefix}nm"
5707 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5708 lt_nm_to_check="$lt_nm_to_check nm"
5710 for lt_tmp_nm in $lt_nm_to_check; do
5711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5712 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5714 test -z "$ac_dir" && ac_dir=.
5715 tmp_nm="$ac_dir/$lt_tmp_nm"
5716 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5717 # Check to see if the nm accepts a BSD-compat flag.
5718 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5719 # nm: unknown option "B" ignored
5720 # Tru64's nm complains that /dev/null is an invalid object file
5721 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5722 */dev/null* | *'Invalid file or object type'*)
5723 lt_cv_path_NM="$tmp_nm -B"
5727 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5729 lt_cv_path_NM="$tmp_nm -p"
5733 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5734 continue # so that we can try to find one that supports BSD flags
5743 : ${lt_cv_path_NM=no}
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5747 $as_echo "$lt_cv_path_NM" >&6; }
5748 if test "$lt_cv_path_NM" != "no"; then
5751 # Didn't find any BSD compatible name lister, look for dumpbin.
5752 if test -n "$DUMPBIN"; then :
5753 # Let the user override the test.
5755 if test -n "$ac_tool_prefix"; then
5756 for ac_prog in dumpbin "link -dump"
5758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_prog_DUMPBIN+:} false; then :
5763 $as_echo_n "(cached) " >&6
5765 if test -n "$DUMPBIN"; then
5766 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 DUMPBIN=$ac_cv_prog_DUMPBIN
5786 if test -n "$DUMPBIN"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5788 $as_echo "$DUMPBIN" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5795 test -n "$DUMPBIN" && break
5798 if test -z "$DUMPBIN"; then
5799 ac_ct_DUMPBIN=$DUMPBIN
5800 for ac_prog in dumpbin "link -dump"
5802 # Extract the first word of "$ac_prog", so it can be a program name with args.
5803 set dummy $ac_prog; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 if test -n "$ac_ct_DUMPBIN"; then
5810 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5830 if test -n "$ac_ct_DUMPBIN"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5832 $as_echo "$ac_ct_DUMPBIN" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5839 test -n "$ac_ct_DUMPBIN" && break
5842 if test "x$ac_ct_DUMPBIN" = x; then
5845 case $cross_compiling:$ac_tool_warned in
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849 ac_tool_warned=yes ;;
5851 DUMPBIN=$ac_ct_DUMPBIN
5855 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5857 DUMPBIN="$DUMPBIN -symbols"
5865 if test "$DUMPBIN" != ":"; then
5869 test -z "$NM" && NM=nm
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5877 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5878 if ${lt_cv_nm_interface+:} false; then :
5879 $as_echo_n "(cached) " >&6
5881 lt_cv_nm_interface="BSD nm"
5882 echo "int some_variable = 0;" > conftest.$ac_ext
5883 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5884 (eval "$ac_compile" 2>conftest.err)
5885 cat conftest.err >&5
5886 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5887 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5888 cat conftest.err >&5
5889 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5890 cat conftest.out >&5
5891 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5892 lt_cv_nm_interface="MS dumpbin"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5897 $as_echo "$lt_cv_nm_interface" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5900 $as_echo_n "checking whether ln -s works... " >&6; }
5902 if test "$LN_S" = "ln -s"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904 $as_echo "yes" >&6; }
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5907 $as_echo "no, using $LN_S" >&6; }
5910 # find the maximum length of command line arguments
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5912 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5913 if ${lt_cv_sys_max_cmd_len+:} false; then :
5914 $as_echo_n "(cached) " >&6
5921 # On DJGPP, this test can blow up pretty badly due to problems in libc
5922 # (any single argument exceeding 2000 bytes causes a buffer overrun
5923 # during glob expansion). Even if it were fixed, the result of this
5924 # check would be larger than it should be.
5925 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5929 # Under GNU Hurd, this test is not required because there is
5930 # no limit to the length of command line arguments.
5931 # Libtool will interpret -1 as no limit whatsoever
5932 lt_cv_sys_max_cmd_len=-1;
5935 cygwin* | mingw* | cegcc*)
5936 # On Win9x/ME, this test blows up -- it succeeds, but takes
5937 # about 5 minutes as the teststring grows exponentially.
5938 # Worse, since 9x/ME are not pre-emptively multitasking,
5939 # you end up with a "frozen" computer, even though with patience
5940 # the test eventually succeeds (with a max line length of 256k).
5941 # Instead, let's just punt: use the minimum linelength reported by
5942 # all of the supported platforms: 8192 (on NT/2K/XP).
5943 lt_cv_sys_max_cmd_len=8192;
5947 # On MiNT this can take a long time and run out of memory.
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 # The test takes a long time on OS/2.
5978 lt_cv_sys_max_cmd_len=8192
5982 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5983 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5984 # nice to cause kernel panics so lets avoid the loop below.
5985 # First set a reasonable default.
5986 lt_cv_sys_max_cmd_len=16384
5988 if test -x /sbin/sysconfig; then
5989 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5990 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5995 lt_cv_sys_max_cmd_len=102400
5997 sysv5* | sco5v6* | sysv4.2uw2*)
5998 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5999 if test -n "$kargmax"; then
6000 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6002 lt_cv_sys_max_cmd_len=32768
6006 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6007 if test -n "$lt_cv_sys_max_cmd_len" && \
6008 test undefined != "$lt_cv_sys_max_cmd_len"; then
6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6012 # Make teststring a little bigger before we do anything with it.
6013 # a 1K string should be a reasonable start.
6014 for i in 1 2 3 4 5 6 7 8 ; do
6015 teststring=$teststring$teststring
6017 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6018 # If test is not a shell built-in, we'll probably end up computing a
6019 # maximum length that is only half of the actual maximum length, but
6021 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6022 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6023 test $i != 17 # 1/2 MB should be enough
6026 teststring=$teststring$teststring
6028 # Only check the string length outside the loop.
6029 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6031 # Add a significant safety factor because C++ compilers can tack on
6032 # massive amounts of additional arguments before passing them to the
6033 # linker. It appears as though 1/2 is a usable value.
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6041 if test -n $lt_cv_sys_max_cmd_len ; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6043 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6046 $as_echo "none" >&6; }
6048 max_cmd_len=$lt_cv_sys_max_cmd_len
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6060 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6061 # Try some XSI features
6064 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6066 && eval 'test $(( 1 + 1 )) -eq 2 \
6067 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6070 $as_echo "$xsi_shell" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6074 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6076 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6078 && lt_shell_append=yes
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6080 $as_echo "$lt_shell_append" >&6; }
6083 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6093 # test EBCDIC or ASCII
6094 case `echo X|tr X '\101'` in
6095 A) # ASCII based system
6096 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6097 lt_SP2NL='tr \040 \012'
6098 lt_NL2SP='tr \015\012 \040\040'
6100 *) # EBCDIC based system
6101 lt_SP2NL='tr \100 \n'
6102 lt_NL2SP='tr \r\n \100\100'
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6115 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6116 if ${lt_cv_to_host_file_cmd+:} false; then :
6117 $as_echo_n "(cached) " >&6
6122 *-*-mingw* ) # actually msys
6123 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6126 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6128 * ) # otherwise, assume *nix
6129 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6135 *-*-mingw* ) # actually msys
6136 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6139 lt_cv_to_host_file_cmd=func_convert_file_noop
6141 * ) # otherwise, assume *nix
6142 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6146 * ) # unhandled hosts (and "normal" native builds)
6147 lt_cv_to_host_file_cmd=func_convert_file_noop
6153 to_host_file_cmd=$lt_cv_to_host_file_cmd
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6155 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6162 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6163 if ${lt_cv_to_tool_file_cmd+:} false; then :
6164 $as_echo_n "(cached) " >&6
6166 #assume ordinary cross tools, or native build.
6167 lt_cv_to_tool_file_cmd=func_convert_file_noop
6171 *-*-mingw* ) # actually msys
6172 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6182 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6189 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6190 if ${lt_cv_ld_reload_flag+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 lt_cv_ld_reload_flag='-r'
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6196 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6197 reload_flag=$lt_cv_ld_reload_flag
6198 case $reload_flag in
6200 *) reload_flag=" $reload_flag" ;;
6202 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6204 cygwin* | mingw* | pw32* | cegcc*)
6205 if test "$GCC" != yes; then
6210 if test "$GCC" = yes; then
6211 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_OBJDUMP+:} false; then :
6232 $as_echo_n "(cached) " >&6
6234 if test -n "$OBJDUMP"; then
6235 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 OBJDUMP=$ac_cv_prog_OBJDUMP
6255 if test -n "$OBJDUMP"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6257 $as_echo "$OBJDUMP" >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6265 if test -z "$ac_cv_prog_OBJDUMP"; then
6266 ac_ct_OBJDUMP=$OBJDUMP
6267 # Extract the first word of "objdump", so it can be a program name with args.
6268 set dummy objdump; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 if test -n "$ac_ct_OBJDUMP"; then
6275 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6295 if test -n "$ac_ct_OBJDUMP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6297 $as_echo "$ac_ct_OBJDUMP" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6303 if test "x$ac_ct_OBJDUMP" = x; then
6306 case $cross_compiling:$ac_tool_warned in
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6312 OBJDUMP=$ac_ct_OBJDUMP
6315 OBJDUMP="$ac_cv_prog_OBJDUMP"
6318 test -z "$OBJDUMP" && OBJDUMP=objdump
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6329 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6330 if ${lt_cv_deplibs_check_method+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 lt_cv_file_magic_cmd='$MAGIC_CMD'
6334 lt_cv_file_magic_test_file=
6335 lt_cv_deplibs_check_method='unknown'
6336 # Need to set the preceding variable on all platforms that support
6337 # interlibrary dependencies.
6338 # 'none' -- dependencies not supported.
6339 # `unknown' -- same as none, but documents that we really don't know.
6340 # 'pass_all' -- all dependencies passed with no checks.
6341 # 'test_compile' -- check by making test program.
6342 # 'file_magic [[regex]]' -- check by looking for files in library path
6343 # which responds to the $file_magic_cmd with a given extended regex.
6344 # If you have `file' or equivalent on your system and you're not sure
6345 # whether `pass_all' will *always* work, you probably want this one.
6349 lt_cv_deplibs_check_method=pass_all
6353 lt_cv_deplibs_check_method=pass_all
6357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6358 lt_cv_file_magic_cmd='/usr/bin/file -L'
6359 lt_cv_file_magic_test_file=/shlib/libc.so
6363 # func_win32_libid is a shell function defined in ltmain.sh
6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6365 lt_cv_file_magic_cmd='func_win32_libid'
6369 # Base MSYS/MinGW do not provide the 'file' command needed by
6370 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6371 # unless we find 'file', for example because we are cross-compiling.
6372 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6373 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6375 lt_cv_file_magic_cmd='func_win32_libid'
6377 # Keep this pattern in sync with the one in func_win32_libid.
6378 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6379 lt_cv_file_magic_cmd='$OBJDUMP -f'
6384 # use the weaker test based on 'objdump'. See mingw*.
6385 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6386 lt_cv_file_magic_cmd='$OBJDUMP -f'
6389 darwin* | rhapsody*)
6390 lt_cv_deplibs_check_method=pass_all
6393 freebsd* | dragonfly*)
6394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6397 # Not sure whether the presence of OpenBSD here was a mistake.
6398 # Let's accept both of them until this is cleared up.
6399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6400 lt_cv_file_magic_cmd=/usr/bin/file
6401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6405 lt_cv_deplibs_check_method=pass_all
6410 lt_cv_deplibs_check_method=pass_all
6413 hpux10.20* | hpux11*)
6414 lt_cv_file_magic_cmd=/usr/bin/file
6417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6418 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6422 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6426 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6432 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6436 irix5* | irix6* | nonstopux*)
6438 *-32|*"-32 ") libmagic=32-bit;;
6439 *-n32|*"-n32 ") libmagic=N32;;
6440 *-64|*"-64 ") libmagic=64-bit;;
6441 *) libmagic=never-match;;
6443 lt_cv_deplibs_check_method=pass_all
6446 # This must be glibc/ELF.
6447 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6448 lt_cv_deplibs_check_method=pass_all
6451 netbsd* | netbsdelf*-gnu)
6452 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6461 lt_cv_file_magic_cmd=/usr/bin/file
6462 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6466 lt_cv_deplibs_check_method=pass_all
6470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6477 osf3* | osf4* | osf5*)
6478 lt_cv_deplibs_check_method=pass_all
6482 lt_cv_deplibs_check_method=pass_all
6486 lt_cv_deplibs_check_method=pass_all
6489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6490 lt_cv_deplibs_check_method=pass_all
6494 case $host_vendor in
6496 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]'
6497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6500 lt_cv_deplibs_check_method=pass_all
6503 lt_cv_file_magic_cmd='/bin/file'
6504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6507 lt_cv_file_magic_cmd='/bin/file'
6508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6509 lt_cv_file_magic_test_file=/lib/libc.so
6512 lt_cv_deplibs_check_method=pass_all
6515 lt_cv_deplibs_check_method=pass_all
6521 lt_cv_deplibs_check_method=pass_all
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6527 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6531 if test "$build" = "$host"; then
6534 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6537 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6543 file_magic_cmd=$lt_cv_file_magic_cmd
6544 deplibs_check_method=$lt_cv_deplibs_check_method
6545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_DLLTOOL+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$DLLTOOL"; then
6577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 DLLTOOL=$ac_cv_prog_DLLTOOL
6597 if test -n "$DLLTOOL"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6599 $as_echo "$DLLTOOL" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6607 if test -z "$ac_cv_prog_DLLTOOL"; then
6608 ac_ct_DLLTOOL=$DLLTOOL
6609 # Extract the first word of "dlltool", so it can be a program name with args.
6610 set dummy dlltool; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 if test -n "$ac_ct_DLLTOOL"; then
6617 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6637 if test -n "$ac_ct_DLLTOOL"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6639 $as_echo "$ac_ct_DLLTOOL" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6645 if test "x$ac_ct_DLLTOOL" = x; then
6648 case $cross_compiling:$ac_tool_warned in
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6654 DLLTOOL=$ac_ct_DLLTOOL
6657 DLLTOOL="$ac_cv_prog_DLLTOOL"
6660 test -z "$DLLTOOL" && DLLTOOL=dlltool
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6672 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6673 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 lt_cv_sharedlib_from_linklib_cmd='unknown'
6679 cygwin* | mingw* | pw32* | cegcc*)
6680 # two different shell functions defined in ltmain.sh
6681 # decide which to use based on capabilities of $DLLTOOL
6682 case `$DLLTOOL --help 2>&1` in
6683 *--identify-strict*)
6684 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6687 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6692 # fallback: assume linklib IS sharedlib
6693 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6699 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6700 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6701 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6709 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_AR+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$AR"; then
6720 ac_cv_prog_AR="$AR" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 if test -n "$AR"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6742 $as_echo "$AR" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6749 test -n "$AR" && break
6752 if test -z "$AR"; then
6756 # Extract the first word of "$ac_prog", so it can be a program name with args.
6757 set dummy $ac_prog; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test -n "$ac_ct_AR"; then
6764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_AR="$ac_prog"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784 if test -n "$ac_ct_AR"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6786 $as_echo "$ac_ct_AR" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6793 test -n "$ac_ct_AR" && break
6796 if test "x$ac_ct_AR" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6823 $as_echo_n "checking for archiver @FILE support... " >&6; }
6824 if ${lt_cv_ar_at_file+:} false; then :
6825 $as_echo_n "(cached) " >&6
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6839 if ac_fn_cxx_try_compile "$LINENO"; then :
6840 echo conftest.$ac_objext > conftest.lst
6841 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6843 (eval $lt_ar_try) 2>&5
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }
6847 if test "$ac_status" -eq 0; then
6848 # Ensure the archiver fails upon bogus file names.
6849 rm -f conftest.$ac_objext libconftest.a
6850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6851 (eval $lt_ar_try) 2>&5
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }
6855 if test "$ac_status" -ne 0; then
6859 rm -f conftest.* libconftest.a
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6866 $as_echo "$lt_cv_ar_at_file" >&6; }
6868 if test "x$lt_cv_ar_at_file" = xno; then
6871 archiver_list_spec=$lt_cv_ar_at_file
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}strip; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_STRIP+:} false; then :
6886 $as_echo_n "(cached) " >&6
6888 if test -n "$STRIP"; then
6889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 STRIP=$ac_cv_prog_STRIP
6909 if test -n "$STRIP"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6911 $as_echo "$STRIP" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6919 if test -z "$ac_cv_prog_STRIP"; then
6921 # Extract the first word of "strip", so it can be a program name with args.
6922 set dummy strip; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 if test -n "$ac_ct_STRIP"; then
6929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_STRIP="strip"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949 if test -n "$ac_ct_STRIP"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6951 $as_echo "$ac_ct_STRIP" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6957 if test "x$ac_ct_STRIP" = x; then
6960 case $cross_compiling:$ac_tool_warned in
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6969 STRIP="$ac_cv_prog_STRIP"
6972 test -z "$STRIP" && STRIP=:
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_RANLIB+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 if test -n "$RANLIB"; then
6988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 RANLIB=$ac_cv_prog_RANLIB
7008 if test -n "$RANLIB"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7010 $as_echo "$RANLIB" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7018 if test -z "$ac_cv_prog_RANLIB"; then
7019 ac_ct_RANLIB=$RANLIB
7020 # Extract the first word of "ranlib", so it can be a program name with args.
7021 set dummy ranlib; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 if test -n "$ac_ct_RANLIB"; then
7028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_ac_ct_RANLIB="ranlib"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7048 if test -n "$ac_ct_RANLIB"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7050 $as_echo "$ac_ct_RANLIB" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7056 if test "x$ac_ct_RANLIB" = x; then
7059 case $cross_compiling:$ac_tool_warned in
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063 ac_tool_warned=yes ;;
7065 RANLIB=$ac_ct_RANLIB
7068 RANLIB="$ac_cv_prog_RANLIB"
7071 test -z "$RANLIB" && RANLIB=:
7078 # Determine commands to create old-style static archives.
7079 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7080 old_postinstall_cmds='chmod 644 $oldlib'
7081 old_postuninstall_cmds=
7083 if test -n "$RANLIB"; then
7086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7092 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7097 lock_old_archive_extraction=yes ;;
7099 lock_old_archive_extraction=no ;;
7140 # If no C compiler was specified, use CC.
7143 # If no C compiler flags were specified, use CFLAGS.
7144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7146 # Allow CC to be a program name with arguments.
7150 # Check for command to grab the raw symbol name followed by C symbol from nm.
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7152 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7153 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7154 $as_echo_n "(cached) " >&6
7157 # These are sane defaults that work on at least a few old systems.
7158 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7160 # Character class describing NM global symbol codes.
7161 symcode='[BCDEGRST]'
7163 # Regexp to match symbols that can be accessed directly from C.
7164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7166 # Define system-specific variables.
7171 cygwin* | mingw* | pw32* | cegcc*)
7172 symcode='[ABCDGISTW]'
7175 if test "$host_cpu" = ia64; then
7176 symcode='[ABCDEGRST]'
7180 symcode='[BCDEGRST]'
7183 symcode='[BCDEGQRST]'
7194 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7202 # If we're using GNU nm, then use its standard symbol codes.
7203 case `$NM -V 2>&1` in
7204 *GNU* | *'with BFD'*)
7205 symcode='[ABCDGIRSTW]' ;;
7208 # Transform an extracted symbol line into a proper C declaration.
7209 # Some systems (esp. on ia64) link data and code symbols differently,
7210 # so use this general approach.
7211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7213 # Transform an extracted symbol line into symbol name and symbol address
7214 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7215 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7217 # Handle CRLF in mingw tool chain
7221 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7225 # Try without a prefix underscore, then with it.
7226 for ac_symprfx in "" "_"; do
7228 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7229 symxfrm="\\1 $ac_symprfx\\2 \\2"
7231 # Write the raw and C identifiers.
7232 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7233 # Fake it for dumpbin and say T for any non-static function
7234 # and D for any global variable.
7235 # Also find C++ and __fastcall symbols from MSVC++,
7236 # which start with @ or ?.
7237 lt_cv_sys_global_symbol_pipe="$AWK '"\
7238 " {last_section=section; section=\$ 3};"\
7239 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7240 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7241 " \$ 0!~/External *\|/{next};"\
7242 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7243 " {if(hide[section]) next};"\
7244 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7245 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7246 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7247 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7248 " ' prfx=^$ac_symprfx"
7250 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7252 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7254 # Check to see that the pipe works correctly.
7258 cat > conftest.$ac_ext <<_LT_EOF
7263 void nm_test_func(void);
7264 void nm_test_func(void){}
7268 int main(){nm_test_var='a';nm_test_func();return(0);}
7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7272 (eval $ac_compile) 2>&5
7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275 test $ac_status = 0; }; then
7276 # Now try to grab the symbols.
7278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7279 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; } && test -s "$nlist"; then
7283 # Try sorting and uniquifying the output.
7284 if sort "$nlist" | uniq > "$nlist"T; then
7285 mv -f "$nlist"T "$nlist"
7290 # Make sure that we snagged all the symbols we need.
7291 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7292 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7293 cat <<_LT_EOF > conftest.$ac_ext
7294 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7295 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7296 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7297 relocations are performed -- see ld's documentation on pseudo-relocs. */
7298 # define LT_DLSYM_CONST
7299 #elif defined(__osf__)
7300 /* This system does not cope well with relocations in const data. */
7301 # define LT_DLSYM_CONST
7303 # define LT_DLSYM_CONST const
7311 # Now generate the symbol file.
7312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7314 cat <<_LT_EOF >> conftest.$ac_ext
7316 /* The mapping between symbol names and symbols. */
7317 LT_DLSYM_CONST struct {
7321 lt__PROGRAM__LTX_preloaded_symbols[] =
7323 { "@PROGRAM@", (void *) 0 },
7325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326 cat <<\_LT_EOF >> conftest.$ac_ext
7330 /* This works around a problem in FreeBSD linker */
7331 #ifdef FREEBSD_WORKAROUND
7332 static const void *lt_preloaded_setup() {
7333 return lt__PROGRAM__LTX_preloaded_symbols;
7341 # Now try linking the two files.
7342 mv conftest.$ac_objext conftstm.$ac_objext
7343 lt_globsym_save_LIBS=$LIBS
7344 lt_globsym_save_CFLAGS=$CFLAGS
7345 LIBS="conftstm.$ac_objext"
7346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7348 (eval $ac_link) 2>&5
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7354 LIBS=$lt_globsym_save_LIBS
7355 CFLAGS=$lt_globsym_save_CFLAGS
7357 echo "cannot find nm_test_func in $nlist" >&5
7360 echo "cannot find nm_test_var in $nlist" >&5
7363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7366 echo "$progname: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 rm -rf conftest* conftst*
7371 # Do not use the global_symbol_pipe unless it works.
7372 if test "$pipe_works" = yes; then
7375 lt_cv_sys_global_symbol_pipe=
7381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382 lt_cv_sys_global_symbol_to_cdecl=
7384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386 $as_echo "failed" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389 $as_echo "ok" >&6; }
7392 # Response file support.
7393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7394 nm_file_list_spec='@'
7395 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7396 nm_file_list_spec='@'
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7426 $as_echo_n "checking for sysroot... " >&6; }
7428 # Check whether --with-sysroot was given.
7429 if test "${with_sysroot+set}" = set; then :
7430 withval=$with_sysroot;
7437 case ${with_sysroot} in #(
7439 if test "$GCC" = yes; then
7440 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7444 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7450 $as_echo "${with_sysroot}" >&6; }
7451 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7456 $as_echo "${lt_sysroot:-no}" >&6; }
7463 # Check whether --enable-libtool-lock was given.
7464 if test "${enable_libtool_lock+set}" = set; then :
7465 enableval=$enable_libtool_lock;
7468 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7470 # Some flags need to be propagated to the compiler or linker for good
7474 # Find out which ABI we are using.
7475 echo 'int i;' > conftest.$ac_ext
7476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477 (eval $ac_compile) 2>&5
7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }; then
7481 case `/usr/bin/file conftest.$ac_objext` in
7493 # Find out which ABI we are using.
7494 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 if test "$lt_cv_prog_gnu_ld" = yes; then
7501 case `/usr/bin/file conftest.$ac_objext` in
7503 LD="${LD-ld} -melf32bsmip"
7506 LD="${LD-ld} -melf32bmipn32"
7509 LD="${LD-ld} -melf64bmip"
7513 case `/usr/bin/file conftest.$ac_objext` in
7529 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7530 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7531 # Find out which ABI we are using.
7532 echo 'int i;' > conftest.$ac_ext
7533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7534 (eval $ac_compile) 2>&5
7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537 test $ac_status = 0; }; then
7538 case `/usr/bin/file conftest.o` in
7541 x86_64-*kfreebsd*-gnu)
7542 LD="${LD-ld} -m elf_i386_fbsd"
7545 case `/usr/bin/file conftest.o` in
7547 LD="${LD-ld} -m elf32_x86_64"
7550 LD="${LD-ld} -m elf_i386"
7555 LD="${LD-ld} -m elf32lppclinux"
7558 LD="${LD-ld} -m elf32ppclinux"
7561 LD="${LD-ld} -m elf_s390"
7564 LD="${LD-ld} -m elf32_sparc"
7570 x86_64-*kfreebsd*-gnu)
7571 LD="${LD-ld} -m elf_x86_64_fbsd"
7574 LD="${LD-ld} -m elf_x86_64"
7577 LD="${LD-ld} -m elf64lppc"
7580 LD="${LD-ld} -m elf64ppc"
7582 s390*-*linux*|s390*-*tpf*)
7583 LD="${LD-ld} -m elf64_s390"
7586 LD="${LD-ld} -m elf64_sparc"
7596 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7597 SAVE_CFLAGS="$CFLAGS"
7598 CFLAGS="$CFLAGS -belf"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7600 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7601 if ${lt_cv_cc_needs_belf+:} false; then :
7602 $as_echo_n "(cached) " >&6
7605 ac_cpp='$CPP $CPPFLAGS'
7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7621 if ac_fn_c_try_link "$LINENO"; then :
7622 lt_cv_cc_needs_belf=yes
7624 lt_cv_cc_needs_belf=no
7626 rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
7629 ac_cpp='$CPP $CPPFLAGS'
7630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7636 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7639 CFLAGS="$SAVE_CFLAGS"
7643 # Find out which ABI we are using.
7644 echo 'int i;' > conftest.$ac_ext
7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7646 (eval $ac_compile) 2>&5
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 case `/usr/bin/file conftest.o` in
7652 case $lt_cv_prog_gnu_ld in
7656 LD="${LD-ld} -m elf_x86_64"
7659 LD="${LD-ld} -m elf64_sparc"
7662 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7663 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7668 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7680 need_locks="$enable_libtool_lock"
7682 if test -n "$ac_tool_prefix"; then
7683 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7684 set dummy ${ac_tool_prefix}mt; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 if test -n "$MANIFEST_TOOL"; then
7691 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7711 if test -n "$MANIFEST_TOOL"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7713 $as_echo "$MANIFEST_TOOL" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7721 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7722 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7723 # Extract the first word of "mt", so it can be a program name with args.
7724 set dummy mt; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7728 $as_echo_n "(cached) " >&6
7730 if test -n "$ac_ct_MANIFEST_TOOL"; then
7731 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7751 if test -n "$ac_ct_MANIFEST_TOOL"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7753 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7759 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7762 case $cross_compiling:$ac_tool_warned in
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766 ac_tool_warned=yes ;;
7768 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7771 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7774 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7776 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7777 if ${lt_cv_path_mainfest_tool+:} false; then :
7778 $as_echo_n "(cached) " >&6
7780 lt_cv_path_mainfest_tool=no
7781 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7782 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7783 cat conftest.err >&5
7784 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7785 lt_cv_path_mainfest_tool=yes
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7790 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7791 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7801 rhapsody* | darwin*)
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7808 $as_echo_n "(cached) " >&6
7810 if test -n "$DSYMUTIL"; then
7811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7831 if test -n "$DSYMUTIL"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7833 $as_echo "$DSYMUTIL" >&6; }
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7841 if test -z "$ac_cv_prog_DSYMUTIL"; then
7842 ac_ct_DSYMUTIL=$DSYMUTIL
7843 # Extract the first word of "dsymutil", so it can be a program name with args.
7844 set dummy dsymutil; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7848 $as_echo_n "(cached) " >&6
7850 if test -n "$ac_ct_DSYMUTIL"; then
7851 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7871 if test -n "$ac_ct_DSYMUTIL"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7873 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7879 if test "x$ac_ct_DSYMUTIL" = x; then
7882 case $cross_compiling:$ac_tool_warned in
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886 ac_tool_warned=yes ;;
7888 DSYMUTIL=$ac_ct_DSYMUTIL
7891 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_NMEDIT+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 if test -n "$NMEDIT"; then
7903 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 NMEDIT=$ac_cv_prog_NMEDIT
7923 if test -n "$NMEDIT"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7925 $as_echo "$NMEDIT" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7933 if test -z "$ac_cv_prog_NMEDIT"; then
7934 ac_ct_NMEDIT=$NMEDIT
7935 # Extract the first word of "nmedit", so it can be a program name with args.
7936 set dummy nmedit; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 if test -n "$ac_ct_NMEDIT"; then
7943 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7963 if test -n "$ac_ct_NMEDIT"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7965 $as_echo "$ac_ct_NMEDIT" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7971 if test "x$ac_ct_NMEDIT" = x; then
7974 case $cross_compiling:$ac_tool_warned in
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7980 NMEDIT=$ac_ct_NMEDIT
7983 NMEDIT="$ac_cv_prog_NMEDIT"
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_prog_LIPO+:} false; then :
7992 $as_echo_n "(cached) " >&6
7994 if test -n "$LIPO"; then
7995 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 LIPO=$ac_cv_prog_LIPO
8015 if test -n "$LIPO"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8017 $as_echo "$LIPO" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8025 if test -z "$ac_cv_prog_LIPO"; then
8027 # Extract the first word of "lipo", so it can be a program name with args.
8028 set dummy lipo; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8032 $as_echo_n "(cached) " >&6
8034 if test -n "$ac_ct_LIPO"; then
8035 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_ac_ct_LIPO="lipo"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8055 if test -n "$ac_ct_LIPO"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8057 $as_echo "$ac_ct_LIPO" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8063 if test "x$ac_ct_LIPO" = x; then
8066 case $cross_compiling:$ac_tool_warned in
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8070 ac_tool_warned=yes ;;
8075 LIPO="$ac_cv_prog_LIPO"
8078 if test -n "$ac_tool_prefix"; then
8079 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}otool; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_prog_OTOOL+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 if test -n "$OTOOL"; then
8087 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 OTOOL=$ac_cv_prog_OTOOL
8107 if test -n "$OTOOL"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8109 $as_echo "$OTOOL" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8117 if test -z "$ac_cv_prog_OTOOL"; then
8119 # Extract the first word of "otool", so it can be a program name with args.
8120 set dummy otool; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8124 $as_echo_n "(cached) " >&6
8126 if test -n "$ac_ct_OTOOL"; then
8127 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_ac_ct_OTOOL="otool"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8147 if test -n "$ac_ct_OTOOL"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8149 $as_echo "$ac_ct_OTOOL" >&6; }
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8155 if test "x$ac_ct_OTOOL" = x; then
8158 case $cross_compiling:$ac_tool_warned in
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8167 OTOOL="$ac_cv_prog_OTOOL"
8170 if test -n "$ac_tool_prefix"; then
8171 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8172 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_OTOOL64+:} false; then :
8176 $as_echo_n "(cached) " >&6
8178 if test -n "$OTOOL64"; then
8179 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 OTOOL64=$ac_cv_prog_OTOOL64
8199 if test -n "$OTOOL64"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8201 $as_echo "$OTOOL64" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8209 if test -z "$ac_cv_prog_OTOOL64"; then
8210 ac_ct_OTOOL64=$OTOOL64
8211 # Extract the first word of "otool64", so it can be a program name with args.
8212 set dummy otool64; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8216 $as_echo_n "(cached) " >&6
8218 if test -n "$ac_ct_OTOOL64"; then
8219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_ac_ct_OTOOL64="otool64"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8239 if test -n "$ac_ct_OTOOL64"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8241 $as_echo "$ac_ct_OTOOL64" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8247 if test "x$ac_ct_OTOOL64" = x; then
8250 case $cross_compiling:$ac_tool_warned in
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8254 ac_tool_warned=yes ;;
8256 OTOOL64=$ac_ct_OTOOL64
8259 OTOOL64="$ac_cv_prog_OTOOL64"
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8289 $as_echo_n "checking for -single_module linker flag... " >&6; }
8290 if ${lt_cv_apple_cc_single_mod+:} false; then :
8291 $as_echo_n "(cached) " >&6
8293 lt_cv_apple_cc_single_mod=no
8294 if test -z "${LT_MULTI_MODULE}"; then
8295 # By default we will add the -single_module flag. You can override
8296 # by either setting the environment variable LT_MULTI_MODULE
8297 # non-empty at configure time, or by adding -multi_module to the
8299 rm -rf libconftest.dylib*
8300 echo "int foo(void){return 1;}" > conftest.c
8301 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8302 -dynamiclib -Wl,-single_module conftest.c" >&5
8303 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8304 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8306 # If there is a non-empty error log, and "single_module"
8307 # appears in it, assume the flag caused a linker warning
8308 if test -s conftest.err && $GREP single_module conftest.err; then
8309 cat conftest.err >&5
8310 # Otherwise, if the output was created with a 0 exit code from
8311 # the compiler, it worked.
8312 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8313 lt_cv_apple_cc_single_mod=yes
8315 cat conftest.err >&5
8317 rm -rf libconftest.dylib*
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8322 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8325 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8326 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 lt_cv_ld_exported_symbols_list=no
8330 save_LDFLAGS=$LDFLAGS
8331 echo "_main" > conftest.sym
8332 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8344 if ac_fn_c_try_link "$LINENO"; then :
8345 lt_cv_ld_exported_symbols_list=yes
8347 lt_cv_ld_exported_symbols_list=no
8349 rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
8351 LDFLAGS="$save_LDFLAGS"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8355 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8358 $as_echo_n "checking for -force_load linker flag... " >&6; }
8359 if ${lt_cv_ld_force_load+:} false; then :
8360 $as_echo_n "(cached) " >&6
8362 lt_cv_ld_force_load=no
8363 cat > conftest.c << _LT_EOF
8364 int forced_loaded() { return 2;}
8366 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8367 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8368 echo "$AR cru libconftest.a conftest.o" >&5
8369 $AR cru libconftest.a conftest.o 2>&5
8370 echo "$RANLIB libconftest.a" >&5
8371 $RANLIB libconftest.a 2>&5
8372 cat > conftest.c << _LT_EOF
8373 int main() { return 0;}
8375 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8376 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8378 if test -s conftest.err && $GREP force_load conftest.err; then
8379 cat conftest.err >&5
8380 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8381 lt_cv_ld_force_load=yes
8383 cat conftest.err >&5
8385 rm -f conftest.err libconftest.a conftest conftest.c
8386 rm -rf conftest.dSYM
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8390 $as_echo "$lt_cv_ld_force_load" >&6; }
8392 rhapsody* | darwin1.[012])
8393 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8395 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8396 darwin*) # darwin 5.x on
8397 # if running on 10.5 or later, the deployment target defaults
8398 # to the OS version, if on x86, and 10.4, the deployment
8399 # target defaults to 10.4. Don't you love it?
8400 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8401 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8402 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8404 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8410 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8411 _lt_dar_single_mod='$single_module'
8413 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8414 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8416 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8418 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8419 _lt_dsymutil='~$DSYMUTIL $lib || :'
8426 for ac_header in dlfcn.h
8428 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8430 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8431 cat >>confdefs.h <<_ACEOF
8432 #define HAVE_DLFCN_H 1
8441 func_stripname_cnf ()
8444 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8445 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8447 } # func_stripname_cnf
8463 # Check whether --enable-shared was given.
8464 if test "${enable_shared+set}" = set; then :
8465 enableval=$enable_shared; p=${PACKAGE-default}
8467 yes) enable_shared=yes ;;
8468 no) enable_shared=no ;;
8471 # Look at the argument we got. We use all the common list separators.
8472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8473 for pkg in $enableval; do
8475 if test "X$pkg" = "X$p"; then
8494 # Check whether --enable-static was given.
8495 if test "${enable_static+set}" = set; then :
8496 enableval=$enable_static; p=${PACKAGE-default}
8498 yes) enable_static=yes ;;
8499 no) enable_static=no ;;
8502 # Look at the argument we got. We use all the common list separators.
8503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8504 for pkg in $enableval; do
8506 if test "X$pkg" = "X$p"; then
8526 # Check whether --with-pic was given.
8527 if test "${with_pic+set}" = set; then :
8528 withval=$with_pic; lt_p=${PACKAGE-default}
8530 yes|no) pic_mode=$withval ;;
8533 # Look at the argument we got. We use all the common list separators.
8534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8535 for lt_pkg in $withval; do
8537 if test "X$lt_pkg" = "X$lt_p"; then
8549 test -z "$pic_mode" && pic_mode=default
8557 # Check whether --enable-fast-install was given.
8558 if test "${enable_fast_install+set}" = set; then :
8559 enableval=$enable_fast_install; p=${PACKAGE-default}
8561 yes) enable_fast_install=yes ;;
8562 no) enable_fast_install=no ;;
8564 enable_fast_install=no
8565 # Look at the argument we got. We use all the common list separators.
8566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8567 for pkg in $enableval; do
8569 if test "X$pkg" = "X$p"; then
8570 enable_fast_install=yes
8577 enable_fast_install=yes
8590 # This can be used to rebuild libtool when needed
8591 LIBTOOL_DEPS="$ltmain"
8593 # Always use our own libtool.
8594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8625 test -z "$LN_S" && LN_S="ln -s"
8640 if test -n "${ZSH_VERSION+set}" ; then
8641 setopt NO_GLOB_SUBST
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8645 $as_echo_n "checking for objdir... " >&6; }
8646 if ${lt_cv_objdir+:} false; then :
8647 $as_echo_n "(cached) " >&6
8649 rm -f .libs 2>/dev/null
8650 mkdir .libs 2>/dev/null
8651 if test -d .libs; then
8654 # MS-DOS does not allow filenames that begin with a dot.
8657 rmdir .libs 2>/dev/null
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8660 $as_echo "$lt_cv_objdir" >&6; }
8661 objdir=$lt_cv_objdir
8667 cat >>confdefs.h <<_ACEOF
8668 #define LT_OBJDIR "$lt_cv_objdir/"
8676 # AIX sometimes has problems with the GCC collect2 program. For some
8677 # reason, if we set the COLLECT_NAMES environment variable, the problems
8678 # vanish in a puff of smoke.
8679 if test "X${COLLECT_NAMES+set}" != Xset; then
8681 export COLLECT_NAMES
8688 can_build_shared=yes
8690 # All known linkers require a `.a' archive for static linking (except MSVC,
8691 # which needs '.lib').
8694 with_gnu_ld="$lt_cv_prog_gnu_ld"
8697 old_CFLAGS="$CFLAGS"
8699 # Set sane defaults for various variables
8700 test -z "$CC" && CC=cc
8701 test -z "$LTCC" && LTCC=$CC
8702 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8703 test -z "$LD" && LD=ld
8704 test -z "$ac_objext" && ac_objext=o
8706 for cc_temp in $compiler""; do
8708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8714 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8717 # Only perform the check for file, if the check method requires it
8718 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8719 case $deplibs_check_method in
8721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8723 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8724 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8725 $as_echo_n "(cached) " >&6
8729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8732 lt_save_MAGIC_CMD="$MAGIC_CMD"
8733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8735 for ac_dir in $ac_dummy; do
8737 test -z "$ac_dir" && ac_dir=.
8738 if test -f $ac_dir/${ac_tool_prefix}file; then
8739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8740 if test -n "$file_magic_test_file"; then
8741 case $deplibs_check_method in
8743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8746 $EGREP "$file_magic_regex" > /dev/null; then
8751 *** Warning: the command libtool uses to detect shared libraries,
8752 *** $file_magic_cmd, produces output that libtool cannot recognize.
8753 *** The result is that libtool may fail to recognize shared libraries
8754 *** as such. This will affect the creation of libtool libraries that
8755 *** depend on shared libraries, but programs linked with such libtool
8756 *** libraries will work regardless of this problem. Nevertheless, you
8757 *** may want to report the problem to your system manager and/or to
8758 *** bug-libtool@gnu.org
8768 MAGIC_CMD="$lt_save_MAGIC_CMD"
8773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8774 if test -n "$MAGIC_CMD"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8776 $as_echo "$MAGIC_CMD" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8786 if test -z "$lt_cv_path_MAGIC_CMD"; then
8787 if test -n "$ac_tool_prefix"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8789 $as_echo_n "checking for file... " >&6; }
8790 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8791 $as_echo_n "(cached) " >&6
8795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8798 lt_save_MAGIC_CMD="$MAGIC_CMD"
8799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8801 for ac_dir in $ac_dummy; do
8803 test -z "$ac_dir" && ac_dir=.
8804 if test -f $ac_dir/file; then
8805 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8806 if test -n "$file_magic_test_file"; then
8807 case $deplibs_check_method in
8809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8812 $EGREP "$file_magic_regex" > /dev/null; then
8817 *** Warning: the command libtool uses to detect shared libraries,
8818 *** $file_magic_cmd, produces output that libtool cannot recognize.
8819 *** The result is that libtool may fail to recognize shared libraries
8820 *** as such. This will affect the creation of libtool libraries that
8821 *** depend on shared libraries, but programs linked with such libtool
8822 *** libraries will work regardless of this problem. Nevertheless, you
8823 *** may want to report the problem to your system manager and/or to
8824 *** bug-libtool@gnu.org
8834 MAGIC_CMD="$lt_save_MAGIC_CMD"
8839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8840 if test -n "$MAGIC_CMD"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8842 $as_echo "$MAGIC_CMD" >&6; }
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8858 # Use C for the default configuration in the libtool script
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868 # Source file extension for C test sources.
8871 # Object file extension for compiled C test sources.
8875 # Code to be used in simple compile tests
8876 lt_simple_compile_test_code="int some_variable = 0;"
8878 # Code to be used in simple link tests
8879 lt_simple_link_test_code='int main(){return(0);}'
8887 # If no C compiler was specified, use CC.
8890 # If no C compiler flags were specified, use CFLAGS.
8891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8893 # Allow CC to be a program name with arguments.
8896 # Save the default compiler, since it gets overwritten when the other
8897 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8898 compiler_DEFAULT=$CC
8900 # save warnings/boilerplate of simple test code
8901 ac_outfile=conftest.$ac_objext
8902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8904 _lt_compiler_boilerplate=`cat conftest.err`
8907 ac_outfile=conftest.$ac_objext
8908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8910 _lt_linker_boilerplate=`cat conftest.err`
8915 ## There is no encapsulation within the following macros, do not change
8916 ## the running order or otherwise move them around unless you know exactly
8917 ## what you are doing...
8918 if test -n "$compiler"; then
8920 lt_prog_compiler_no_builtin_flag=
8922 if test "$GCC" = yes; then
8923 case $cc_basename in
8925 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8927 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8931 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8932 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8933 $as_echo_n "(cached) " >&6
8935 lt_cv_prog_compiler_rtti_exceptions=no
8936 ac_outfile=conftest.$ac_objext
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938 lt_compiler_flag="-fno-rtti -fno-exceptions"
8939 # Insert the option either (1) after the last *FLAGS variable, or
8940 # (2) before a word containing "conftest.", or (3) at the end.
8941 # Note that $ac_compile itself does not contain backslashes and begins
8942 # with a dollar sign (not a hyphen), so the echo should work correctly.
8943 # The option is referenced via a variable to avoid confusing sed.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949 (eval "$lt_compile" 2>conftest.err)
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 if (exit $ac_status) && test -s "$ac_outfile"; then
8954 # The compiler can only warn and ignore the option if not recognized
8955 # So say no if there are warnings other than the usual output.
8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler_rtti_exceptions=yes
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8966 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8968 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8981 lt_prog_compiler_wl=
8982 lt_prog_compiler_pic=
8983 lt_prog_compiler_static=
8986 if test "$GCC" = yes; then
8987 lt_prog_compiler_wl='-Wl,'
8988 lt_prog_compiler_static='-static'
8992 # All AIX code is PIC.
8993 if test "$host_cpu" = ia64; then
8994 # AIX 5 now supports IA64 processor
8995 lt_prog_compiler_static='-Bstatic'
9002 # see comment about AmigaOS4 .so support
9003 lt_prog_compiler_pic='-fPIC'
9006 # FIXME: we need at least 68020 code to build shared libraries, but
9007 # adding the `-m68020' flag to GCC prevents building anything better,
9009 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9015 # PIC is the default for these OSes.
9018 mingw* | cygwin* | pw32* | os2* | cegcc*)
9019 # This hack is so that the source file can tell whether it is being
9020 # built for inclusion in a dll (and should export symbols for example).
9021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9022 # (--disable-auto-import) libraries
9023 lt_prog_compiler_pic='-DDLL_EXPORT'
9026 darwin* | rhapsody*)
9027 # PIC is the default on this platform
9028 # Common symbols not allowed in MH_DYLIB files
9029 lt_prog_compiler_pic='-fno-common'
9033 # PIC is the default for Haiku.
9034 # The "-static" flag exists, but is broken.
9035 lt_prog_compiler_static=
9039 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9040 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9041 # sets the default TLS model and affects inlining.
9047 lt_prog_compiler_pic='-fPIC'
9053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9054 # Instead, we relocate shared libraries at runtime.
9058 # Just because we use GCC doesn't mean we suddenly get shared libraries
9059 # on systems that don't support them.
9060 lt_prog_compiler_can_build_shared=no
9065 # QNX uses GNU C++, but need to define -shared option too, otherwise
9067 lt_prog_compiler_pic='-fPIC -shared'
9071 if test -d /usr/nec; then
9072 lt_prog_compiler_pic=-Kconform_pic
9077 lt_prog_compiler_pic='-fPIC'
9081 case $cc_basename in
9082 nvcc*) # Cuda Compiler Driver 2.2
9083 lt_prog_compiler_wl='-Xlinker '
9084 if test -n "$lt_prog_compiler_pic"; then
9085 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9090 # PORTME Check for flag to pass linker flags through the system compiler.
9093 lt_prog_compiler_wl='-Wl,'
9094 if test "$host_cpu" = ia64; then
9095 # AIX 5 now supports IA64 processor
9096 lt_prog_compiler_static='-Bstatic'
9098 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9102 mingw* | cygwin* | pw32* | os2* | cegcc*)
9103 # This hack is so that the source file can tell whether it is being
9104 # built for inclusion in a dll (and should export symbols for example).
9105 lt_prog_compiler_pic='-DDLL_EXPORT'
9108 hpux9* | hpux10* | hpux11*)
9109 lt_prog_compiler_wl='-Wl,'
9110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9117 lt_prog_compiler_pic='+Z'
9120 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9121 lt_prog_compiler_static='${wl}-a ${wl}archive'
9124 irix5* | irix6* | nonstopux*)
9125 lt_prog_compiler_wl='-Wl,'
9126 # PIC (with -KPIC) is the default.
9127 lt_prog_compiler_static='-non_shared'
9130 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9131 case $cc_basename in
9132 # old Intel for x86_64 which still supported -KPIC.
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-KPIC'
9136 lt_prog_compiler_static='-static'
9138 # icc used to be incompatible with GCC.
9139 # ICC 10 doesn't accept -KPIC any more.
9141 lt_prog_compiler_wl='-Wl,'
9142 lt_prog_compiler_pic='-fPIC'
9143 lt_prog_compiler_static='-static'
9145 # Lahey Fortran 8.1.
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='--shared'
9149 lt_prog_compiler_static='--static'
9152 # NAG Fortran compiler
9153 lt_prog_compiler_wl='-Wl,-Wl,,'
9154 lt_prog_compiler_pic='-PIC'
9155 lt_prog_compiler_static='-Bstatic'
9157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9158 # Portland Group compilers (*not* the Pentium gcc compiler,
9159 # which looks to be a dead project)
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-fpic'
9162 lt_prog_compiler_static='-Bstatic'
9165 lt_prog_compiler_wl='-Wl,'
9166 # All Alpha code is PIC.
9167 lt_prog_compiler_static='-non_shared'
9169 xl* | bgxl* | bgf* | mpixl*)
9170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9171 lt_prog_compiler_wl='-Wl,'
9172 lt_prog_compiler_pic='-qpic'
9173 lt_prog_compiler_static='-qstaticlink'
9176 case `$CC -V 2>&1 | sed 5q` in
9177 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9179 lt_prog_compiler_pic='-KPIC'
9180 lt_prog_compiler_static='-Bstatic'
9181 lt_prog_compiler_wl=''
9183 *Sun\ F* | *Sun*Fortran*)
9184 lt_prog_compiler_pic='-KPIC'
9185 lt_prog_compiler_static='-Bstatic'
9186 lt_prog_compiler_wl='-Qoption ld '
9190 lt_prog_compiler_pic='-KPIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 lt_prog_compiler_wl='-Wl,'
9194 *Intel*\ [CF]*Compiler*)
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='-fPIC'
9197 lt_prog_compiler_static='-static'
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-fpic'
9202 lt_prog_compiler_static='-Bstatic'
9210 lt_prog_compiler_pic='-KPIC'
9211 lt_prog_compiler_static='-Bstatic'
9215 # QNX uses GNU C++, but need to define -shared option too, otherwise
9217 lt_prog_compiler_pic='-fPIC -shared'
9220 osf3* | osf4* | osf5*)
9221 lt_prog_compiler_wl='-Wl,'
9222 # All OSF/1 code is PIC.
9223 lt_prog_compiler_static='-non_shared'
9227 lt_prog_compiler_static='-non_shared'
9231 lt_prog_compiler_pic='-KPIC'
9232 lt_prog_compiler_static='-Bstatic'
9233 case $cc_basename in
9234 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9235 lt_prog_compiler_wl='-Qoption ld ';;
9237 lt_prog_compiler_wl='-Wl,';;
9242 lt_prog_compiler_wl='-Qoption ld '
9243 lt_prog_compiler_pic='-PIC'
9244 lt_prog_compiler_static='-Bstatic'
9247 sysv4 | sysv4.2uw2* | sysv4.3*)
9248 lt_prog_compiler_wl='-Wl,'
9249 lt_prog_compiler_pic='-KPIC'
9250 lt_prog_compiler_static='-Bstatic'
9254 if test -d /usr/nec ;then
9255 lt_prog_compiler_pic='-Kconform_pic'
9256 lt_prog_compiler_static='-Bstatic'
9260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-KPIC'
9263 lt_prog_compiler_static='-Bstatic'
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_can_build_shared=no
9272 lt_prog_compiler_pic='-pic'
9273 lt_prog_compiler_static='-Bstatic'
9277 lt_prog_compiler_can_build_shared=no
9283 # For platforms which do not support PIC, -DPIC is meaningless:
9285 lt_prog_compiler_pic=
9288 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9293 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9294 if ${lt_cv_prog_compiler_pic+:} false; then :
9295 $as_echo_n "(cached) " >&6
9297 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9300 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9301 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9304 # Check to make sure the PIC flag actually works.
9306 if test -n "$lt_prog_compiler_pic"; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9309 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9310 $as_echo_n "(cached) " >&6
9312 lt_cv_prog_compiler_pic_works=no
9313 ac_outfile=conftest.$ac_objext
9314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9316 # Insert the option either (1) after the last *FLAGS variable, or
9317 # (2) before a word containing "conftest.", or (3) at the end.
9318 # Note that $ac_compile itself does not contain backslashes and begins
9319 # with a dollar sign (not a hyphen), so the echo should work correctly.
9320 # The option is referenced via a variable to avoid confusing sed.
9321 lt_compile=`echo "$ac_compile" | $SED \
9322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324 -e 's:$: $lt_compiler_flag:'`
9325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9326 (eval "$lt_compile" 2>conftest.err)
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 if (exit $ac_status) && test -s "$ac_outfile"; then
9331 # The compiler can only warn and ignore the option if not recognized
9332 # So say no if there are warnings other than the usual output.
9333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9336 lt_cv_prog_compiler_pic_works=yes
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9343 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9345 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9346 case $lt_prog_compiler_pic in
9348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9351 lt_prog_compiler_pic=
9352 lt_prog_compiler_can_build_shared=no
9368 # Check to make sure the static flag actually works.
9370 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9372 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9373 if ${lt_cv_prog_compiler_static_works+:} false; then :
9374 $as_echo_n "(cached) " >&6
9376 lt_cv_prog_compiler_static_works=no
9377 save_LDFLAGS="$LDFLAGS"
9378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9381 # The linker can only warn and ignore the option if not recognized
9382 # So say no if there are warnings
9383 if test -s conftest.err; then
9384 # Append any errors to the config.log.
9385 cat conftest.err 1>&5
9386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388 if diff conftest.exp conftest.er2 >/dev/null; then
9389 lt_cv_prog_compiler_static_works=yes
9392 lt_cv_prog_compiler_static_works=yes
9396 LDFLAGS="$save_LDFLAGS"
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9400 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9402 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9405 lt_prog_compiler_static=
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9416 if ${lt_cv_prog_compiler_c_o+:} false; then :
9417 $as_echo_n "(cached) " >&6
9419 lt_cv_prog_compiler_c_o=no
9420 $RM -r conftest 2>/dev/null
9424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426 lt_compiler_flag="-o out/conftest2.$ac_objext"
9427 # Insert the option either (1) after the last *FLAGS variable, or
9428 # (2) before a word containing "conftest.", or (3) at the end.
9429 # Note that $ac_compile itself does not contain backslashes and begins
9430 # with a dollar sign (not a hyphen), so the echo should work correctly.
9431 lt_compile=`echo "$ac_compile" | $SED \
9432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434 -e 's:$: $lt_compiler_flag:'`
9435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9436 (eval "$lt_compile" 2>out/conftest.err)
9438 cat out/conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9442 # The compiler can only warn and ignore the option if not recognized
9443 # So say no if there are warnings
9444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9447 lt_cv_prog_compiler_c_o=yes
9452 # SGI C++ compiler will create directory out/ii_files/ for
9453 # template instantiation
9454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9455 $RM out/* && rmdir out
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9462 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9470 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9471 if ${lt_cv_prog_compiler_c_o+:} false; then :
9472 $as_echo_n "(cached) " >&6
9474 lt_cv_prog_compiler_c_o=no
9475 $RM -r conftest 2>/dev/null
9479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481 lt_compiler_flag="-o out/conftest2.$ac_objext"
9482 # Insert the option either (1) after the last *FLAGS variable, or
9483 # (2) before a word containing "conftest.", or (3) at the end.
9484 # Note that $ac_compile itself does not contain backslashes and begins
9485 # with a dollar sign (not a hyphen), so the echo should work correctly.
9486 lt_compile=`echo "$ac_compile" | $SED \
9487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9489 -e 's:$: $lt_compiler_flag:'`
9490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9491 (eval "$lt_compile" 2>out/conftest.err)
9493 cat out/conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9497 # The compiler can only warn and ignore the option if not recognized
9498 # So say no if there are warnings
9499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9502 lt_cv_prog_compiler_c_o=yes
9507 # SGI C++ compiler will create directory out/ii_files/ for
9508 # template instantiation
9509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9510 $RM out/* && rmdir out
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9517 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9522 hard_links="nottested"
9523 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9524 # do not overwrite the value of need_locks provided by the user
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9526 $as_echo_n "checking if we can lock with hard links... " >&6; }
9529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9531 ln conftest.a conftest.b 2>&5 || hard_links=no
9532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9534 $as_echo "$hard_links" >&6; }
9535 if test "$hard_links" = no; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9537 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9550 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9553 allow_undefined_flag=
9554 always_export_symbols=no
9556 archive_expsym_cmds=
9557 compiler_needs_object=no
9558 enable_shared_with_static_runtimes=no
9559 export_dynamic_flag_spec=
9560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9561 hardcode_automatic=no
9563 hardcode_direct_absolute=no
9564 hardcode_libdir_flag_spec=
9565 hardcode_libdir_separator=
9567 hardcode_shlibpath_var=unsupported
9569 link_all_deplibs=unknown
9572 old_archive_from_new_cmds=
9573 old_archive_from_expsyms_cmds=
9574 thread_safe_flag_spec=
9575 whole_archive_flag_spec=
9576 # include_expsyms should be a list of space-separated symbols to be *always*
9577 # included in the symbol list
9579 # exclude_expsyms can be an extended regexp of symbols to exclude
9580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9582 # as well as any symbol that contains `d'.
9583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9585 # platforms (ab)use it in PIC code, but their linkers get confused if
9586 # the symbol is explicitly referenced. Since portable code cannot
9587 # rely on this symbol name, it's probably fine to never include it in
9588 # preloaded symbol tables.
9589 # Exclude shared library initialization/finalization symbols.
9590 extract_expsyms_cmds=
9593 cygwin* | mingw* | pw32* | cegcc*)
9594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9595 # When not using gcc, we currently assume that we are using
9596 # Microsoft Visual C++.
9597 if test "$GCC" != yes; then
9602 # we just hope/assume this is gcc and not c89 (= MSVC++)
9608 linux* | k*bsd*-gnu | gnu*)
9615 # On some targets, GNU ld is compatible enough with the native linker
9616 # that we're better off using the native interface for both.
9617 lt_use_gnu_ld_interface=no
9618 if test "$with_gnu_ld" = yes; then
9621 # The AIX port of GNU ld has always aspired to compatibility
9622 # with the native linker. However, as the warning in the GNU ld
9623 # block says, versions before 2.19.5* couldn't really create working
9624 # shared libraries, regardless of the interface used.
9625 case `$LD -v 2>&1` in
9626 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9627 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9628 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9630 lt_use_gnu_ld_interface=yes
9635 lt_use_gnu_ld_interface=yes
9640 if test "$lt_use_gnu_ld_interface" = yes; then
9641 # If archive_cmds runs LD, not CC, wlarc should be empty
9644 # Set some defaults for GNU ld with shared library support. These
9645 # are reset later if shared libraries are not supported. Putting them
9646 # here allows them to be overridden if necessary.
9647 runpath_var=LD_RUN_PATH
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 export_dynamic_flag_spec='${wl}--export-dynamic'
9650 # ancient GNU ld didn't support --whole-archive et. al.
9651 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9652 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9654 whole_archive_flag_spec=
9656 supports_anon_versioning=no
9657 case `$LD -v 2>&1` in
9658 *GNU\ gold*) supports_anon_versioning=yes ;;
9659 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9660 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9661 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9662 *\ 2.11.*) ;; # other 2.11 versions
9663 *) supports_anon_versioning=yes ;;
9666 # See if GNU ld supports shared libraries.
9669 # On AIX/PPC, the GNU linker is very broken
9670 if test "$host_cpu" != ia64; then
9674 *** Warning: the GNU linker, at least up to release 2.19, is reported
9675 *** to be unable to reliably create shared libraries on AIX.
9676 *** Therefore, libtool is disabling shared libraries support. If you
9677 *** really care for shared libraries, you may want to install binutils
9678 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9679 *** You will then need to restart the configuration process.
9688 # see comment about AmigaOS4 .so support
9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690 archive_expsym_cmds=''
9693 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)'
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9702 allow_undefined_flag=unsupported
9703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9704 # support --undefined. This deserves some investigation. FIXME
9705 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711 cygwin* | mingw* | pw32* | cegcc*)
9712 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9713 # as there is no search path for DLLs.
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 export_dynamic_flag_spec='${wl}--export-all-symbols'
9716 allow_undefined_flag=unsupported
9717 always_export_symbols=no
9718 enable_shared_with_static_runtimes=yes
9719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9720 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9722 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9724 # If the export-symbols file already is a .def file (1st line
9725 # is EXPORTS), use it as is; otherwise, prepend...
9726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9727 cp $export_symbols $output_objdir/$soname.def;
9729 echo EXPORTS > $output_objdir/$soname.def;
9730 cat $export_symbols >> $output_objdir/$soname.def;
9732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740 link_all_deplibs=yes
9745 hardcode_shlibpath_var=no
9746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9747 export_dynamic_flag_spec='${wl}-E'
9748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9749 # Instead, shared libraries are loaded at an image base (0x10000000 by
9750 # default) and relocated if they conflict, which is a slow very memory
9751 # consuming and fragmenting process. To avoid this, we pick a random,
9752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9755 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'
9758 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9760 if test "$host_os" = linux-dietlibc; then
9761 case $cc_basename in
9762 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9765 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9766 && test "$tmp_diet" = no
9768 tmp_addflag=' $pic_flag'
9769 tmp_sharedflag='-shared'
9770 case $cc_basename,$host_cpu in
9771 pgcc*) # Portland Group C compiler
9772 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9773 tmp_addflag=' $pic_flag'
9775 pgf77* | pgf90* | pgf95* | pgfortran*)
9776 # Portland Group f77 and f90 compilers
9777 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9778 tmp_addflag=' $pic_flag -Mnomain' ;;
9779 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9780 tmp_addflag=' -i_dynamic' ;;
9781 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9782 tmp_addflag=' -i_dynamic -nofor_main' ;;
9783 ifc* | ifort*) # Intel Fortran compiler
9784 tmp_addflag=' -nofor_main' ;;
9785 lf95*) # Lahey Fortran 8.1
9786 whole_archive_flag_spec=
9787 tmp_sharedflag='--shared' ;;
9788 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9789 tmp_sharedflag='-qmkshrobj'
9791 nvcc*) # Cuda Compiler Driver 2.2
9792 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9793 compiler_needs_object=yes
9796 case `$CC -V 2>&1 | sed 5q` in
9797 *Sun\ C*) # Sun C 5.9
9798 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9799 compiler_needs_object=yes
9800 tmp_sharedflag='-G' ;;
9801 *Sun\ F*) # Sun Fortran 8.3
9802 tmp_sharedflag='-G' ;;
9804 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9806 if test "x$supports_anon_versioning" = xyes; then
9807 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9809 echo "local: *; };" >> $output_objdir/$libname.ver~
9810 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9813 case $cc_basename in
9814 xlf* | bgf* | bgxlf* | mpixlf*)
9815 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9816 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9819 if test "x$supports_anon_versioning" = xyes; then
9820 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9822 echo "local: *; };" >> $output_objdir/$libname.ver~
9823 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9832 netbsd* | netbsdelf*-gnu)
9833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9843 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9847 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9848 *** create shared libraries on Solaris systems. Therefore, libtool
9849 *** is disabling shared libraries support. We urge you to upgrade GNU
9850 *** binutils to release 2.9.1 or newer. Another option is to modify
9851 *** your PATH or compiler configuration so that the native linker is
9852 *** used, and then restart.
9855 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9857 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9864 case `$LD -v 2>&1` in
9865 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9869 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9870 *** reliably create shared libraries on SCO systems. Therefore, libtool
9871 *** is disabling shared libraries support. We urge you to upgrade GNU
9872 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9873 *** your PATH or compiler configuration so that the native linker is
9874 *** used, and then restart.
9879 # For security reasons, it is highly recommended that you always
9880 # use absolute paths for naming shared libraries, and exclude the
9881 # DT_RUNPATH tag from executables and libraries. But doing so
9882 # requires that you compile everything twice, which is a pain.
9883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9895 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_shlibpath_var=no
9902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9903 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9904 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9911 if test "$ld_shlibs" = no; then
9913 hardcode_libdir_flag_spec=
9914 export_dynamic_flag_spec=
9915 whole_archive_flag_spec=
9918 # PORTME fill in a description of your system's linker (not GNU ld)
9921 allow_undefined_flag=unsupported
9922 always_export_symbols=yes
9923 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'
9924 # Note: this linker hardcodes the directories in LIBPATH if there
9925 # are no directories specified by -L.
9926 hardcode_minus_L=yes
9927 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9928 # Neither direct hardcoding nor static linking is supported with a
9930 hardcode_direct=unsupported
9935 if test "$host_cpu" = ia64; then
9936 # On IA64, the linker does run time linking by default, so we don't
9937 # have to do anything special.
9938 aix_use_runtimelinking=no
9939 exp_sym_flag='-Bexport'
9942 # If we're using GNU nm, then we don't want the "-C" option.
9943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9944 # Also, AIX nm treats weak defined symbols like other global
9945 # defined symbols, whereas GNU nm marks them as "W".
9946 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9947 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9949 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'
9951 aix_use_runtimelinking=no
9953 # Test if we are trying to use run time linking or normal
9954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9955 # need to do runtime linking.
9956 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9957 for ld_flag in $LDFLAGS; do
9958 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9959 aix_use_runtimelinking=yes
9966 exp_sym_flag='-bexport'
9967 no_entry_flag='-bnoentry'
9970 # When large executables or shared objects are built, AIX ld can
9971 # have problems creating the table of contents. If linking a library
9972 # or program results in "error TOC overflow" add -mminimal-toc to
9973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9978 hardcode_direct_absolute=yes
9979 hardcode_libdir_separator=':'
9980 link_all_deplibs=yes
9981 file_list_spec='${wl}-f,'
9983 if test "$GCC" = yes; then
9984 case $host_os in aix4.[012]|aix4.[012].*)
9985 # We only want to do this on AIX 4.2 and lower, the check
9986 # below for broken collect2 doesn't work under 4.3+
9987 collect2name=`${CC} -print-prog-name=collect2`
9988 if test -f "$collect2name" &&
9989 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9991 # We have reworked collect2
9994 # We have old collect2
9995 hardcode_direct=unsupported
9996 # It fails to find uninstalled libraries when the uninstalled
9997 # path is not listed in the libpath. Setting hardcode_minus_L
9998 # to unsupported forces relinking
9999 hardcode_minus_L=yes
10000 hardcode_libdir_flag_spec='-L$libdir'
10001 hardcode_libdir_separator=
10005 shared_flag='-shared'
10006 if test "$aix_use_runtimelinking" = yes; then
10007 shared_flag="$shared_flag "'${wl}-G'
10009 link_all_deplibs=no
10012 if test "$host_cpu" = ia64; then
10013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10014 # chokes on -Wl,-G. The following line is correct:
10017 if test "$aix_use_runtimelinking" = yes; then
10018 shared_flag='${wl}-G'
10020 shared_flag='${wl}-bM:SRE'
10025 export_dynamic_flag_spec='${wl}-bexpall'
10026 # It seems that -bexpall does not export symbols beginning with
10027 # underscore (_), so it is better to generate a list of symbols to export.
10028 always_export_symbols=yes
10029 if test "$aix_use_runtimelinking" = yes; then
10030 # Warning - without using the other runtime loading flags (-brtl),
10031 # -berok will link without error, but may produce a broken library.
10032 allow_undefined_flag='-berok'
10033 # Determine the default libpath from the value encoded in an
10034 # empty executable.
10035 if test "${lt_cv_aix_libpath+set}" = set; then
10036 aix_libpath=$lt_cv_aix_libpath
10038 if ${lt_cv_aix_libpath_+:} false; then :
10039 $as_echo_n "(cached) " >&6
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10052 if ac_fn_c_try_link "$LINENO"; then :
10054 lt_aix_libpath_sed='
10055 /Import File Strings/,/^$/ {
10057 s/^0 *\([^ ]*\) *$/\1/
10061 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10062 # Check for a 64-bit object if we didn't find anything.
10063 if test -z "$lt_cv_aix_libpath_"; then
10064 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10067 rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 if test -z "$lt_cv_aix_libpath_"; then
10070 lt_cv_aix_libpath_="/usr/lib:/lib"
10075 aix_libpath=$lt_cv_aix_libpath_
10078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10081 if test "$host_cpu" = ia64; then
10082 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10083 allow_undefined_flag="-z nodefs"
10084 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"
10086 # Determine the default libpath from the value encoded in an
10087 # empty executable.
10088 if test "${lt_cv_aix_libpath+set}" = set; then
10089 aix_libpath=$lt_cv_aix_libpath
10091 if ${lt_cv_aix_libpath_+:} false; then :
10092 $as_echo_n "(cached) " >&6
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10105 if ac_fn_c_try_link "$LINENO"; then :
10107 lt_aix_libpath_sed='
10108 /Import File Strings/,/^$/ {
10110 s/^0 *\([^ ]*\) *$/\1/
10114 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10115 # Check for a 64-bit object if we didn't find anything.
10116 if test -z "$lt_cv_aix_libpath_"; then
10117 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 if test -z "$lt_cv_aix_libpath_"; then
10123 lt_cv_aix_libpath_="/usr/lib:/lib"
10128 aix_libpath=$lt_cv_aix_libpath_
10131 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10132 # Warning - without using the other run time loading flags,
10133 # -berok will link without error, but may produce a broken library.
10134 no_undefined_flag=' ${wl}-bernotok'
10135 allow_undefined_flag=' ${wl}-berok'
10136 if test "$with_gnu_ld" = yes; then
10137 # We only use this code for GNU lds that support --whole-archive.
10138 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10140 # Exported symbols can be pulled into shared objects from archives
10141 whole_archive_flag_spec='$convenience'
10143 archive_cmds_need_lc=yes
10144 # This is similar to how AIX traditionally builds its shared libraries.
10145 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'
10153 # see comment about AmigaOS4 .so support
10154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 archive_expsym_cmds=''
10158 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)'
10159 hardcode_libdir_flag_spec='-L$libdir'
10160 hardcode_minus_L=yes
10166 export_dynamic_flag_spec=-rdynamic
10169 cygwin* | mingw* | pw32* | cegcc*)
10170 # When not using gcc, we currently assume that we are using
10171 # Microsoft Visual C++.
10172 # hardcode_libdir_flag_spec is actually meaningless, as there is
10173 # no search path for DLLs.
10174 case $cc_basename in
10177 hardcode_libdir_flag_spec=' '
10178 allow_undefined_flag=unsupported
10179 always_export_symbols=yes
10181 # Tell ltmain to make .lib files, not .a files.
10183 # Tell ltmain to make .dll files, not .so files.
10185 # FIXME: Setting linknames here is a bad hack.
10186 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10187 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10188 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10190 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10192 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10194 # The linker will not automatically build a static lib if we build a DLL.
10195 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10196 enable_shared_with_static_runtimes=yes
10197 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10200 old_postinstall_cmds='chmod 644 $oldlib'
10201 postlink_cmds='lt_outputfile="@OUTPUT@"~
10202 lt_tool_outputfile="@TOOL_OUTPUT@"~
10203 case $lt_outputfile in
10206 lt_outputfile="$lt_outputfile.exe"
10207 lt_tool_outputfile="$lt_tool_outputfile.exe"
10210 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10211 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10212 $RM "$lt_outputfile.manifest";
10216 # Assume MSVC wrapper
10217 hardcode_libdir_flag_spec=' '
10218 allow_undefined_flag=unsupported
10219 # Tell ltmain to make .lib files, not .a files.
10221 # Tell ltmain to make .dll files, not .so files.
10223 # FIXME: Setting linknames here is a bad hack.
10224 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10225 # The linker will automatically build a .lib file if we build a DLL.
10226 old_archive_from_new_cmds='true'
10227 # FIXME: Should let the user specify the lib program.
10228 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10229 enable_shared_with_static_runtimes=yes
10234 darwin* | rhapsody*)
10237 archive_cmds_need_lc=no
10239 hardcode_automatic=yes
10240 hardcode_shlibpath_var=unsupported
10241 if test "$lt_cv_ld_force_load" = "yes"; then
10242 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10245 whole_archive_flag_spec=''
10247 link_all_deplibs=yes
10248 allow_undefined_flag="$_lt_dar_allow_undefined"
10249 case $cc_basename in
10250 ifort*) _lt_dar_can_shared=yes ;;
10251 *) _lt_dar_can_shared=$GCC ;;
10253 if test "$_lt_dar_can_shared" = "yes"; then
10254 output_verbose_link_cmd=func_echo_all
10255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10257 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}"
10258 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}"
10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_libdir_flag_spec='-L$libdir'
10269 hardcode_shlibpath_var=no
10272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10273 # support. Future versions do this automatically, but an explicit c++rt0.o
10274 # does not break anything, and helps significantly (at the cost of a little
10277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10278 hardcode_libdir_flag_spec='-R$libdir'
10279 hardcode_direct=yes
10280 hardcode_shlibpath_var=no
10283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=yes
10287 hardcode_minus_L=yes
10288 hardcode_shlibpath_var=no
10291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10292 freebsd* | dragonfly*)
10293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10294 hardcode_libdir_flag_spec='-R$libdir'
10295 hardcode_direct=yes
10296 hardcode_shlibpath_var=no
10300 if test "$GCC" = yes; then
10301 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10303 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'
10305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_direct=yes
10309 # hardcode_minus_L: Not really in the search PATH,
10310 # but as the default location of the library.
10311 hardcode_minus_L=yes
10312 export_dynamic_flag_spec='${wl}-E'
10316 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10317 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10321 if test "$with_gnu_ld" = no; then
10322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10323 hardcode_libdir_separator=:
10324 hardcode_direct=yes
10325 hardcode_direct_absolute=yes
10326 export_dynamic_flag_spec='${wl}-E'
10327 # hardcode_minus_L: Not really in the search PATH,
10328 # but as the default location of the library.
10329 hardcode_minus_L=yes
10334 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10337 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10356 # Older versions of the 11.00 compiler do not understand -b yet
10357 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10359 $as_echo_n "checking if $CC understands -b... " >&6; }
10360 if ${lt_cv_prog_compiler__b+:} false; then :
10361 $as_echo_n "(cached) " >&6
10363 lt_cv_prog_compiler__b=no
10364 save_LDFLAGS="$LDFLAGS"
10365 LDFLAGS="$LDFLAGS -b"
10366 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10368 # The linker can only warn and ignore the option if not recognized
10369 # So say no if there are warnings
10370 if test -s conftest.err; then
10371 # Append any errors to the config.log.
10372 cat conftest.err 1>&5
10373 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10375 if diff conftest.exp conftest.er2 >/dev/null; then
10376 lt_cv_prog_compiler__b=yes
10379 lt_cv_prog_compiler__b=yes
10383 LDFLAGS="$save_LDFLAGS"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10387 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10389 if test x"$lt_cv_prog_compiler__b" = xyes; then
10390 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10398 if test "$with_gnu_ld" = no; then
10399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10400 hardcode_libdir_separator=:
10405 hardcode_shlibpath_var=no
10408 hardcode_direct=yes
10409 hardcode_direct_absolute=yes
10410 export_dynamic_flag_spec='${wl}-E'
10412 # hardcode_minus_L: Not really in the search PATH,
10413 # but as the default location of the library.
10414 hardcode_minus_L=yes
10420 irix5* | irix6* | nonstopux*)
10421 if test "$GCC" = yes; then
10422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10423 # Try to use the -exported_symbol ld option, if it does not
10424 # work, assume that -exports_file does not work either and
10425 # implicitly export all symbols.
10426 # This should be the same for all languages, so no per-tag cache variable.
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10428 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10429 if ${lt_cv_irix_exported_symbol+:} false; then :
10430 $as_echo_n "(cached) " >&6
10432 save_LDFLAGS="$LDFLAGS"
10433 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436 int foo (void) { return 0; }
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 lt_cv_irix_exported_symbol=yes
10441 lt_cv_irix_exported_symbol=no
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LDFLAGS="$save_LDFLAGS"
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10448 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10449 if test "$lt_cv_irix_exported_symbol" = yes; then
10450 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10456 archive_cmds_need_lc='no'
10457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10458 hardcode_libdir_separator=:
10460 link_all_deplibs=yes
10463 netbsd* | netbsdelf*-gnu)
10464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10469 hardcode_libdir_flag_spec='-R$libdir'
10470 hardcode_direct=yes
10471 hardcode_shlibpath_var=no
10475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476 hardcode_direct=yes
10477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10478 hardcode_libdir_separator=:
10479 hardcode_shlibpath_var=no
10486 if test -f /usr/libexec/ld.so; then
10487 hardcode_direct=yes
10488 hardcode_shlibpath_var=no
10489 hardcode_direct_absolute=yes
10490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10492 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10494 export_dynamic_flag_spec='${wl}-E'
10497 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10499 hardcode_libdir_flag_spec='-R$libdir'
10502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10513 hardcode_libdir_flag_spec='-L$libdir'
10514 hardcode_minus_L=yes
10515 allow_undefined_flag=unsupported
10516 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'
10517 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10521 if test "$GCC" = yes; then
10522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10523 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10525 allow_undefined_flag=' -expect_unresolved \*'
10526 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10528 archive_cmds_need_lc='no'
10529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530 hardcode_libdir_separator=:
10533 osf4* | osf5*) # as osf3* with the addition of -msym flag
10534 if test "$GCC" = yes; then
10535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10536 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10539 allow_undefined_flag=' -expect_unresolved \*'
10540 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10541 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10542 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10544 # Both c and cxx compiler support -rpath directly
10545 hardcode_libdir_flag_spec='-rpath $libdir'
10547 archive_cmds_need_lc='no'
10548 hardcode_libdir_separator=:
10552 no_undefined_flag=' -z defs'
10553 if test "$GCC" = yes; then
10555 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10557 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10559 case `$CC -V 2>&1` in
10562 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10568 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10570 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10574 hardcode_libdir_flag_spec='-R$libdir'
10575 hardcode_shlibpath_var=no
10577 solaris2.[0-5] | solaris2.[0-5].*) ;;
10579 # The compiler driver will combine and reorder linker options,
10580 # but understands `-z linker_flag'. GCC discards it without `$wl',
10581 # but is careful enough not to reorder.
10582 # Supported since Solaris 2.6 (maybe 2.5.1?)
10583 if test "$GCC" = yes; then
10584 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10590 link_all_deplibs=yes
10594 if test "x$host_vendor" = xsequent; then
10595 # Use $CC to link under sequent, because it throws in some extra .o
10596 # files that make .init and .fini sections work.
10597 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_direct=yes
10603 hardcode_minus_L=yes
10604 hardcode_shlibpath_var=no
10608 case $host_vendor in
10610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_direct=yes # is this really true???
10614 ## LD is ld it makes a PLAMLIB
10615 ## CC just makes a GrossModule.
10616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10617 reload_cmds='$CC -r -o $output$reload_objs'
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10625 runpath_var='LD_RUN_PATH'
10626 hardcode_shlibpath_var=no
10630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631 hardcode_shlibpath_var=no
10632 export_dynamic_flag_spec='-Bexport'
10636 if test -d /usr/nec; then
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_shlibpath_var=no
10639 runpath_var=LD_RUN_PATH
10640 hardcode_runpath_var=yes
10645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10646 no_undefined_flag='${wl}-z,text'
10647 archive_cmds_need_lc=no
10648 hardcode_shlibpath_var=no
10649 runpath_var='LD_RUN_PATH'
10651 if test "$GCC" = yes; then
10652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 sysv5* | sco3.2v5* | sco5v6*)
10661 # Note: We can NOT use -z defs as we might desire, because we do not
10662 # link with -lc, and that would cause any symbols used from libc to
10663 # always be unresolved, which means just about no library would
10664 # ever link correctly. If we're not using GNU ld we use -z text
10665 # though, which does catch some bad symbols but isn't as heavy-handed
10667 no_undefined_flag='${wl}-z,text'
10668 allow_undefined_flag='${wl}-z,nodefs'
10669 archive_cmds_need_lc=no
10670 hardcode_shlibpath_var=no
10671 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10672 hardcode_libdir_separator=':'
10673 link_all_deplibs=yes
10674 export_dynamic_flag_spec='${wl}-Bexport'
10675 runpath_var='LD_RUN_PATH'
10677 if test "$GCC" = yes; then
10678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_libdir_flag_spec='-L$libdir'
10689 hardcode_shlibpath_var=no
10697 if test x$host_vendor = xsni; then
10699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10700 export_dynamic_flag_spec='${wl}-Blargedynsym'
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10707 $as_echo "$ld_shlibs" >&6; }
10708 test "$ld_shlibs" = no && can_build_shared=no
10710 with_gnu_ld=$with_gnu_ld
10727 # Do we need to explicitly link libc?
10729 case "x$archive_cmds_need_lc" in
10731 # Assume -lc should be added
10732 archive_cmds_need_lc=yes
10734 if test "$enable_shared" = yes && test "$GCC" = yes; then
10735 case $archive_cmds in
10737 # FIXME: we may have to deal with multi-command sequences.
10740 # Test whether the compiler implicitly links with -lc since on some
10741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10742 # to ld, don't add -lc before -lgcc.
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10745 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10746 $as_echo_n "(cached) " >&6
10749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10752 (eval $ac_compile) 2>&5
10754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755 test $ac_status = 0; } 2>conftest.err; then
10758 libobjs=conftest.$ac_objext
10760 wl=$lt_prog_compiler_wl
10761 pic_flag=$lt_prog_compiler_pic
10767 lt_save_allow_undefined_flag=$allow_undefined_flag
10768 allow_undefined_flag=
10769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10770 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10773 test $ac_status = 0; }
10775 lt_cv_archive_cmds_need_lc=no
10777 lt_cv_archive_cmds_need_lc=yes
10779 allow_undefined_flag=$lt_save_allow_undefined_flag
10781 cat conftest.err 1>&5
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10787 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10788 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10947 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10949 if test "$GCC" = yes; then
10951 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10952 *) lt_awk_arg="/^libraries:/" ;;
10955 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10956 *) lt_sed_strip_eq="s,=/,/,g" ;;
10958 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10959 case $lt_search_path_spec in
10961 # if the path contains ";" then we assume it to be the separator
10962 # otherwise default to the standard path separator (i.e. ":") - it is
10963 # assumed that no part of a normal pathname contains ";" but that should
10964 # okay in the real world where ";" in dirpaths is itself problematic.
10965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10968 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10971 # Ok, now we have the path, separated by spaces, we can step through it
10972 # and add multilib dir if necessary.
10973 lt_tmp_lt_search_path_spec=
10974 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10975 for lt_sys_path in $lt_search_path_spec; do
10976 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10977 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10979 test -d "$lt_sys_path" && \
10980 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10983 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10984 BEGIN {RS=" "; FS="/|\n";} {
10987 for (lt_i = NF; lt_i > 0; lt_i--) {
10988 if ($lt_i != "" && $lt_i != ".") {
10989 if ($lt_i == "..") {
10992 if (lt_count == 0) {
10993 lt_foo="/" $lt_i lt_foo;
11000 if (lt_foo != "") { lt_freq[lt_foo]++; }
11001 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11003 # AWK program above erroneously prepends '/' to C:/dos/paths
11006 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11007 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11009 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11011 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11013 library_names_spec=
11014 libname_spec='lib$name'
11018 postuninstall_cmds=
11022 shlibpath_overrides_runpath=unknown
11024 dynamic_linker="$host_os ld.so"
11025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11026 need_lib_prefix=unknown
11027 hardcode_into_libs=no
11029 # when you set need_version to no, make sure it does not cause -set_version
11030 # flags to be left without arguments
11031 need_version=unknown
11035 version_type=linux # correct to gnu/linux during the next big refactor
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11037 shlibpath_var=LIBPATH
11039 # AIX 3 has no versioning support, so we append a major version to the name.
11040 soname_spec='${libname}${release}${shared_ext}$major'
11044 version_type=linux # correct to gnu/linux during the next big refactor
11047 hardcode_into_libs=yes
11048 if test "$host_cpu" = ia64; then
11049 # AIX 5 supports IA64
11050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11051 shlibpath_var=LD_LIBRARY_PATH
11053 # With GCC up to 2.95.x, collect2 would create an import file
11054 # for dependence libraries. The import file would start with
11055 # the line `#! .'. This would cause the generated library to
11056 # depend on `.', always an invalid library. This was fixed in
11057 # development snapshots of GCC prior to 3.0.
11059 aix4 | aix4.[01] | aix4.[01].*)
11060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11062 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11065 can_build_shared=no
11069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11070 # soname into executable. Probably we can add versioning support to
11071 # collect2, so additional links can be useful in future.
11072 if test "$aix_use_runtimelinking" = yes; then
11073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11074 # instead of lib<name>.a to let people know that these are not
11075 # typical AIX shared libraries.
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 # We preserve .a as extension for shared libraries through AIX4.2
11079 # and later when we are not doing run time linking.
11080 library_names_spec='${libname}${release}.a $libname.a'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11083 shlibpath_var=LIBPATH
11090 # Since July 2007 AmigaOS4 officially supports .so libraries.
11091 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 library_names_spec='$libname.ixlibrary $libname.a'
11096 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11097 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11103 library_names_spec='${libname}${shared_ext}'
11104 dynamic_linker="$host_os ld.so"
11105 shlibpath_var=LIBRARY_PATH
11109 version_type=linux # correct to gnu/linux during the next big refactor
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11117 # the default ld.so.conf also contains /usr/contrib/lib and
11118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11119 # libtool to hard-code these into programs
11122 cygwin* | mingw* | pw32* | cegcc*)
11123 version_type=windows
11128 case $GCC,$cc_basename in
11131 library_names_spec='$libname.dll.a'
11132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11133 postinstall_cmds='base_file=`basename \${file}`~
11134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11135 dldir=$destdir/`dirname \$dlpath`~
11136 test -d \$dldir || mkdir -p \$dldir~
11137 $install_prog $dir/$dlname \$dldir/$dlname~
11138 chmod a+x \$dldir/$dlname~
11139 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11140 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11143 dlpath=$dir/\$dldll~
11145 shlibpath_overrides_runpath=yes
11149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11155 # MinGW DLLs use traditional 'lib' prefix
11156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11159 # pw32 DLLs use 'pw' prefix rather than 'lib'
11160 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11163 dynamic_linker='Win32 ld.exe'
11168 libname_spec='$name'
11169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170 library_names_spec='${libname}.dll.lib'
11174 sys_lib_search_path_spec=
11177 for lt_path in $LIB
11180 # Let DOS variable expansion print the short 8.3 style file name.
11181 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11182 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11185 # Convert to MSYS style.
11186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11189 # Convert to unix form, then to dos form, then back to unix form
11190 # but this time dos style (no spaces!) so that the unix form looks
11191 # like /cygdrive/c/PROGRA~1:/cygdr...
11192 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11193 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11194 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11197 sys_lib_search_path_spec="$LIB"
11198 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11199 # It is most probably a Windows format PATH.
11200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11202 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11204 # FIXME: find the short name or the path components, as spaces are
11205 # common. (e.g. "Program Files" -> "PROGRA~1")
11209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11210 postinstall_cmds='base_file=`basename \${file}`~
11211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11212 dldir=$destdir/`dirname \$dlpath`~
11213 test -d \$dldir || mkdir -p \$dldir~
11214 $install_prog $dir/$dlname \$dldir/$dlname'
11215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216 dlpath=$dir/\$dldll~
11218 shlibpath_overrides_runpath=yes
11219 dynamic_linker='Win32 link.exe'
11223 # Assume MSVC wrapper
11224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11225 dynamic_linker='Win32 ld.exe'
11228 # FIXME: first we should search . and the directory the executable is in
11232 darwin* | rhapsody*)
11233 dynamic_linker="$host_os dyld"
11234 version_type=darwin
11237 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11238 soname_spec='${libname}${release}${major}$shared_ext'
11239 shlibpath_overrides_runpath=yes
11240 shlibpath_var=DYLD_LIBRARY_PATH
11241 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11248 version_type=linux # correct to gnu/linux during the next big refactor
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11256 freebsd* | dragonfly*)
11257 # DragonFly does not have aout. When/if they implement a new
11258 # versioning mechanism, adjust this.
11259 if test -x /usr/bin/objformat; then
11260 objformat=`/usr/bin/objformat`
11263 freebsd[23].*) objformat=aout ;;
11264 *) objformat=elf ;;
11267 version_type=freebsd-$objformat
11268 case $version_type in
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11279 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=yes
11284 freebsd3.[01]* | freebsdelf3.[01]*)
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11290 shlibpath_overrides_runpath=no
11291 hardcode_into_libs=yes
11293 *) # from 4.6 on, and DragonFly
11294 shlibpath_overrides_runpath=yes
11295 hardcode_into_libs=yes
11301 version_type=linux # correct to gnu/linux during the next big refactor
11304 dynamic_linker="$host_os runtime_loader"
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11309 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11310 hardcode_into_libs=yes
11313 hpux9* | hpux10* | hpux11*)
11314 # Give a soname corresponding to the major version so that dld.sl refuses to
11315 # link against other versions.
11322 hardcode_into_libs=yes
11323 dynamic_linker="$host_os dld.so"
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 if test "X$HPUX_IA64_MODE" = X32; then
11329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11337 hardcode_into_libs=yes
11338 dynamic_linker="$host_os dld.sl"
11339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11348 dynamic_linker="$host_os dld.sl"
11349 shlibpath_var=SHLIB_PATH
11350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11355 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11356 postinstall_cmds='chmod 555 $lib'
11357 # or fails outright, so override atomically:
11358 install_override_mode=555
11362 version_type=linux # correct to gnu/linux during the next big refactor
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=no
11370 hardcode_into_libs=yes
11373 irix5* | irix6* | nonstopux*)
11375 nonstopux*) version_type=nonstopux ;;
11377 if test "$lt_cv_prog_gnu_ld" = yes; then
11378 version_type=linux # correct to gnu/linux during the next big refactor
11385 soname_spec='${libname}${release}${shared_ext}$major'
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11388 irix5* | nonstopux*)
11389 libsuff= shlibsuff=
11392 case $LD in # libtool.m4 will add one of these switches to LD
11393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11394 libsuff= shlibsuff= libmagic=32-bit;;
11395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11396 libsuff=32 shlibsuff=N32 libmagic=N32;;
11397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11399 *) libsuff= shlibsuff= libmagic=never-match;;
11403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11404 shlibpath_overrides_runpath=no
11405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11407 hardcode_into_libs=yes
11410 # No shared lib support for Linux oldld, aout, or coff.
11411 linux*oldld* | linux*aout* | linux*coff*)
11415 # This must be glibc/ELF.
11416 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11417 version_type=linux # correct to gnu/linux during the next big refactor
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=no
11426 # Some binutils ld are patched to set DT_RUNPATH
11427 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11428 $as_echo_n "(cached) " >&6
11430 lt_cv_shlibpath_overrides_runpath=no
11431 save_LDFLAGS=$LDFLAGS
11432 save_libdir=$libdir
11433 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11434 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11448 lt_cv_shlibpath_overrides_runpath=yes
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 LDFLAGS=$save_LDFLAGS
11454 libdir=$save_libdir
11458 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11460 # This implies no fast_install, which is unacceptable.
11461 # Some rework will be needed to allow for fast_install
11462 # before this can be enabled.
11463 hardcode_into_libs=yes
11465 # Append ld.so.conf contents to the search path
11466 if test -f /etc/ld.so.conf; then
11467 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;s/"//g;/^$/d' | tr '\n' ' '`
11468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11471 # We used to test for /lib/ld.so.1 and disable shared libraries on
11472 # powerpc, because MkLinux only supported shared libraries with the
11473 # GNU dynamic linker. Since this was broken with cross compilers,
11474 # most powerpc-linux boxes support dynamic linking these days and
11475 # people can always --disable-shared, the test was removed, and we
11476 # assume the GNU/Linux dynamic linker is in use.
11477 dynamic_linker='GNU/Linux ld.so'
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=no
11488 hardcode_into_libs=yes
11489 dynamic_linker='NetBSD ld.elf_so'
11496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11499 dynamic_linker='NetBSD (a.out) ld.so'
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 dynamic_linker='NetBSD ld.elf_so'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 shlibpath_overrides_runpath=yes
11507 hardcode_into_libs=yes
11511 version_type=linux # correct to gnu/linux during the next big refactor
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11526 dynamic_linker='ldqnx.so'
11531 sys_lib_dlsearch_path_spec="/usr/lib"
11533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11536 *) need_version=no ;;
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11543 openbsd2.[89] | openbsd2.[89].*)
11544 shlibpath_overrides_runpath=no
11547 shlibpath_overrides_runpath=yes
11551 shlibpath_overrides_runpath=yes
11556 libname_spec='$name'
11559 library_names_spec='$libname${shared_ext} $libname.a'
11560 dynamic_linker='OS/2 ld.exe'
11561 shlibpath_var=LIBPATH
11564 osf3* | osf4* | osf5*)
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11580 version_type=linux # correct to gnu/linux during the next big refactor
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11588 # ldd complains unless libraries are executable
11589 postinstall_cmds='chmod +x $lib'
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 shlibpath_overrides_runpath=yes
11598 if test "$with_gnu_ld" = yes; then
11605 version_type=linux # correct to gnu/linux during the next big refactor
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 case $host_vendor in
11611 shlibpath_overrides_runpath=no
11613 runpath_var=LD_RUN_PATH
11621 shlibpath_overrides_runpath=no
11622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11628 if test -d /usr/nec ;then
11629 version_type=linux # correct to gnu/linux during the next big refactor
11630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11631 soname_spec='$libname${shared_ext}.$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11637 version_type=freebsd-elf
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=yes
11644 hardcode_into_libs=yes
11645 if test "$with_gnu_ld" = yes; then
11646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11655 sys_lib_dlsearch_path_spec='/usr/lib'
11659 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11660 version_type=linux # correct to gnu/linux during the next big refactor
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=no
11666 hardcode_into_libs=yes
11670 version_type=linux # correct to gnu/linux during the next big refactor
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11681 $as_echo "$dynamic_linker" >&6; }
11682 test "$dynamic_linker" = no && can_build_shared=no
11684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11685 if test "$GCC" = yes; then
11686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11689 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11690 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11692 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11693 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11788 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11790 if test -n "$hardcode_libdir_flag_spec" ||
11791 test -n "$runpath_var" ||
11792 test "X$hardcode_automatic" = "Xyes" ; then
11794 # We can hardcode non-existent directories.
11795 if test "$hardcode_direct" != no &&
11796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11797 # have to relink, otherwise we might link with an installed library
11798 # when we should be linking with a yet-to-be-installed one
11799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11800 test "$hardcode_minus_L" != no; then
11801 # Linking always hardcodes the temporary library directory.
11802 hardcode_action=relink
11804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11805 hardcode_action=immediate
11808 # We cannot hardcode anything, or else we can only hardcode existing
11810 hardcode_action=unsupported
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11813 $as_echo "$hardcode_action" >&6; }
11815 if test "$hardcode_action" = relink ||
11816 test "$inherit_rpath" = yes; then
11817 # Fast installation is not supported
11818 enable_fast_install=no
11819 elif test "$shlibpath_overrides_runpath" = yes ||
11820 test "$enable_shared" = no; then
11821 # Fast installation is not necessary
11822 enable_fast_install=needless
11830 if test "x$enable_dlopen" != xyes; then
11831 enable_dlopen=unknown
11832 enable_dlopen_self=unknown
11833 enable_dlopen_self_static=unknown
11840 lt_cv_dlopen="load_add_on"
11842 lt_cv_dlopen_self=yes
11845 mingw* | pw32* | cegcc*)
11846 lt_cv_dlopen="LoadLibrary"
11851 lt_cv_dlopen="dlopen"
11856 # if libdl is installed we need to link against it
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11859 if ${ac_cv_lib_dl_dlopen+:} false; then :
11860 $as_echo_n "(cached) " >&6
11862 ac_check_lib_save_LIBS=$LIBS
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11867 /* Override any GCC internal prototype to avoid an error.
11868 Use char because int might match the return type of a GCC
11869 builtin and then its argument prototype would still apply. */
11882 if ac_fn_c_try_link "$LINENO"; then :
11883 ac_cv_lib_dl_dlopen=yes
11885 ac_cv_lib_dl_dlopen=no
11887 rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11889 LIBS=$ac_check_lib_save_LIBS
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11893 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11897 lt_cv_dlopen="dyld"
11899 lt_cv_dlopen_self=yes
11906 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11907 if test "x$ac_cv_func_shl_load" = xyes; then :
11908 lt_cv_dlopen="shl_load"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11912 if ${ac_cv_lib_dld_shl_load+:} false; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_check_lib_save_LIBS=$LIBS
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11930 return shl_load ();
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_dld_shl_load=yes
11938 ac_cv_lib_dld_shl_load=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11946 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11950 if test "x$ac_cv_func_dlopen" = xyes; then :
11951 lt_cv_dlopen="dlopen"
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11954 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11955 if ${ac_cv_lib_dl_dlopen+:} false; then :
11956 $as_echo_n "(cached) " >&6
11958 ac_check_lib_save_LIBS=$LIBS
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_lib_dl_dlopen=yes
11981 ac_cv_lib_dl_dlopen=no
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11988 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11989 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11993 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11994 if ${ac_cv_lib_svld_dlopen+:} false; then :
11995 $as_echo_n "(cached) " >&6
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-lsvld $LIBS"
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12002 /* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12017 if ac_fn_c_try_link "$LINENO"; then :
12018 ac_cv_lib_svld_dlopen=yes
12020 ac_cv_lib_svld_dlopen=no
12022 rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024 LIBS=$ac_check_lib_save_LIBS
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12027 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12028 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12032 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12033 if ${ac_cv_lib_dld_dld_link+:} false; then :
12034 $as_echo_n "(cached) " >&6
12036 ac_check_lib_save_LIBS=$LIBS
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12051 return dld_link ();
12056 if ac_fn_c_try_link "$LINENO"; then :
12057 ac_cv_lib_dld_dld_link=yes
12059 ac_cv_lib_dld_dld_link=no
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12066 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12067 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12068 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12089 if test "x$lt_cv_dlopen" != xno; then
12095 case $lt_cv_dlopen in
12097 save_CPPFLAGS="$CPPFLAGS"
12098 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12100 save_LDFLAGS="$LDFLAGS"
12101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12104 LIBS="$lt_cv_dlopen_libs $LIBS"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12107 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12108 if ${lt_cv_dlopen_self+:} false; then :
12109 $as_echo_n "(cached) " >&6
12111 if test "$cross_compiling" = yes; then :
12112 lt_cv_dlopen_self=cross
12114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12115 lt_status=$lt_dlunknown
12116 cat > conftest.$ac_ext <<_LT_EOF
12117 #line $LINENO "configure"
12118 #include "confdefs.h"
12127 # define LT_DLGLOBAL RTLD_GLOBAL
12130 # define LT_DLGLOBAL DL_GLOBAL
12132 # define LT_DLGLOBAL 0
12136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12137 find out it does not work in some platform. */
12138 #ifndef LT_DLLAZY_OR_NOW
12140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12143 # define LT_DLLAZY_OR_NOW DL_LAZY
12146 # define LT_DLLAZY_OR_NOW RTLD_NOW
12149 # define LT_DLLAZY_OR_NOW DL_NOW
12151 # define LT_DLLAZY_OR_NOW 0
12158 /* When -fvisbility=hidden is used, assume the code has been annotated
12159 correspondingly for the symbols needed. */
12160 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12161 int fnord () __attribute__((visibility("default")));
12164 int fnord () { return 42; }
12167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12168 int status = $lt_dlunknown;
12172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12176 else puts (dlerror ());
12178 /* dlclose (self); */
12186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12187 (eval $ac_link) 2>&5
12189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12190 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12191 (./conftest; exit; ) >&5 2>/dev/null
12193 case x$lt_status in
12194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12199 # compilation failed
12200 lt_cv_dlopen_self=no
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12208 $as_echo "$lt_cv_dlopen_self" >&6; }
12210 if test "x$lt_cv_dlopen_self" = xyes; then
12211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12214 if ${lt_cv_dlopen_self_static+:} false; then :
12215 $as_echo_n "(cached) " >&6
12217 if test "$cross_compiling" = yes; then :
12218 lt_cv_dlopen_self_static=cross
12220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221 lt_status=$lt_dlunknown
12222 cat > conftest.$ac_ext <<_LT_EOF
12223 #line $LINENO "configure"
12224 #include "confdefs.h"
12233 # define LT_DLGLOBAL RTLD_GLOBAL
12236 # define LT_DLGLOBAL DL_GLOBAL
12238 # define LT_DLGLOBAL 0
12242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243 find out it does not work in some platform. */
12244 #ifndef LT_DLLAZY_OR_NOW
12246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12249 # define LT_DLLAZY_OR_NOW DL_LAZY
12252 # define LT_DLLAZY_OR_NOW RTLD_NOW
12255 # define LT_DLLAZY_OR_NOW DL_NOW
12257 # define LT_DLLAZY_OR_NOW 0
12264 /* When -fvisbility=hidden is used, assume the code has been annotated
12265 correspondingly for the symbols needed. */
12266 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12267 int fnord () __attribute__((visibility("default")));
12270 int fnord () { return 42; }
12273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12274 int status = $lt_dlunknown;
12278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12282 else puts (dlerror ());
12284 /* dlclose (self); */
12292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12293 (eval $ac_link) 2>&5
12295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12296 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12297 (./conftest; exit; ) >&5 2>/dev/null
12299 case x$lt_status in
12300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12305 # compilation failed
12306 lt_cv_dlopen_self_static=no
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12314 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12317 CPPFLAGS="$save_CPPFLAGS"
12318 LDFLAGS="$save_LDFLAGS"
12323 case $lt_cv_dlopen_self in
12324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12325 *) enable_dlopen_self=unknown ;;
12328 case $lt_cv_dlopen_self_static in
12329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12330 *) enable_dlopen_self_static=unknown ;;
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12353 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12354 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12360 # FIXME - insert some real tests, host_os isn't really good enough
12363 if test -n "$STRIP" ; then
12364 striplib="$STRIP -x"
12365 old_striplib="$STRIP -S"
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367 $as_echo "yes" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12391 # Report which library types will actually be built
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12393 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12395 $as_echo "$can_build_shared" >&6; }
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12398 $as_echo_n "checking whether to build shared libraries... " >&6; }
12399 test "$can_build_shared" = "no" && enable_shared=no
12401 # On AIX, shared libraries and static libraries use the same namespace, and
12402 # are all built from PIC.
12405 test "$enable_shared" = yes && enable_static=no
12406 if test -n "$RANLIB"; then
12407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12408 postinstall_cmds='$RANLIB $lib'
12413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12414 test "$enable_shared" = yes && enable_static=no
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12419 $as_echo "$enable_shared" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12422 $as_echo_n "checking whether to build static libraries... " >&6; }
12423 # Make sure either enable_shared or enable_static is yes.
12424 test "$enable_shared" = yes || enable_static=yes
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12426 $as_echo "$enable_static" >&6; }
12433 ac_cpp='$CXXCPP $CPPFLAGS'
12434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12440 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12441 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12442 (test "X$CXX" != "Xg++"))) ; then
12444 ac_cpp='$CXXCPP $CPPFLAGS'
12445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12449 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12450 if test -z "$CXXCPP"; then
12451 if ${ac_cv_prog_CXXCPP+:} false; then :
12452 $as_echo_n "(cached) " >&6
12454 # Double quotes because CXXCPP needs to be expanded
12455 for CXXCPP in "$CXX -E" "/lib/cpp"
12457 ac_preproc_ok=false
12458 for ac_cxx_preproc_warn_flag in '' yes
12460 # Use a header file that comes with gcc, so configuring glibc
12461 # with a fresh cross-compiler works.
12462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463 # <limits.h> exists even on freestanding compilers.
12464 # On the NeXT, cc -E runs the code through the compiler's parser,
12465 # not just through cpp. "Syntax error" is here to catch this case.
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 # include <limits.h>
12471 # include <assert.h>
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12478 # Broken: fails on valid input.
12481 rm -f conftest.err conftest.i conftest.$ac_ext
12483 # OK, works on sane cases. Now check whether nonexistent headers
12484 # can be detected and how.
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <ac_nonexistent.h>
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490 # Broken: success on invalid input.
12493 # Passes both tests.
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501 rm -f conftest.i conftest.err conftest.$ac_ext
12502 if $ac_preproc_ok; then :
12507 ac_cv_prog_CXXCPP=$CXXCPP
12510 CXXCPP=$ac_cv_prog_CXXCPP
12512 ac_cv_prog_CXXCPP=$CXXCPP
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12515 $as_echo "$CXXCPP" >&6; }
12516 ac_preproc_ok=false
12517 for ac_cxx_preproc_warn_flag in '' yes
12519 # Use a header file that comes with gcc, so configuring glibc
12520 # with a fresh cross-compiler works.
12521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522 # <limits.h> exists even on freestanding compilers.
12523 # On the NeXT, cc -E runs the code through the compiler's parser,
12524 # not just through cpp. "Syntax error" is here to catch this case.
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 # include <limits.h>
12530 # include <assert.h>
12534 if ac_fn_cxx_try_cpp "$LINENO"; then :
12537 # Broken: fails on valid input.
12540 rm -f conftest.err conftest.i conftest.$ac_ext
12542 # OK, works on sane cases. Now check whether nonexistent headers
12543 # can be detected and how.
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12546 #include <ac_nonexistent.h>
12548 if ac_fn_cxx_try_cpp "$LINENO"; then :
12549 # Broken: success on invalid input.
12552 # Passes both tests.
12556 rm -f conftest.err conftest.i conftest.$ac_ext
12559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12560 rm -f conftest.i conftest.err conftest.$ac_ext
12561 if $ac_preproc_ok; then :
12564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12566 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12567 See \`config.log' for more details" "$LINENO" 5; }
12571 ac_cpp='$CXXCPP $CPPFLAGS'
12572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12577 _lt_caught_CXX_error=yes
12581 ac_cpp='$CXXCPP $CPPFLAGS'
12582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12586 archive_cmds_need_lc_CXX=no
12587 allow_undefined_flag_CXX=
12588 always_export_symbols_CXX=no
12589 archive_expsym_cmds_CXX=
12590 compiler_needs_object_CXX=no
12591 export_dynamic_flag_spec_CXX=
12592 hardcode_direct_CXX=no
12593 hardcode_direct_absolute_CXX=no
12594 hardcode_libdir_flag_spec_CXX=
12595 hardcode_libdir_separator_CXX=
12596 hardcode_minus_L_CXX=no
12597 hardcode_shlibpath_var_CXX=unsupported
12598 hardcode_automatic_CXX=no
12599 inherit_rpath_CXX=no
12601 module_expsym_cmds_CXX=
12602 link_all_deplibs_CXX=unknown
12603 old_archive_cmds_CXX=$old_archive_cmds
12604 reload_flag_CXX=$reload_flag
12605 reload_cmds_CXX=$reload_cmds
12606 no_undefined_flag_CXX=
12607 whole_archive_flag_spec_CXX=
12608 enable_shared_with_static_runtimes_CXX=no
12610 # Source file extension for C++ test sources.
12613 # Object file extension for compiled C++ test sources.
12617 # No sense in running all these tests if we already determined that
12618 # the CXX compiler isn't working. Some variables (like enable_shared)
12619 # are currently assumed to apply to all compilers on this platform,
12620 # and will be corrupted by setting them based on a non-working compiler.
12621 if test "$_lt_caught_CXX_error" != yes; then
12622 # Code to be used in simple compile tests
12623 lt_simple_compile_test_code="int some_variable = 0;"
12625 # Code to be used in simple link tests
12626 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12628 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12635 # If no C compiler was specified, use CC.
12638 # If no C compiler flags were specified, use CFLAGS.
12639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12641 # Allow CC to be a program name with arguments.
12645 # save warnings/boilerplate of simple test code
12646 ac_outfile=conftest.$ac_objext
12647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649 _lt_compiler_boilerplate=`cat conftest.err`
12652 ac_outfile=conftest.$ac_objext
12653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655 _lt_linker_boilerplate=`cat conftest.err`
12659 # Allow CC to be a program name with arguments.
12661 lt_save_CFLAGS=$CFLAGS
12665 lt_save_with_gnu_ld=$with_gnu_ld
12666 lt_save_path_LD=$lt_cv_path_LD
12667 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12668 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12670 $as_unset lt_cv_prog_gnu_ld
12672 if test -n "${lt_cv_path_LDCXX+set}"; then
12673 lt_cv_path_LD=$lt_cv_path_LDCXX
12675 $as_unset lt_cv_path_LD
12677 test -z "${LDCXX+set}" || LD=$LDCXX
12682 for cc_temp in $compiler""; do
12684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12690 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12693 if test -n "$compiler"; then
12694 # We don't want -fno-exception when compiling C++ code, so set the
12695 # no_builtin_flag separately
12696 if test "$GXX" = yes; then
12697 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12699 lt_prog_compiler_no_builtin_flag_CXX=
12702 if test "$GXX" = yes; then
12703 # Set up default GNU C++ configuration
12707 # Check whether --with-gnu-ld was given.
12708 if test "${with_gnu_ld+set}" = set; then :
12709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12715 if test "$GCC" = yes; then
12716 # Check if gcc -print-prog-name=ld gives a path.
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12718 $as_echo_n "checking for ld used by $CC... " >&6; }
12721 # gcc leaves a trailing carriage return which upsets mingw
12722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12727 # Accept absolute paths.
12729 re_direlt='/[^/][^/]*/\.\./'
12730 # Canonicalize the pathname of ld
12731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12735 test -z "$LD" && LD="$ac_prog"
12738 # If it fails, then pretend we aren't using GCC.
12742 # If it is relative, then search for the first ld in PATH.
12743 with_gnu_ld=unknown
12746 elif test "$with_gnu_ld" = yes; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12748 $as_echo_n "checking for GNU ld... " >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12751 $as_echo_n "checking for non-GNU ld... " >&6; }
12753 if ${lt_cv_path_LD+:} false; then :
12754 $as_echo_n "(cached) " >&6
12756 if test -z "$LD"; then
12757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12758 for ac_dir in $PATH; do
12760 test -z "$ac_dir" && ac_dir=.
12761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12762 lt_cv_path_LD="$ac_dir/$ac_prog"
12763 # Check to see if the program is GNU ld. I'd rather use --version,
12764 # but apparently some variants of GNU ld only accept -v.
12765 # Break only if it was the GNU/non-GNU ld that we prefer.
12766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12767 *GNU* | *'with BFD'*)
12768 test "$with_gnu_ld" != no && break
12771 test "$with_gnu_ld" != yes && break
12778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12782 LD="$lt_cv_path_LD"
12783 if test -n "$LD"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12785 $as_echo "$LD" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12790 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12793 if ${lt_cv_prog_gnu_ld+:} false; then :
12794 $as_echo_n "(cached) " >&6
12796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12797 case `$LD -v 2>&1 </dev/null` in
12798 *GNU* | *'with BFD'*)
12799 lt_cv_prog_gnu_ld=yes
12802 lt_cv_prog_gnu_ld=no
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12808 with_gnu_ld=$lt_cv_prog_gnu_ld
12816 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12817 # archiving commands below assume that GNU ld is being used.
12818 if test "$with_gnu_ld" = yes; then
12819 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12825 # If archive_cmds runs LD, not CC, wlarc should be empty
12826 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12827 # investigate it a little bit more. (MM)
12830 # ancient GNU ld didn't support --whole-archive et. al.
12831 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12832 $GREP 'no-whole-archive' > /dev/null; then
12833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12835 whole_archive_flag_spec_CXX=
12841 # A generic and very simple default shared library creation
12842 # command for GNU C++ for the case where it uses the native
12843 # linker, instead of GNU ld. If possible, this setting should
12844 # overridden to take advantage of the native linker features on
12845 # the platform it is being used on.
12846 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12849 # Commands to make compiler produce verbose output that lists
12850 # what "hidden" libraries, object files and flags are used when
12851 # linking a shared library.
12852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12860 # PORTME: fill in a description of your system's C++ link characteristics
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12862 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12866 # FIXME: insert proper C++ library support
12870 if test "$host_cpu" = ia64; then
12871 # On IA64, the linker does run time linking by default, so we don't
12872 # have to do anything special.
12873 aix_use_runtimelinking=no
12874 exp_sym_flag='-Bexport'
12877 aix_use_runtimelinking=no
12879 # Test if we are trying to use run time linking or normal
12880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12881 # need to do runtime linking.
12882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12883 for ld_flag in $LDFLAGS; do
12886 aix_use_runtimelinking=yes
12894 exp_sym_flag='-bexport'
12895 no_entry_flag='-bnoentry'
12898 # When large executables or shared objects are built, AIX ld can
12899 # have problems creating the table of contents. If linking a library
12900 # or program results in "error TOC overflow" add -mminimal-toc to
12901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12904 archive_cmds_CXX=''
12905 hardcode_direct_CXX=yes
12906 hardcode_direct_absolute_CXX=yes
12907 hardcode_libdir_separator_CXX=':'
12908 link_all_deplibs_CXX=yes
12909 file_list_spec_CXX='${wl}-f,'
12911 if test "$GXX" = yes; then
12912 case $host_os in aix4.[012]|aix4.[012].*)
12913 # We only want to do this on AIX 4.2 and lower, the check
12914 # below for broken collect2 doesn't work under 4.3+
12915 collect2name=`${CC} -print-prog-name=collect2`
12916 if test -f "$collect2name" &&
12917 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12919 # We have reworked collect2
12922 # We have old collect2
12923 hardcode_direct_CXX=unsupported
12924 # It fails to find uninstalled libraries when the uninstalled
12925 # path is not listed in the libpath. Setting hardcode_minus_L
12926 # to unsupported forces relinking
12927 hardcode_minus_L_CXX=yes
12928 hardcode_libdir_flag_spec_CXX='-L$libdir'
12929 hardcode_libdir_separator_CXX=
12932 shared_flag='-shared'
12933 if test "$aix_use_runtimelinking" = yes; then
12934 shared_flag="$shared_flag "'${wl}-G'
12938 if test "$host_cpu" = ia64; then
12939 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12940 # chokes on -Wl,-G. The following line is correct:
12943 if test "$aix_use_runtimelinking" = yes; then
12944 shared_flag='${wl}-G'
12946 shared_flag='${wl}-bM:SRE'
12951 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12952 # It seems that -bexpall does not export symbols beginning with
12953 # underscore (_), so it is better to generate a list of symbols to
12955 always_export_symbols_CXX=yes
12956 if test "$aix_use_runtimelinking" = yes; then
12957 # Warning - without using the other runtime loading flags (-brtl),
12958 # -berok will link without error, but may produce a broken library.
12959 allow_undefined_flag_CXX='-berok'
12960 # Determine the default libpath from the value encoded in an empty
12962 if test "${lt_cv_aix_libpath+set}" = set; then
12963 aix_libpath=$lt_cv_aix_libpath
12965 if ${lt_cv_aix_libpath__CXX+:} false; then :
12966 $as_echo_n "(cached) " >&6
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12979 if ac_fn_cxx_try_link "$LINENO"; then :
12981 lt_aix_libpath_sed='
12982 /Import File Strings/,/^$/ {
12984 s/^0 *\([^ ]*\) *$/\1/
12988 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989 # Check for a 64-bit object if we didn't find anything.
12990 if test -z "$lt_cv_aix_libpath__CXX"; then
12991 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12994 rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12996 if test -z "$lt_cv_aix_libpath__CXX"; then
12997 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13002 aix_libpath=$lt_cv_aix_libpath__CXX
13005 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13007 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13009 if test "$host_cpu" = ia64; then
13010 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13011 allow_undefined_flag_CXX="-z nodefs"
13012 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"
13014 # Determine the default libpath from the value encoded in an
13015 # empty executable.
13016 if test "${lt_cv_aix_libpath+set}" = set; then
13017 aix_libpath=$lt_cv_aix_libpath
13019 if ${lt_cv_aix_libpath__CXX+:} false; then :
13020 $as_echo_n "(cached) " >&6
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13033 if ac_fn_cxx_try_link "$LINENO"; then :
13035 lt_aix_libpath_sed='
13036 /Import File Strings/,/^$/ {
13038 s/^0 *\([^ ]*\) *$/\1/
13042 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13043 # Check for a 64-bit object if we didn't find anything.
13044 if test -z "$lt_cv_aix_libpath__CXX"; then
13045 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 if test -z "$lt_cv_aix_libpath__CXX"; then
13051 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13056 aix_libpath=$lt_cv_aix_libpath__CXX
13059 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13060 # Warning - without using the other run time loading flags,
13061 # -berok will link without error, but may produce a broken library.
13062 no_undefined_flag_CXX=' ${wl}-bernotok'
13063 allow_undefined_flag_CXX=' ${wl}-berok'
13064 if test "$with_gnu_ld" = yes; then
13065 # We only use this code for GNU lds that support --whole-archive.
13066 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13068 # Exported symbols can be pulled into shared objects from archives
13069 whole_archive_flag_spec_CXX='$convenience'
13071 archive_cmds_need_lc_CXX=yes
13072 # This is similar to how AIX traditionally builds its shared
13074 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'
13080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13081 allow_undefined_flag_CXX=unsupported
13082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13083 # support --undefined. This deserves some investigation. FIXME
13084 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 case $cc_basename in
13093 # FIXME: insert proper C++ library support
13099 cygwin* | mingw* | pw32* | cegcc*)
13100 case $GXX,$cc_basename in
13103 # hardcode_libdir_flag_spec is actually meaningless, as there is
13104 # no search path for DLLs.
13105 hardcode_libdir_flag_spec_CXX=' '
13106 allow_undefined_flag_CXX=unsupported
13107 always_export_symbols_CXX=yes
13108 file_list_spec_CXX='@'
13109 # Tell ltmain to make .lib files, not .a files.
13111 # Tell ltmain to make .dll files, not .so files.
13113 # FIXME: Setting linknames here is a bad hack.
13114 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13115 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13116 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13118 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13120 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13122 # The linker will not automatically build a static lib if we build a DLL.
13123 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13124 enable_shared_with_static_runtimes_CXX=yes
13126 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13127 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13128 lt_tool_outputfile="@TOOL_OUTPUT@"~
13129 case $lt_outputfile in
13132 lt_outputfile="$lt_outputfile.exe"
13133 lt_tool_outputfile="$lt_tool_outputfile.exe"
13136 func_to_tool_file "$lt_outputfile"~
13137 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13138 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13139 $RM "$lt_outputfile.manifest";
13144 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13145 # as there is no search path for DLLs.
13146 hardcode_libdir_flag_spec_CXX='-L$libdir'
13147 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13148 allow_undefined_flag_CXX=unsupported
13149 always_export_symbols_CXX=no
13150 enable_shared_with_static_runtimes_CXX=yes
13152 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13153 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'
13154 # If the export-symbols file already is a .def file (1st line
13155 # is EXPORTS), use it as is; otherwise, prepend...
13156 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13157 cp $export_symbols $output_objdir/$soname.def;
13159 echo EXPORTS > $output_objdir/$soname.def;
13160 cat $export_symbols >> $output_objdir/$soname.def;
13162 $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'
13169 darwin* | rhapsody*)
13172 archive_cmds_need_lc_CXX=no
13173 hardcode_direct_CXX=no
13174 hardcode_automatic_CXX=yes
13175 hardcode_shlibpath_var_CXX=unsupported
13176 if test "$lt_cv_ld_force_load" = "yes"; then
13177 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13180 whole_archive_flag_spec_CXX=''
13182 link_all_deplibs_CXX=yes
13183 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13184 case $cc_basename in
13185 ifort*) _lt_dar_can_shared=yes ;;
13186 *) _lt_dar_can_shared=$GCC ;;
13188 if test "$_lt_dar_can_shared" = "yes"; then
13189 output_verbose_link_cmd=func_echo_all
13190 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}"
13191 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13192 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}"
13193 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}"
13194 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13195 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}"
13196 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}"
13206 case $cc_basename in
13208 # FIXME: insert proper C++ library support
13212 # Green Hills C++ Compiler
13213 # FIXME: insert proper C++ library support
13217 # FIXME: insert proper C++ library support
13224 # C++ shared libraries reported to be fairly broken before
13230 archive_cmds_need_lc_CXX=no
13233 freebsd* | dragonfly*)
13234 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13240 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241 link_all_deplibs_CXX=yes
13245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13246 hardcode_libdir_separator_CXX=:
13247 export_dynamic_flag_spec_CXX='${wl}-E'
13248 hardcode_direct_CXX=yes
13249 hardcode_minus_L_CXX=yes # Not in the search PATH,
13250 # but as the default
13251 # location of the library.
13253 case $cc_basename in
13255 # FIXME: insert proper C++ library support
13259 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'
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13264 # There doesn't appear to be a way to prevent this compiler from
13265 # explicitly linking system object files so we need to strip them
13266 # from the output so that they don't get included in the library
13268 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13271 if test "$GXX" = yes; then
13272 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13274 # FIXME: insert proper C++ library support
13282 if test $with_gnu_ld = no; then
13283 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13284 hardcode_libdir_separator_CXX=:
13290 export_dynamic_flag_spec_CXX='${wl}-E'
13296 hardcode_direct_CXX=no
13297 hardcode_shlibpath_var_CXX=no
13300 hardcode_direct_CXX=yes
13301 hardcode_direct_absolute_CXX=yes
13302 hardcode_minus_L_CXX=yes # Not in the search PATH,
13303 # but as the default
13304 # location of the library.
13308 case $cc_basename in
13310 # FIXME: insert proper C++ library support
13316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13319 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13322 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13333 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; func_echo_all "$list"'
13336 if test "$GXX" = yes; then
13337 if test $with_gnu_ld = no; then
13340 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13343 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13346 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351 # FIXME: insert proper C++ library support
13359 hardcode_direct_CXX=no
13360 hardcode_shlibpath_var_CXX=no
13361 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13362 export_dynamic_flag_spec_CXX='${wl}-E'
13363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13364 # Instead, shared libraries are loaded at an image base (0x10000000 by
13365 # default) and relocated if they conflict, which is a slow very memory
13366 # consuming and fragmenting process. To avoid this, we pick a random,
13367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13369 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'
13370 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'
13373 case $cc_basename in
13376 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13378 # Archives containing C++ object files must be created using
13379 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13380 # necessary to make sure instantiated templates are included
13382 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13385 if test "$GXX" = yes; then
13386 if test "$with_gnu_ld" = no; then
13387 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13389 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13392 link_all_deplibs_CXX=yes
13395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13396 hardcode_libdir_separator_CXX=:
13397 inherit_rpath_CXX=yes
13400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13401 case $cc_basename in
13403 # Kuck and Associates, Inc. (KAI) C++ Compiler
13405 # KCC will only create a shared library if the output file
13406 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13407 # to its proper name (with version) after linking.
13408 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'
13409 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'
13410 # Commands to make compiler produce verbose output that lists
13411 # what "hidden" libraries, object files and flags are used when
13412 # linking a shared library.
13414 # There doesn't appear to be a way to prevent this compiler from
13415 # explicitly linking system object files so we need to strip them
13416 # from the output so that they don't get included in the library
13418 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; func_echo_all "$list"'
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13423 # Archives containing C++ object files must be created using
13424 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13425 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13430 # version 8.0 and above of icpc choke on multiply defined symbols
13431 # if we add $predep_objects and $postdep_objects, however 7.1 and
13432 # earlier do not add the objects themselves.
13433 case `$CC -V 2>&1` in
13435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436 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'
13438 *) # Version 8.0 or newer
13441 ia64*) tmp_idyn=' -i_dynamic';;
13443 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 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'
13447 archive_cmds_need_lc_CXX=no
13448 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13450 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13453 # Portland Group C++ compiler
13455 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13456 prelink_cmds_CXX='tpldir=Template.dir~
13458 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13459 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13460 old_archive_cmds_CXX='tpldir=Template.dir~
13462 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13463 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13465 archive_cmds_CXX='tpldir=Template.dir~
13467 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13468 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13469 archive_expsym_cmds_CXX='tpldir=Template.dir~
13471 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13472 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13474 *) # Version 6 and above use weak symbols
13475 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13476 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'
13480 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13482 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13487 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'
13489 runpath_var=LD_RUN_PATH
13490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491 hardcode_libdir_separator_CXX=:
13493 # Commands to make compiler produce verbose output that lists
13494 # what "hidden" libraries, object files and flags are used when
13495 # linking a shared library.
13497 # There doesn't appear to be a way to prevent this compiler from
13498 # explicitly linking system object files so we need to strip them
13499 # from the output so that they don't get included in the library
13501 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13503 xl* | mpixl* | bgxl*)
13504 # IBM XL 8.0 on PPC, with GNU ld
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13507 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 if test "x$supports_anon_versioning" = xyes; then
13509 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13511 echo "local: *; };" >> $output_objdir/$libname.ver~
13512 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13516 case `$CC -V 2>&1 | sed 5q` in
13519 no_undefined_flag_CXX=' -zdefs'
13520 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13521 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'
13522 hardcode_libdir_flag_spec_CXX='-R$libdir'
13523 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13524 compiler_needs_object_CXX=yes
13526 # Not sure whether something based on
13527 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13529 output_verbose_link_cmd='func_echo_all'
13531 # Archives containing C++ object files must be created using
13532 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13533 # necessary to make sure instantiated templates are included
13535 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13543 # FIXME: insert proper C++ library support
13548 # FIXME: insert proper C++ library support
13553 case $cc_basename in
13555 # FIXME: insert proper C++ library support
13559 # FIXME: insert proper C++ library support
13566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13567 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13569 hardcode_libdir_flag_spec_CXX='-R$libdir'
13570 hardcode_direct_CXX=yes
13571 hardcode_shlibpath_var_CXX=no
13573 # Workaround some broken pre-1.5 toolchains
13574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13582 # C++ shared libraries are fairly broken
13587 if test -f /usr/libexec/ld.so; then
13588 hardcode_direct_CXX=yes
13589 hardcode_shlibpath_var_CXX=no
13590 hardcode_direct_absolute_CXX=yes
13591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13594 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13595 export_dynamic_flag_spec_CXX='${wl}-E'
13596 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13598 output_verbose_link_cmd=func_echo_all
13604 osf3* | osf4* | osf5*)
13605 case $cc_basename in
13607 # Kuck and Associates, Inc. (KAI) C++ Compiler
13609 # KCC will only create a shared library if the output file
13610 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13611 # to its proper name (with version) after linking.
13612 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'
13614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13615 hardcode_libdir_separator_CXX=:
13617 # Archives containing C++ object files must be created using
13618 # the KAI C++ compiler.
13620 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13621 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13625 # Rational C++ 2.4.1
13626 # FIXME: insert proper C++ library support
13632 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13633 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637 allow_undefined_flag_CXX=' -expect_unresolved \*'
13638 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13639 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13640 echo "-hidden">> $lib.exp~
13641 $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~
13643 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13647 hardcode_libdir_separator_CXX=:
13649 # Commands to make compiler produce verbose output that lists
13650 # what "hidden" libraries, object files and flags are used when
13651 # linking a shared library.
13653 # There doesn't appear to be a way to prevent this compiler from
13654 # explicitly linking system object files so we need to strip them
13655 # from the output so that they don't get included in the library
13657 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13664 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13667 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13672 hardcode_libdir_separator_CXX=:
13674 # Commands to make compiler produce verbose output that lists
13675 # what "hidden" libraries, object files and flags are used when
13676 # linking a shared library.
13677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13680 # FIXME: insert proper C++ library support
13688 # FIXME: insert proper C++ library support
13693 case $cc_basename in
13696 # FIXME: insert proper C++ library support
13701 # FIXME: insert proper C++ library support
13705 # FIXME: insert proper C++ library support
13712 case $cc_basename in
13714 # Sun C++ 4.2, 5.x and Centerline C++
13715 archive_cmds_need_lc_CXX=yes
13716 no_undefined_flag_CXX=' -zdefs'
13717 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13719 $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'
13721 hardcode_libdir_flag_spec_CXX='-R$libdir'
13722 hardcode_shlibpath_var_CXX=no
13724 solaris2.[0-5] | solaris2.[0-5].*) ;;
13726 # The compiler driver will combine and reorder linker options,
13727 # but understands `-z linker_flag'.
13728 # Supported since Solaris 2.6 (maybe 2.5.1?)
13729 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13732 link_all_deplibs_CXX=yes
13734 output_verbose_link_cmd='func_echo_all'
13736 # Archives containing C++ object files must be created using
13737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13738 # necessary to make sure instantiated templates are included
13740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13743 # Green Hills C++ Compiler
13744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13746 # The C++ compiler must be used to create the archive.
13747 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13750 # GNU C++ compiler with Solaris linker
13751 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13752 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13753 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13754 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13755 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13758 # Commands to make compiler produce verbose output that lists
13759 # what "hidden" libraries, object files and flags are used when
13760 # linking a shared library.
13761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13763 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13765 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13766 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13767 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13769 # Commands to make compiler produce verbose output that lists
13770 # what "hidden" libraries, object files and flags are used when
13771 # linking a shared library.
13772 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13775 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13777 solaris2.[0-5] | solaris2.[0-5].*) ;;
13779 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13788 no_undefined_flag_CXX='${wl}-z,text'
13789 archive_cmds_need_lc_CXX=no
13790 hardcode_shlibpath_var_CXX=no
13791 runpath_var='LD_RUN_PATH'
13793 case $cc_basename in
13795 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 sysv5* | sco3.2v5* | sco5v6*)
13806 # Note: We can NOT use -z defs as we might desire, because we do not
13807 # link with -lc, and that would cause any symbols used from libc to
13808 # always be unresolved, which means just about no library would
13809 # ever link correctly. If we're not using GNU ld we use -z text
13810 # though, which does catch some bad symbols but isn't as heavy-handed
13812 no_undefined_flag_CXX='${wl}-z,text'
13813 allow_undefined_flag_CXX='${wl}-z,nodefs'
13814 archive_cmds_need_lc_CXX=no
13815 hardcode_shlibpath_var_CXX=no
13816 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13817 hardcode_libdir_separator_CXX=':'
13818 link_all_deplibs_CXX=yes
13819 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13820 runpath_var='LD_RUN_PATH'
13822 case $cc_basename in
13824 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13827 '"$old_archive_cmds_CXX"
13828 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13829 '"$reload_cmds_CXX"
13832 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 case $cc_basename in
13841 # NonStop-UX NCC 3.20
13842 # FIXME: insert proper C++ library support
13846 # FIXME: insert proper C++ library support
13853 # FIXME: insert proper C++ library support
13858 # FIXME: insert proper C++ library support
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13864 $as_echo "$ld_shlibs_CXX" >&6; }
13865 test "$ld_shlibs_CXX" = no && can_build_shared=no
13871 ## There is no encapsulation within the following macros, do not change
13872 ## the running order or otherwise move them around unless you know exactly
13873 ## what you are doing...
13874 # Dependencies to place before and after the object being linked:
13875 predep_objects_CXX=
13876 postdep_objects_CXX=
13879 compiler_lib_search_path_CXX=
13881 cat > conftest.$ac_ext <<_LT_EOF
13885 Foo (void) { a = 0; }
13892 _lt_libdeps_save_CFLAGS=$CFLAGS
13893 case "$CC $CFLAGS " in #(
13894 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13895 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13896 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13900 (eval $ac_compile) 2>&5
13902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }; then
13904 # Parse the compiler output and extract the necessary
13905 # objects, libraries and library flags.
13907 # Sentinel used to keep track of whether or not we are before
13908 # the conftest object file.
13909 pre_test_object_deps_done=no
13911 for p in `eval "$output_verbose_link_cmd"`; do
13912 case ${prev}${p} in
13915 # Some compilers place space between "-{L,R}" and the path.
13916 # Remove the space.
13917 if test $p = "-L" ||
13918 test $p = "-R"; then
13923 # Expand the sysroot to ease extracting the directories later.
13924 if test -z "$prev"; then
13926 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13927 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13928 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13932 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13934 if test "$pre_test_object_deps_done" = no; then
13937 # Internal compiler library paths should come after those
13938 # provided the user. The postdeps already come after the
13939 # user supplied libs so there is no need to process them.
13940 if test -z "$compiler_lib_search_path_CXX"; then
13941 compiler_lib_search_path_CXX="${prev}${p}"
13943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13946 # The "-l" case would never come before the object being
13947 # linked, so don't bother handling this case.
13950 if test -z "$postdeps_CXX"; then
13951 postdeps_CXX="${prev}${p}"
13953 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13959 *.lto.$objext) ;; # Ignore GCC LTO objects
13961 # This assumes that the test object file only shows up
13962 # once in the compiler output.
13963 if test "$p" = "conftest.$objext"; then
13964 pre_test_object_deps_done=yes
13968 if test "$pre_test_object_deps_done" = no; then
13969 if test -z "$predep_objects_CXX"; then
13970 predep_objects_CXX="$p"
13972 predep_objects_CXX="$predep_objects_CXX $p"
13975 if test -z "$postdep_objects_CXX"; then
13976 postdep_objects_CXX="$p"
13978 postdep_objects_CXX="$postdep_objects_CXX $p"
13983 *) ;; # Ignore the rest.
13991 echo "libtool.m4: error: problem compiling CXX test program"
13994 $RM -f confest.$objext
13995 CFLAGS=$_lt_libdeps_save_CFLAGS
13997 # PORTME: override above test on systems where it is broken
14000 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14001 # hack all around it, let's just trust "g++" to DTRT.
14002 predep_objects_CXX=
14003 postdep_objects_CXX=
14008 case `$CC -V 2>&1 | sed 5q` in
14012 # The more standards-conforming stlport4 library is
14013 # incompatible with the Cstd library. Avoid specifying
14014 # it if it's in CXXFLAGS. Ignore libCrun as
14015 # -library=stlport4 depends on it.
14016 case " $CXX $CXXFLAGS " in
14017 *" -library=stlport4 "*)
14018 solaris_use_stlport4=yes
14022 if test "$solaris_use_stlport4" != yes; then
14023 postdeps_CXX='-library=Cstd -library=Crun'
14030 case $cc_basename in
14032 # The more standards-conforming stlport4 library is
14033 # incompatible with the Cstd library. Avoid specifying
14034 # it if it's in CXXFLAGS. Ignore libCrun as
14035 # -library=stlport4 depends on it.
14036 case " $CXX $CXXFLAGS " in
14037 *" -library=stlport4 "*)
14038 solaris_use_stlport4=yes
14042 # Adding this requires a known-good setup of shared libraries for
14043 # Sun compiler versions before 5.6, else PIC objects from an old
14044 # archive will be linked into the output, leading to subtle bugs.
14045 if test "$solaris_use_stlport4" != yes; then
14046 postdeps_CXX='-library=Cstd -library=Crun'
14054 case " $postdeps_CXX " in
14055 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14057 compiler_lib_search_dirs_CXX=
14058 if test -n "${compiler_lib_search_path_CXX}"; then
14059 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14092 lt_prog_compiler_wl_CXX=
14093 lt_prog_compiler_pic_CXX=
14094 lt_prog_compiler_static_CXX=
14097 # C++ specific cases for pic, static, wl, etc.
14098 if test "$GXX" = yes; then
14099 lt_prog_compiler_wl_CXX='-Wl,'
14100 lt_prog_compiler_static_CXX='-static'
14104 # All AIX code is PIC.
14105 if test "$host_cpu" = ia64; then
14106 # AIX 5 now supports IA64 processor
14107 lt_prog_compiler_static_CXX='-Bstatic'
14114 # see comment about AmigaOS4 .so support
14115 lt_prog_compiler_pic_CXX='-fPIC'
14118 # FIXME: we need at least 68020 code to build shared libraries, but
14119 # adding the `-m68020' flag to GCC prevents building anything better,
14121 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14127 # PIC is the default for these OSes.
14129 mingw* | cygwin* | os2* | pw32* | cegcc*)
14130 # This hack is so that the source file can tell whether it is being
14131 # built for inclusion in a dll (and should export symbols for example).
14132 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14133 # (--disable-auto-import) libraries
14134 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14136 darwin* | rhapsody*)
14137 # PIC is the default on this platform
14138 # Common symbols not allowed in MH_DYLIB files
14139 lt_prog_compiler_pic_CXX='-fno-common'
14142 # DJGPP does not support shared libraries at all
14143 lt_prog_compiler_pic_CXX=
14146 # PIC is the default for Haiku.
14147 # The "-static" flag exists, but is broken.
14148 lt_prog_compiler_static_CXX=
14151 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14152 # Instead, we relocate shared libraries at runtime.
14155 if test -d /usr/nec; then
14156 lt_prog_compiler_pic_CXX=-Kconform_pic
14160 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14161 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14162 # sets the default TLS model and affects inlining.
14167 lt_prog_compiler_pic_CXX='-fPIC'
14172 # QNX uses GNU C++, but need to define -shared option too, otherwise
14173 # it will coredump.
14174 lt_prog_compiler_pic_CXX='-fPIC -shared'
14177 lt_prog_compiler_pic_CXX='-fPIC'
14183 # All AIX code is PIC.
14184 if test "$host_cpu" = ia64; then
14185 # AIX 5 now supports IA64 processor
14186 lt_prog_compiler_static_CXX='-Bstatic'
14188 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14192 case $cc_basename in
14194 # Green Hills C++ Compiler
14195 # _LT_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"
14199 mingw* | cygwin* | os2* | pw32* | cegcc*)
14200 # This hack is so that the source file can tell whether it is being
14201 # built for inclusion in a dll (and should export symbols for example).
14202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14205 case $cc_basename in
14207 lt_prog_compiler_pic_CXX='-KPIC'
14210 # Green Hills C++ Compiler
14211 lt_prog_compiler_pic_CXX='-pic'
14217 freebsd* | dragonfly*)
14218 # FreeBSD uses GNU C++
14220 hpux9* | hpux10* | hpux11*)
14221 case $cc_basename in
14223 lt_prog_compiler_wl_CXX='-Wl,'
14224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14225 if test "$host_cpu" != ia64; then
14226 lt_prog_compiler_pic_CXX='+Z'
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14237 lt_prog_compiler_pic_CXX='+Z'
14246 # This is c89, which is MS Visual C++ (no shared libs)
14247 # Anyone wants to do a port?
14249 irix5* | irix6* | nonstopux*)
14250 case $cc_basename in
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_static_CXX='-non_shared'
14254 # CC pic flag -KPIC is the default.
14260 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14261 case $cc_basename in
14264 lt_prog_compiler_wl_CXX='--backend -Wl,'
14265 lt_prog_compiler_pic_CXX='-fPIC'
14268 # old Intel C++ for x86_64 which still supported -KPIC.
14269 lt_prog_compiler_wl_CXX='-Wl,'
14270 lt_prog_compiler_pic_CXX='-KPIC'
14271 lt_prog_compiler_static_CXX='-static'
14274 # Intel C++, used to be incompatible with GCC.
14275 # ICC 10 doesn't accept -KPIC any more.
14276 lt_prog_compiler_wl_CXX='-Wl,'
14277 lt_prog_compiler_pic_CXX='-fPIC'
14278 lt_prog_compiler_static_CXX='-static'
14281 # Portland Group C++ compiler
14282 lt_prog_compiler_wl_CXX='-Wl,'
14283 lt_prog_compiler_pic_CXX='-fpic'
14284 lt_prog_compiler_static_CXX='-Bstatic'
14288 # Make sure the PIC flag is empty. It appears that all Alpha
14289 # Linux and Compaq Tru64 Unix objects are PIC.
14290 lt_prog_compiler_pic_CXX=
14291 lt_prog_compiler_static_CXX='-non_shared'
14293 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14294 # IBM XL 8.0, 9.0 on PPC and BlueGene
14295 lt_prog_compiler_wl_CXX='-Wl,'
14296 lt_prog_compiler_pic_CXX='-qpic'
14297 lt_prog_compiler_static_CXX='-qstaticlink'
14300 case `$CC -V 2>&1 | sed 5q` in
14303 lt_prog_compiler_pic_CXX='-KPIC'
14304 lt_prog_compiler_static_CXX='-Bstatic'
14305 lt_prog_compiler_wl_CXX='-Qoption ld '
14316 case $cc_basename in
14318 lt_prog_compiler_pic_CXX='-W c,exportall'
14324 netbsd* | netbsdelf*-gnu)
14327 # QNX uses GNU C++, but need to define -shared option too, otherwise
14328 # it will coredump.
14329 lt_prog_compiler_pic_CXX='-fPIC -shared'
14331 osf3* | osf4* | osf5*)
14332 case $cc_basename in
14334 lt_prog_compiler_wl_CXX='--backend -Wl,'
14337 # Rational C++ 2.4.1
14338 lt_prog_compiler_pic_CXX='-pic'
14341 # Digital/Compaq C++
14342 lt_prog_compiler_wl_CXX='-Wl,'
14343 # Make sure the PIC flag is empty. It appears that all Alpha
14344 # Linux and Compaq Tru64 Unix objects are PIC.
14345 lt_prog_compiler_pic_CXX=
14346 lt_prog_compiler_static_CXX='-non_shared'
14355 case $cc_basename in
14357 # Sun C++ 4.2, 5.x and Centerline C++
14358 lt_prog_compiler_pic_CXX='-KPIC'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14360 lt_prog_compiler_wl_CXX='-Qoption ld '
14363 # Green Hills C++ Compiler
14364 lt_prog_compiler_pic_CXX='-PIC'
14371 case $cc_basename in
14374 lt_prog_compiler_pic_CXX='-pic'
14375 lt_prog_compiler_static_CXX='-Bstatic'
14379 lt_prog_compiler_pic_CXX='-pic'
14385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386 case $cc_basename in
14388 lt_prog_compiler_wl_CXX='-Wl,'
14389 lt_prog_compiler_pic_CXX='-KPIC'
14390 lt_prog_compiler_static_CXX='-Bstatic'
14395 case $cc_basename in
14397 # NonStop-UX NCC 3.20
14398 lt_prog_compiler_pic_CXX='-KPIC'
14407 lt_prog_compiler_can_build_shared_CXX=no
14413 # For platforms which do not support PIC, -DPIC is meaningless:
14415 lt_prog_compiler_pic_CXX=
14418 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14423 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14424 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14425 $as_echo_n "(cached) " >&6
14427 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14430 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14431 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14434 # Check to make sure the PIC flag actually works.
14436 if test -n "$lt_prog_compiler_pic_CXX"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14438 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14439 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14440 $as_echo_n "(cached) " >&6
14442 lt_cv_prog_compiler_pic_works_CXX=no
14443 ac_outfile=conftest.$ac_objext
14444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14445 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14446 # Insert the option either (1) after the last *FLAGS variable, or
14447 # (2) before a word containing "conftest.", or (3) at the end.
14448 # Note that $ac_compile itself does not contain backslashes and begins
14449 # with a dollar sign (not a hyphen), so the echo should work correctly.
14450 # The option is referenced via a variable to avoid confusing sed.
14451 lt_compile=`echo "$ac_compile" | $SED \
14452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454 -e 's:$: $lt_compiler_flag:'`
14455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14456 (eval "$lt_compile" 2>conftest.err)
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 if (exit $ac_status) && test -s "$ac_outfile"; then
14461 # The compiler can only warn and ignore the option if not recognized
14462 # So say no if there are warnings other than the usual output.
14463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14466 lt_cv_prog_compiler_pic_works_CXX=yes
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14473 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14475 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14476 case $lt_prog_compiler_pic_CXX in
14478 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14481 lt_prog_compiler_pic_CXX=
14482 lt_prog_compiler_can_build_shared_CXX=no
14492 # Check to make sure the static flag actually works.
14494 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14497 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14498 $as_echo_n "(cached) " >&6
14500 lt_cv_prog_compiler_static_works_CXX=no
14501 save_LDFLAGS="$LDFLAGS"
14502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14505 # The linker can only warn and ignore the option if not recognized
14506 # So say no if there are warnings
14507 if test -s conftest.err; then
14508 # Append any errors to the config.log.
14509 cat conftest.err 1>&5
14510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14512 if diff conftest.exp conftest.er2 >/dev/null; then
14513 lt_cv_prog_compiler_static_works_CXX=yes
14516 lt_cv_prog_compiler_static_works_CXX=yes
14520 LDFLAGS="$save_LDFLAGS"
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14524 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14526 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14529 lt_prog_compiler_static_CXX=
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14537 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14538 $as_echo_n "(cached) " >&6
14540 lt_cv_prog_compiler_c_o_CXX=no
14541 $RM -r conftest 2>/dev/null
14545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14547 lt_compiler_flag="-o out/conftest2.$ac_objext"
14548 # Insert the option either (1) after the last *FLAGS variable, or
14549 # (2) before a word containing "conftest.", or (3) at the end.
14550 # Note that $ac_compile itself does not contain backslashes and begins
14551 # with a dollar sign (not a hyphen), so the echo should work correctly.
14552 lt_compile=`echo "$ac_compile" | $SED \
14553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14555 -e 's:$: $lt_compiler_flag:'`
14556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14557 (eval "$lt_compile" 2>out/conftest.err)
14559 cat out/conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14563 # The compiler can only warn and ignore the option if not recognized
14564 # So say no if there are warnings
14565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14568 lt_cv_prog_compiler_c_o_CXX=yes
14573 # SGI C++ compiler will create directory out/ii_files/ for
14574 # template instantiation
14575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14576 $RM out/* && rmdir out
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14583 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14589 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14590 $as_echo_n "(cached) " >&6
14592 lt_cv_prog_compiler_c_o_CXX=no
14593 $RM -r conftest 2>/dev/null
14597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14599 lt_compiler_flag="-o out/conftest2.$ac_objext"
14600 # Insert the option either (1) after the last *FLAGS variable, or
14601 # (2) before a word containing "conftest.", or (3) at the end.
14602 # Note that $ac_compile itself does not contain backslashes and begins
14603 # with a dollar sign (not a hyphen), so the echo should work correctly.
14604 lt_compile=`echo "$ac_compile" | $SED \
14605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14607 -e 's:$: $lt_compiler_flag:'`
14608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14609 (eval "$lt_compile" 2>out/conftest.err)
14611 cat out/conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14615 # The compiler can only warn and ignore the option if not recognized
14616 # So say no if there are warnings
14617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14620 lt_cv_prog_compiler_c_o_CXX=yes
14625 # SGI C++ compiler will create directory out/ii_files/ for
14626 # template instantiation
14627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14628 $RM out/* && rmdir out
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14635 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14640 hard_links="nottested"
14641 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14642 # do not overwrite the value of need_locks provided by the user
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14644 $as_echo_n "checking if we can lock with hard links... " >&6; }
14647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14649 ln conftest.a conftest.b 2>&5 || hard_links=no
14650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14652 $as_echo "$hard_links" >&6; }
14653 if test "$hard_links" = no; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14665 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14668 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14671 # If we're using GNU nm, then we don't want the "-C" option.
14672 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14673 # Also, AIX nm treats weak defined symbols like other global defined
14674 # symbols, whereas GNU nm marks them as "W".
14675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14676 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14678 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'
14682 export_symbols_cmds_CXX="$ltdll_cmds"
14684 cygwin* | mingw* | cegcc*)
14685 case $cc_basename in
14687 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14691 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14695 linux* | k*bsd*-gnu | gnu*)
14696 link_all_deplibs_CXX=no
14699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14704 $as_echo "$ld_shlibs_CXX" >&6; }
14705 test "$ld_shlibs_CXX" = no && can_build_shared=no
14707 with_gnu_ld_CXX=$with_gnu_ld
14715 # Do we need to explicitly link libc?
14717 case "x$archive_cmds_need_lc_CXX" in
14719 # Assume -lc should be added
14720 archive_cmds_need_lc_CXX=yes
14722 if test "$enable_shared" = yes && test "$GCC" = yes; then
14723 case $archive_cmds_CXX in
14725 # FIXME: we may have to deal with multi-command sequences.
14728 # Test whether the compiler implicitly links with -lc since on some
14729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14730 # to ld, don't add -lc before -lgcc.
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14733 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14734 $as_echo_n "(cached) " >&6
14737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14740 (eval $ac_compile) 2>&5
14742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743 test $ac_status = 0; } 2>conftest.err; then
14746 libobjs=conftest.$ac_objext
14748 wl=$lt_prog_compiler_wl_CXX
14749 pic_flag=$lt_prog_compiler_pic_CXX
14755 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14756 allow_undefined_flag_CXX=
14757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14758 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14761 test $ac_status = 0; }
14763 lt_cv_archive_cmds_need_lc_CXX=no
14765 lt_cv_archive_cmds_need_lc_CXX=yes
14767 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14769 cat conftest.err 1>&5
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14775 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14776 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14845 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14847 library_names_spec=
14848 libname_spec='lib$name'
14852 postuninstall_cmds=
14856 shlibpath_overrides_runpath=unknown
14858 dynamic_linker="$host_os ld.so"
14859 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14860 need_lib_prefix=unknown
14861 hardcode_into_libs=no
14863 # when you set need_version to no, make sure it does not cause -set_version
14864 # flags to be left without arguments
14865 need_version=unknown
14869 version_type=linux # correct to gnu/linux during the next big refactor
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14871 shlibpath_var=LIBPATH
14873 # AIX 3 has no versioning support, so we append a major version to the name.
14874 soname_spec='${libname}${release}${shared_ext}$major'
14878 version_type=linux # correct to gnu/linux during the next big refactor
14881 hardcode_into_libs=yes
14882 if test "$host_cpu" = ia64; then
14883 # AIX 5 supports IA64
14884 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14885 shlibpath_var=LD_LIBRARY_PATH
14887 # With GCC up to 2.95.x, collect2 would create an import file
14888 # for dependence libraries. The import file would start with
14889 # the line `#! .'. This would cause the generated library to
14890 # depend on `.', always an invalid library. This was fixed in
14891 # development snapshots of GCC prior to 3.0.
14893 aix4 | aix4.[01] | aix4.[01].*)
14894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14896 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14899 can_build_shared=no
14903 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14904 # soname into executable. Probably we can add versioning support to
14905 # collect2, so additional links can be useful in future.
14906 if test "$aix_use_runtimelinking" = yes; then
14907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14908 # instead of lib<name>.a to let people know that these are not
14909 # typical AIX shared libraries.
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912 # We preserve .a as extension for shared libraries through AIX4.2
14913 # and later when we are not doing run time linking.
14914 library_names_spec='${libname}${release}.a $libname.a'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14917 shlibpath_var=LIBPATH
14924 # Since July 2007 AmigaOS4 officially supports .so libraries.
14925 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 library_names_spec='$libname.ixlibrary $libname.a'
14930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14931 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14937 library_names_spec='${libname}${shared_ext}'
14938 dynamic_linker="$host_os ld.so"
14939 shlibpath_var=LIBRARY_PATH
14943 version_type=linux # correct to gnu/linux during the next big refactor
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14951 # the default ld.so.conf also contains /usr/contrib/lib and
14952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14953 # libtool to hard-code these into programs
14956 cygwin* | mingw* | pw32* | cegcc*)
14957 version_type=windows
14962 case $GCC,$cc_basename in
14965 library_names_spec='$libname.dll.a'
14966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14967 postinstall_cmds='base_file=`basename \${file}`~
14968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14969 dldir=$destdir/`dirname \$dlpath`~
14970 test -d \$dldir || mkdir -p \$dldir~
14971 $install_prog $dir/$dlname \$dldir/$dlname~
14972 chmod a+x \$dldir/$dlname~
14973 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14974 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14977 dlpath=$dir/\$dldll~
14979 shlibpath_overrides_runpath=yes
14983 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14984 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14988 # MinGW DLLs use traditional 'lib' prefix
14989 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14992 # pw32 DLLs use 'pw' prefix rather than 'lib'
14993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14996 dynamic_linker='Win32 ld.exe'
15001 libname_spec='$name'
15002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15003 library_names_spec='${libname}.dll.lib'
15007 sys_lib_search_path_spec=
15010 for lt_path in $LIB
15013 # Let DOS variable expansion print the short 8.3 style file name.
15014 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15015 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15018 # Convert to MSYS style.
15019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15022 # Convert to unix form, then to dos form, then back to unix form
15023 # but this time dos style (no spaces!) so that the unix form looks
15024 # like /cygdrive/c/PROGRA~1:/cygdr...
15025 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15026 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15027 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15030 sys_lib_search_path_spec="$LIB"
15031 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15032 # It is most probably a Windows format PATH.
15033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15037 # FIXME: find the short name or the path components, as spaces are
15038 # common. (e.g. "Program Files" -> "PROGRA~1")
15042 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15043 postinstall_cmds='base_file=`basename \${file}`~
15044 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15045 dldir=$destdir/`dirname \$dlpath`~
15046 test -d \$dldir || mkdir -p \$dldir~
15047 $install_prog $dir/$dlname \$dldir/$dlname'
15048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15049 dlpath=$dir/\$dldll~
15051 shlibpath_overrides_runpath=yes
15052 dynamic_linker='Win32 link.exe'
15056 # Assume MSVC wrapper
15057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15058 dynamic_linker='Win32 ld.exe'
15061 # FIXME: first we should search . and the directory the executable is in
15065 darwin* | rhapsody*)
15066 dynamic_linker="$host_os dyld"
15067 version_type=darwin
15070 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15071 soname_spec='${libname}${release}${major}$shared_ext'
15072 shlibpath_overrides_runpath=yes
15073 shlibpath_var=DYLD_LIBRARY_PATH
15074 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15080 version_type=linux # correct to gnu/linux during the next big refactor
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 shlibpath_var=LD_LIBRARY_PATH
15088 freebsd* | dragonfly*)
15089 # DragonFly does not have aout. When/if they implement a new
15090 # versioning mechanism, adjust this.
15091 if test -x /usr/bin/objformat; then
15092 objformat=`/usr/bin/objformat`
15095 freebsd[23].*) objformat=aout ;;
15096 *) objformat=elf ;;
15099 version_type=freebsd-$objformat
15100 case $version_type in
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15111 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=yes
15116 freebsd3.[01]* | freebsdelf3.[01]*)
15117 shlibpath_overrides_runpath=yes
15118 hardcode_into_libs=yes
15120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15122 shlibpath_overrides_runpath=no
15123 hardcode_into_libs=yes
15125 *) # from 4.6 on, and DragonFly
15126 shlibpath_overrides_runpath=yes
15127 hardcode_into_libs=yes
15133 version_type=linux # correct to gnu/linux during the next big refactor
15136 dynamic_linker="$host_os runtime_loader"
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LIBRARY_PATH
15140 shlibpath_overrides_runpath=yes
15141 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15142 hardcode_into_libs=yes
15145 hpux9* | hpux10* | hpux11*)
15146 # Give a soname corresponding to the major version so that dld.sl refuses to
15147 # link against other versions.
15154 hardcode_into_libs=yes
15155 dynamic_linker="$host_os dld.so"
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 if test "X$HPUX_IA64_MODE" = X32; then
15161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15169 hardcode_into_libs=yes
15170 dynamic_linker="$host_os dld.sl"
15171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15180 dynamic_linker="$host_os dld.sl"
15181 shlibpath_var=SHLIB_PATH
15182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15188 postinstall_cmds='chmod 555 $lib'
15189 # or fails outright, so override atomically:
15190 install_override_mode=555
15194 version_type=linux # correct to gnu/linux during the next big refactor
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=no
15202 hardcode_into_libs=yes
15205 irix5* | irix6* | nonstopux*)
15207 nonstopux*) version_type=nonstopux ;;
15209 if test "$lt_cv_prog_gnu_ld" = yes; then
15210 version_type=linux # correct to gnu/linux during the next big refactor
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15220 irix5* | nonstopux*)
15221 libsuff= shlibsuff=
15224 case $LD in # libtool.m4 will add one of these switches to LD
15225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15226 libsuff= shlibsuff= libmagic=32-bit;;
15227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15228 libsuff=32 shlibsuff=N32 libmagic=N32;;
15229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15231 *) libsuff= shlibsuff= libmagic=never-match;;
15235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15236 shlibpath_overrides_runpath=no
15237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15239 hardcode_into_libs=yes
15242 # No shared lib support for Linux oldld, aout, or coff.
15243 linux*oldld* | linux*aout* | linux*coff*)
15247 # This must be glibc/ELF.
15248 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15249 version_type=linux # correct to gnu/linux during the next big refactor
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=no
15258 # Some binutils ld are patched to set DT_RUNPATH
15259 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15260 $as_echo_n "(cached) " >&6
15262 lt_cv_shlibpath_overrides_runpath=no
15263 save_LDFLAGS=$LDFLAGS
15264 save_libdir=$libdir
15265 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15266 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15278 if ac_fn_cxx_try_link "$LINENO"; then :
15279 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15280 lt_cv_shlibpath_overrides_runpath=yes
15283 rm -f core conftest.err conftest.$ac_objext \
15284 conftest$ac_exeext conftest.$ac_ext
15285 LDFLAGS=$save_LDFLAGS
15286 libdir=$save_libdir
15290 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15292 # This implies no fast_install, which is unacceptable.
15293 # Some rework will be needed to allow for fast_install
15294 # before this can be enabled.
15295 hardcode_into_libs=yes
15297 # Append ld.so.conf contents to the search path
15298 if test -f /etc/ld.so.conf; then
15299 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;s/"//g;/^$/d' | tr '\n' ' '`
15300 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15303 # We used to test for /lib/ld.so.1 and disable shared libraries on
15304 # powerpc, because MkLinux only supported shared libraries with the
15305 # GNU dynamic linker. Since this was broken with cross compilers,
15306 # most powerpc-linux boxes support dynamic linking these days and
15307 # people can always --disable-shared, the test was removed, and we
15308 # assume the GNU/Linux dynamic linker is in use.
15309 dynamic_linker='GNU/Linux ld.so'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=no
15320 hardcode_into_libs=yes
15321 dynamic_linker='NetBSD ld.elf_so'
15328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15331 dynamic_linker='NetBSD (a.out) ld.so'
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 dynamic_linker='NetBSD ld.elf_so'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes
15339 hardcode_into_libs=yes
15343 version_type=linux # correct to gnu/linux during the next big refactor
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=yes
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15358 dynamic_linker='ldqnx.so'
15363 sys_lib_dlsearch_path_spec="/usr/lib"
15365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15367 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15368 *) need_version=no ;;
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15375 openbsd2.[89] | openbsd2.[89].*)
15376 shlibpath_overrides_runpath=no
15379 shlibpath_overrides_runpath=yes
15383 shlibpath_overrides_runpath=yes
15388 libname_spec='$name'
15391 library_names_spec='$libname${shared_ext} $libname.a'
15392 dynamic_linker='OS/2 ld.exe'
15393 shlibpath_var=LIBPATH
15396 osf3* | osf4* | osf5*)
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15412 version_type=linux # correct to gnu/linux during the next big refactor
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
15418 shlibpath_overrides_runpath=yes
15419 hardcode_into_libs=yes
15420 # ldd complains unless libraries are executable
15421 postinstall_cmds='chmod +x $lib'
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15430 if test "$with_gnu_ld" = yes; then
15437 version_type=linux # correct to gnu/linux during the next big refactor
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 case $host_vendor in
15443 shlibpath_overrides_runpath=no
15445 runpath_var=LD_RUN_PATH
15453 shlibpath_overrides_runpath=no
15454 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15460 if test -d /usr/nec ;then
15461 version_type=linux # correct to gnu/linux during the next big refactor
15462 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15463 soname_spec='$libname${shared_ext}.$major'
15464 shlibpath_var=LD_LIBRARY_PATH
15468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15469 version_type=freebsd-elf
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=yes
15476 hardcode_into_libs=yes
15477 if test "$with_gnu_ld" = yes; then
15478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15480 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15483 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15487 sys_lib_dlsearch_path_spec='/usr/lib'
15491 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15492 version_type=linux # correct to gnu/linux during the next big refactor
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=no
15498 hardcode_into_libs=yes
15502 version_type=linux # correct to gnu/linux during the next big refactor
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15513 $as_echo "$dynamic_linker" >&6; }
15514 test "$dynamic_linker" = no && can_build_shared=no
15516 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15517 if test "$GCC" = yes; then
15518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15521 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15522 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15524 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15525 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15567 hardcode_action_CXX=
15568 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15569 test -n "$runpath_var_CXX" ||
15570 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15572 # We can hardcode non-existent directories.
15573 if test "$hardcode_direct_CXX" != no &&
15574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15575 # have to relink, otherwise we might link with an installed library
15576 # when we should be linking with a yet-to-be-installed one
15577 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15578 test "$hardcode_minus_L_CXX" != no; then
15579 # Linking always hardcodes the temporary library directory.
15580 hardcode_action_CXX=relink
15582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15583 hardcode_action_CXX=immediate
15586 # We cannot hardcode anything, or else we can only hardcode existing
15588 hardcode_action_CXX=unsupported
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15591 $as_echo "$hardcode_action_CXX" >&6; }
15593 if test "$hardcode_action_CXX" = relink ||
15594 test "$inherit_rpath_CXX" = yes; then
15595 # Fast installation is not supported
15596 enable_fast_install=no
15597 elif test "$shlibpath_overrides_runpath" = yes ||
15598 test "$enable_shared" = no; then
15599 # Fast installation is not necessary
15600 enable_fast_install=needless
15609 fi # test -n "$compiler"
15612 CFLAGS=$lt_save_CFLAGS
15616 with_gnu_ld=$lt_save_with_gnu_ld
15617 lt_cv_path_LDCXX=$lt_cv_path_LD
15618 lt_cv_path_LD=$lt_save_path_LD
15619 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15620 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15621 fi # test "$_lt_caught_CXX_error" != yes
15624 ac_cpp='$CXXCPP $CPPFLAGS'
15625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15643 ac_config_commands="$ac_config_commands libtool"
15648 # Only expand once:
15652 # Checks for header files.
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15654 $as_echo_n "checking for ANSI C header files... " >&6; }
15655 if ${ac_cv_header_stdc+:} false; then :
15656 $as_echo_n "(cached) " >&6
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15660 #include <stdlib.h>
15661 #include <stdarg.h>
15662 #include <string.h>
15673 if ac_fn_cxx_try_compile "$LINENO"; then :
15674 ac_cv_header_stdc=yes
15676 ac_cv_header_stdc=no
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 if test $ac_cv_header_stdc = yes; then
15681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684 #include <string.h>
15687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15688 $EGREP "memchr" >/dev/null 2>&1; then :
15691 ac_cv_header_stdc=no
15697 if test $ac_cv_header_stdc = yes; then
15698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15701 #include <stdlib.h>
15704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15705 $EGREP "free" >/dev/null 2>&1; then :
15708 ac_cv_header_stdc=no
15714 if test $ac_cv_header_stdc = yes; then
15715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15716 if test "$cross_compiling" = yes; then :
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15722 #include <stdlib.h>
15723 #if ((' ' & 0x0FF) == 0x020)
15724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15727 # define ISLOWER(c) \
15728 (('a' <= (c) && (c) <= 'i') \
15729 || ('j' <= (c) && (c) <= 'r') \
15730 || ('s' <= (c) && (c) <= 'z'))
15731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15739 for (i = 0; i < 256; i++)
15740 if (XOR (islower (i), ISLOWER (i))
15741 || toupper (i) != TOUPPER (i))
15746 if ac_fn_cxx_try_run "$LINENO"; then :
15749 ac_cv_header_stdc=no
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752 conftest.$ac_objext conftest.beam conftest.$ac_ext
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15758 $as_echo "$ac_cv_header_stdc" >&6; }
15759 if test $ac_cv_header_stdc = yes; then
15761 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15765 for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h
15767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15768 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15770 cat >>confdefs.h <<_ACEOF
15771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15779 # Checks for library functions.
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15781 $as_echo_n "checking for working memcmp... " >&6; }
15782 if ${ac_cv_func_memcmp_working+:} false; then :
15783 $as_echo_n "(cached) " >&6
15785 if test "$cross_compiling" = yes; then :
15786 ac_cv_func_memcmp_working=no
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 $ac_includes_default
15795 /* Some versions of memcmp are not 8-bit clean. */
15796 char c0 = '\100', c1 = '\200', c2 = '\201';
15797 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15800 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15801 or more and with at least one buffer not starting on a 4-byte boundary.
15802 William Lewis provided this test program. */
15807 for (i = 0; i < 4; i++)
15811 strcpy (a, "--------01111111");
15812 strcpy (b, "--------10000000");
15813 if (memcmp (a, b, 16) >= 0)
15823 if ac_fn_cxx_try_run "$LINENO"; then :
15824 ac_cv_func_memcmp_working=yes
15826 ac_cv_func_memcmp_working=no
15828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15829 conftest.$ac_objext conftest.beam conftest.$ac_ext
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15834 $as_echo "$ac_cv_func_memcmp_working" >&6; }
15835 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15836 *" memcmp.$ac_objext "* ) ;;
15837 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
15843 $as_echo_n "checking for working strtod... " >&6; }
15844 if ${ac_cv_func_strtod+:} false; then :
15845 $as_echo_n "(cached) " >&6
15847 if test "$cross_compiling" = yes; then :
15848 ac_cv_func_strtod=no
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15853 $ac_includes_default
15861 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
15862 char *string = " +69";
15865 value = strtod (string, &term);
15866 if (value != 69 || term != (string + 4))
15871 /* Under Solaris 2.4, strtod returns the wrong value for the
15872 terminating character under some conditions. */
15873 char *string = "NaN";
15875 strtod (string, &term);
15876 if (term != string && *(term - 1) == 0)
15883 if ac_fn_cxx_try_run "$LINENO"; then :
15884 ac_cv_func_strtod=yes
15886 ac_cv_func_strtod=no
15888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15889 conftest.$ac_objext conftest.beam conftest.$ac_ext
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
15894 $as_echo "$ac_cv_func_strtod" >&6; }
15895 if test $ac_cv_func_strtod = no; then
15896 case " $LIBOBJS " in
15897 *" strtod.$ac_objext "* ) ;;
15898 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15902 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
15903 if test "x$ac_cv_func_pow" = xyes; then :
15907 if test $ac_cv_func_pow = no; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15909 $as_echo_n "checking for pow in -lm... " >&6; }
15910 if ${ac_cv_lib_m_pow+:} false; then :
15911 $as_echo_n "(cached) " >&6
15913 ac_check_lib_save_LIBS=$LIBS
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15918 /* Override any GCC internal prototype to avoid an error.
15919 Use char because int might match the return type of a GCC
15920 builtin and then its argument prototype would still apply. */
15933 if ac_fn_cxx_try_link "$LINENO"; then :
15934 ac_cv_lib_m_pow=yes
15938 rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
15943 $as_echo "$ac_cv_lib_m_pow" >&6; }
15944 if test "x$ac_cv_lib_m_pow" = xyes; then :
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
15948 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
15955 for ac_func in ftruncate memset mkdir strchr strerror strtol
15957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15958 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15960 cat >>confdefs.h <<_ACEOF
15961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15970 if test "$with_zlib" != no; then :
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib version" >&5
15973 $as_echo_n "checking zlib version... " >&6; }
15975 # First check the zlib header version.
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15980 #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1204)
15981 # error zlib version too old
15992 if ac_fn_cxx_try_compile "$LINENO"; then :
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (1.2.0.4 or later)" >&5
15995 $as_echo "ok (1.2.0.4 or later)" >&6; }
15997 # Also need to add -lz to the linker flags and make sure this succeeds.
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
15999 $as_echo_n "checking for library containing zlibVersion... " >&6; }
16000 if ${ac_cv_search_zlibVersion+:} false; then :
16001 $as_echo_n "(cached) " >&6
16003 ac_func_search_save_LIBS=$LIBS
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16007 /* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16013 char zlibVersion ();
16017 return zlibVersion ();
16022 for ac_lib in '' z; do
16023 if test -z "$ac_lib"; then
16024 ac_res="none required"
16027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16029 if ac_fn_cxx_try_link "$LINENO"; then :
16030 ac_cv_search_zlibVersion=$ac_res
16032 rm -f core conftest.err conftest.$ac_objext \
16034 if ${ac_cv_search_zlibVersion+:} false; then :
16038 if ${ac_cv_search_zlibVersion+:} false; then :
16041 ac_cv_search_zlibVersion=no
16043 rm conftest.$ac_ext
16044 LIBS=$ac_func_search_save_LIBS
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16047 $as_echo "$ac_cv_search_zlibVersion" >&6; }
16048 ac_res=$ac_cv_search_zlibVersion
16049 if test "$ac_res" != no; then :
16050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16053 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
16059 if test "$with_zlib" != check; then :
16061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16063 as_fn_error $? "--with-zlib was given, but no working zlib library was found
16064 See \`config.log' for more details" "$LINENO" 5; }
16073 if test "$with_zlib" = check; then :
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers missing or too old (requires 1.2.0.4)" >&5
16076 $as_echo "headers missing or too old (requires 1.2.0.4)" >&6; }
16080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16082 as_fn_error $? "--with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4)
16083 See \`config.log' for more details" "$LINENO" 5; }
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 if test $HAVE_ZLIB = 1; then
16093 HAVE_ZLIB_FALSE='#'
16100 if test "$with_protoc" != "no"; then :
16102 PROTOC=$with_protoc
16103 if test "$with_protoc" = "yes"; then :
16105 # No argument given. Use system protoc.
16109 if echo "$PROTOC" | grep -q '^[^/].*/'; then :
16111 # Does not start with a slash, but contains a slash. So, it's a relative
16112 # path (as opposed to an absolute path or an executable in $PATH).
16113 # Since it will actually be executed from the src directory, prefix with
16114 # the current directory. We also insert $ac_top_build_prefix in case this
16115 # is a nested package and --with-protoc was actually given on the outer
16116 # package's configure script.
16117 PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC
16123 if test "$with_protoc" != "no"; then
16124 USE_EXTERNAL_PROTOC_TRUE=
16125 USE_EXTERNAL_PROTOC_FALSE='#'
16127 USE_EXTERNAL_PROTOC_TRUE='#'
16128 USE_EXTERNAL_PROTOC_FALSE=
16136 ac_cpp='$CPP $CPPFLAGS'
16137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16143 # We used to check for pthread.h first, but this fails if pthread.h
16144 # requires special compiler flags (e.g. on True64 or Sequent).
16145 # It gets checked for in the link test anyway.
16147 # First of all, check if the user has set any of the PTHREAD_LIBS,
16148 # etcetera environment variables, and if threads linking works using
16150 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16151 save_CFLAGS="$CFLAGS"
16152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16154 LIBS="$PTHREAD_LIBS $LIBS"
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16156 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16160 /* Override any GCC internal prototype to avoid an error.
16161 Use char because int might match the return type of a GCC
16162 builtin and then its argument prototype would still apply. */
16166 char pthread_join ();
16170 return pthread_join ();
16175 if ac_fn_c_try_link "$LINENO"; then :
16178 rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16181 $as_echo "$acx_pthread_ok" >&6; }
16182 if test x"$acx_pthread_ok" = xno; then
16187 CFLAGS="$save_CFLAGS"
16190 # We must check for the threads library under a number of different
16191 # names; the ordering is very important because some systems
16192 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16193 # libraries is broken (non-POSIX).
16195 # Create a list of thread flags to try. Items starting with a "-" are
16196 # C compiler flags, and other items are library names, except for "none"
16197 # which indicates that we try without any flags at all, and "pthread-config"
16198 # which is a program returning the flags for the Pth emulation library.
16200 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16202 # The ordering *is* (sometimes) important. Some notes on the
16203 # individual items follow:
16205 # pthreads: AIX (must check this before -lpthread)
16206 # none: in case threads are in libc; should be tried before -Kthread and
16207 # other compiler flags to prevent continual compiler warnings
16208 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16209 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16210 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16211 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16212 # -pthreads: Solaris/gcc
16213 # -mthreads: Mingw32/gcc, Lynx/gcc
16214 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16215 # doesn't hurt to check since this sometimes defines pthreads too;
16216 # also defines -D_REENTRANT)
16217 # ... -mt is also the pthreads flag for HP/aCC
16218 # pthread: Linux, etcetera
16219 # --thread-safe: KAI C++
16220 # pthread-config: use pthread-config program (for GNU Pth library)
16222 case "${host_cpu}-${host_os}" in
16225 # On Solaris (at least, for some versions), libc contains stubbed
16226 # (non-functional) versions of the pthreads routines, so link-based
16227 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16228 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16229 # a function called by this macro, so we could check for that, but
16230 # who knows whether they'll stub that too in a future libc.) So,
16231 # we'll just look for -pthreads and -lpthread first:
16233 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16237 if test x"$acx_pthread_ok" = xno; then
16238 for flag in $acx_pthread_flags; do
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16243 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16248 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16249 PTHREAD_CFLAGS="$flag"
16253 # Extract the first word of "pthread-config", so it can be a program name with args.
16254 set dummy pthread-config; ac_word=$2
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 $as_echo_n "checking for $ac_word... " >&6; }
16257 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16258 $as_echo_n "(cached) " >&6
16260 if test -n "$acx_pthread_config"; then
16261 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16264 for as_dir in $PATH
16267 test -z "$as_dir" && as_dir=.
16268 for ac_exec_ext in '' $ac_executable_extensions; do
16269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16270 ac_cv_prog_acx_pthread_config="yes"
16271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16278 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16281 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16282 if test -n "$acx_pthread_config"; then
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16284 $as_echo "$acx_pthread_config" >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16291 if test x"$acx_pthread_config" = xno; then continue; fi
16292 PTHREAD_CFLAGS="`pthread-config --cflags`"
16293 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16298 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16299 PTHREAD_LIBS="-l$flag"
16304 save_CFLAGS="$CFLAGS"
16305 LIBS="$PTHREAD_LIBS $LIBS"
16306 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16308 # Check for various functions. We must include pthread.h,
16309 # since some functions may be macros. (On the Sequent, we
16310 # need a special flag -Kthread to make this header compile.)
16311 # We check for pthread_join because it is in -lpthread on IRIX
16312 # while pthread_create is in libc. We check for pthread_attr_init
16313 # due to DEC craziness with -lpthreads. We check for
16314 # pthread_cleanup_push because it is one of the few pthread
16315 # functions on Solaris that doesn't have a non-functional libc stub.
16316 # We try pthread_create on general principles.
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319 #include <pthread.h>
16323 pthread_t th; pthread_join(th, 0);
16324 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16325 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16330 if ac_fn_c_try_link "$LINENO"; then :
16333 rm -f core conftest.err conftest.$ac_objext \
16334 conftest$ac_exeext conftest.$ac_ext
16337 CFLAGS="$save_CFLAGS"
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16340 $as_echo "$acx_pthread_ok" >&6; }
16341 if test "x$acx_pthread_ok" = xyes; then
16350 # Various other checks:
16351 if test "x$acx_pthread_ok" = xyes; then
16353 LIBS="$PTHREAD_LIBS $LIBS"
16354 save_CFLAGS="$CFLAGS"
16355 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16357 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16359 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16361 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16364 #include <pthread.h>
16368 int attr=$attr; return attr;
16373 if ac_fn_c_try_link "$LINENO"; then :
16374 attr_name=$attr; break
16376 rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16380 $as_echo "$attr_name" >&6; }
16381 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16383 cat >>confdefs.h <<_ACEOF
16384 #define PTHREAD_CREATE_JOINABLE $attr_name
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16390 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16392 case "${host_cpu}-${host_os}" in
16393 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16394 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16397 $as_echo "${flag}" >&6; }
16398 if test "x$flag" != xno; then
16399 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16403 CFLAGS="$save_CFLAGS"
16404 # More AIX lossage: must compile with xlc_r or cc_r
16405 if test x"$GCC" != xyes; then
16406 for ac_prog in xlc_r cc_r
16408 # Extract the first word of "$ac_prog", so it can be a program name with args.
16409 set dummy $ac_prog; ac_word=$2
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16411 $as_echo_n "checking for $ac_word... " >&6; }
16412 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16413 $as_echo_n "(cached) " >&6
16415 if test -n "$PTHREAD_CC"; then
16416 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16419 for as_dir in $PATH
16422 test -z "$as_dir" && as_dir=.
16423 for ac_exec_ext in '' $ac_executable_extensions; do
16424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16425 ac_cv_prog_PTHREAD_CC="$ac_prog"
16426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16435 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16436 if test -n "$PTHREAD_CC"; then
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16438 $as_echo "$PTHREAD_CC" >&6; }
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16441 $as_echo "no" >&6; }
16445 test -n "$PTHREAD_CC" && break
16447 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16453 # The next part tries to detect GCC inconsistency with -shared on some
16454 # architectures and systems. The problem is that in certain
16455 # configurations, when -shared is specified, GCC "forgets" to
16456 # internally use various flags which are still necessary.
16459 # Prepare the flags
16461 save_CFLAGS="$CFLAGS"
16465 # Try with the flags determined by the earlier checks.
16467 # -Wl,-z,defs forces link-time symbol resolution, so that the
16468 # linking checks with -shared actually have any value
16470 # FIXME: -fPIC is required for -shared on many architectures,
16471 # so we specify it here, but the right way would probably be to
16472 # properly detect whether it is actually required.
16473 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16474 LIBS="$PTHREAD_LIBS $LIBS"
16477 # In order not to create several levels of indentation, we test
16478 # the value of "$done" until we find the cure or run out of ideas.
16481 # First, make sure the CFLAGS we added are actually accepted by our
16482 # compiler. If not (and OS X's ld, for instance, does not accept -z),
16483 # then we can't do this test.
16484 if test x"$done" = xno; then
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16486 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16498 if ac_fn_c_try_link "$LINENO"; then :
16503 rm -f core conftest.err conftest.$ac_objext \
16504 conftest$ac_exeext conftest.$ac_ext
16506 if test "x$done" = xyes ; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16508 $as_echo "no" >&6; }
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16511 $as_echo "yes" >&6; }
16515 if test x"$done" = xno; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16517 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16520 #include <pthread.h>
16524 pthread_t th; pthread_join(th, 0);
16525 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16526 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16531 if ac_fn_c_try_link "$LINENO"; then :
16534 rm -f core conftest.err conftest.$ac_objext \
16535 conftest$ac_exeext conftest.$ac_ext
16537 if test "x$done" = xyes; then
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16539 $as_echo "yes" >&6; }
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16547 # Linux gcc on some architectures such as mips/mipsel forgets
16550 if test x"$done" = xno; then
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16552 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16553 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <pthread.h>
16560 pthread_t th; pthread_join(th, 0);
16561 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16562 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16567 if ac_fn_c_try_link "$LINENO"; then :
16570 rm -f core conftest.err conftest.$ac_objext \
16571 conftest$ac_exeext conftest.$ac_ext
16573 if test "x$done" = xyes; then
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16575 $as_echo "yes" >&6; }
16576 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579 $as_echo "no" >&6; }
16583 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16585 if test x"$done" = xno; then
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16587 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16588 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16591 #include <pthread.h>
16595 pthread_t th; pthread_join(th, 0);
16596 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16597 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16602 if ac_fn_c_try_link "$LINENO"; then :
16605 rm -f core conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
16608 if test "x$done" = xyes; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16610 $as_echo "yes" >&6; }
16611 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16617 if test x"$done" = xno; then
16618 # OK, we have run out of ideas
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16620 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16622 # so it's not safe to assume that we may use pthreads
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
16627 $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
16628 CFLAGS="-nostdlib $CFLAGS"
16629 # we need c with nostdlib
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16633 #include <pthread.h>
16637 pthread_t th; pthread_join(th, 0);
16638 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16639 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16644 if ac_fn_c_try_link "$LINENO"; then :
16649 rm -f core conftest.err conftest.$ac_objext \
16650 conftest$ac_exeext conftest.$ac_ext
16652 if test "x$done" = xyes; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654 $as_echo "yes" >&6; }
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16660 if test x"$done" = xno; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
16662 $as_echo_n "checking whether -lpthread saves the day... " >&6; }
16663 LIBS="-lpthread $LIBS"
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16666 #include <pthread.h>
16670 pthread_t th; pthread_join(th, 0);
16671 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16672 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16677 if ac_fn_c_try_link "$LINENO"; then :
16682 rm -f core conftest.err conftest.$ac_objext \
16683 conftest$ac_exeext conftest.$ac_ext
16685 if test "x$done" = xyes; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687 $as_echo "yes" >&6; }
16688 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
16693 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
16697 CFLAGS="$save_CFLAGS"
16708 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16709 if test x"$acx_pthread_ok" = xyes; then
16711 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16719 ac_cpp='$CXXCPP $CPPFLAGS'
16720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the location of hash_map" >&5
16727 $as_echo_n "checking the location of hash_map... " >&6; }
16730 ac_cpp='$CXXCPP $CPPFLAGS'
16731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16735 ac_cv_cxx_hash_map=""
16736 # First try unordered_map, but not on gcc's before 4.2 -- I've
16737 # seen unexplainable unordered_map bugs with -O2 on older gcc's.
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
16741 # error GCC too old for unordered_map
16747 /* no program body necessary */
16752 if ac_fn_cxx_try_compile "$LINENO"; then :
16753 stl_hash_old_gcc=no
16755 stl_hash_old_gcc=yes
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758 for location in unordered_map tr1/unordered_map; do
16759 for namespace in std std::tr1; do
16760 if test -z "$ac_cv_cxx_hash_map" -a "$stl_hash_old_gcc" != yes; then
16761 # Some older gcc's have a buggy tr1, so test a bit of code.
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 #include <$location>
16768 const ${namespace}::unordered_map<int, int> t;
16769 return t.find(5) == t.end();
16774 if ac_fn_cxx_try_compile "$LINENO"; then :
16775 ac_cv_cxx_hash_map="<$location>";
16776 ac_cv_cxx_hash_namespace="$namespace";
16777 ac_cv_cxx_hash_map_class="unordered_map";
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784 for location in ext/hash_map hash_map; do
16785 for namespace in __gnu_cxx "" std stdext; do
16786 if test -z "$ac_cv_cxx_hash_map"; then
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16789 #include <$location>
16793 ${namespace}::hash_map<int, int> t
16798 if ac_fn_cxx_try_compile "$LINENO"; then :
16799 ac_cv_cxx_hash_map="<$location>";
16800 ac_cv_cxx_hash_namespace="$namespace";
16801 ac_cv_cxx_hash_map_class="hash_map";
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807 ac_cv_cxx_hash_set=`echo "$ac_cv_cxx_hash_map" | sed s/map/set/`;
16808 ac_cv_cxx_hash_set_class=`echo "$ac_cv_cxx_hash_map_class" | sed s/map/set/`;
16809 if test -n "$ac_cv_cxx_hash_map"; then
16811 $as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h
16814 $as_echo "#define HAVE_HASH_SET 1" >>confdefs.h
16817 cat >>confdefs.h <<_ACEOF
16818 #define HASH_MAP_H $ac_cv_cxx_hash_map
16822 cat >>confdefs.h <<_ACEOF
16823 #define HASH_SET_H $ac_cv_cxx_hash_set
16827 cat >>confdefs.h <<_ACEOF
16828 #define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
16832 cat >>confdefs.h <<_ACEOF
16833 #define HASH_MAP_CLASS $ac_cv_cxx_hash_map_class
16837 cat >>confdefs.h <<_ACEOF
16838 #define HASH_SET_CLASS $ac_cv_cxx_hash_set_class
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_hash_map" >&5
16842 $as_echo "$ac_cv_cxx_hash_map" >&6; }
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find an STL hash_map" >&5
16847 $as_echo "$as_me: WARNING: could not find an STL hash_map" >&2;}
16851 case "$target_os" in
16852 mingw* | cygwin* | win*)
16855 # Need to link against rt on Solaris
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
16857 $as_echo_n "checking for library containing sched_yield... " >&6; }
16858 if ${ac_cv_search_sched_yield+:} false; then :
16859 $as_echo_n "(cached) " >&6
16861 ac_func_search_save_LIBS=$LIBS
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16865 /* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16871 char sched_yield ();
16875 return sched_yield ();
16880 for ac_lib in '' rt; do
16881 if test -z "$ac_lib"; then
16882 ac_res="none required"
16885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16887 if ac_fn_cxx_try_link "$LINENO"; then :
16888 ac_cv_search_sched_yield=$ac_res
16890 rm -f core conftest.err conftest.$ac_objext \
16892 if ${ac_cv_search_sched_yield+:} false; then :
16896 if ${ac_cv_search_sched_yield+:} false; then :
16899 ac_cv_search_sched_yield=no
16901 rm conftest.$ac_ext
16902 LIBS=$ac_func_search_save_LIBS
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
16905 $as_echo "$ac_cv_search_sched_yield" >&6; }
16906 ac_res=$ac_cv_search_sched_yield
16907 if test "$ac_res" != no; then :
16908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16913 as_fn_error $? "sched_yield was not found on your system
16914 See \`config.log' for more details" "$LINENO" 5; }
16920 # HACK: Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
16921 # since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest
16927 subdirs="$subdirs gtest"
16930 ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc"
16932 cat >confcache <<\_ACEOF
16933 # This file is a shell script that caches the results of configure
16934 # tests run on this system so they can be shared between configure
16935 # scripts and configure runs, see configure's option --config-cache.
16936 # It is not useful on other systems. If it contains results you don't
16937 # want to keep, you may remove or edit it.
16939 # config.status only pays attention to the cache file if you give it
16940 # the --recheck option to rerun configure.
16942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16944 # following values.
16948 # The following way of writing the cache mishandles newlines in values,
16949 # but we know of no workaround that is simple, portable, and efficient.
16950 # So, we kill variables containing newlines.
16951 # Ultrix sh set writes to stderr and can't be redirected directly,
16952 # and sets the high bit in the cache file unless we assign to the vars.
16954 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16955 eval ac_val=\$$ac_var
16959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16963 _ | IFS | as_nl) ;; #(
16964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16965 *) { eval $ac_var=; unset $ac_var;} ;;
16971 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16972 *${as_nl}ac_space=\ *)
16973 # `set' does not quote correctly, so add quotes: double-quote
16974 # substitution turns \\\\ into \\, and sed turns \\ into \.
16977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16980 # `set' quotes correctly as required by POSIX, so do not add quotes.
16981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16994 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16995 if test -w "$cache_file"; then
16996 if test "x$cache_file" != "x/dev/null"; then
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16998 $as_echo "$as_me: updating cache $cache_file" >&6;}
16999 if test ! -f "$cache_file" || test -h "$cache_file"; then
17000 cat confcache >"$cache_file"
17002 case $cache_file in #(
17004 mv -f confcache "$cache_file"$$ &&
17005 mv -f "$cache_file"$$ "$cache_file" ;; #(
17007 mv -f confcache "$cache_file" ;;
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17019 # Let make expand exec_prefix.
17020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17022 DEFS=-DHAVE_CONFIG_H
17027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17028 # 1. Remove the extension, and $U if already installed.
17029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17032 # will be set to the directory where LIBOBJS objects are built.
17033 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17034 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17036 LIBOBJS=$ac_libobjs
17038 LTLIBOBJS=$ac_ltlibobjs
17041 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17042 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17046 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17047 if test -n "$am_sleep_pid"; then
17048 # Hide warnings about reused PIDs.
17049 wait $am_sleep_pid 2>/dev/null
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17052 $as_echo "done" >&6; }
17053 if test -n "$EXEEXT"; then
17055 am__EXEEXT_FALSE='#'
17057 am__EXEEXT_TRUE='#'
17061 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17062 as_fn_error $? "conditional \"AMDEP\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17065 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17066 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17069 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17070 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17073 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17074 as_fn_error $? "conditional \"GCC\" was never defined.
17075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17077 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
17078 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
17079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17081 if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then
17082 as_fn_error $? "conditional \"USE_EXTERNAL_PROTOC\" was never defined.
17083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17086 : "${CONFIG_STATUS=./config.status}"
17088 ac_clean_files_save=$ac_clean_files
17089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17093 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17095 # Generated by $as_me.
17096 # Run this file to recreate the current configuration.
17097 # Compiler output produced by configure, useful for debugging
17098 # configure, is in config.log if it exists.
17101 ac_cs_recheck=false
17104 SHELL=\${CONFIG_SHELL-$SHELL}
17107 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17108 ## -------------------- ##
17109 ## M4sh Initialization. ##
17110 ## -------------------- ##
17112 # Be more Bourne compatible
17113 DUALCASE=1; export DUALCASE # for MKS sh
17114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17118 # is contrary to our usage. Disable this feature.
17119 alias -g '${1+"$@"}'='"$@"'
17120 setopt NO_GLOB_SUBST
17122 case `(set -o) 2>/dev/null` in #(
17134 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17135 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17138 # Prefer a ksh shell builtin over an external printf program on Solaris,
17139 # but without wasting forks for bash or zsh.
17140 if test -z "$BASH_VERSION$ZSH_VERSION" \
17141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17142 as_echo='print -r --'
17143 as_echo_n='print -rn --'
17144 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17145 as_echo='printf %s\n'
17146 as_echo_n='printf %s'
17148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17149 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17150 as_echo_n='/usr/ucb/echo -n'
17152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17153 as_echo_n_body='eval
17157 expr "X$arg" : "X\\(.*\\)$as_nl";
17158 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17160 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17162 export as_echo_n_body
17163 as_echo_n='sh -c $as_echo_n_body as_echo'
17165 export as_echo_body
17166 as_echo='sh -c $as_echo_body as_echo'
17169 # The user is always right.
17170 if test "${PATH_SEPARATOR+set}" != set; then
17172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17173 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17180 # We need space, tab and new line, in precisely that order. Quoting is
17181 # there to prevent editors from complaining about space-tab.
17182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17183 # splitting by setting IFS to empty value.)
17186 # Find who we are. Look in the path if we contain no directory separator.
17189 *[\\/]* ) as_myself=$0 ;;
17190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17191 for as_dir in $PATH
17194 test -z "$as_dir" && as_dir=.
17195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17201 # We did not find ourselves, most probably we were run as `sh COMMAND'
17202 # in which case we are not to be found in the path.
17203 if test "x$as_myself" = x; then
17206 if test ! -f "$as_myself"; then
17207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17211 # Unset variables that we do not need and which cause bugs (e.g. in
17212 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17213 # suppresses any "Segmentation fault" message there. '((' could
17214 # trigger a bug in pdksh 5.2.14.
17215 for as_var in BASH_ENV ENV MAIL MAILPATH
17216 do eval test x\${$as_var+set} = xset \
17217 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17233 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17234 # ----------------------------------------
17235 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17236 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17237 # script with STATUS, using 1 if that was 0.
17240 as_status=$1; test $as_status -eq 0 && as_status=1
17242 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17245 $as_echo "$as_me: error: $2" >&2
17246 as_fn_exit $as_status
17250 # as_fn_set_status STATUS
17251 # -----------------------
17252 # Set $? to STATUS, without forking.
17253 as_fn_set_status ()
17256 } # as_fn_set_status
17258 # as_fn_exit STATUS
17259 # -----------------
17260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17264 as_fn_set_status $1
17270 # Portably unset VAR.
17273 { eval $1=; unset $1;}
17275 as_unset=as_fn_unset
17276 # as_fn_append VAR VALUE
17277 # ----------------------
17278 # Append the text in VALUE to the end of the definition contained in VAR. Take
17279 # advantage of any shell optimizations that allow amortized linear growth over
17280 # repeated appends, instead of the typical quadratic growth present in naive
17282 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17283 eval 'as_fn_append ()
17294 # as_fn_arith ARG...
17295 # ------------------
17296 # Perform arithmetic evaluation on the ARGs, and store the result in the
17297 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17298 # must be portable across $(()) and expr.
17299 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17300 eval 'as_fn_arith ()
17307 as_val=`expr "$@" || test $? -eq 1`
17312 if expr a : '\(a\)' >/dev/null 2>&1 &&
17313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17320 as_basename=basename
17325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17331 as_me=`$as_basename -- "$0" ||
17332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17333 X"$0" : 'X\(//\)$' \| \
17334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17336 sed '/^.*\/\([^/][^/]*\)\/*$/{
17350 # Avoid depending upon Character Ranges.
17351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17354 as_cr_digits='0123456789'
17355 as_cr_alnum=$as_cr_Letters$as_cr_digits
17357 ECHO_C= ECHO_N= ECHO_T=
17358 case `echo -n x` in #(((((
17360 case `echo 'xy\c'` in
17361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17363 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17370 rm -f conf$$ conf$$.exe conf$$.file
17371 if test -d conf$$.dir; then
17372 rm -f conf$$.dir/conf$$.file
17375 mkdir conf$$.dir 2>/dev/null
17377 if (echo >conf$$.file) 2>/dev/null; then
17378 if ln -s conf$$.file conf$$ 2>/dev/null; then
17380 # ... but there are two gotchas:
17381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17383 # In both cases, we have to default to `cp -pR'.
17384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17386 elif ln conf$$.file conf$$ 2>/dev/null; then
17394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17395 rmdir conf$$.dir 2>/dev/null
17400 # Create "$as_dir" as a directory, including parents if necessary.
17405 -*) as_dir=./$as_dir;;
17407 test -d "$as_dir" || eval $as_mkdir_p || {
17411 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17412 *) as_qdir=$as_dir;;
17414 as_dirs="'$as_qdir' $as_dirs"
17415 as_dir=`$as_dirname -- "$as_dir" ||
17416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17417 X"$as_dir" : 'X\(//\)[^/]' \| \
17418 X"$as_dir" : 'X\(//\)$' \| \
17419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17420 $as_echo X"$as_dir" |
17421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17425 /^X\(\/\/\)[^/].*/{
17438 test -d "$as_dir" && break
17440 test -z "$as_dirs" || eval "mkdir $as_dirs"
17441 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17445 if mkdir -p . 2>/dev/null; then
17446 as_mkdir_p='mkdir -p "$as_dir"'
17448 test -d ./-p && rmdir ./-p
17453 # as_fn_executable_p FILE
17454 # -----------------------
17455 # Test if FILE is an executable regular file.
17456 as_fn_executable_p ()
17458 test -f "$1" && test -x "$1"
17459 } # as_fn_executable_p
17460 as_test_x='test -x'
17461 as_executable_p=as_fn_executable_p
17463 # Sed expression to map a string onto a valid CPP name.
17464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17466 # Sed expression to map a string onto a valid variable name.
17467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17471 ## ----------------------------------- ##
17472 ## Main body of $CONFIG_STATUS script. ##
17473 ## ----------------------------------- ##
17475 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17478 # Save the log message, to keep $0 and so on meaningful, and to
17479 # report actual input values of CONFIG_FILES etc. instead of their
17480 # values after options handling.
17482 This file was extended by Protocol Buffers $as_me 2.6.1, which was
17483 generated by GNU Autoconf 2.69. Invocation command line was
17485 CONFIG_FILES = $CONFIG_FILES
17486 CONFIG_HEADERS = $CONFIG_HEADERS
17487 CONFIG_LINKS = $CONFIG_LINKS
17488 CONFIG_COMMANDS = $CONFIG_COMMANDS
17491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17496 case $ac_config_files in *"
17497 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17500 case $ac_config_headers in *"
17501 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17506 # Files that config.status was made for.
17507 config_files="$ac_config_files"
17508 config_headers="$ac_config_headers"
17509 config_commands="$ac_config_commands"
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17515 \`$as_me' instantiates files and other configuration actions
17516 from templates according to the current configuration. Unless the files
17517 and actions are specified as TAGs, all are instantiated by default.
17519 Usage: $0 [OPTION]... [TAG]...
17521 -h, --help print this help, then exit
17522 -V, --version print version number and configuration settings, then exit
17523 --config print configuration, then exit
17524 -q, --quiet, --silent
17525 do not print progress messages
17526 -d, --debug don't remove temporary files
17527 --recheck update $as_me by reconfiguring in the same conditions
17528 --file=FILE[:TEMPLATE]
17529 instantiate the configuration file FILE
17530 --header=FILE[:TEMPLATE]
17531 instantiate the configuration header FILE
17533 Configuration files:
17536 Configuration headers:
17539 Configuration commands:
17542 Report bugs to <protobuf@googlegroups.com>."
17545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17548 Protocol Buffers config.status 2.6.1
17549 configured by $0, generated by GNU Autoconf 2.69,
17550 with options \\"\$ac_cs_config\\"
17552 Copyright (C) 2012 Free Software Foundation, Inc.
17553 This config.status script is free software; the Free Software Foundation
17554 gives unlimited permission to copy, distribute and modify it."
17561 test -n "\$AWK" || AWK=awk
17564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17565 # The default lists apply if the user does not specify any file.
17571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17588 # Handling of the options.
17589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17592 $as_echo "$ac_cs_version"; exit ;;
17593 --config | --confi | --conf | --con | --co | --c )
17594 $as_echo "$ac_cs_config"; exit ;;
17595 --debug | --debu | --deb | --de | --d | -d )
17597 --file | --fil | --fi | --f )
17600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17601 '') as_fn_error $? "missing file argument" ;;
17603 as_fn_append CONFIG_FILES " '$ac_optarg'"
17604 ac_need_defaults=false;;
17605 --header | --heade | --head | --hea )
17608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17610 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17611 ac_need_defaults=false;;
17613 # Conflict between --help and --header
17614 as_fn_error $? "ambiguous option: \`$1'
17615 Try \`$0 --help' for more information.";;
17616 --help | --hel | -h )
17617 $as_echo "$ac_cs_usage"; exit ;;
17618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17622 # This is an error.
17623 -*) as_fn_error $? "unrecognized option: \`$1'
17624 Try \`$0 --help' for more information." ;;
17626 *) as_fn_append ac_config_targets " $1"
17627 ac_need_defaults=false ;;
17633 ac_configure_extra_args=
17635 if $ac_cs_silent; then
17637 ac_configure_extra_args="$ac_configure_extra_args --silent"
17641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17642 if \$ac_cs_recheck; then
17643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17646 CONFIG_SHELL='$SHELL'
17647 export CONFIG_SHELL
17652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17657 ## Running $as_me. ##
17663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17667 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17670 # The HP-UX ksh and POSIX shell print the target directory to stdout
17671 # if CDPATH is set.
17672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17674 sed_quote_subst='$sed_quote_subst'
17675 double_quote_subst='$double_quote_subst'
17676 delay_variable_subst='$delay_variable_subst'
17677 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17678 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17679 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17680 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17681 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17682 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17683 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17684 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17685 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17686 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17687 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17688 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17689 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17690 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17691 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17692 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17693 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17694 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17695 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17696 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17697 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17698 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17699 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17700 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17701 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17702 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17703 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17704 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17705 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17706 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17707 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17708 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17709 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17710 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17711 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17712 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17713 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17714 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17715 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17716 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17717 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17718 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17719 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17733 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17734 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17735 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17736 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17737 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17739 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17740 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17741 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17742 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17743 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17744 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17745 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17746 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17747 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17748 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17749 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17750 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17751 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17752 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17753 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17754 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17755 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17756 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17757 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17758 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17759 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17760 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17761 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17762 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17763 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17764 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17765 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17766 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17767 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17768 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17769 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17770 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17771 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17772 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17773 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17774 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17775 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17776 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17777 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17778 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17779 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17780 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17781 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17782 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17783 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17784 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17785 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17786 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17787 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17788 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17789 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17790 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17791 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17792 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17793 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17794 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17795 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17796 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17797 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17798 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17799 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17800 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17801 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17802 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17803 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17804 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17805 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17806 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17807 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17808 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17809 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17810 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17811 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17812 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17813 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17814 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17815 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17816 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17817 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17818 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17819 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17820 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17821 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17822 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17823 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17824 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17825 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17826 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17827 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17828 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17829 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17830 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17831 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17832 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17833 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17834 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17835 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17836 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17837 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17838 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17839 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17840 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17841 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17842 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17843 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17844 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17845 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17846 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17847 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17848 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17849 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17850 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17851 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17852 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17853 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17854 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17855 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17856 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17857 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17858 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17859 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17860 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17863 LTCFLAGS='$LTCFLAGS'
17864 compiler='$compiler_DEFAULT'
17866 # A function that is used when there is no print builtin or printf.
17867 func_fallback_echo ()
17869 eval 'cat <<_LTECHO_EOF
17874 # Quote evaled strings.
17889 deplibs_check_method \
17894 sharedlib_from_linklib_cmd \
17897 archiver_list_spec \
17903 lt_cv_sys_global_symbol_pipe \
17904 lt_cv_sys_global_symbol_to_cdecl \
17905 lt_cv_sys_global_symbol_to_c_name_address \
17906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17907 nm_file_list_spec \
17908 lt_prog_compiler_no_builtin_flag \
17909 lt_prog_compiler_pic \
17910 lt_prog_compiler_wl \
17911 lt_prog_compiler_static \
17912 lt_cv_prog_compiler_c_o \
17921 export_dynamic_flag_spec \
17922 whole_archive_flag_spec \
17923 compiler_needs_object \
17925 allow_undefined_flag \
17926 no_undefined_flag \
17927 hardcode_libdir_flag_spec \
17928 hardcode_libdir_separator \
17932 variables_saved_for_relink \
17934 library_names_spec \
17936 install_override_mode \
17940 compiler_lib_search_dirs \
17945 compiler_lib_search_path \
17949 lt_prog_compiler_no_builtin_flag_CXX \
17950 lt_prog_compiler_pic_CXX \
17951 lt_prog_compiler_wl_CXX \
17952 lt_prog_compiler_static_CXX \
17953 lt_cv_prog_compiler_c_o_CXX \
17954 export_dynamic_flag_spec_CXX \
17955 whole_archive_flag_spec_CXX \
17956 compiler_needs_object_CXX \
17958 allow_undefined_flag_CXX \
17959 no_undefined_flag_CXX \
17960 hardcode_libdir_flag_spec_CXX \
17961 hardcode_libdir_separator_CXX \
17962 exclude_expsyms_CXX \
17963 include_expsyms_CXX \
17964 file_list_spec_CXX \
17965 compiler_lib_search_dirs_CXX \
17966 predep_objects_CXX \
17967 postdep_objects_CXX \
17970 compiler_lib_search_path_CXX; do
17971 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17972 *[\\\\\\\`\\"\\\$]*)
17973 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17976 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17981 # Double-quote double-evaled strings.
17982 for var in reload_cmds \
17983 old_postinstall_cmds \
17984 old_postuninstall_cmds \
17986 extract_expsyms_cmds \
17987 old_archive_from_new_cmds \
17988 old_archive_from_expsyms_cmds \
17990 archive_expsym_cmds \
17992 module_expsym_cmds \
17993 export_symbols_cmds \
17997 postuninstall_cmds \
17999 sys_lib_search_path_spec \
18000 sys_lib_dlsearch_path_spec \
18002 old_archive_cmds_CXX \
18003 old_archive_from_new_cmds_CXX \
18004 old_archive_from_expsyms_cmds_CXX \
18006 archive_expsym_cmds_CXX \
18008 module_expsym_cmds_CXX \
18009 export_symbols_cmds_CXX \
18011 postlink_cmds_CXX; do
18012 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18013 *[\\\\\\\`\\"\\\$]*)
18014 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18017 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18022 ac_aux_dir='$ac_aux_dir'
18023 xsi_shell='$xsi_shell'
18024 lt_shell_append='$lt_shell_append'
18026 # See if we are running on zsh, and set the options which allow our
18027 # commands through without removal of \ escapes INIT.
18028 if test -n "\${ZSH_VERSION+set}" ; then
18029 setopt NO_GLOB_SUBST
18035 TIMESTAMP='$TIMESTAMP'
18046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18048 # Handling of arguments.
18049 for ac_config_target in $ac_config_targets
18051 case $ac_config_target in
18052 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18054 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18056 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18057 "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;;
18058 "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;;
18060 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18065 # If the user did not use the arguments to specify the items to instantiate,
18066 # then the envvar interface is used. Set only those that are not.
18067 # We use the long form for the default assignment because of an extremely
18068 # bizarre bug on SunOS 4.1.3.
18069 if $ac_need_defaults; then
18070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18075 # Have a temporary directory for convenience. Make it in the build tree
18076 # simply because there is no reason against having it here, and in addition,
18077 # creating and moving files from /tmp can sometimes cause problems.
18078 # Hook for its removal unless debugging.
18079 # Note that there is a small window in which the directory will not be cleaned:
18080 # after its creation but before its name has been assigned to `$tmp'.
18084 trap 'exit_status=$?
18085 : "${ac_tmp:=$tmp}"
18086 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18088 trap 'as_fn_exit 1' 1 2 13 15
18090 # Create a (secure) tmp directory for tmp files.
18093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18097 tmp=./conf$$-$RANDOM
18098 (umask 077 && mkdir "$tmp")
18099 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18102 # Set up the scripts for CONFIG_FILES section.
18103 # No need to generate them if there are no CONFIG_FILES.
18104 # This happens for instance with `./config.status config.h'.
18105 if test -n "$CONFIG_FILES"; then
18108 ac_cr=`echo X | tr X '\015'`
18109 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18110 # But we know of no other shell where ac_cr would be empty at this
18111 # point, so we can use a bashism as a fallback.
18112 if test "x$ac_cr" = x; then
18113 eval ac_cr=\$\'\\r\'
18115 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18116 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18119 ac_cs_awk_cr=$ac_cr
18122 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18127 echo "cat >conf$$subs.awk <<_ACEOF" &&
18128 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18130 } >conf$$subs.sh ||
18131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18132 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18134 for ac_last_try in false false false false false :; do
18135 . ./conf$$subs.sh ||
18136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18138 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18139 if test $ac_delim_n = $ac_delim_num; then
18141 elif $ac_last_try; then
18142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18147 rm -f conf$$subs.sh
18149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18150 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18154 s/^/S["/; s/!.*/"]=/
18164 s/\(.\{148\}\)..*/\1/
18166 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18171 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18178 s/\(.\{148\}\)..*/\1/
18180 s/["\\]/\\&/g; s/^/"/; s/$/"/
18184 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18189 ' <conf$$subs.awk | sed '
18194 ' >>$CONFIG_STATUS || ac_write_fail=1
18195 rm -f conf$$subs.awk
18196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18198 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18199 for (key in S) S_is_set[key] = 1
18205 nfields = split(line, field, "@")
18207 len = length(field[1])
18208 for (i = 2; i < nfields; i++) {
18210 keylen = length(key)
18211 if (S_is_set[key]) {
18213 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18214 len += length(value) + length(field[++i])
18225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18226 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18227 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18230 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18231 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18234 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18235 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18236 # trailing colons and then remove the whole line if VPATH becomes empty
18237 # (actually we leave an empty line to preserve line numbers).
18238 if test "x$srcdir" = x.; then
18239 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18258 fi # test -n "$CONFIG_FILES"
18260 # Set up the scripts for CONFIG_HEADERS section.
18261 # No need to generate them if there are no CONFIG_HEADERS.
18262 # This happens for instance with `./config.status Makefile'.
18263 if test -n "$CONFIG_HEADERS"; then
18264 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18268 # Transform confdefs.h into an awk script `defines.awk', embedded as
18269 # here-document in config.status, that substitutes the proper values into
18270 # config.h.in to produce config.h.
18272 # Create a delimiter string that does not exist in confdefs.h, to ease
18273 # handling of long lines.
18275 for ac_last_try in false false :; do
18276 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18277 if test -z "$ac_tt"; then
18279 elif $ac_last_try; then
18280 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18286 # For the awk script, D is an array of macro values keyed by name,
18287 # likewise P contains macro parameters if any. Preserve backslash
18288 # newline sequences.
18290 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18292 s/.\{148\}/&'"$ac_delim"'/g
18295 s/^[ ]*#[ ]*define[ ][ ]*/ /
18302 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18304 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18309 D["\1"]=" \3\\\\\\n"\\/p
18311 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18316 s/.\{148\}/&'"$ac_delim"'/g
18321 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18324 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18326 ' <confdefs.h | sed '
18327 s/'"$ac_delim"'/"\\\
18328 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18331 for (key in D) D_is_set[key] = 1
18334 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18336 split(line, arg, " ")
18337 if (arg[1] == "#") {
18341 defundef = substr(arg[1], 2)
18344 split(mac1, mac2, "(") #)
18346 prefix = substr(line, 1, index(line, defundef) - 1)
18347 if (D_is_set[macro]) {
18348 # Preserve the white space surrounding the "#".
18349 print prefix "define", macro P[macro] D[macro]
18352 # Replace #undef with comments. This is necessary, for example,
18353 # in the case of _POSIX_SOURCE, which is predefined and required
18354 # on some systems where configure will not decide to define it.
18355 if (defundef == "undef") {
18356 print "/*", prefix defundef, macro, "*/"
18364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18366 fi # test -n "$CONFIG_HEADERS"
18369 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18374 :[FHLC]) ac_mode=$ac_tag; continue;;
18376 case $ac_mode$ac_tag in
18378 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18379 :[FH]-) ac_tag=-:-;;
18380 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18397 -) ac_f="$ac_tmp/stdin";;
18398 *) # Look for the file first in the build tree, then in the source tree
18399 # (if the path is not absolute). The absolute path cannot be DOS-style,
18400 # because $ac_f cannot contain `:'.
18404 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18406 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18408 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18409 as_fn_append ac_file_inputs " '$ac_f'"
18412 # Let's still pretend it is `configure' which instantiates (i.e., don't
18413 # use $as_me), people would be surprised to read:
18414 # /* config.h. Generated by config.status. */
18415 configure_input='Generated from '`
18416 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18418 if test x"$ac_file" != x-; then
18419 configure_input="$ac_file. $configure_input"
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18421 $as_echo "$as_me: creating $ac_file" >&6;}
18423 # Neutralize special characters interpreted by sed in replacement strings.
18424 case $configure_input in #(
18425 *\&* | *\|* | *\\* )
18426 ac_sed_conf_input=`$as_echo "$configure_input" |
18427 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18428 *) ac_sed_conf_input=$configure_input;;
18432 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18438 ac_dir=`$as_dirname -- "$ac_file" ||
18439 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18440 X"$ac_file" : 'X\(//\)[^/]' \| \
18441 X"$ac_file" : 'X\(//\)$' \| \
18442 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18443 $as_echo X"$ac_file" |
18444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18448 /^X\(\/\/\)[^/].*/{
18461 as_dir="$ac_dir"; as_fn_mkdir_p
18465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18468 # A ".." for each directory in $ac_dir_suffix.
18469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18470 case $ac_top_builddir_sub in
18471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18475 ac_abs_top_builddir=$ac_pwd
18476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18477 # for backward compatibility:
18478 ac_top_builddir=$ac_top_build_prefix
18481 .) # We are building in place.
18483 ac_top_srcdir=$ac_top_builddir_sub
18484 ac_abs_top_srcdir=$ac_pwd ;;
18485 [\\/]* | ?:[\\/]* ) # Absolute name.
18486 ac_srcdir=$srcdir$ac_dir_suffix;
18487 ac_top_srcdir=$srcdir
18488 ac_abs_top_srcdir=$srcdir ;;
18489 *) # Relative name.
18490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18491 ac_top_srcdir=$ac_top_build_prefix$srcdir
18492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18505 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18507 ac_MKDIR_P=$MKDIR_P
18509 [\\/$]* | ?:[\\/]* ) ;;
18510 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18515 # If the template does not know about datarootdir, expand it.
18516 # FIXME: This hack should be removed a few years after 2.60.
18517 ac_datarootdir_hack=; ac_datarootdir_seen=
18528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18529 *datarootdir*) ac_datarootdir_seen=yes;;
18530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18535 ac_datarootdir_hack='
18536 s&@datadir@&$datadir&g
18537 s&@docdir@&$docdir&g
18538 s&@infodir@&$infodir&g
18539 s&@localedir@&$localedir&g
18540 s&@mandir@&$mandir&g
18541 s&\\\${datarootdir}&$datarootdir&g' ;;
18545 # Neutralize VPATH when `$srcdir' = `.'.
18546 # Shell code in configure.ac might set extrasub.
18547 # FIXME: do we really want to maintain this feature?
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 ac_sed_extra="$ac_vpsub
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18555 s|@configure_input@|$ac_sed_conf_input|;t t
18556 s&@top_builddir@&$ac_top_builddir_sub&;t t
18557 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18558 s&@srcdir@&$ac_srcdir&;t t
18559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18560 s&@top_srcdir@&$ac_top_srcdir&;t t
18561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18562 s&@builddir@&$ac_builddir&;t t
18563 s&@abs_builddir@&$ac_abs_builddir&;t t
18564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18565 s&@INSTALL@&$ac_INSTALL&;t t
18566 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18567 $ac_datarootdir_hack
18569 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18570 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18572 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18573 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18574 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18575 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18577 which seems to be undefined. Please make sure it is defined" >&5
18578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18579 which seems to be undefined. Please make sure it is defined" >&2;}
18581 rm -f "$ac_tmp/stdin"
18583 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18584 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18592 if test x"$ac_file" != x-; then
18594 $as_echo "/* $configure_input */" \
18595 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18596 } >"$ac_tmp/config.h" \
18597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18598 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18600 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18603 mv "$ac_tmp/config.h" "$ac_file" \
18604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18607 $as_echo "/* $configure_input */" \
18608 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18609 || as_fn_error $? "could not create -" "$LINENO" 5
18611 # Compute "$ac_file"'s index in $config_headers.
18614 for _am_header in $config_headers :; do
18615 case $_am_header in
18616 $_am_arg | $_am_arg:* )
18619 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18622 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18623 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624 X"$_am_arg" : 'X\(//\)[^/]' \| \
18625 X"$_am_arg" : 'X\(//\)$' \| \
18626 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18627 $as_echo X"$_am_arg" |
18628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18632 /^X\(\/\/\)[^/].*/{
18644 s/.*/./; q'`/stamp-h$_am_stamp_count
18647 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18648 $as_echo "$as_me: executing $ac_file commands" >&6;}
18653 case $ac_file$ac_mode in
18654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18655 # Older Autoconf quotes --file arguments for eval, but not when files
18656 # are listed without --file. Let's play safe and only enable the eval
18657 # if we detect the quoting.
18658 case $CONFIG_FILES in
18659 *\'*) eval set x "$CONFIG_FILES" ;;
18660 *) set x $CONFIG_FILES ;;
18665 # Strip MF so we end up with the name of the file.
18666 mf=`echo "$mf" | sed -e 's/:.*$//'`
18667 # Check whether this is an Automake generated Makefile or not.
18668 # We used to match only the files named 'Makefile.in', but
18669 # some people rename them; so instead we look at the file content.
18670 # Grep'ing the first line is not enough: some people post-process
18671 # each Makefile.in and add a new line on top of each file to say so.
18672 # Grep'ing the whole file is not good either: AIX grep has a line
18673 # limit of 2048, but all sed's we know have understand at least 4000.
18674 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18675 dirpart=`$as_dirname -- "$mf" ||
18676 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677 X"$mf" : 'X\(//\)[^/]' \| \
18678 X"$mf" : 'X\(//\)$' \| \
18679 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18685 /^X\(\/\/\)[^/].*/{
18701 # Extract the definition of DEPDIR, am__include, and am__quote
18702 # from the Makefile without running 'make'.
18703 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18704 test -z "$DEPDIR" && continue
18705 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18706 test -z "$am__include" && continue
18707 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18708 # Find all dependency output files, they are included files with
18709 # $(DEPDIR) in their names. We invoke sed twice because it is the
18710 # simplest approach to changing $(DEPDIR) to its actual value in the
18712 for file in `sed -n "
18713 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18714 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18715 # Make sure the directory exists.
18716 test -f "$dirpart/$file" && continue
18717 fdir=`$as_dirname -- "$file" ||
18718 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18719 X"$file" : 'X\(//\)[^/]' \| \
18720 X"$file" : 'X\(//\)$' \| \
18721 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18722 $as_echo X"$file" |
18723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18727 /^X\(\/\/\)[^/].*/{
18740 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18741 # echo "creating $dirpart/$file"
18742 echo '# dummy' > "$dirpart/$file"
18749 # See if we are running on zsh, and set the options which allow our
18750 # commands through without removal of \ escapes.
18751 if test -n "${ZSH_VERSION+set}" ; then
18752 setopt NO_GLOB_SUBST
18755 cfgfile="${ofile}T"
18756 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18759 cat <<_LT_EOF >> "$cfgfile"
18762 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18763 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18767 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18768 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18770 # Written by Gordon Matzigkeit, 1996
18772 # This file is part of GNU Libtool.
18774 # GNU Libtool is free software; you can redistribute it and/or
18775 # modify it under the terms of the GNU General Public License as
18776 # published by the Free Software Foundation; either version 2 of
18777 # the License, or (at your option) any later version.
18779 # As a special exception to the GNU General Public License,
18780 # if you distribute this file as part of a program or library that
18781 # is built using GNU Libtool, you may include this file under the
18782 # same distribution terms that you use for the rest of that program.
18784 # GNU Libtool is distributed in the hope that it will be useful,
18785 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18786 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18787 # GNU General Public License for more details.
18789 # You should have received a copy of the GNU General Public License
18790 # along with GNU Libtool; see the file COPYING. If not, a copy
18791 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18792 # obtained by writing to the Free Software Foundation, Inc.,
18793 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18796 # The names of the tagged configurations supported by this script.
18797 available_tags="CXX "
18799 # ### BEGIN LIBTOOL CONFIG
18801 # Which release of libtool.m4 was used?
18802 macro_version=$macro_version
18803 macro_revision=$macro_revision
18805 # Whether or not to build shared libraries.
18806 build_libtool_libs=$enable_shared
18808 # Whether or not to build static libraries.
18809 build_old_libs=$enable_static
18811 # What type of objects to build.
18814 # Whether or not to optimize for fast installation.
18815 fast_install=$enable_fast_install
18817 # Shell to use when invoking shell scripts.
18820 # An echo program that protects backslashes.
18823 # The PATH separator for the build system.
18824 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18827 host_alias=$host_alias
18831 # The build system.
18832 build_alias=$build_alias
18836 # A sed program that does not truncate output.
18839 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18840 Xsed="\$SED -e 1s/^X//"
18842 # A grep program that handles long lines.
18848 # A literal string matcher.
18851 # A BSD- or MS-compatible name lister.
18854 # Whether we need soft or hard links.
18857 # What is the maximum length of a command?
18858 max_cmd_len=$max_cmd_len
18860 # Object file suffix (normally "o").
18863 # Executable file suffix (normally "").
18866 # whether the shell understands "unset".
18869 # turn spaces into newlines.
18872 # turn newlines into spaces.
18875 # convert \$build file names to \$host format.
18876 to_host_file_cmd=$lt_cv_to_host_file_cmd
18878 # convert \$build files to toolchain format.
18879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18881 # An object symbol dumper.
18882 OBJDUMP=$lt_OBJDUMP
18884 # Method to check whether dependent libraries are shared objects.
18885 deplibs_check_method=$lt_deplibs_check_method
18887 # Command to use when deplibs_check_method = "file_magic".
18888 file_magic_cmd=$lt_file_magic_cmd
18890 # How to find potential files when deplibs_check_method = "file_magic".
18891 file_magic_glob=$lt_file_magic_glob
18893 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18894 want_nocaseglob=$lt_want_nocaseglob
18896 # DLL creation program.
18897 DLLTOOL=$lt_DLLTOOL
18899 # Command to associate shared and link libraries.
18900 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18905 # Flags to create an archive.
18906 AR_FLAGS=$lt_AR_FLAGS
18908 # How to feed a file listing to the archiver.
18909 archiver_list_spec=$lt_archiver_list_spec
18911 # A symbol stripping program.
18914 # Commands used to install an old-style archive.
18916 old_postinstall_cmds=$lt_old_postinstall_cmds
18917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18919 # Whether to use a lock for old archive extraction.
18920 lock_old_archive_extraction=$lock_old_archive_extraction
18925 # LTCC compiler flags.
18926 LTCFLAGS=$lt_CFLAGS
18928 # Take the output of nm and produce a listing of raw symbols and C names.
18929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18931 # Transform the output of nm in a proper C declaration.
18932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18934 # Transform the output of nm in a C name address pair.
18935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18937 # Transform the output of nm in a C name address pair when lib prefix is needed.
18938 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18940 # Specify filename containing input files for \$NM.
18941 nm_file_list_spec=$lt_nm_file_list_spec
18943 # The root where to search for dependent libraries,and in which our libraries should be installed.
18944 lt_sysroot=$lt_sysroot
18946 # The name of the directory that contains temporary libtool files.
18949 # Used to examine libraries when file_magic_cmd begins with "file".
18950 MAGIC_CMD=$MAGIC_CMD
18952 # Must we lock files when doing compilation?
18953 need_locks=$lt_need_locks
18956 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18958 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18959 DSYMUTIL=$lt_DSYMUTIL
18961 # Tool to change global to local symbols on Mac OS X.
18964 # Tool to manipulate fat objects and archives on Mac OS X.
18967 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18970 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18971 OTOOL64=$lt_OTOOL64
18973 # Old archive suffix (normally "a").
18976 # Shared library suffix (normally ".so").
18977 shrext_cmds=$lt_shrext_cmds
18979 # The commands to extract the exported symbol list from a shared archive.
18980 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18982 # Variables whose values should be saved in libtool wrapper scripts and
18983 # restored at link time.
18984 variables_saved_for_relink=$lt_variables_saved_for_relink
18986 # Do we need the "lib" prefix for modules?
18987 need_lib_prefix=$need_lib_prefix
18989 # Do we need a version for libraries?
18990 need_version=$need_version
18992 # Library versioning type.
18993 version_type=$version_type
18995 # Shared library runtime path variable.
18996 runpath_var=$runpath_var
18998 # Shared library path variable.
18999 shlibpath_var=$shlibpath_var
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19004 # Format of library name prefix.
19005 libname_spec=$lt_libname_spec
19007 # List of archive names. First name is the real one, the rest are links.
19008 # The last name is the one that the linker finds with -lNAME
19009 library_names_spec=$lt_library_names_spec
19011 # The coded name of the library, if different from the real name.
19012 soname_spec=$lt_soname_spec
19014 # Permission mode override for installation of shared libraries.
19015 install_override_mode=$lt_install_override_mode
19017 # Command to use after installation of a shared archive.
19018 postinstall_cmds=$lt_postinstall_cmds
19020 # Command to use after uninstallation of a shared archive.
19021 postuninstall_cmds=$lt_postuninstall_cmds
19023 # Commands used to finish a libtool library installation in a directory.
19024 finish_cmds=$lt_finish_cmds
19026 # As "finish_cmds", except a single script fragment to be evaled but
19028 finish_eval=$lt_finish_eval
19030 # Whether we should hardcode library paths into libraries.
19031 hardcode_into_libs=$hardcode_into_libs
19033 # Compile-time system search path for libraries.
19034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19036 # Run-time system search path for libraries.
19037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19039 # Whether dlopen is supported.
19040 dlopen_support=$enable_dlopen
19042 # Whether dlopen of programs is supported.
19043 dlopen_self=$enable_dlopen_self
19045 # Whether dlopen of statically linked programs is supported.
19046 dlopen_self_static=$enable_dlopen_self_static
19048 # Commands to strip libraries.
19049 old_striplib=$lt_old_striplib
19050 striplib=$lt_striplib
19053 # The linker used to build libraries.
19056 # How to create reloadable object files.
19057 reload_flag=$lt_reload_flag
19058 reload_cmds=$lt_reload_cmds
19060 # Commands used to build an old-style archive.
19061 old_archive_cmds=$lt_old_archive_cmds
19063 # A language specific compiler.
19066 # Is the compiler the GNU compiler?
19069 # Compiler flag to turn off builtin functions.
19070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19072 # Additional compiler flags for building library objects.
19073 pic_flag=$lt_lt_prog_compiler_pic
19075 # How to pass a linker flag through the compiler.
19076 wl=$lt_lt_prog_compiler_wl
19078 # Compiler flag to prevent dynamic linking.
19079 link_static_flag=$lt_lt_prog_compiler_static
19081 # Does compiler simultaneously support -c and -o options?
19082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19084 # Whether or not to add -lc for building shared libraries.
19085 build_libtool_need_lc=$archive_cmds_need_lc
19087 # Whether or not to disallow shared libs when runtime libs are static.
19088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19090 # Compiler flag to allow reflexive dlopens.
19091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19093 # Compiler flag to generate shared objects directly from archives.
19094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19096 # Whether the compiler copes with passing no objects directly.
19097 compiler_needs_object=$lt_compiler_needs_object
19099 # Create an old-style archive from a shared archive.
19100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19102 # Create a temporary old-style archive to link instead of a shared archive.
19103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19105 # Commands used to build a shared archive.
19106 archive_cmds=$lt_archive_cmds
19107 archive_expsym_cmds=$lt_archive_expsym_cmds
19109 # Commands used to build a loadable module if different from building
19110 # a shared archive.
19111 module_cmds=$lt_module_cmds
19112 module_expsym_cmds=$lt_module_expsym_cmds
19114 # Whether we are building with GNU ld or not.
19115 with_gnu_ld=$lt_with_gnu_ld
19117 # Flag that allows shared libraries with undefined symbols to be built.
19118 allow_undefined_flag=$lt_allow_undefined_flag
19120 # Flag that enforces no undefined symbols.
19121 no_undefined_flag=$lt_no_undefined_flag
19123 # Flag to hardcode \$libdir into a binary during linking.
19124 # This must work even if \$libdir does not exist
19125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19127 # Whether we need a single "-rpath" flag with a separated argument.
19128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19131 # DIR into the resulting binary.
19132 hardcode_direct=$hardcode_direct
19134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19135 # DIR into the resulting binary and the resulting library dependency is
19136 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19137 # library is relocated.
19138 hardcode_direct_absolute=$hardcode_direct_absolute
19140 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19141 # into the resulting binary.
19142 hardcode_minus_L=$hardcode_minus_L
19144 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19145 # into the resulting binary.
19146 hardcode_shlibpath_var=$hardcode_shlibpath_var
19148 # Set to "yes" if building a shared library automatically hardcodes DIR
19149 # into the library and all subsequent libraries and executables linked
19151 hardcode_automatic=$hardcode_automatic
19153 # Set to yes if linker adds runtime paths of dependent libraries
19154 # to runtime path list.
19155 inherit_rpath=$inherit_rpath
19157 # Whether libtool must link a program against all its dependency libraries.
19158 link_all_deplibs=$link_all_deplibs
19160 # Set to "yes" if exported symbols are required.
19161 always_export_symbols=$always_export_symbols
19163 # The commands to list exported symbols.
19164 export_symbols_cmds=$lt_export_symbols_cmds
19166 # Symbols that should not be listed in the preloaded symbols.
19167 exclude_expsyms=$lt_exclude_expsyms
19169 # Symbols that must always be exported.
19170 include_expsyms=$lt_include_expsyms
19172 # Commands necessary for linking programs (against libraries) with templates.
19173 prelink_cmds=$lt_prelink_cmds
19175 # Commands necessary for finishing linking programs.
19176 postlink_cmds=$lt_postlink_cmds
19178 # Specify filename containing input files.
19179 file_list_spec=$lt_file_list_spec
19181 # How to hardcode a shared library path into an executable.
19182 hardcode_action=$hardcode_action
19184 # The directories searched by this compiler when creating a shared library.
19185 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19187 # Dependencies to place before and after the objects being linked to
19188 # create a shared library.
19189 predep_objects=$lt_predep_objects
19190 postdep_objects=$lt_postdep_objects
19191 predeps=$lt_predeps
19192 postdeps=$lt_postdeps
19194 # The library search path used internally by the compiler when linking
19195 # a shared library.
19196 compiler_lib_search_path=$lt_compiler_lib_search_path
19198 # ### END LIBTOOL CONFIG
19204 cat <<\_LT_EOF >> "$cfgfile"
19205 # AIX sometimes has problems with the GCC collect2 program. For some
19206 # reason, if we set the COLLECT_NAMES environment variable, the problems
19207 # vanish in a puff of smoke.
19208 if test "X${COLLECT_NAMES+set}" != Xset; then
19210 export COLLECT_NAMES
19217 ltmain="$ac_aux_dir/ltmain.sh"
19220 # We use sed instead of cat because bash on DJGPP gets confused if
19221 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19222 # text mode, it properly converts lines to CR/LF. This bash problem
19223 # is reportedly fixed, but why not run on old versions too?
19224 sed '$q' "$ltmain" >> "$cfgfile" \
19225 || (rm -f "$cfgfile"; exit 1)
19227 if test x"$xsi_shell" = xyes; then
19228 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19232 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19233 \ * ) func_dirname_result="${3}" ;;\
19235 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19236 && mv -f "$cfgfile.tmp" "$cfgfile" \
19237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19238 test 0 -eq $? || _lt_function_replace_fail=:
19241 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19244 \ func_basename_result="${1##*/}"\
19245 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19246 && mv -f "$cfgfile.tmp" "$cfgfile" \
19247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19248 test 0 -eq $? || _lt_function_replace_fail=:
19251 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19252 func_dirname_and_basename ()\
19255 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19256 \ * ) func_dirname_result="${3}" ;;\
19258 \ func_basename_result="${1##*/}"\
19259 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19260 && mv -f "$cfgfile.tmp" "$cfgfile" \
19261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19262 test 0 -eq $? || _lt_function_replace_fail=:
19265 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19268 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19269 \ # positional parameters, so assign one to ordinary parameter first.\
19270 \ func_stripname_result=${3}\
19271 \ func_stripname_result=${func_stripname_result#"${1}"}\
19272 \ func_stripname_result=${func_stripname_result%"${2}"}\
19273 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19274 && mv -f "$cfgfile.tmp" "$cfgfile" \
19275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19276 test 0 -eq $? || _lt_function_replace_fail=:
19279 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19280 func_split_long_opt ()\
19282 \ func_split_long_opt_name=${1%%=*}\
19283 \ func_split_long_opt_arg=${1#*=}\
19284 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19285 && mv -f "$cfgfile.tmp" "$cfgfile" \
19286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19287 test 0 -eq $? || _lt_function_replace_fail=:
19290 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19291 func_split_short_opt ()\
19293 \ func_split_short_opt_arg=${1#??}\
19294 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19295 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19296 && mv -f "$cfgfile.tmp" "$cfgfile" \
19297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19298 test 0 -eq $? || _lt_function_replace_fail=:
19301 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19305 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19306 \ *) func_lo2o_result=${1} ;;\
19308 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19309 && mv -f "$cfgfile.tmp" "$cfgfile" \
19310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19311 test 0 -eq $? || _lt_function_replace_fail=:
19314 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19317 func_xform_result=${1%.*}.lo\
19318 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19319 && mv -f "$cfgfile.tmp" "$cfgfile" \
19320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19321 test 0 -eq $? || _lt_function_replace_fail=:
19324 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19327 func_arith_result=$(( $* ))\
19328 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19329 && mv -f "$cfgfile.tmp" "$cfgfile" \
19330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19331 test 0 -eq $? || _lt_function_replace_fail=:
19334 sed -e '/^func_len ()$/,/^} # func_len /c\
19337 func_len_result=${#1}\
19338 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19339 && mv -f "$cfgfile.tmp" "$cfgfile" \
19340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19341 test 0 -eq $? || _lt_function_replace_fail=:
19345 if test x"$lt_shell_append" = xyes; then
19346 sed -e '/^func_append ()$/,/^} # func_append /c\
19349 eval "${1}+=\\${2}"\
19350 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19351 && mv -f "$cfgfile.tmp" "$cfgfile" \
19352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19353 test 0 -eq $? || _lt_function_replace_fail=:
19356 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19357 func_append_quoted ()\
19359 \ func_quote_for_eval "${2}"\
19360 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19361 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19362 && mv -f "$cfgfile.tmp" "$cfgfile" \
19363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19364 test 0 -eq $? || _lt_function_replace_fail=:
19367 # Save a `func_append' function call where possible by direct use of '+='
19368 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19369 && mv -f "$cfgfile.tmp" "$cfgfile" \
19370 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19371 test 0 -eq $? || _lt_function_replace_fail=:
19373 # Save a `func_append' function call even when '+=' is not available
19374 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19375 && mv -f "$cfgfile.tmp" "$cfgfile" \
19376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19377 test 0 -eq $? || _lt_function_replace_fail=:
19380 if test x"$_lt_function_replace_fail" = x":"; then
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19382 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19386 mv -f "$cfgfile" "$ofile" ||
19387 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19391 cat <<_LT_EOF >> "$ofile"
19393 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19395 # The linker used to build libraries.
19398 # How to create reloadable object files.
19399 reload_flag=$lt_reload_flag_CXX
19400 reload_cmds=$lt_reload_cmds_CXX
19402 # Commands used to build an old-style archive.
19403 old_archive_cmds=$lt_old_archive_cmds_CXX
19405 # A language specific compiler.
19406 CC=$lt_compiler_CXX
19408 # Is the compiler the GNU compiler?
19411 # Compiler flag to turn off builtin functions.
19412 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19414 # Additional compiler flags for building library objects.
19415 pic_flag=$lt_lt_prog_compiler_pic_CXX
19417 # How to pass a linker flag through the compiler.
19418 wl=$lt_lt_prog_compiler_wl_CXX
19420 # Compiler flag to prevent dynamic linking.
19421 link_static_flag=$lt_lt_prog_compiler_static_CXX
19423 # Does compiler simultaneously support -c and -o options?
19424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19426 # Whether or not to add -lc for building shared libraries.
19427 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19429 # Whether or not to disallow shared libs when runtime libs are static.
19430 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19432 # Compiler flag to allow reflexive dlopens.
19433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19435 # Compiler flag to generate shared objects directly from archives.
19436 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19438 # Whether the compiler copes with passing no objects directly.
19439 compiler_needs_object=$lt_compiler_needs_object_CXX
19441 # Create an old-style archive from a shared archive.
19442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19444 # Create a temporary old-style archive to link instead of a shared archive.
19445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19447 # Commands used to build a shared archive.
19448 archive_cmds=$lt_archive_cmds_CXX
19449 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19451 # Commands used to build a loadable module if different from building
19452 # a shared archive.
19453 module_cmds=$lt_module_cmds_CXX
19454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19456 # Whether we are building with GNU ld or not.
19457 with_gnu_ld=$lt_with_gnu_ld_CXX
19459 # Flag that allows shared libraries with undefined symbols to be built.
19460 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19462 # Flag that enforces no undefined symbols.
19463 no_undefined_flag=$lt_no_undefined_flag_CXX
19465 # Flag to hardcode \$libdir into a binary during linking.
19466 # This must work even if \$libdir does not exist
19467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19469 # Whether we need a single "-rpath" flag with a separated argument.
19470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19473 # DIR into the resulting binary.
19474 hardcode_direct=$hardcode_direct_CXX
19476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19477 # DIR into the resulting binary and the resulting library dependency is
19478 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19479 # library is relocated.
19480 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19482 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19483 # into the resulting binary.
19484 hardcode_minus_L=$hardcode_minus_L_CXX
19486 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19487 # into the resulting binary.
19488 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19490 # Set to "yes" if building a shared library automatically hardcodes DIR
19491 # into the library and all subsequent libraries and executables linked
19493 hardcode_automatic=$hardcode_automatic_CXX
19495 # Set to yes if linker adds runtime paths of dependent libraries
19496 # to runtime path list.
19497 inherit_rpath=$inherit_rpath_CXX
19499 # Whether libtool must link a program against all its dependency libraries.
19500 link_all_deplibs=$link_all_deplibs_CXX
19502 # Set to "yes" if exported symbols are required.
19503 always_export_symbols=$always_export_symbols_CXX
19505 # The commands to list exported symbols.
19506 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19508 # Symbols that should not be listed in the preloaded symbols.
19509 exclude_expsyms=$lt_exclude_expsyms_CXX
19511 # Symbols that must always be exported.
19512 include_expsyms=$lt_include_expsyms_CXX
19514 # Commands necessary for linking programs (against libraries) with templates.
19515 prelink_cmds=$lt_prelink_cmds_CXX
19517 # Commands necessary for finishing linking programs.
19518 postlink_cmds=$lt_postlink_cmds_CXX
19520 # Specify filename containing input files.
19521 file_list_spec=$lt_file_list_spec_CXX
19523 # How to hardcode a shared library path into an executable.
19524 hardcode_action=$hardcode_action_CXX
19526 # The directories searched by this compiler when creating a shared library.
19527 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19529 # Dependencies to place before and after the objects being linked to
19530 # create a shared library.
19531 predep_objects=$lt_predep_objects_CXX
19532 postdep_objects=$lt_postdep_objects_CXX
19533 predeps=$lt_predeps_CXX
19534 postdeps=$lt_postdeps_CXX
19536 # The library search path used internally by the compiler when linking
19537 # a shared library.
19538 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19540 # ### END LIBTOOL TAG CONFIG: CXX
19551 ac_clean_files=$ac_clean_files_save
19553 test $ac_write_fail = 0 ||
19554 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19557 # configure is writing to config.log, and then calls config.status.
19558 # config.status does its own redirection, appending to config.log.
19559 # Unfortunately, on DOS this fails, as config.log is still kept open
19560 # by configure, so config.status won't be able to write to it; its
19561 # output is simply discarded. So we exec the FD to /dev/null,
19562 # effectively closing config.log, so it can be properly (re)opened and
19563 # appended to by config.status. When coming back to configure, we
19564 # need to make the FD available again.
19565 if test "$no_create" != yes; then
19567 ac_config_status_args=
19568 test "$silent" = yes &&
19569 ac_config_status_args="$ac_config_status_args --quiet"
19571 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19573 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19574 # would make configure fail if this is the last instruction.
19575 $ac_cs_success || as_fn_exit 1
19579 # CONFIG_SUBDIRS section.
19581 if test "$no_recursion" != yes; then
19583 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19584 # so they do not pile up.
19585 ac_sub_configure_args=
19587 eval "set x $ac_configure_args"
19591 if test -n "$ac_prev"; then
19596 -cache-file | --cache-file | --cache-fil | --cache-fi \
19597 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19598 ac_prev=cache_file ;;
19599 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19600 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19603 --config-cache | -C)
19605 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19607 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19609 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19611 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19613 --disable-option-checking)
19617 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19619 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19623 # Always prepend --prefix to ensure using the same prefix
19624 # in subdir configurations.
19625 ac_arg="--prefix=$prefix"
19627 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19629 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19632 if test "$silent" = yes; then
19633 ac_sub_configure_args="--silent $ac_sub_configure_args"
19636 # Always prepend --disable-option-checking to silence warnings, since
19637 # different subdirs can have different --enable and --with options.
19638 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19641 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19643 # Do not complain, so a configure script can configure whichever
19644 # parts of a large source tree are present.
19645 test -d "$srcdir/$ac_dir" || continue
19647 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19648 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19649 $as_echo "$ac_msg" >&6
19650 as_dir="$ac_dir"; as_fn_mkdir_p
19654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19657 # A ".." for each directory in $ac_dir_suffix.
19658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19659 case $ac_top_builddir_sub in
19660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19664 ac_abs_top_builddir=$ac_pwd
19665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19666 # for backward compatibility:
19667 ac_top_builddir=$ac_top_build_prefix
19670 .) # We are building in place.
19672 ac_top_srcdir=$ac_top_builddir_sub
19673 ac_abs_top_srcdir=$ac_pwd ;;
19674 [\\/]* | ?:[\\/]* ) # Absolute name.
19675 ac_srcdir=$srcdir$ac_dir_suffix;
19676 ac_top_srcdir=$srcdir
19677 ac_abs_top_srcdir=$srcdir ;;
19678 *) # Relative name.
19679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19680 ac_top_srcdir=$ac_top_build_prefix$srcdir
19681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19688 # Check for guested configure; otherwise get Cygnus style configure.
19689 if test -f "$ac_srcdir/configure.gnu"; then
19690 ac_sub_configure=$ac_srcdir/configure.gnu
19691 elif test -f "$ac_srcdir/configure"; then
19692 ac_sub_configure=$ac_srcdir/configure
19693 elif test -f "$ac_srcdir/configure.in"; then
19694 # This should be Cygnus configure.
19695 ac_sub_configure=$ac_aux_dir/configure
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19702 # The recursion is here.
19703 if test -n "$ac_sub_configure"; then
19704 # Make the cache file name correct relative to the subdirectory.
19705 case $cache_file in
19706 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19707 *) # Relative name.
19708 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19712 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19713 # The eval makes quoting arguments work.
19714 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19715 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19716 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}