2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libical 1.00.
5 # Report bugs to <http://freeassociation.sf.net/>.
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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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: http://freeassociation.sf.net/ about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script 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='libical'
592 PACKAGE_TARNAME='libical'
593 PACKAGE_VERSION='1.00'
594 PACKAGE_STRING='libical 1.00'
595 PACKAGE_BUGREPORT='http://freeassociation.sf.net/'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_default_prefix=/usr/local/libical
635 ac_subst_vars='am__EXEEXT_FALSE
661 WITH_CXX_BINDINGS_FALSE
662 WITH_CXX_BINDINGS_TRUE
731 MAINTAINER_MODE_FALSE
741 INSTALL_STRIP_PROGRAM
795 program_transform_name
808 enable_option_checking
809 enable_maintainer_mode
810 enable_dependency_tracking
824 enable_icalerrors_are_fatal
829 ac_precious_vars='build_alias
847 # Initialize some variables set by options.
849 ac_init_version=false
850 ac_unrecognized_opts=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
861 program_transform_name=s,x,x,
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1154 -site=* | --site=* | --sit=*)
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=no ;;
1213 # Obsolete; use --with-x.
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1281 # Be sure to have absolute directory names.
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1351 ac_srcdir_defaulted=no
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 # Report the --help message.
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1385 \`configure' configures libical 1.00 to adapt to many kinds of systems.
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1392 Defaults for the options are specified in brackets.
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1416 For better control, use the options below.
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/libical]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1443 --program-prefix=PREFIX prepend PREFIX to installed program names
1444 --program-suffix=SUFFIX append SUFFIX to installed program names
1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 --target=TARGET configure for building compilers for TARGET [HOST]
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of libical 1.00:";;
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-dependency-tracking
1468 do not reject slow dependency extractors
1469 --disable-dependency-tracking
1470 speeds up one-time build
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --enable-reentrant define _REENTRANT to enable reentrant system calls
1477 --enable-icalerrors-are-fatal define ICAL_ERRORS_ARE_FATAL to make icalerror_* calls fatal
1478 --enable-cxx Enable C++ bindings
1479 --enable-java Enable Java bindings
1480 --enable-python Enable python bindings
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-sysroot=DIR Search for dependent libraries within DIR
1489 (or the compiler's sysroot if not specified).
1490 --with-builtintz deliver our own zonefiles?
1491 --with-bdb4 Add support for Berkeley DB 4.0
1492 --with-bdb4-dir=PATH Use PATH as location of BerkeleyDB 4.0
1493 --with-backtrace enable backtrace dumps in the syslog
1494 --with-devel Add development options
1496 Some influential environment variables:
1497 YACC The `Yet Another Compiler Compiler' implementation to use.
1498 Defaults to the first program found out of: `bison -y', `byacc',
1500 YFLAGS The list of arguments that will be passed by default to $YACC.
1501 This script will default YFLAGS to the empty string to avoid a
1502 default value of `-d' given by some make applications.
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 PYTHON the Python interpreter
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <http://freeassociation.sf.net/>.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1549 .) # We are building in place.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1582 libical configure 1.00
1583 generated by GNU Autoconf 2.69
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext
1603 if { { ac_try="$ac_compile"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext; then :
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1632 } # ac_fn_c_try_compile
1634 # ac_fn_cxx_try_compile LINENO
1635 # ----------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_cxx_try_compile ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext
1641 if { { ac_try="$ac_compile"
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_compile") 2>conftest.err
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_cxx_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest.$ac_objext; then :
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1670 } # ac_fn_cxx_try_compile
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest$ac_exeext
1679 if { { ac_try="$ac_link"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
1699 test -x conftest$ac_exeext
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710 # interfere with the next link command; also delete a directory that is
1711 # left behind by Apple's compiler. We do this before executing the actions.
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1716 } # ac_fn_c_try_link
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1735 if ac_fn_c_try_compile "$LINENO"; then :
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 } # ac_fn_c_check_header_compile
1749 # ac_fn_c_try_cpp LINENO
1750 # ----------------------
1751 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_cpp conftest.$ac_ext"
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } > conftest.i && {
1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1786 # ac_fn_c_try_run LINENO
1787 # ----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1789 # that executables *can* be run.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1804 { { case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_try") 2>&5
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; }; }; then :
1816 $as_echo "$as_me: program exited with status $ac_status" >&5
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=$ac_status
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1828 # ac_fn_c_check_func LINENO FUNC VAR
1829 # ----------------------------------
1830 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1831 ac_fn_c_check_func ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843 #define $2 innocuous_$2
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $2 (); below.
1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848 <limits.h> exists even on freestanding compilers. */
1851 # include <limits.h>
1853 # include <assert.h>
1858 /* Override any GCC internal prototype to avoid an error.
1859 Use char because int might match the return type of a GCC
1860 builtin and then its argument prototype would still apply. */
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined __stub_$2 || defined __stub___$2
1880 if ac_fn_c_try_link "$LINENO"; then :
1885 rm -f core conftest.err conftest.$ac_objext \
1886 conftest$ac_exeext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_func
1895 # ac_fn_cxx_try_cpp LINENO
1896 # ------------------------
1897 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_cpp ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if { { ac_try="$ac_cpp conftest.$ac_ext"
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } > conftest.i && {
1917 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1918 test ! -s conftest.err
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1930 } # ac_fn_cxx_try_cpp
1932 # ac_fn_cxx_try_link LINENO
1933 # -------------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_cxx_try_link ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_cxx_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 test -x conftest$ac_exeext
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1976 } # ac_fn_cxx_try_link
1978 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981 # the include files in INCLUDES and setting the cache variable VAR
1983 ac_fn_c_check_header_mongrel ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if eval \${$3+:} false; then :
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1996 # Is the header compilable?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998 $as_echo_n "checking $2 usability... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_header_compiler=yes
2007 ac_header_compiler=no
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011 $as_echo "$ac_header_compiler" >&6; }
2013 # Is the header present?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015 $as_echo_n "checking $2 presence... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2020 if ac_fn_c_try_cpp "$LINENO"; then :
2021 ac_header_preproc=yes
2023 ac_header_preproc=no
2025 rm -f conftest.err conftest.i conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027 $as_echo "$ac_header_preproc" >&6; }
2029 # So? What about this header?
2030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2041 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2045 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048 ( $as_echo "## --------------------------------------------- ##
2049 ## Report this to http://freeassociation.sf.net/ ##
2050 ## --------------------------------------------- ##"
2051 ) | sed "s/^/$as_me: WARNING: /" >&2
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 eval "$3=\$ac_header_compiler"
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_mongrel
2069 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2070 # -------------------------------------------
2071 # Tests whether TYPE exists after having included INCLUDES, setting cache
2072 # variable VAR accordingly.
2073 ac_fn_c_check_type ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079 $as_echo_n "(cached) " >&6
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2107 if ac_fn_c_try_compile "$LINENO"; then :
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_type
2122 cat >config.log <<_ACEOF
2123 This file contains any messages produced by compilers while
2124 running configure, to aid debugging if configure makes a mistake.
2126 It was created by libical $as_me 1.00, which was
2127 generated by GNU Autoconf 2.69. Invocation command line was
2139 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2140 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2141 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2142 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2143 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2145 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2146 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2148 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2149 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2150 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2151 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2152 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2153 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2154 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 $as_echo "PATH: $as_dir"
2179 # Keep a trace of the command line.
2180 # Strip out --no-create and --no-recursion so they do not pile up.
2181 # Strip out --silent because we don't want to record it for future runs.
2182 # Also quote any args containing shell meta-characters.
2183 # Make two passes to allow for proper duplicate-argument suppression.
2187 ac_must_keep_next=false
2193 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2195 | -silent | --silent | --silen | --sile | --sil)
2198 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2203 as_fn_append ac_configure_args1 " '$ac_arg'"
2204 if test $ac_must_keep_next = true; then
2205 ac_must_keep_next=false # Got value, back to normal.
2208 *=* | --config-cache | -C | -disable-* | --disable-* \
2209 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2210 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2211 | -with-* | --with-* | -without-* | --without-* | --x)
2212 case "$ac_configure_args0 " in
2213 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2216 -* ) ac_must_keep_next=true ;;
2219 as_fn_append ac_configure_args " '$ac_arg'"
2224 { ac_configure_args0=; unset ac_configure_args0;}
2225 { ac_configure_args1=; unset ac_configure_args1;}
2227 # When interrupted or exit'd, cleanup temporary files, and complete
2228 # config.log. We remove comments because anyway the quotes in there
2229 # would cause problems or look ugly.
2230 # WARNING: Use '\'' to represent an apostrophe within the trap.
2231 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2232 trap 'exit_status=$?
2233 # Save into config.log some information that might help in debugging.
2237 $as_echo "## ---------------- ##
2238 ## Cache variables. ##
2239 ## ---------------- ##"
2241 # The following way of writing the cache mishandles newlines in values,
2243 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2244 eval ac_val=\$$ac_var
2248 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2249 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2252 _ | IFS | as_nl) ;; #(
2253 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2254 *) { eval $ac_var=; unset $ac_var;} ;;
2259 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2260 *${as_nl}ac_space=\ *)
2262 "s/'\''/'\''\\\\'\'''\''/g;
2263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273 $as_echo "## ----------------- ##
2274 ## Output variables. ##
2275 ## ----------------- ##"
2277 for ac_var in $ac_subst_vars
2279 eval ac_val=\$$ac_var
2281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283 $as_echo "$ac_var='\''$ac_val'\''"
2287 if test -n "$ac_subst_files"; then
2288 $as_echo "## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##"
2292 for ac_var in $ac_subst_files
2294 eval ac_val=\$$ac_var
2296 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298 $as_echo "$ac_var='\''$ac_val'\''"
2303 if test -s confdefs.h; then
2304 $as_echo "## ----------- ##
2311 test "$ac_signal" != 0 &&
2312 $as_echo "$as_me: caught signal $ac_signal"
2313 $as_echo "$as_me: exit $exit_status"
2315 rm -f core *.core core.conftest.* &&
2316 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319 for ac_signal in 1 2 13 15; do
2320 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2325 rm -f -r conftest* confdefs.h
2327 $as_echo "/* confdefs.h */" > confdefs.h
2329 # Predefined preprocessor variables.
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_STRING "$PACKAGE_STRING"
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_URL "$PACKAGE_URL"
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer an explicitly selected file to automatically selected ones.
2360 if test -n "$CONFIG_SITE"; then
2361 # We do not want a PATH search for config.site.
2362 case $CONFIG_SITE in #((
2363 -*) ac_site_file1=./$CONFIG_SITE;;
2364 */*) ac_site_file1=$CONFIG_SITE;;
2365 *) ac_site_file1=./$CONFIG_SITE;;
2367 elif test "x$prefix" != xNONE; then
2368 ac_site_file1=$prefix/share/config.site
2369 ac_site_file2=$prefix/etc/config.site
2371 ac_site_file1=$ac_default_prefix/share/config.site
2372 ac_site_file2=$ac_default_prefix/etc/config.site
2374 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2376 test "x$ac_site_file" = xNONE && continue
2377 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2379 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2380 sed 's/^/| /' "$ac_site_file" >&5
2382 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384 as_fn_error $? "failed to load site script $ac_site_file
2385 See \`config.log' for more details" "$LINENO" 5; }
2389 if test -r "$cache_file"; then
2390 # Some versions of bash will fail to source /dev/null (special files
2391 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2392 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2394 $as_echo "$as_me: loading cache $cache_file" >&6;}
2396 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2397 *) . "./$cache_file";;
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2402 $as_echo "$as_me: creating cache $cache_file" >&6;}
2406 # Check that the precious variables saved in the cache have kept the same
2408 ac_cache_corrupted=false
2409 for ac_var in $ac_precious_vars; do
2410 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2411 eval ac_new_set=\$ac_env_${ac_var}_set
2412 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2413 eval ac_new_val=\$ac_env_${ac_var}_value
2414 case $ac_old_set,$ac_new_set in
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2418 ac_cache_corrupted=: ;;
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2421 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2422 ac_cache_corrupted=: ;;
2425 if test "x$ac_old_val" != "x$ac_new_val"; then
2426 # differences in whitespace do not lead to failure.
2427 ac_old_val_w=`echo x $ac_old_val`
2428 ac_new_val_w=`echo x $ac_new_val`
2429 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2431 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2432 ac_cache_corrupted=:
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2435 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2436 eval $ac_var=\$ac_old_val
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2439 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2441 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2444 # Pass precious variables to config.status.
2445 if test "$ac_new_set" = set; then
2447 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2448 *) ac_arg=$ac_var=$ac_new_val ;;
2450 case " $ac_configure_args " in
2451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2452 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2456 if $ac_cache_corrupted; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2460 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2461 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2463 ## -------------------- ##
2464 ## Main body of script. ##
2465 ## -------------------- ##
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2476 if test -f "$ac_dir/install-sh"; then
2478 ac_install_sh="$ac_aux_dir/install-sh -c"
2480 elif test -f "$ac_dir/install.sh"; then
2482 ac_install_sh="$ac_aux_dir/install.sh -c"
2484 elif test -f "$ac_dir/shtool"; then
2486 ac_install_sh="$ac_aux_dir/shtool install -c"
2490 if test -z "$ac_aux_dir"; then
2491 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2508 $as_echo_n "checking build system type... " >&6; }
2509 if ${ac_cv_build+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 ac_build_alias=$build_alias
2513 test "x$ac_build_alias" = x &&
2514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515 test "x$ac_build_alias" = x &&
2516 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2522 $as_echo "$ac_cv_build" >&6; }
2523 case $ac_cv_build in
2525 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2528 ac_save_IFS=$IFS; IFS='-'
2534 # Remember, the first character of IFS is used to create $*,
2535 # except with old shells:
2538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2542 $as_echo_n "checking host system type... " >&6; }
2543 if ${ac_cv_host+:} false; then :
2544 $as_echo_n "(cached) " >&6
2546 if test "x$host_alias" = x; then
2547 ac_cv_host=$ac_cv_build
2549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2555 $as_echo "$ac_cv_host" >&6; }
2558 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2561 ac_save_IFS=$IFS; IFS='-'
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2575 $as_echo_n "checking target system type... " >&6; }
2576 if ${ac_cv_target+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 if test "x$target_alias" = x; then
2580 ac_cv_target=$ac_cv_host
2582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2583 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2588 $as_echo "$ac_cv_target" >&6; }
2589 case $ac_cv_target in
2591 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2593 target=$ac_cv_target
2594 ac_save_IFS=$IFS; IFS='-'
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2604 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2607 # The aliases save the names the user supplied, while $host etc.
2608 # will get canonicalized.
2609 test -n "$target_alias" &&
2610 test "$program_prefix$program_suffix$program_transform_name" = \
2612 program_prefix=${target_alias}-
2614 am__api_version='1.12'
2616 # Find a good install program. We prefer a C program (faster),
2617 # so one script is as good as another. But avoid the broken or
2618 # incompatible versions:
2619 # SysV /etc/install, /usr/sbin/install
2620 # SunOS /usr/etc/install
2621 # IRIX /sbin/install
2623 # AmigaOS /C/install, which installs bootblocks on floppy discs
2624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2627 # OS/2's system install, which has a completely different semantic
2628 # ./install, which can be erroneously created by make from ./install.sh.
2629 # Reject install programs that cannot install multiple files.
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2631 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2632 if test -z "$INSTALL"; then
2633 if ${ac_cv_path_install+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 # Account for people who put trailing slashes in PATH elements.
2642 case $as_dir/ in #((
2643 ./ | .// | /[cC]/* | \
2644 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2645 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2648 # OSF1 and SCO ODT 3.0 have their own names for install.
2649 # Don't use installbsd from OSF since it installs stuff as root
2651 for ac_prog in ginstall scoinst install; do
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2654 if test $ac_prog = install &&
2655 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2656 # AIX install. It has an incompatible calling convention.
2658 elif test $ac_prog = install &&
2659 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2660 # program-specific install script used by HP pwplus--don't use.
2663 rm -rf conftest.one conftest.two conftest.dir
2664 echo one > conftest.one
2665 echo two > conftest.two
2667 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2668 test -s conftest.one && test -s conftest.two &&
2669 test -s conftest.dir/conftest.one &&
2670 test -s conftest.dir/conftest.two
2672 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2685 rm -rf conftest.one conftest.two conftest.dir
2688 if test "${ac_cv_path_install+set}" = set; then
2689 INSTALL=$ac_cv_path_install
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for INSTALL within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 INSTALL=$ac_install_sh
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2699 $as_echo "$INSTALL" >&6; }
2701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2702 # It thinks the first close brace ends the variable substitution.
2703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2705 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2707 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2710 $as_echo_n "checking whether build environment is sane... " >&6; }
2711 # Reject unsafe characters in $srcdir or the absolute working directory
2712 # name. Accept space and tab only in the latter.
2716 *[\\\"\#\$\&\'\`$am_lf]*)
2717 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2720 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2721 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2724 # Do 'set' in a subshell so we don't clobber the current shell's
2725 # arguments. Must try -L first in case configure is actually a
2726 # symlink; some systems play weird games with the mod time of symlinks
2727 # (eg FreeBSD returns the mod time of the symlink's containing
2731 for am_try in 1 2; do
2732 echo "timestamp, slept: $am_has_slept" > conftest.file
2733 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2734 if test "$*" = "X"; then
2736 set X `ls -t "$srcdir/configure" conftest.file`
2738 if test "$*" != "X $srcdir/configure conftest.file" \
2739 && test "$*" != "X conftest.file $srcdir/configure"; then
2741 # If neither matched, then we have a broken ls. This can happen
2742 # if, for instance, CONFIG_SHELL is bash and it inherits a
2743 # broken ls alias from the environment. This has actually
2744 # happened. Such a system could not be considered "sane".
2745 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2746 alias in your environment" "$LINENO" 5
2748 if test "$2" = conftest.file || test $am_try -eq 2; then
2755 test "$2" = conftest.file
2761 as_fn_error $? "newly created file is older than distributed files!
2762 Check your system clock" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 $as_echo "yes" >&6; }
2766 # If we didn't sleep, we still need to ensure time stamps of config.status and
2767 # generated files are strictly newer.
2769 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2776 test "$program_prefix" != NONE &&
2777 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2778 # Use a double $ so make ignores it.
2779 test "$program_suffix" != NONE &&
2780 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2781 # Double any \ or $.
2782 # By default was `s,x,x', remove it if useless.
2783 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2784 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2786 # expand $ac_aux_dir to an absolute path
2787 am_aux_dir=`cd $ac_aux_dir && pwd`
2789 if test x"${MISSING+set}" != xset; then
2792 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2794 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2797 # Use eval to expand $SHELL
2798 if eval "$MISSING --run true"; then
2799 am_missing_run="$MISSING --run "
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2803 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2806 if test x"${install_sh}" != xset; then
2809 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2811 install_sh="\${SHELL} $am_aux_dir/install-sh"
2815 # Installed binaries are usually stripped using 'strip' when the user
2816 # run "make install-strip". However 'strip' might not be the right
2817 # tool to use in cross-compilation environments, therefore Automake
2818 # will honor the 'STRIP' environment variable to overrule this program.
2819 if test "$cross_compiling" != no; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}strip; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_STRIP+:} false; then :
2826 $as_echo_n "(cached) " >&6
2828 if test -n "$STRIP"; then
2829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 STRIP=$ac_cv_prog_STRIP
2849 if test -n "$STRIP"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2851 $as_echo "$STRIP" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2859 if test -z "$ac_cv_prog_STRIP"; then
2861 # Extract the first word of "strip", so it can be a program name with args.
2862 set dummy strip; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$ac_ct_STRIP"; then
2869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 ac_cv_prog_ac_ct_STRIP="strip"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2889 if test -n "$ac_ct_STRIP"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2891 $as_echo "$ac_ct_STRIP" >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2897 if test "x$ac_ct_STRIP" = x; then
2900 case $cross_compiling:$ac_tool_warned in
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned=yes ;;
2909 STRIP="$ac_cv_prog_STRIP"
2913 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2916 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2917 if test -z "$MKDIR_P"; then
2918 if ${ac_cv_path_mkdir+:} false; then :
2919 $as_echo_n "(cached) " >&6
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2925 test -z "$as_dir" && as_dir=.
2926 for ac_prog in mkdir gmkdir; do
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2929 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2930 'mkdir (GNU coreutils) '* | \
2931 'mkdir (coreutils) '* | \
2932 'mkdir (fileutils) '4.1*)
2933 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2943 test -d ./--version && rmdir ./--version
2944 if test "${ac_cv_path_mkdir+set}" = set; then
2945 MKDIR_P="$ac_cv_path_mkdir -p"
2947 # As a last resort, use the slow shell script. Don't cache a
2948 # value for MKDIR_P within a source directory, because that will
2949 # break other packages using the cache if that directory is
2950 # removed, or if the value is a relative name.
2951 MKDIR_P="$ac_install_sh -d"
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2955 $as_echo "$MKDIR_P" >&6; }
2957 for ac_prog in gawk mawk nawk awk
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_AWK+:} false; then :
2964 $as_echo_n "(cached) " >&6
2966 if test -n "$AWK"; then
2967 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_AWK="$ac_prog"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 if test -n "$AWK"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2989 $as_echo "$AWK" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2996 test -n "$AWK" && break
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3000 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3002 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3003 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3004 $as_echo_n "(cached) " >&6
3006 cat >conftest.make <<\_ACEOF
3009 @echo '@@@%%%=$(MAKE)=@@@%%%'
3011 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3012 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3014 eval ac_cv_prog_make_${ac_make}_set=yes;;
3016 eval ac_cv_prog_make_${ac_make}_set=no;;
3020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3022 $as_echo "yes" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 SET_MAKE="MAKE=${MAKE-make}"
3030 rm -rf .tst 2>/dev/null
3031 mkdir .tst 2>/dev/null
3032 if test -d .tst; then
3037 rmdir .tst 2>/dev/null
3039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3041 # is not polluted with repeated "-I."
3042 am__isrc=' -I$(srcdir)'
3043 # test to see if srcdir already configured
3044 if test -f $srcdir/config.status; then
3045 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3049 # test whether we have cygpath
3050 if test -z "$CYGPATH_W"; then
3051 if (cygpath --version) >/dev/null 2>/dev/null; then
3052 CYGPATH_W='cygpath -w'
3059 # Define the identity of the package.
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE "$PACKAGE"
3069 cat >>confdefs.h <<_ACEOF
3070 #define VERSION "$VERSION"
3073 # Some tools Automake needs.
3075 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3078 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3081 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3084 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3087 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3089 # For better backward compatibility. To be removed once Automake 1.9.x
3090 # dies out for good. For more background, see:
3091 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3092 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3093 mkdir_p='$(MKDIR_P)'
3095 # We need awk for the "check" target. The system "awk" is bad on
3097 # Always define AMTAR for backward compatibility. Yes, it's still used
3098 # in the wild :-( We should find a proper way to deprecate it ...
3101 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3108 ac_config_headers="$ac_config_headers config.h"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3113 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3114 # Check whether --enable-maintainer-mode was given.
3115 if test "${enable_maintainer_mode+set}" = set; then :
3116 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3118 USE_MAINTAINER_MODE=no
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3122 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3123 if test $USE_MAINTAINER_MODE = yes; then
3124 MAINTAINER_MODE_TRUE=
3125 MAINTAINER_MODE_FALSE='#'
3127 MAINTAINER_MODE_TRUE='#'
3128 MAINTAINER_MODE_FALSE=
3131 MAINT=$MAINTAINER_MODE_TRUE
3135 for ac_prog in 'bison -y' byacc
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_YACC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$YACC"; then
3145 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_YACC="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 YACC=$ac_cv_prog_YACC
3165 if test -n "$YACC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3167 $as_echo "$YACC" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$YACC" && break
3176 test -n "$YACC" || YACC="yacc"
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_CC+:} false; then :
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$ac_cv_prog_CC"; then
3224 # Extract the first word of "gcc", so it can be a program name with args.
3225 set dummy gcc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_CC="gcc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254 $as_echo "$ac_ct_CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3260 if test "x$ac_ct_CC" = x; then
3263 case $cross_compiling:$ac_tool_warned in
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3275 if test -z "$CC"; then
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282 $as_echo_n "(cached) " >&6
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_CC="${ac_tool_prefix}cc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3316 if test -z "$CC"; then
3317 # Extract the first word of "cc", so it can be a program name with args.
3318 set dummy cc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3336 ac_prog_rejected=yes
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 if test $ac_prog_rejected = yes; then
3348 # We found a bogon in the path, so make sure we never use it.
3349 set dummy $ac_cv_prog_CC
3351 if test $# != 0; then
3352 # We chose a different compiler from the bogus one.
3353 # However, it has the same basename, so the bogon will be chosen
3354 # first if we set CC to just the basename; use the full file name.
3356 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3372 if test -z "$CC"; then
3373 if test -n "$ac_tool_prefix"; then
3374 for ac_prog in cl.exe
3376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC="$CC" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3413 test -n "$CC" && break
3416 if test -z "$CC"; then
3418 for ac_prog in cl.exe
3420 # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_CC="$ac_prog"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3457 test -n "$ac_ct_CC" && break
3460 if test "x$ac_ct_CC" = x; then
3463 case $cross_compiling:$ac_tool_warned in
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3467 ac_tool_warned=yes ;;
3476 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "no acceptable C compiler found in \$PATH
3479 See \`config.log' for more details" "$LINENO" 5; }
3481 # Provide some information about the compiler.
3482 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3485 for ac_option in --version -v -V -qversion; do
3486 { { ac_try="$ac_compiler $ac_option >&5"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3495 if test -s conftest.err; then
3497 ... rest of stderr output deleted ...
3498 10q' conftest.err >conftest.er1
3499 cat conftest.er1 >&5
3501 rm -f conftest.er1 conftest.err
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3517 ac_clean_files_save=$ac_clean_files
3518 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3519 # Try to create an executable without -o first, disregard a.out.
3520 # It will help us diagnose broken compilers, and finding out an intuition
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3523 $as_echo_n "checking whether the C compiler works... " >&6; }
3524 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3526 # The possible output files:
3527 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3530 for ac_file in $ac_files
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3539 if { { ac_try="$ac_link_default"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_link_default") 2>&5
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3551 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3552 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3553 # so that the user can short-circuit this test for compilers unknown to
3555 for ac_file in $ac_files ''
3557 test -f "$ac_file" || continue
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3562 # We found the default executable, but exeext='' is most
3566 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570 # We set ac_cv_exeext here because the later test for it is not
3571 # safe: cross compilers may not add the suffix if given an `-o'
3572 # argument, so we may need to know it at that point already.
3573 # Even if this section looks crufty: it has the advantage of
3580 test "$ac_cv_exeext" = no && ac_cv_exeext=
3585 if test -z "$ac_file"; then :
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error 77 "C compiler cannot create executables
3594 See \`config.log' for more details" "$LINENO" 5; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3600 $as_echo_n "checking for C compiler default output file name... " >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3602 $as_echo "$ac_file" >&6; }
3603 ac_exeext=$ac_cv_exeext
3605 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3606 ac_clean_files=$ac_clean_files_save
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3624 for ac_file in conftest.exe conftest conftest.*; do
3625 test -f "$ac_file" || continue
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details" "$LINENO" 5; }
3639 rm -f conftest conftest$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3652 FILE *f = fopen ("conftest.out", "w");
3653 return ferror (f) || fclose (f) != 0;
3659 ac_clean_files="$ac_clean_files conftest.out"
3660 # Check that the compiler produces executables we can run. If not, either
3661 # the compiler is broken, or we cross compile.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3663 $as_echo_n "checking whether we are cross compiling... " >&6; }
3664 if test "$cross_compiling" != yes; then
3665 { { ac_try="$ac_link"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_link") 2>&5
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }
3676 if { ac_try='./conftest$ac_cv_exeext'
3677 { { case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_try") 2>&5
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; }; then
3689 if test "$cross_compiling" = maybe; then
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot run C compiled programs.
3695 If you meant to cross compile, use \`--host'.
3696 See \`config.log' for more details" "$LINENO" 5; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3701 $as_echo "$cross_compiling" >&6; }
3703 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3704 ac_clean_files=$ac_clean_files_save
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3706 $as_echo_n "checking for suffix of object files... " >&6; }
3707 if ${ac_cv_objext+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3721 rm -f conftest.o conftest.obj
3722 if { { ac_try="$ac_compile"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_compile") 2>&5
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }; then :
3733 for ac_file in conftest.o conftest.obj conftest.*; do
3734 test -f "$ac_file" || continue;
3736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3737 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3742 $as_echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "cannot compute suffix of object files: cannot compile
3748 See \`config.log' for more details" "$LINENO" 5; }
3750 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3753 $as_echo "$ac_cv_objext" >&6; }
3754 OBJEXT=$ac_cv_objext
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3757 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3758 if ${ac_cv_c_compiler_gnu+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3775 if ac_fn_c_try_compile "$LINENO"; then :
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3785 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786 if test $ac_compiler_gnu = yes; then
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3794 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3795 if ${ac_cv_prog_cc_g+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 ac_save_c_werror_flag=$ac_c_werror_flag
3799 ac_c_werror_flag=yes
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3813 if ac_fn_c_try_compile "$LINENO"; then :
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_c_werror_flag=$ac_save_c_werror_flag
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3844 if ac_fn_c_try_compile "$LINENO"; then :
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 ac_c_werror_flag=$ac_save_c_werror_flag
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3855 $as_echo "$ac_cv_prog_cc_g" >&6; }
3856 if test "$ac_test_CFLAGS" = set; then
3857 CFLAGS=$ac_save_CFLAGS
3858 elif test $ac_cv_prog_cc_g = yes; then
3859 if test "$GCC" = yes; then
3865 if test "$GCC" = yes; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3872 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3873 if ${ac_cv_prog_cc_c89+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 ac_cv_prog_cc_c89=no
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3884 struct buf { int x; };
3885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3886 static char *e (p, i)
3892 static char *f (char * (*g) (char **, int), char **p, ...)
3897 s = g (p, va_arg (v,int));
3902 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3903 function prototypes and stuff, but not '\xHH' hex character constants.
3904 These don't provoke an error unfortunately, instead are silently treated
3905 as 'x'. The following induces an error, until -std is added to get
3906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3907 array size at least. It's necessary to write '\x00'==0 to get something
3908 that's true only with -std. */
3909 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3911 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3912 inside strings and character constants. */
3914 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3916 int test (int i, double x);
3917 struct s1 {int (*f) (int a);};
3918 struct s2 {int (*f) (double a);};
3919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3930 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3933 CC="$ac_save_CC $ac_arg"
3934 if ac_fn_c_try_compile "$LINENO"; then :
3935 ac_cv_prog_cc_c89=$ac_arg
3937 rm -f core conftest.err conftest.$ac_objext
3938 test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 rm -f conftest.$ac_ext
3945 case "x$ac_cv_prog_cc_c89" in
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3948 $as_echo "none needed" >&6; } ;;
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3951 $as_echo "unsupported" >&6; } ;;
3953 CC="$CC $ac_cv_prog_cc_c89"
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 if test "x$ac_cv_prog_cc_c89" != xno; then :
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 DEPDIR="${am__leading_dot}deps"
3968 ac_config_commands="$ac_config_commands depfiles"
3971 am_make=${MAKE-make}
3972 cat > confinc << 'END'
3974 @echo this is the am__doit target
3977 # If we don't find an include directive, just comment out the code.
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3979 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3983 # First try GNU make style include.
3984 echo "include confinc" > confmf
3985 # Ignore all kinds of additional output from 'make'.
3986 case `$am_make -s -f confmf 2> /dev/null` in #(
3987 *the\ am__doit\ target*)
3993 # Now try BSD make style include.
3994 if test "$am__include" = "#"; then
3995 echo '.include "confinc"' > confmf
3996 case `$am_make -s -f confmf 2> /dev/null` in #(
3997 *the\ am__doit\ target*)
3998 am__include=.include
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4007 $as_echo "$_am_result" >&6; }
4008 rm -f confinc confmf
4010 # Check whether --enable-dependency-tracking was given.
4011 if test "${enable_dependency_tracking+set}" = set; then :
4012 enableval=$enable_dependency_tracking;
4015 if test "x$enable_dependency_tracking" != xno; then
4016 am_depcomp="$ac_aux_dir/depcomp"
4020 if test "x$enable_dependency_tracking" != xno; then
4030 depcc="$CC" am_compiler_list=
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4033 $as_echo_n "checking dependency style of $depcc... " >&6; }
4034 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4035 $as_echo_n "(cached) " >&6
4037 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4038 # We make a subdir and do the tests there. Otherwise we can end up
4039 # making bogus files that we don't know about and never remove. For
4040 # instance it was reported that on HP-UX the gcc test will end up
4041 # making a dummy file named 'D' -- because '-MD' means "put the output
4045 # Copy depcomp to subdir because otherwise we won't find it if we're
4046 # using a relative directory.
4047 cp "$am_depcomp" conftest.dir
4049 # We will build objects and dependencies in a subdirectory because
4050 # it helps to detect inapplicable dependency modes. For instance
4051 # both Tru64's cc and ICC support -MD to output dependencies as a
4052 # side effect of compilation, but ICC will put the dependencies in
4053 # the current directory while Tru64 will put them in the object
4057 am_cv_CC_dependencies_compiler_type=none
4058 if test "$am_compiler_list" = ""; then
4059 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4062 case " $depcc " in #(
4063 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4066 for depmode in $am_compiler_list; do
4067 # Setup a source with many dependencies, because some compilers
4068 # like to wrap large dependency lists on column 80 (with \), and
4069 # we should not choose a depcomp mode which is confused by this.
4071 # We need to recreate these files for each test, as the compiler may
4072 # overwrite some of them when testing with obscure command lines.
4073 # This happens at least with the AIX C compiler.
4075 for i in 1 2 3 4 5 6; do
4076 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4077 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4078 # Solaris 10 /bin/sh.
4079 echo '/* dummy */' > sub/conftst$i.h
4081 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4083 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4084 # mode. It turns out that the SunPro C++ compiler does not properly
4085 # handle '-M -o', and we need to detect this. Also, some Intel
4086 # versions had trouble with output in subdirs.
4087 am__obj=sub/conftest.${OBJEXT-o}
4088 am__minus_obj="-o $am__obj"
4091 # This depmode causes a compiler race in universal mode.
4092 test "$am__universal" = false || continue
4095 # After this tag, mechanisms are not by side-effect, so they'll
4096 # only be used when explicitly requested.
4097 if test "x$enable_dependency_tracking" = xyes; then
4103 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4104 # This compiler won't grok '-c -o', but also, the minuso test has
4105 # not run yet. These depmodes are late enough in the game, and
4106 # so weak that their functioning should not be impacted.
4107 am__obj=conftest.${OBJEXT-o}
4112 if depmode=$depmode \
4113 source=sub/conftest.c object=$am__obj \
4114 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4115 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4116 >/dev/null 2>conftest.err &&
4117 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4118 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4119 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4120 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4121 # icc doesn't choke on unknown options, it will just issue warnings
4122 # or remarks (even with -Werror). So we grep stderr for any message
4123 # that says an option was ignored or not supported.
4124 # When given -MP, icc 7.0 and 7.1 complain thusly:
4125 # icc: Command line warning: ignoring option '-M'; no argument required
4126 # The diagnosis changed in icc 8.0:
4127 # icc: Command line remark: option '-MP' not supported
4128 if (grep 'ignoring option' conftest.err ||
4129 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4130 am_cv_CC_dependencies_compiler_type=$depmode
4139 am_cv_CC_dependencies_compiler_type=none
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4144 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4145 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4148 test "x$enable_dependency_tracking" != xno \
4149 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4151 am__fastdepCC_FALSE='#'
4153 am__fastdepCC_TRUE='#'
4154 am__fastdepCC_FALSE=
4159 ac_cpp='$CXXCPP $CPPFLAGS'
4160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4163 if test -z "$CXX"; then
4164 if test -n "$CCC"; then
4167 if test -n "$ac_tool_prefix"; then
4168 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_CXX+:} false; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -n "$CXX"; then
4178 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 if test -n "$CXX"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4200 $as_echo "$CXX" >&6; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4207 test -n "$CXX" && break
4210 if test -z "$CXX"; then
4212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4214 # Extract the first word of "$ac_prog", so it can be a program name with args.
4215 set dummy $ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -n "$ac_ct_CXX"; then
4222 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_CXX="$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4242 if test -n "$ac_ct_CXX"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4244 $as_echo "$ac_ct_CXX" >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4251 test -n "$ac_ct_CXX" && break
4254 if test "x$ac_ct_CXX" = x; then
4257 case $cross_compiling:$ac_tool_warned in
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261 ac_tool_warned=yes ;;
4269 # Provide some information about the compiler.
4270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4273 for ac_option in --version -v -V -qversion; do
4274 { { ac_try="$ac_compiler $ac_option >&5"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4283 if test -s conftest.err; then
4285 ... rest of stderr output deleted ...
4286 10q' conftest.err >conftest.er1
4287 cat conftest.er1 >&5
4289 rm -f conftest.er1 conftest.err
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4296 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4297 $as_echo_n "(cached) " >&6
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4313 if ac_fn_cxx_try_compile "$LINENO"; then :
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4323 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4329 ac_test_CXXFLAGS=${CXXFLAGS+set}
4330 ac_save_CXXFLAGS=$CXXFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4332 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4333 if ${ac_cv_prog_cxx_g+:} false; then :
4334 $as_echo_n "(cached) " >&6
4336 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4337 ac_cxx_werror_flag=yes
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4351 if ac_fn_cxx_try_compile "$LINENO"; then :
4352 ac_cv_prog_cxx_g=yes
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 if ac_fn_cxx_try_compile "$LINENO"; then :
4369 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4382 if ac_fn_cxx_try_compile "$LINENO"; then :
4383 ac_cv_prog_cxx_g=yes
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4393 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4394 if test "$ac_test_CXXFLAGS" = set; then
4395 CXXFLAGS=$ac_save_CXXFLAGS
4396 elif test $ac_cv_prog_cxx_g = yes; then
4397 if test "$GXX" = yes; then
4403 if test "$GXX" = yes; then
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 depcc="$CXX" am_compiler_list=
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4418 $as_echo_n "checking dependency style of $depcc... " >&6; }
4419 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4423 # We make a subdir and do the tests there. Otherwise we can end up
4424 # making bogus files that we don't know about and never remove. For
4425 # instance it was reported that on HP-UX the gcc test will end up
4426 # making a dummy file named 'D' -- because '-MD' means "put the output
4430 # Copy depcomp to subdir because otherwise we won't find it if we're
4431 # using a relative directory.
4432 cp "$am_depcomp" conftest.dir
4434 # We will build objects and dependencies in a subdirectory because
4435 # it helps to detect inapplicable dependency modes. For instance
4436 # both Tru64's cc and ICC support -MD to output dependencies as a
4437 # side effect of compilation, but ICC will put the dependencies in
4438 # the current directory while Tru64 will put them in the object
4442 am_cv_CXX_dependencies_compiler_type=none
4443 if test "$am_compiler_list" = ""; then
4444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4447 case " $depcc " in #(
4448 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4451 for depmode in $am_compiler_list; do
4452 # Setup a source with many dependencies, because some compilers
4453 # like to wrap large dependency lists on column 80 (with \), and
4454 # we should not choose a depcomp mode which is confused by this.
4456 # We need to recreate these files for each test, as the compiler may
4457 # overwrite some of them when testing with obscure command lines.
4458 # This happens at least with the AIX C compiler.
4460 for i in 1 2 3 4 5 6; do
4461 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4462 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4463 # Solaris 10 /bin/sh.
4464 echo '/* dummy */' > sub/conftst$i.h
4466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4468 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4469 # mode. It turns out that the SunPro C++ compiler does not properly
4470 # handle '-M -o', and we need to detect this. Also, some Intel
4471 # versions had trouble with output in subdirs.
4472 am__obj=sub/conftest.${OBJEXT-o}
4473 am__minus_obj="-o $am__obj"
4476 # This depmode causes a compiler race in universal mode.
4477 test "$am__universal" = false || continue
4480 # After this tag, mechanisms are not by side-effect, so they'll
4481 # only be used when explicitly requested.
4482 if test "x$enable_dependency_tracking" = xyes; then
4488 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4489 # This compiler won't grok '-c -o', but also, the minuso test has
4490 # not run yet. These depmodes are late enough in the game, and
4491 # so weak that their functioning should not be impacted.
4492 am__obj=conftest.${OBJEXT-o}
4497 if depmode=$depmode \
4498 source=sub/conftest.c object=$am__obj \
4499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4500 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4501 >/dev/null 2>conftest.err &&
4502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4506 # icc doesn't choke on unknown options, it will just issue warnings
4507 # or remarks (even with -Werror). So we grep stderr for any message
4508 # that says an option was ignored or not supported.
4509 # When given -MP, icc 7.0 and 7.1 complain thusly:
4510 # icc: Command line warning: ignoring option '-M'; no argument required
4511 # The diagnosis changed in icc 8.0:
4512 # icc: Command line remark: option '-MP' not supported
4513 if (grep 'ignoring option' conftest.err ||
4514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4515 am_cv_CXX_dependencies_compiler_type=$depmode
4524 am_cv_CXX_dependencies_compiler_type=none
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4529 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4530 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4533 test "x$enable_dependency_tracking" != xno \
4534 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4535 am__fastdepCXX_TRUE=
4536 am__fastdepCXX_FALSE='#'
4538 am__fastdepCXX_TRUE='#'
4539 am__fastdepCXX_FALSE=
4544 for ac_prog in flex lex
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_LEX+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 if test -n "$LEX"; then
4554 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_LEX="$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 if test -n "$LEX"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4576 $as_echo "$LEX" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 test -n "$LEX" && break
4585 test -n "$LEX" || LEX=":"
4587 if test "x$LEX" != "x:"; then
4588 cat >conftest.l <<_ACEOF
4594 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4595 yyless ((input () != 0)); }
4596 f { unput (yytext[0]); }
4597 . { BEGIN INITIAL; }
4599 #ifdef YYTEXT_POINTER
4600 extern char *yytext;
4605 return ! yylex () + ! yywrap ();
4608 { { ac_try="$LEX conftest.l"
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$LEX conftest.l") 2>&5
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4620 $as_echo_n "checking lex output file root... " >&6; }
4621 if ${ac_cv_prog_lex_root+:} false; then :
4622 $as_echo_n "(cached) " >&6
4625 if test -f lex.yy.c; then
4626 ac_cv_prog_lex_root=lex.yy
4627 elif test -f lexyy.c; then
4628 ac_cv_prog_lex_root=lexyy
4630 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4634 $as_echo "$ac_cv_prog_lex_root" >&6; }
4635 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4637 if test -z "${LEXLIB+set}"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4639 $as_echo_n "checking lex library... " >&6; }
4640 if ${ac_cv_lib_lex+:} false; then :
4641 $as_echo_n "(cached) " >&6
4645 ac_cv_lib_lex='none needed'
4646 for ac_lib in '' -lfl -ll; do
4647 LIBS="$ac_lib $ac_save_LIBS"
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 `cat $LEX_OUTPUT_ROOT.c`
4652 if ac_fn_c_try_link "$LINENO"; then :
4653 ac_cv_lib_lex=$ac_lib
4655 rm -f core conftest.err conftest.$ac_objext \
4656 conftest$ac_exeext conftest.$ac_ext
4657 test "$ac_cv_lib_lex" != 'none needed' && break
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4663 $as_echo "$ac_cv_lib_lex" >&6; }
4664 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4669 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4670 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 # POSIX says lex can declare yytext either as a pointer or an array; the
4674 # default is implementation-dependent. Figure out which it is, since
4675 # not all implementations provide the %pointer and %array declarations.
4676 ac_cv_prog_lex_yytext_pointer=no
4678 LIBS="$LEXLIB $ac_save_LIBS"
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4682 #define YYTEXT_POINTER 1
4683 `cat $LEX_OUTPUT_ROOT.c`
4685 if ac_fn_c_try_link "$LINENO"; then :
4686 ac_cv_prog_lex_yytext_pointer=yes
4688 rm -f core conftest.err conftest.$ac_objext \
4689 conftest$ac_exeext conftest.$ac_ext
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4694 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4695 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4697 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4700 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4703 if test "$LEX" = :; then
4704 LEX=${am_missing_run}flex
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4707 $as_echo_n "checking whether ln -s works... " >&6; }
4709 if test "$LN_S" = "ln -s"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711 $as_echo "yes" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4714 $as_echo "no, using $LN_S" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4722 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4727 macro_version='2.4.2'
4728 macro_revision='1.3337'
4742 ltmain="$ac_aux_dir/ltmain.sh"
4744 # Backslashify metacharacters that are still active within
4745 # double-quoted strings.
4746 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4748 # Same as above, but do not quote variable references.
4749 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4751 # Sed substitution to delay expansion of an escaped shell variable in a
4752 # double_quote_subst'ed string.
4753 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4755 # Sed substitution to delay expansion of an escaped single quote.
4756 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4758 # Sed substitution to avoid accidental globbing in evaled expressions
4759 no_glob_subst='s/\*/\\\*/g'
4761 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4762 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4763 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4766 $as_echo_n "checking how to print strings... " >&6; }
4767 # Test print first, because it will be a builtin if present.
4768 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4769 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4771 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4774 # Use this function as a fallback that always works.
4775 func_fallback_echo ()
4777 eval 'cat <<_LTECHO_EOF
4781 ECHO='func_fallback_echo'
4784 # func_echo_all arg...
4785 # Invoke $ECHO with all args, space-separated.
4792 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4793 $as_echo "printf" >&6; } ;;
4794 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4795 $as_echo "print -r" >&6; } ;;
4796 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4797 $as_echo "cat" >&6; } ;;
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815 if ${ac_cv_path_SED+:} false; then :
4816 $as_echo_n "(cached) " >&6
4818 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819 for ac_i in 1 2 3 4 5 6 7; do
4820 ac_script="$ac_script$as_nl$ac_script"
4822 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823 { ac_script=; unset ac_script;}
4824 if test -z "$SED"; then
4825 ac_path_SED_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in sed gsed; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835 as_fn_executable_p "$ac_path_SED" || continue
4836 # Check for GNU ac_path_SED and select it if it is found.
4837 # Check for GNU $ac_path_SED
4838 case `"$ac_path_SED" --version 2>&1` in
4840 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4843 $as_echo_n 0123456789 >"conftest.in"
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo '' >> "conftest.nl"
4850 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_SED_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_SED="$ac_path_SED"
4856 ac_path_SED_max=$ac_count
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864 $ac_path_SED_found && break 3
4869 if test -z "$ac_cv_path_SED"; then
4870 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878 $as_echo "$ac_cv_path_SED" >&6; }
4879 SED="$ac_cv_path_SED"
4882 test -z "$SED" && SED=sed
4883 Xsed="$SED -e 1s/^X//"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4897 if ${ac_cv_path_GREP+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 if test -z "$GREP"; then
4901 ac_path_GREP_found=false
4902 # Loop through the user's path and test for each of PROGNAME-LIST
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4907 test -z "$as_dir" && as_dir=.
4908 for ac_prog in grep ggrep; do
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4911 as_fn_executable_p "$ac_path_GREP" || continue
4912 # Check for GNU ac_path_GREP and select it if it is found.
4913 # Check for GNU $ac_path_GREP
4914 case `"$ac_path_GREP" --version 2>&1` in
4916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4919 $as_echo_n 0123456789 >"conftest.in"
4922 cat "conftest.in" "conftest.in" >"conftest.tmp"
4923 mv "conftest.tmp" "conftest.in"
4924 cp "conftest.in" "conftest.nl"
4925 $as_echo 'GREP' >> "conftest.nl"
4926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928 as_fn_arith $ac_count + 1 && ac_count=$as_val
4929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4930 # Best one so far, save it but keep looking for a better one
4931 ac_cv_path_GREP="$ac_path_GREP"
4932 ac_path_GREP_max=$ac_count
4934 # 10*(2^10) chars as input seems more than enough
4935 test $ac_count -gt 10 && break
4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4940 $ac_path_GREP_found && break 3
4945 if test -z "$ac_cv_path_GREP"; then
4946 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4949 ac_cv_path_GREP=$GREP
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4954 $as_echo "$ac_cv_path_GREP" >&6; }
4955 GREP="$ac_cv_path_GREP"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4959 $as_echo_n "checking for egrep... " >&6; }
4960 if ${ac_cv_path_EGREP+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4964 then ac_cv_path_EGREP="$GREP -E"
4966 if test -z "$EGREP"; then
4967 ac_path_EGREP_found=false
4968 # Loop through the user's path and test for each of PROGNAME-LIST
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4973 test -z "$as_dir" && as_dir=.
4974 for ac_prog in egrep; do
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4977 as_fn_executable_p "$ac_path_EGREP" || continue
4978 # Check for GNU ac_path_EGREP and select it if it is found.
4979 # Check for GNU $ac_path_EGREP
4980 case `"$ac_path_EGREP" --version 2>&1` in
4982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4985 $as_echo_n 0123456789 >"conftest.in"
4988 cat "conftest.in" "conftest.in" >"conftest.tmp"
4989 mv "conftest.tmp" "conftest.in"
4990 cp "conftest.in" "conftest.nl"
4991 $as_echo 'EGREP' >> "conftest.nl"
4992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4994 as_fn_arith $ac_count + 1 && ac_count=$as_val
4995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4996 # Best one so far, save it but keep looking for a better one
4997 ac_cv_path_EGREP="$ac_path_EGREP"
4998 ac_path_EGREP_max=$ac_count
5000 # 10*(2^10) chars as input seems more than enough
5001 test $ac_count -gt 10 && break
5003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006 $ac_path_EGREP_found && break 3
5011 if test -z "$ac_cv_path_EGREP"; then
5012 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5015 ac_cv_path_EGREP=$EGREP
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5021 $as_echo "$ac_cv_path_EGREP" >&6; }
5022 EGREP="$ac_cv_path_EGREP"
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5026 $as_echo_n "checking for fgrep... " >&6; }
5027 if ${ac_cv_path_FGREP+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5031 then ac_cv_path_FGREP="$GREP -F"
5033 if test -z "$FGREP"; then
5034 ac_path_FGREP_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5040 test -z "$as_dir" && as_dir=.
5041 for ac_prog in fgrep; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5044 as_fn_executable_p "$ac_path_FGREP" || continue
5045 # Check for GNU ac_path_FGREP and select it if it is found.
5046 # Check for GNU $ac_path_FGREP
5047 case `"$ac_path_FGREP" --version 2>&1` in
5049 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5052 $as_echo_n 0123456789 >"conftest.in"
5055 cat "conftest.in" "conftest.in" >"conftest.tmp"
5056 mv "conftest.tmp" "conftest.in"
5057 cp "conftest.in" "conftest.nl"
5058 $as_echo 'FGREP' >> "conftest.nl"
5059 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_FGREP="$ac_path_FGREP"
5065 ac_path_FGREP_max=$ac_count
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5073 $ac_path_FGREP_found && break 3
5078 if test -z "$ac_cv_path_FGREP"; then
5079 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5082 ac_cv_path_FGREP=$FGREP
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5088 $as_echo "$ac_cv_path_FGREP" >&6; }
5089 FGREP="$ac_cv_path_FGREP"
5092 test -z "$GREP" && GREP=grep
5112 # Check whether --with-gnu-ld was given.
5113 if test "${with_gnu_ld+set}" = set; then :
5114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5120 if test "$GCC" = yes; then
5121 # Check if gcc -print-prog-name=ld gives a path.
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5123 $as_echo_n "checking for ld used by $CC... " >&6; }
5126 # gcc leaves a trailing carriage return which upsets mingw
5127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5132 # Accept absolute paths.
5134 re_direlt='/[^/][^/]*/\.\./'
5135 # Canonicalize the pathname of ld
5136 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5137 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5138 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5140 test -z "$LD" && LD="$ac_prog"
5143 # If it fails, then pretend we aren't using GCC.
5147 # If it is relative, then search for the first ld in PATH.
5151 elif test "$with_gnu_ld" = yes; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5153 $as_echo_n "checking for GNU ld... " >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5156 $as_echo_n "checking for non-GNU ld... " >&6; }
5158 if ${lt_cv_path_LD+:} false; then :
5159 $as_echo_n "(cached) " >&6
5161 if test -z "$LD"; then
5162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5163 for ac_dir in $PATH; do
5165 test -z "$ac_dir" && ac_dir=.
5166 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5167 lt_cv_path_LD="$ac_dir/$ac_prog"
5168 # Check to see if the program is GNU ld. I'd rather use --version,
5169 # but apparently some variants of GNU ld only accept -v.
5170 # Break only if it was the GNU/non-GNU ld that we prefer.
5171 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5172 *GNU* | *'with BFD'*)
5173 test "$with_gnu_ld" != no && break
5176 test "$with_gnu_ld" != yes && break
5183 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5188 if test -n "$LD"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5190 $as_echo "$LD" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5195 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5197 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5198 if ${lt_cv_prog_gnu_ld+:} false; then :
5199 $as_echo_n "(cached) " >&6
5201 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5202 case `$LD -v 2>&1 </dev/null` in
5203 *GNU* | *'with BFD'*)
5204 lt_cv_prog_gnu_ld=yes
5207 lt_cv_prog_gnu_ld=no
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5212 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5213 with_gnu_ld=$lt_cv_prog_gnu_ld
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5224 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5225 if ${lt_cv_path_NM+:} false; then :
5226 $as_echo_n "(cached) " >&6
5228 if test -n "$NM"; then
5229 # Let the user override the test.
5232 lt_nm_to_check="${ac_tool_prefix}nm"
5233 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5234 lt_nm_to_check="$lt_nm_to_check nm"
5236 for lt_tmp_nm in $lt_nm_to_check; do
5237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5238 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5240 test -z "$ac_dir" && ac_dir=.
5241 tmp_nm="$ac_dir/$lt_tmp_nm"
5242 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5243 # Check to see if the nm accepts a BSD-compat flag.
5244 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5245 # nm: unknown option "B" ignored
5246 # Tru64's nm complains that /dev/null is an invalid object file
5247 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5248 */dev/null* | *'Invalid file or object type'*)
5249 lt_cv_path_NM="$tmp_nm -B"
5253 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5255 lt_cv_path_NM="$tmp_nm -p"
5259 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5260 continue # so that we can try to find one that supports BSD flags
5269 : ${lt_cv_path_NM=no}
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5273 $as_echo "$lt_cv_path_NM" >&6; }
5274 if test "$lt_cv_path_NM" != "no"; then
5277 # Didn't find any BSD compatible name lister, look for dumpbin.
5278 if test -n "$DUMPBIN"; then :
5279 # Let the user override the test.
5281 if test -n "$ac_tool_prefix"; then
5282 for ac_prog in dumpbin "link -dump"
5284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_DUMPBIN+:} false; then :
5289 $as_echo_n "(cached) " >&6
5291 if test -n "$DUMPBIN"; then
5292 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 DUMPBIN=$ac_cv_prog_DUMPBIN
5312 if test -n "$DUMPBIN"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5314 $as_echo "$DUMPBIN" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 test -n "$DUMPBIN" && break
5324 if test -z "$DUMPBIN"; then
5325 ac_ct_DUMPBIN=$DUMPBIN
5326 for ac_prog in dumpbin "link -dump"
5328 # Extract the first word of "$ac_prog", so it can be a program name with args.
5329 set dummy $ac_prog; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5333 $as_echo_n "(cached) " >&6
5335 if test -n "$ac_ct_DUMPBIN"; then
5336 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5356 if test -n "$ac_ct_DUMPBIN"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5358 $as_echo "$ac_ct_DUMPBIN" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5365 test -n "$ac_ct_DUMPBIN" && break
5368 if test "x$ac_ct_DUMPBIN" = x; then
5371 case $cross_compiling:$ac_tool_warned in
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5377 DUMPBIN=$ac_ct_DUMPBIN
5381 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5383 DUMPBIN="$DUMPBIN -symbols"
5391 if test "$DUMPBIN" != ":"; then
5395 test -z "$NM" && NM=nm
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5403 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5404 if ${lt_cv_nm_interface+:} false; then :
5405 $as_echo_n "(cached) " >&6
5407 lt_cv_nm_interface="BSD nm"
5408 echo "int some_variable = 0;" > conftest.$ac_ext
5409 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5410 (eval "$ac_compile" 2>conftest.err)
5411 cat conftest.err >&5
5412 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5413 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5414 cat conftest.err >&5
5415 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5416 cat conftest.out >&5
5417 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5418 lt_cv_nm_interface="MS dumpbin"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5423 $as_echo "$lt_cv_nm_interface" >&6; }
5425 # find the maximum length of command line arguments
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5427 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5428 if ${lt_cv_sys_max_cmd_len+:} false; then :
5429 $as_echo_n "(cached) " >&6
5436 # On DJGPP, this test can blow up pretty badly due to problems in libc
5437 # (any single argument exceeding 2000 bytes causes a buffer overrun
5438 # during glob expansion). Even if it were fixed, the result of this
5439 # check would be larger than it should be.
5440 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5444 # Under GNU Hurd, this test is not required because there is
5445 # no limit to the length of command line arguments.
5446 # Libtool will interpret -1 as no limit whatsoever
5447 lt_cv_sys_max_cmd_len=-1;
5450 cygwin* | mingw* | cegcc*)
5451 # On Win9x/ME, this test blows up -- it succeeds, but takes
5452 # about 5 minutes as the teststring grows exponentially.
5453 # Worse, since 9x/ME are not pre-emptively multitasking,
5454 # you end up with a "frozen" computer, even though with patience
5455 # the test eventually succeeds (with a max line length of 256k).
5456 # Instead, let's just punt: use the minimum linelength reported by
5457 # all of the supported platforms: 8192 (on NT/2K/XP).
5458 lt_cv_sys_max_cmd_len=8192;
5462 # On MiNT this can take a long time and run out of memory.
5463 lt_cv_sys_max_cmd_len=8192;
5467 # On AmigaOS with pdksh, this test takes hours, literally.
5468 # So we just punt and use a minimum line length of 8192.
5469 lt_cv_sys_max_cmd_len=8192;
5472 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5473 # This has been around since 386BSD, at least. Likely further.
5474 if test -x /sbin/sysctl; then
5475 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5476 elif test -x /usr/sbin/sysctl; then
5477 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5479 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5481 # And add a safety zone
5482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5487 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5488 lt_cv_sys_max_cmd_len=196608
5492 # The test takes a long time on OS/2.
5493 lt_cv_sys_max_cmd_len=8192
5497 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5498 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5499 # nice to cause kernel panics so lets avoid the loop below.
5500 # First set a reasonable default.
5501 lt_cv_sys_max_cmd_len=16384
5503 if test -x /sbin/sysconfig; then
5504 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5505 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5510 lt_cv_sys_max_cmd_len=102400
5512 sysv5* | sco5v6* | sysv4.2uw2*)
5513 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5514 if test -n "$kargmax"; then
5515 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5517 lt_cv_sys_max_cmd_len=32768
5521 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5522 if test -n "$lt_cv_sys_max_cmd_len"; then
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5526 # Make teststring a little bigger before we do anything with it.
5527 # a 1K string should be a reasonable start.
5528 for i in 1 2 3 4 5 6 7 8 ; do
5529 teststring=$teststring$teststring
5531 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5532 # If test is not a shell built-in, we'll probably end up computing a
5533 # maximum length that is only half of the actual maximum length, but
5535 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5536 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5537 test $i != 17 # 1/2 MB should be enough
5540 teststring=$teststring$teststring
5542 # Only check the string length outside the loop.
5543 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5545 # Add a significant safety factor because C++ compilers can tack on
5546 # massive amounts of additional arguments before passing them to the
5547 # linker. It appears as though 1/2 is a usable value.
5548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5555 if test -n $lt_cv_sys_max_cmd_len ; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5557 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5560 $as_echo "none" >&6; }
5562 max_cmd_len=$lt_cv_sys_max_cmd_len
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5574 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5575 # Try some XSI features
5578 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5580 && eval 'test $(( 1 + 1 )) -eq 2 \
5581 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5584 $as_echo "$xsi_shell" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5588 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5590 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5592 && lt_shell_append=yes
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5594 $as_echo "$lt_shell_append" >&6; }
5597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5607 # test EBCDIC or ASCII
5608 case `echo X|tr X '\101'` in
5609 A) # ASCII based system
5610 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5611 lt_SP2NL='tr \040 \012'
5612 lt_NL2SP='tr \015\012 \040\040'
5614 *) # EBCDIC based system
5615 lt_SP2NL='tr \100 \n'
5616 lt_NL2SP='tr \r\n \100\100'
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5629 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5630 if ${lt_cv_to_host_file_cmd+:} false; then :
5631 $as_echo_n "(cached) " >&6
5636 *-*-mingw* ) # actually msys
5637 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5640 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5642 * ) # otherwise, assume *nix
5643 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5649 *-*-mingw* ) # actually msys
5650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5653 lt_cv_to_host_file_cmd=func_convert_file_noop
5655 * ) # otherwise, assume *nix
5656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5660 * ) # unhandled hosts (and "normal" native builds)
5661 lt_cv_to_host_file_cmd=func_convert_file_noop
5667 to_host_file_cmd=$lt_cv_to_host_file_cmd
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5669 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5676 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5677 if ${lt_cv_to_tool_file_cmd+:} false; then :
5678 $as_echo_n "(cached) " >&6
5680 #assume ordinary cross tools, or native build.
5681 lt_cv_to_tool_file_cmd=func_convert_file_noop
5685 *-*-mingw* ) # actually msys
5686 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5696 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5704 if ${lt_cv_ld_reload_flag+:} false; then :
5705 $as_echo_n "(cached) " >&6
5707 lt_cv_ld_reload_flag='-r'
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5711 reload_flag=$lt_cv_ld_reload_flag
5712 case $reload_flag in
5714 *) reload_flag=" $reload_flag" ;;
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5718 cygwin* | mingw* | pw32* | cegcc*)
5719 if test "$GCC" != yes; then
5724 if test "$GCC" = yes; then
5725 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5727 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5740 if test -n "$ac_tool_prefix"; then
5741 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5742 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_OBJDUMP+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 if test -n "$OBJDUMP"; then
5749 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 OBJDUMP=$ac_cv_prog_OBJDUMP
5769 if test -n "$OBJDUMP"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5771 $as_echo "$OBJDUMP" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5779 if test -z "$ac_cv_prog_OBJDUMP"; then
5780 ac_ct_OBJDUMP=$OBJDUMP
5781 # Extract the first word of "objdump", so it can be a program name with args.
5782 set dummy objdump; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5786 $as_echo_n "(cached) " >&6
5788 if test -n "$ac_ct_OBJDUMP"; then
5789 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5809 if test -n "$ac_ct_OBJDUMP"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5811 $as_echo "$ac_ct_OBJDUMP" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5817 if test "x$ac_ct_OBJDUMP" = x; then
5820 case $cross_compiling:$ac_tool_warned in
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5826 OBJDUMP=$ac_ct_OBJDUMP
5829 OBJDUMP="$ac_cv_prog_OBJDUMP"
5832 test -z "$OBJDUMP" && OBJDUMP=objdump
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5843 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5844 if ${lt_cv_deplibs_check_method+:} false; then :
5845 $as_echo_n "(cached) " >&6
5847 lt_cv_file_magic_cmd='$MAGIC_CMD'
5848 lt_cv_file_magic_test_file=
5849 lt_cv_deplibs_check_method='unknown'
5850 # Need to set the preceding variable on all platforms that support
5851 # interlibrary dependencies.
5852 # 'none' -- dependencies not supported.
5853 # `unknown' -- same as none, but documents that we really don't know.
5854 # 'pass_all' -- all dependencies passed with no checks.
5855 # 'test_compile' -- check by making test program.
5856 # 'file_magic [[regex]]' -- check by looking for files in library path
5857 # which responds to the $file_magic_cmd with a given extended regex.
5858 # If you have `file' or equivalent on your system and you're not sure
5859 # whether `pass_all' will *always* work, you probably want this one.
5863 lt_cv_deplibs_check_method=pass_all
5867 lt_cv_deplibs_check_method=pass_all
5871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5872 lt_cv_file_magic_cmd='/usr/bin/file -L'
5873 lt_cv_file_magic_test_file=/shlib/libc.so
5877 # func_win32_libid is a shell function defined in ltmain.sh
5878 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5879 lt_cv_file_magic_cmd='func_win32_libid'
5883 # Base MSYS/MinGW do not provide the 'file' command needed by
5884 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5885 # unless we find 'file', for example because we are cross-compiling.
5886 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5887 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5889 lt_cv_file_magic_cmd='func_win32_libid'
5891 # Keep this pattern in sync with the one in func_win32_libid.
5892 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5893 lt_cv_file_magic_cmd='$OBJDUMP -f'
5898 # use the weaker test based on 'objdump'. See mingw*.
5899 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5900 lt_cv_file_magic_cmd='$OBJDUMP -f'
5903 darwin* | rhapsody*)
5904 lt_cv_deplibs_check_method=pass_all
5907 freebsd* | dragonfly*)
5908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5911 # Not sure whether the presence of OpenBSD here was a mistake.
5912 # Let's accept both of them until this is cleared up.
5913 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5914 lt_cv_file_magic_cmd=/usr/bin/file
5915 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5919 lt_cv_deplibs_check_method=pass_all
5924 lt_cv_deplibs_check_method=pass_all
5928 lt_cv_deplibs_check_method=pass_all
5931 hpux10.20* | hpux11*)
5932 lt_cv_file_magic_cmd=/usr/bin/file
5935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5936 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5939 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]'
5940 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5944 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5950 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5954 irix5* | irix6* | nonstopux*)
5956 *-32|*"-32 ") libmagic=32-bit;;
5957 *-n32|*"-n32 ") libmagic=N32;;
5958 *-64|*"-64 ") libmagic=64-bit;;
5959 *) libmagic=never-match;;
5961 lt_cv_deplibs_check_method=pass_all
5964 # This must be glibc/ELF.
5965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5966 lt_cv_deplibs_check_method=pass_all
5970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5979 lt_cv_file_magic_cmd=/usr/bin/file
5980 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5984 lt_cv_deplibs_check_method=pass_all
5988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5995 osf3* | osf4* | osf5*)
5996 lt_cv_deplibs_check_method=pass_all
6000 lt_cv_deplibs_check_method=pass_all
6004 lt_cv_deplibs_check_method=pass_all
6007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6008 lt_cv_deplibs_check_method=pass_all
6012 case $host_vendor in
6014 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]'
6015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6018 lt_cv_deplibs_check_method=pass_all
6021 lt_cv_file_magic_cmd='/bin/file'
6022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6025 lt_cv_file_magic_cmd='/bin/file'
6026 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6027 lt_cv_file_magic_test_file=/lib/libc.so
6030 lt_cv_deplibs_check_method=pass_all
6033 lt_cv_deplibs_check_method=pass_all
6039 lt_cv_deplibs_check_method=pass_all
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6045 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6049 if test "$build" = "$host"; then
6052 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6055 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6061 file_magic_cmd=$lt_cv_file_magic_cmd
6062 deplibs_check_method=$lt_cv_deplibs_check_method
6063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_DLLTOOL+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 if test -n "$DLLTOOL"; then
6095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 DLLTOOL=$ac_cv_prog_DLLTOOL
6115 if test -n "$DLLTOOL"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6117 $as_echo "$DLLTOOL" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6125 if test -z "$ac_cv_prog_DLLTOOL"; then
6126 ac_ct_DLLTOOL=$DLLTOOL
6127 # Extract the first word of "dlltool", so it can be a program name with args.
6128 set dummy dlltool; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$ac_ct_DLLTOOL"; then
6135 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6155 if test -n "$ac_ct_DLLTOOL"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6157 $as_echo "$ac_ct_DLLTOOL" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6163 if test "x$ac_ct_DLLTOOL" = x; then
6166 case $cross_compiling:$ac_tool_warned in
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6172 DLLTOOL=$ac_ct_DLLTOOL
6175 DLLTOOL="$ac_cv_prog_DLLTOOL"
6178 test -z "$DLLTOOL" && DLLTOOL=dlltool
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6190 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6191 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6192 $as_echo_n "(cached) " >&6
6194 lt_cv_sharedlib_from_linklib_cmd='unknown'
6197 cygwin* | mingw* | pw32* | cegcc*)
6198 # two different shell functions defined in ltmain.sh
6199 # decide which to use based on capabilities of $DLLTOOL
6200 case `$DLLTOOL --help 2>&1` in
6201 *--identify-strict*)
6202 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6205 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6210 # fallback: assume linklib IS sharedlib
6211 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6217 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6218 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6219 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6227 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_AR+:} false; then :
6235 $as_echo_n "(cached) " >&6
6237 if test -n "$AR"; then
6238 ac_cv_prog_AR="$AR" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 if test -n "$AR"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6260 $as_echo "$AR" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6267 test -n "$AR" && break
6270 if test -z "$AR"; then
6274 # Extract the first word of "$ac_prog", so it can be a program name with args.
6275 set dummy $ac_prog; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -n "$ac_ct_AR"; then
6282 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_ac_ct_AR="$ac_prog"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6302 if test -n "$ac_ct_AR"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6304 $as_echo "$ac_ct_AR" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6311 test -n "$ac_ct_AR" && break
6314 if test "x$ac_ct_AR" = x; then
6317 case $cross_compiling:$ac_tool_warned in
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6341 $as_echo_n "checking for archiver @FILE support... " >&6; }
6342 if ${lt_cv_ar_at_file+:} false; then :
6343 $as_echo_n "(cached) " >&6
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 echo conftest.$ac_objext > conftest.lst
6359 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6361 (eval $lt_ar_try) 2>&5
6363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364 test $ac_status = 0; }
6365 if test "$ac_status" -eq 0; then
6366 # Ensure the archiver fails upon bogus file names.
6367 rm -f conftest.$ac_objext libconftest.a
6368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6369 (eval $lt_ar_try) 2>&5
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; }
6373 if test "$ac_status" -ne 0; then
6377 rm -f conftest.* libconftest.a
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6384 $as_echo "$lt_cv_ar_at_file" >&6; }
6386 if test "x$lt_cv_ar_at_file" = xno; then
6389 archiver_list_spec=$lt_cv_ar_at_file
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}strip; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_STRIP+:} false; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -n "$STRIP"; then
6407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 STRIP=$ac_cv_prog_STRIP
6427 if test -n "$STRIP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6429 $as_echo "$STRIP" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_STRIP"; then
6439 # Extract the first word of "strip", so it can be a program name with args.
6440 set dummy strip; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$ac_ct_STRIP"; then
6447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_STRIP="strip"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6467 if test -n "$ac_ct_STRIP"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6469 $as_echo "$ac_ct_STRIP" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_STRIP" = x; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6487 STRIP="$ac_cv_prog_STRIP"
6490 test -z "$STRIP" && STRIP=:
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_RANLIB+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$RANLIB"; then
6506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 RANLIB=$ac_cv_prog_RANLIB
6526 if test -n "$RANLIB"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6528 $as_echo "$RANLIB" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6536 if test -z "$ac_cv_prog_RANLIB"; then
6537 ac_ct_RANLIB=$RANLIB
6538 # Extract the first word of "ranlib", so it can be a program name with args.
6539 set dummy ranlib; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6543 $as_echo_n "(cached) " >&6
6545 if test -n "$ac_ct_RANLIB"; then
6546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_RANLIB="ranlib"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6566 if test -n "$ac_ct_RANLIB"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6568 $as_echo "$ac_ct_RANLIB" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6574 if test "x$ac_ct_RANLIB" = x; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6583 RANLIB=$ac_ct_RANLIB
6586 RANLIB="$ac_cv_prog_RANLIB"
6589 test -z "$RANLIB" && RANLIB=:
6596 # Determine commands to create old-style static archives.
6597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6598 old_postinstall_cmds='chmod 644 $oldlib'
6599 old_postuninstall_cmds=
6601 if test -n "$RANLIB"; then
6604 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6607 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6610 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6615 lock_old_archive_extraction=yes ;;
6617 lock_old_archive_extraction=no ;;
6658 # If no C compiler was specified, use CC.
6661 # If no C compiler flags were specified, use CFLAGS.
6662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6664 # Allow CC to be a program name with arguments.
6668 # Check for command to grab the raw symbol name followed by C symbol from nm.
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6670 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6671 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6672 $as_echo_n "(cached) " >&6
6675 # These are sane defaults that work on at least a few old systems.
6676 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6678 # Character class describing NM global symbol codes.
6679 symcode='[BCDEGRST]'
6681 # Regexp to match symbols that can be accessed directly from C.
6682 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6684 # Define system-specific variables.
6689 cygwin* | mingw* | pw32* | cegcc*)
6690 symcode='[ABCDGISTW]'
6693 if test "$host_cpu" = ia64; then
6694 symcode='[ABCDEGRST]'
6698 symcode='[BCDEGRST]'
6701 symcode='[BCDEGQRST]'
6712 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6720 # If we're using GNU nm, then use its standard symbol codes.
6721 case `$NM -V 2>&1` in
6722 *GNU* | *'with BFD'*)
6723 symcode='[ABCDGIRSTW]' ;;
6726 # Transform an extracted symbol line into a proper C declaration.
6727 # Some systems (esp. on ia64) link data and code symbols differently,
6728 # so use this general approach.
6729 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6731 # Transform an extracted symbol line into symbol name and symbol address
6732 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6733 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'"
6735 # Handle CRLF in mingw tool chain
6739 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6743 # Try without a prefix underscore, then with it.
6744 for ac_symprfx in "" "_"; do
6746 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6747 symxfrm="\\1 $ac_symprfx\\2 \\2"
6749 # Write the raw and C identifiers.
6750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751 # Fake it for dumpbin and say T for any non-static function
6752 # and D for any global variable.
6753 # Also find C++ and __fastcall symbols from MSVC++,
6754 # which start with @ or ?.
6755 lt_cv_sys_global_symbol_pipe="$AWK '"\
6756 " {last_section=section; section=\$ 3};"\
6757 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6758 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6759 " \$ 0!~/External *\|/{next};"\
6760 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6761 " {if(hide[section]) next};"\
6762 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6763 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6764 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6765 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6766 " ' prfx=^$ac_symprfx"
6768 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6770 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6772 # Check to see that the pipe works correctly.
6776 cat > conftest.$ac_ext <<_LT_EOF
6781 void nm_test_func(void);
6782 void nm_test_func(void){}
6786 int main(){nm_test_var='a';nm_test_func();return(0);}
6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790 (eval $ac_compile) 2>&5
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 # Now try to grab the symbols.
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6797 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; } && test -s "$nlist"; then
6801 # Try sorting and uniquifying the output.
6802 if sort "$nlist" | uniq > "$nlist"T; then
6803 mv -f "$nlist"T "$nlist"
6808 # Make sure that we snagged all the symbols we need.
6809 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6810 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6811 cat <<_LT_EOF > conftest.$ac_ext
6812 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6813 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6814 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6815 relocations are performed -- see ld's documentation on pseudo-relocs. */
6816 # define LT_DLSYM_CONST
6817 #elif defined(__osf__)
6818 /* This system does not cope well with relocations in const data. */
6819 # define LT_DLSYM_CONST
6821 # define LT_DLSYM_CONST const
6829 # Now generate the symbol file.
6830 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6832 cat <<_LT_EOF >> conftest.$ac_ext
6834 /* The mapping between symbol names and symbols. */
6835 LT_DLSYM_CONST struct {
6839 lt__PROGRAM__LTX_preloaded_symbols[] =
6841 { "@PROGRAM@", (void *) 0 },
6843 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6844 cat <<\_LT_EOF >> conftest.$ac_ext
6848 /* This works around a problem in FreeBSD linker */
6849 #ifdef FREEBSD_WORKAROUND
6850 static const void *lt_preloaded_setup() {
6851 return lt__PROGRAM__LTX_preloaded_symbols;
6859 # Now try linking the two files.
6860 mv conftest.$ac_objext conftstm.$ac_objext
6861 lt_globsym_save_LIBS=$LIBS
6862 lt_globsym_save_CFLAGS=$CFLAGS
6863 LIBS="conftstm.$ac_objext"
6864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6866 (eval $ac_link) 2>&5
6868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6872 LIBS=$lt_globsym_save_LIBS
6873 CFLAGS=$lt_globsym_save_CFLAGS
6875 echo "cannot find nm_test_func in $nlist" >&5
6878 echo "cannot find nm_test_var in $nlist" >&5
6881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6884 echo "$progname: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 rm -rf conftest* conftst*
6889 # Do not use the global_symbol_pipe unless it works.
6890 if test "$pipe_works" = yes; then
6893 lt_cv_sys_global_symbol_pipe=
6899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6900 lt_cv_sys_global_symbol_to_cdecl=
6902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6904 $as_echo "failed" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6907 $as_echo "ok" >&6; }
6910 # Response file support.
6911 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6912 nm_file_list_spec='@'
6913 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6914 nm_file_list_spec='@'
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6944 $as_echo_n "checking for sysroot... " >&6; }
6946 # Check whether --with-sysroot was given.
6947 if test "${with_sysroot+set}" = set; then :
6948 withval=$with_sysroot;
6955 case ${with_sysroot} in #(
6957 if test "$GCC" = yes; then
6958 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6962 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6968 $as_echo "${with_sysroot}" >&6; }
6969 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6974 $as_echo "${lt_sysroot:-no}" >&6; }
6980 # Check whether --enable-libtool-lock was given.
6981 if test "${enable_libtool_lock+set}" = set; then :
6982 enableval=$enable_libtool_lock;
6985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6987 # Some flags need to be propagated to the compiler or linker for good
6991 # Find out which ABI we are using.
6992 echo 'int i;' > conftest.$ac_ext
6993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6994 (eval $ac_compile) 2>&5
6996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997 test $ac_status = 0; }; then
6998 case `/usr/bin/file conftest.$ac_objext` in
7010 # Find out which ABI we are using.
7011 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013 (eval $ac_compile) 2>&5
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; }; then
7017 if test "$lt_cv_prog_gnu_ld" = yes; then
7018 case `/usr/bin/file conftest.$ac_objext` in
7020 LD="${LD-ld} -melf32bsmip"
7023 LD="${LD-ld} -melf32bmipn32"
7026 LD="${LD-ld} -melf64bmip"
7030 case `/usr/bin/file conftest.$ac_objext` in
7046 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7047 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7048 # Find out which ABI we are using.
7049 echo 'int i;' > conftest.$ac_ext
7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051 (eval $ac_compile) 2>&5
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7055 case `/usr/bin/file conftest.o` in
7058 x86_64-*kfreebsd*-gnu)
7059 LD="${LD-ld} -m elf_i386_fbsd"
7062 LD="${LD-ld} -m elf_i386"
7064 ppc64-*linux*|powerpc64-*linux*)
7065 LD="${LD-ld} -m elf32ppclinux"
7068 LD="${LD-ld} -m elf_s390"
7071 LD="${LD-ld} -m elf32_sparc"
7077 x86_64-*kfreebsd*-gnu)
7078 LD="${LD-ld} -m elf_x86_64_fbsd"
7081 LD="${LD-ld} -m elf_x86_64"
7083 ppc*-*linux*|powerpc*-*linux*)
7084 LD="${LD-ld} -m elf64ppc"
7086 s390*-*linux*|s390*-*tpf*)
7087 LD="${LD-ld} -m elf64_s390"
7090 LD="${LD-ld} -m elf64_sparc"
7100 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7101 SAVE_CFLAGS="$CFLAGS"
7102 CFLAGS="$CFLAGS -belf"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7104 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7105 if ${lt_cv_cc_needs_belf+:} false; then :
7106 $as_echo_n "(cached) " >&6
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7125 if ac_fn_c_try_link "$LINENO"; then :
7126 lt_cv_cc_needs_belf=yes
7128 lt_cv_cc_needs_belf=no
7130 rm -f core conftest.err conftest.$ac_objext \
7131 conftest$ac_exeext conftest.$ac_ext
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7140 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7141 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7142 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7143 CFLAGS="$SAVE_CFLAGS"
7147 # Find out which ABI we are using.
7148 echo 'int i;' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 case `/usr/bin/file conftest.o` in
7156 case $lt_cv_prog_gnu_ld in
7160 LD="${LD-ld} -m elf_x86_64"
7163 LD="${LD-ld} -m elf64_sparc"
7166 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7167 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7172 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7184 need_locks="$enable_libtool_lock"
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}mt; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$MANIFEST_TOOL"; then
7195 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7215 if test -n "$MANIFEST_TOOL"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7217 $as_echo "$MANIFEST_TOOL" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7226 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7227 # Extract the first word of "mt", so it can be a program name with args.
7228 set dummy mt; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$ac_ct_MANIFEST_TOOL"; then
7235 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7255 if test -n "$ac_ct_MANIFEST_TOOL"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7257 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7266 case $cross_compiling:$ac_tool_warned in
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7272 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7275 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7278 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7280 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7281 if ${lt_cv_path_mainfest_tool+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 lt_cv_path_mainfest_tool=no
7285 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7286 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7287 cat conftest.err >&5
7288 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7289 lt_cv_path_mainfest_tool=yes
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7294 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7295 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7305 rhapsody* | darwin*)
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$DSYMUTIL"; then
7315 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7335 if test -n "$DSYMUTIL"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7337 $as_echo "$DSYMUTIL" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7345 if test -z "$ac_cv_prog_DSYMUTIL"; then
7346 ac_ct_DSYMUTIL=$DSYMUTIL
7347 # Extract the first word of "dsymutil", so it can be a program name with args.
7348 set dummy dsymutil; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$ac_ct_DSYMUTIL"; then
7355 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7377 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 if test "x$ac_ct_DSYMUTIL" = x; then
7386 case $cross_compiling:$ac_tool_warned in
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7392 DSYMUTIL=$ac_ct_DSYMUTIL
7395 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_NMEDIT+:} false; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$NMEDIT"; then
7407 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 NMEDIT=$ac_cv_prog_NMEDIT
7427 if test -n "$NMEDIT"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7429 $as_echo "$NMEDIT" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7437 if test -z "$ac_cv_prog_NMEDIT"; then
7438 ac_ct_NMEDIT=$NMEDIT
7439 # Extract the first word of "nmedit", so it can be a program name with args.
7440 set dummy nmedit; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$ac_ct_NMEDIT"; then
7447 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7467 if test -n "$ac_ct_NMEDIT"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7469 $as_echo "$ac_ct_NMEDIT" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7475 if test "x$ac_ct_NMEDIT" = x; then
7478 case $cross_compiling:$ac_tool_warned in
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7484 NMEDIT=$ac_ct_NMEDIT
7487 NMEDIT="$ac_cv_prog_NMEDIT"
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_LIPO+:} false; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$LIPO"; then
7499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 LIPO=$ac_cv_prog_LIPO
7519 if test -n "$LIPO"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7521 $as_echo "$LIPO" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7529 if test -z "$ac_cv_prog_LIPO"; then
7531 # Extract the first word of "lipo", so it can be a program name with args.
7532 set dummy lipo; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7536 $as_echo_n "(cached) " >&6
7538 if test -n "$ac_ct_LIPO"; then
7539 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_ac_ct_LIPO="lipo"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7559 if test -n "$ac_ct_LIPO"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7561 $as_echo "$ac_ct_LIPO" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 if test "x$ac_ct_LIPO" = x; then
7570 case $cross_compiling:$ac_tool_warned in
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7579 LIPO="$ac_cv_prog_LIPO"
7582 if test -n "$ac_tool_prefix"; then
7583 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7584 set dummy ${ac_tool_prefix}otool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_OTOOL+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 if test -n "$OTOOL"; then
7591 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 OTOOL=$ac_cv_prog_OTOOL
7611 if test -n "$OTOOL"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7613 $as_echo "$OTOOL" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7621 if test -z "$ac_cv_prog_OTOOL"; then
7623 # Extract the first word of "otool", so it can be a program name with args.
7624 set dummy otool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7628 $as_echo_n "(cached) " >&6
7630 if test -n "$ac_ct_OTOOL"; then
7631 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_ac_ct_OTOOL="otool"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7651 if test -n "$ac_ct_OTOOL"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7653 $as_echo "$ac_ct_OTOOL" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7659 if test "x$ac_ct_OTOOL" = x; then
7662 case $cross_compiling:$ac_tool_warned in
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7671 OTOOL="$ac_cv_prog_OTOOL"
7674 if test -n "$ac_tool_prefix"; then
7675 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7676 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_OTOOL64+:} false; then :
7680 $as_echo_n "(cached) " >&6
7682 if test -n "$OTOOL64"; then
7683 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 OTOOL64=$ac_cv_prog_OTOOL64
7703 if test -n "$OTOOL64"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7705 $as_echo "$OTOOL64" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7713 if test -z "$ac_cv_prog_OTOOL64"; then
7714 ac_ct_OTOOL64=$OTOOL64
7715 # Extract the first word of "otool64", so it can be a program name with args.
7716 set dummy otool64; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 if test -n "$ac_ct_OTOOL64"; then
7723 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732 ac_cv_prog_ac_ct_OTOOL64="otool64"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7743 if test -n "$ac_ct_OTOOL64"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7745 $as_echo "$ac_ct_OTOOL64" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7751 if test "x$ac_ct_OTOOL64" = x; then
7754 case $cross_compiling:$ac_tool_warned in
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758 ac_tool_warned=yes ;;
7760 OTOOL64=$ac_ct_OTOOL64
7763 OTOOL64="$ac_cv_prog_OTOOL64"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7793 $as_echo_n "checking for -single_module linker flag... " >&6; }
7794 if ${lt_cv_apple_cc_single_mod+:} false; then :
7795 $as_echo_n "(cached) " >&6
7797 lt_cv_apple_cc_single_mod=no
7798 if test -z "${LT_MULTI_MODULE}"; then
7799 # By default we will add the -single_module flag. You can override
7800 # by either setting the environment variable LT_MULTI_MODULE
7801 # non-empty at configure time, or by adding -multi_module to the
7803 rm -rf libconftest.dylib*
7804 echo "int foo(void){return 1;}" > conftest.c
7805 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7806 -dynamiclib -Wl,-single_module conftest.c" >&5
7807 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7808 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7810 # If there is a non-empty error log, and "single_module"
7811 # appears in it, assume the flag caused a linker warning
7812 if test -s conftest.err && $GREP single_module conftest.err; then
7813 cat conftest.err >&5
7814 # Otherwise, if the output was created with a 0 exit code from
7815 # the compiler, it worked.
7816 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7817 lt_cv_apple_cc_single_mod=yes
7819 cat conftest.err >&5
7821 rm -rf libconftest.dylib*
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7826 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7829 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7830 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7831 $as_echo_n "(cached) " >&6
7833 lt_cv_ld_exported_symbols_list=no
7834 save_LDFLAGS=$LDFLAGS
7835 echo "_main" > conftest.sym
7836 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7848 if ac_fn_c_try_link "$LINENO"; then :
7849 lt_cv_ld_exported_symbols_list=yes
7851 lt_cv_ld_exported_symbols_list=no
7853 rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 LDFLAGS="$save_LDFLAGS"
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7859 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7862 $as_echo_n "checking for -force_load linker flag... " >&6; }
7863 if ${lt_cv_ld_force_load+:} false; then :
7864 $as_echo_n "(cached) " >&6
7866 lt_cv_ld_force_load=no
7867 cat > conftest.c << _LT_EOF
7868 int forced_loaded() { return 2;}
7870 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7871 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7872 echo "$AR cru libconftest.a conftest.o" >&5
7873 $AR cru libconftest.a conftest.o 2>&5
7874 echo "$RANLIB libconftest.a" >&5
7875 $RANLIB libconftest.a 2>&5
7876 cat > conftest.c << _LT_EOF
7877 int main() { return 0;}
7879 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7880 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7882 if test -s conftest.err && $GREP force_load conftest.err; then
7883 cat conftest.err >&5
7884 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7885 lt_cv_ld_force_load=yes
7887 cat conftest.err >&5
7889 rm -f conftest.err libconftest.a conftest conftest.c
7890 rm -rf conftest.dSYM
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7894 $as_echo "$lt_cv_ld_force_load" >&6; }
7896 rhapsody* | darwin1.[012])
7897 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7899 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7900 darwin*) # darwin 5.x on
7901 # if running on 10.5 or later, the deployment target defaults
7902 # to the OS version, if on x86, and 10.4, the deployment
7903 # target defaults to 10.4. Don't you love it?
7904 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7905 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7906 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7908 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7910 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7914 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7915 _lt_dar_single_mod='$single_module'
7917 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7918 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7920 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7922 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7923 _lt_dsymutil='~$DSYMUTIL $lib || :'
7931 ac_cpp='$CPP $CPPFLAGS'
7932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7937 # On Suns, sometimes $CPP names a directory.
7938 if test -n "$CPP" && test -d "$CPP"; then
7941 if test -z "$CPP"; then
7942 if ${ac_cv_prog_CPP+:} false; then :
7943 $as_echo_n "(cached) " >&6
7945 # Double quotes because CPP needs to be expanded
7946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7949 for ac_c_preproc_warn_flag in '' yes
7951 # Use a header file that comes with gcc, so configuring glibc
7952 # with a fresh cross-compiler works.
7953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 # <limits.h> exists even on freestanding compilers.
7955 # On the NeXT, cc -E runs the code through the compiler's parser,
7956 # not just through cpp. "Syntax error" is here to catch this case.
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7960 # include <limits.h>
7962 # include <assert.h>
7966 if ac_fn_c_try_cpp "$LINENO"; then :
7969 # Broken: fails on valid input.
7972 rm -f conftest.err conftest.i conftest.$ac_ext
7974 # OK, works on sane cases. Now check whether nonexistent headers
7975 # can be detected and how.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #include <ac_nonexistent.h>
7980 if ac_fn_c_try_cpp "$LINENO"; then :
7981 # Broken: success on invalid input.
7984 # Passes both tests.
7988 rm -f conftest.err conftest.i conftest.$ac_ext
7991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7992 rm -f conftest.i conftest.err conftest.$ac_ext
7993 if $ac_preproc_ok; then :
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8006 $as_echo "$CPP" >&6; }
8008 for ac_c_preproc_warn_flag in '' yes
8010 # Use a header file that comes with gcc, so configuring glibc
8011 # with a fresh cross-compiler works.
8012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8013 # <limits.h> exists even on freestanding compilers.
8014 # On the NeXT, cc -E runs the code through the compiler's parser,
8015 # not just through cpp. "Syntax error" is here to catch this case.
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8019 # include <limits.h>
8021 # include <assert.h>
8025 if ac_fn_c_try_cpp "$LINENO"; then :
8028 # Broken: fails on valid input.
8031 rm -f conftest.err conftest.i conftest.$ac_ext
8033 # OK, works on sane cases. Now check whether nonexistent headers
8034 # can be detected and how.
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <ac_nonexistent.h>
8039 if ac_fn_c_try_cpp "$LINENO"; then :
8040 # Broken: success on invalid input.
8043 # Passes both tests.
8047 rm -f conftest.err conftest.i conftest.$ac_ext
8050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8051 rm -f conftest.i conftest.err conftest.$ac_ext
8052 if $ac_preproc_ok; then :
8055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8057 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8058 See \`config.log' for more details" "$LINENO" 5; }
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8069 $as_echo_n "checking for ANSI C header files... " >&6; }
8070 if ${ac_cv_header_stdc+:} false; then :
8071 $as_echo_n "(cached) " >&6
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8088 if ac_fn_c_try_compile "$LINENO"; then :
8089 ac_cv_header_stdc=yes
8091 ac_cv_header_stdc=no
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 if test $ac_cv_header_stdc = yes; then
8096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103 $EGREP "memchr" >/dev/null 2>&1; then :
8106 ac_cv_header_stdc=no
8112 if test $ac_cv_header_stdc = yes; then
8113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120 $EGREP "free" >/dev/null 2>&1; then :
8123 ac_cv_header_stdc=no
8129 if test $ac_cv_header_stdc = yes; then
8130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8131 if test "$cross_compiling" = yes; then :
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8138 #if ((' ' & 0x0FF) == 0x020)
8139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8142 # define ISLOWER(c) \
8143 (('a' <= (c) && (c) <= 'i') \
8144 || ('j' <= (c) && (c) <= 'r') \
8145 || ('s' <= (c) && (c) <= 'z'))
8146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8154 for (i = 0; i < 256; i++)
8155 if (XOR (islower (i), ISLOWER (i))
8156 || toupper (i) != TOUPPER (i))
8161 if ac_fn_c_try_run "$LINENO"; then :
8164 ac_cv_header_stdc=no
8166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8167 conftest.$ac_objext conftest.beam conftest.$ac_ext
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8173 $as_echo "$ac_cv_header_stdc" >&6; }
8174 if test $ac_cv_header_stdc = yes; then
8176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8180 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8182 inttypes.h stdint.h unistd.h
8184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8185 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8188 cat >>confdefs.h <<_ACEOF
8189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8197 for ac_header in dlfcn.h
8199 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8201 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_DLFCN_H 1
8213 func_stripname_cnf ()
8216 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8217 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8219 } # func_stripname_cnf
8235 # Check whether --enable-shared was given.
8236 if test "${enable_shared+set}" = set; then :
8237 enableval=$enable_shared; p=${PACKAGE-default}
8239 yes) enable_shared=yes ;;
8240 no) enable_shared=no ;;
8243 # Look at the argument we got. We use all the common list separators.
8244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8245 for pkg in $enableval; do
8247 if test "X$pkg" = "X$p"; then
8266 # Check whether --enable-static was given.
8267 if test "${enable_static+set}" = set; then :
8268 enableval=$enable_static; p=${PACKAGE-default}
8270 yes) enable_static=yes ;;
8271 no) enable_static=no ;;
8274 # Look at the argument we got. We use all the common list separators.
8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276 for pkg in $enableval; do
8278 if test "X$pkg" = "X$p"; then
8298 # Check whether --with-pic was given.
8299 if test "${with_pic+set}" = set; then :
8300 withval=$with_pic; lt_p=${PACKAGE-default}
8302 yes|no) pic_mode=$withval ;;
8305 # Look at the argument we got. We use all the common list separators.
8306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307 for lt_pkg in $withval; do
8309 if test "X$lt_pkg" = "X$lt_p"; then
8321 test -z "$pic_mode" && pic_mode=default
8329 # Check whether --enable-fast-install was given.
8330 if test "${enable_fast_install+set}" = set; then :
8331 enableval=$enable_fast_install; p=${PACKAGE-default}
8333 yes) enable_fast_install=yes ;;
8334 no) enable_fast_install=no ;;
8336 enable_fast_install=no
8337 # Look at the argument we got. We use all the common list separators.
8338 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8339 for pkg in $enableval; do
8341 if test "X$pkg" = "X$p"; then
8342 enable_fast_install=yes
8349 enable_fast_install=yes
8362 # This can be used to rebuild libtool when needed
8363 LIBTOOL_DEPS="$ltmain"
8365 # Always use our own libtool.
8366 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8397 test -z "$LN_S" && LN_S="ln -s"
8412 if test -n "${ZSH_VERSION+set}" ; then
8413 setopt NO_GLOB_SUBST
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8417 $as_echo_n "checking for objdir... " >&6; }
8418 if ${lt_cv_objdir+:} false; then :
8419 $as_echo_n "(cached) " >&6
8421 rm -f .libs 2>/dev/null
8422 mkdir .libs 2>/dev/null
8423 if test -d .libs; then
8426 # MS-DOS does not allow filenames that begin with a dot.
8429 rmdir .libs 2>/dev/null
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8432 $as_echo "$lt_cv_objdir" >&6; }
8433 objdir=$lt_cv_objdir
8439 cat >>confdefs.h <<_ACEOF
8440 #define LT_OBJDIR "$lt_cv_objdir/"
8448 # AIX sometimes has problems with the GCC collect2 program. For some
8449 # reason, if we set the COLLECT_NAMES environment variable, the problems
8450 # vanish in a puff of smoke.
8451 if test "X${COLLECT_NAMES+set}" != Xset; then
8453 export COLLECT_NAMES
8460 can_build_shared=yes
8462 # All known linkers require a `.a' archive for static linking (except MSVC,
8463 # which needs '.lib').
8466 with_gnu_ld="$lt_cv_prog_gnu_ld"
8469 old_CFLAGS="$CFLAGS"
8471 # Set sane defaults for various variables
8472 test -z "$CC" && CC=cc
8473 test -z "$LTCC" && LTCC=$CC
8474 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8475 test -z "$LD" && LD=ld
8476 test -z "$ac_objext" && ac_objext=o
8478 for cc_temp in $compiler""; do
8480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8486 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8489 # Only perform the check for file, if the check method requires it
8490 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8491 case $deplibs_check_method in
8493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8495 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8496 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8497 $as_echo_n "(cached) " >&6
8501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8504 lt_save_MAGIC_CMD="$MAGIC_CMD"
8505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8507 for ac_dir in $ac_dummy; do
8509 test -z "$ac_dir" && ac_dir=.
8510 if test -f $ac_dir/${ac_tool_prefix}file; then
8511 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8512 if test -n "$file_magic_test_file"; then
8513 case $deplibs_check_method in
8515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8518 $EGREP "$file_magic_regex" > /dev/null; then
8523 *** Warning: the command libtool uses to detect shared libraries,
8524 *** $file_magic_cmd, produces output that libtool cannot recognize.
8525 *** The result is that libtool may fail to recognize shared libraries
8526 *** as such. This will affect the creation of libtool libraries that
8527 *** depend on shared libraries, but programs linked with such libtool
8528 *** libraries will work regardless of this problem. Nevertheless, you
8529 *** may want to report the problem to your system manager and/or to
8530 *** bug-libtool@gnu.org
8540 MAGIC_CMD="$lt_save_MAGIC_CMD"
8545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8546 if test -n "$MAGIC_CMD"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8548 $as_echo "$MAGIC_CMD" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8558 if test -z "$lt_cv_path_MAGIC_CMD"; then
8559 if test -n "$ac_tool_prefix"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8561 $as_echo_n "checking for file... " >&6; }
8562 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8563 $as_echo_n "(cached) " >&6
8567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8570 lt_save_MAGIC_CMD="$MAGIC_CMD"
8571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8573 for ac_dir in $ac_dummy; do
8575 test -z "$ac_dir" && ac_dir=.
8576 if test -f $ac_dir/file; then
8577 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8578 if test -n "$file_magic_test_file"; then
8579 case $deplibs_check_method in
8581 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8584 $EGREP "$file_magic_regex" > /dev/null; then
8589 *** Warning: the command libtool uses to detect shared libraries,
8590 *** $file_magic_cmd, produces output that libtool cannot recognize.
8591 *** The result is that libtool may fail to recognize shared libraries
8592 *** as such. This will affect the creation of libtool libraries that
8593 *** depend on shared libraries, but programs linked with such libtool
8594 *** libraries will work regardless of this problem. Nevertheless, you
8595 *** may want to report the problem to your system manager and/or to
8596 *** bug-libtool@gnu.org
8606 MAGIC_CMD="$lt_save_MAGIC_CMD"
8611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8612 if test -n "$MAGIC_CMD"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8614 $as_echo "$MAGIC_CMD" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8630 # Use C for the default configuration in the libtool script
8634 ac_cpp='$CPP $CPPFLAGS'
8635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8640 # Source file extension for C test sources.
8643 # Object file extension for compiled C test sources.
8647 # Code to be used in simple compile tests
8648 lt_simple_compile_test_code="int some_variable = 0;"
8650 # Code to be used in simple link tests
8651 lt_simple_link_test_code='int main(){return(0);}'
8659 # If no C compiler was specified, use CC.
8662 # If no C compiler flags were specified, use CFLAGS.
8663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8665 # Allow CC to be a program name with arguments.
8668 # Save the default compiler, since it gets overwritten when the other
8669 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8670 compiler_DEFAULT=$CC
8672 # save warnings/boilerplate of simple test code
8673 ac_outfile=conftest.$ac_objext
8674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8676 _lt_compiler_boilerplate=`cat conftest.err`
8679 ac_outfile=conftest.$ac_objext
8680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8682 _lt_linker_boilerplate=`cat conftest.err`
8686 if test -n "$compiler"; then
8688 lt_prog_compiler_no_builtin_flag=
8690 if test "$GCC" = yes; then
8691 case $cc_basename in
8693 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8695 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8699 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8700 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8701 $as_echo_n "(cached) " >&6
8703 lt_cv_prog_compiler_rtti_exceptions=no
8704 ac_outfile=conftest.$ac_objext
8705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8706 lt_compiler_flag="-fno-rtti -fno-exceptions"
8707 # Insert the option either (1) after the last *FLAGS variable, or
8708 # (2) before a word containing "conftest.", or (3) at the end.
8709 # Note that $ac_compile itself does not contain backslashes and begins
8710 # with a dollar sign (not a hyphen), so the echo should work correctly.
8711 # The option is referenced via a variable to avoid confusing sed.
8712 lt_compile=`echo "$ac_compile" | $SED \
8713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8715 -e 's:$: $lt_compiler_flag:'`
8716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8717 (eval "$lt_compile" 2>conftest.err)
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 if (exit $ac_status) && test -s "$ac_outfile"; then
8722 # The compiler can only warn and ignore the option if not recognized
8723 # So say no if there are warnings other than the usual output.
8724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8727 lt_cv_prog_compiler_rtti_exceptions=yes
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8734 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8736 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8737 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8749 lt_prog_compiler_wl=
8750 lt_prog_compiler_pic=
8751 lt_prog_compiler_static=
8754 if test "$GCC" = yes; then
8755 lt_prog_compiler_wl='-Wl,'
8756 lt_prog_compiler_static='-static'
8760 # All AIX code is PIC.
8761 if test "$host_cpu" = ia64; then
8762 # AIX 5 now supports IA64 processor
8763 lt_prog_compiler_static='-Bstatic'
8770 # see comment about AmigaOS4 .so support
8771 lt_prog_compiler_pic='-fPIC'
8774 # FIXME: we need at least 68020 code to build shared libraries, but
8775 # adding the `-m68020' flag to GCC prevents building anything better,
8777 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8782 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8783 # PIC is the default for these OSes.
8786 mingw* | cygwin* | pw32* | os2* | cegcc*)
8787 # This hack is so that the source file can tell whether it is being
8788 # built for inclusion in a dll (and should export symbols for example).
8789 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8790 # (--disable-auto-import) libraries
8791 lt_prog_compiler_pic='-DDLL_EXPORT'
8794 darwin* | rhapsody*)
8795 # PIC is the default on this platform
8796 # Common symbols not allowed in MH_DYLIB files
8797 lt_prog_compiler_pic='-fno-common'
8801 # PIC is the default for Haiku.
8802 # The "-static" flag exists, but is broken.
8803 lt_prog_compiler_static=
8807 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8808 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8809 # sets the default TLS model and affects inlining.
8815 lt_prog_compiler_pic='-fPIC'
8821 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8822 # Instead, we relocate shared libraries at runtime.
8826 # Just because we use GCC doesn't mean we suddenly get shared libraries
8827 # on systems that don't support them.
8828 lt_prog_compiler_can_build_shared=no
8833 # QNX uses GNU C++, but need to define -shared option too, otherwise
8835 lt_prog_compiler_pic='-fPIC -shared'
8839 if test -d /usr/nec; then
8840 lt_prog_compiler_pic=-Kconform_pic
8845 lt_prog_compiler_pic='-fPIC'
8849 case $cc_basename in
8850 nvcc*) # Cuda Compiler Driver 2.2
8851 lt_prog_compiler_wl='-Xlinker '
8852 if test -n "$lt_prog_compiler_pic"; then
8853 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8858 # PORTME Check for flag to pass linker flags through the system compiler.
8861 lt_prog_compiler_wl='-Wl,'
8862 if test "$host_cpu" = ia64; then
8863 # AIX 5 now supports IA64 processor
8864 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8870 mingw* | cygwin* | pw32* | os2* | cegcc*)
8871 # This hack is so that the source file can tell whether it is being
8872 # built for inclusion in a dll (and should export symbols for example).
8873 lt_prog_compiler_pic='-DDLL_EXPORT'
8876 hpux9* | hpux10* | hpux11*)
8877 lt_prog_compiler_wl='-Wl,'
8878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8885 lt_prog_compiler_pic='+Z'
8888 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8889 lt_prog_compiler_static='${wl}-a ${wl}archive'
8892 irix5* | irix6* | nonstopux*)
8893 lt_prog_compiler_wl='-Wl,'
8894 # PIC (with -KPIC) is the default.
8895 lt_prog_compiler_static='-non_shared'
8898 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8899 case $cc_basename in
8900 # old Intel for x86_64 which still supported -KPIC.
8902 lt_prog_compiler_wl='-Wl,'
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-static'
8906 # icc used to be incompatible with GCC.
8907 # ICC 10 doesn't accept -KPIC any more.
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-fPIC'
8911 lt_prog_compiler_static='-static'
8913 # Lahey Fortran 8.1.
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='--shared'
8917 lt_prog_compiler_static='--static'
8920 # NAG Fortran compiler
8921 lt_prog_compiler_wl='-Wl,-Wl,,'
8922 lt_prog_compiler_pic='-PIC'
8923 lt_prog_compiler_static='-Bstatic'
8925 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8926 # Portland Group compilers (*not* the Pentium gcc compiler,
8927 # which looks to be a dead project)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-fpic'
8930 lt_prog_compiler_static='-Bstatic'
8933 lt_prog_compiler_wl='-Wl,'
8934 # All Alpha code is PIC.
8935 lt_prog_compiler_static='-non_shared'
8937 xl* | bgxl* | bgf* | mpixl*)
8938 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-qpic'
8941 lt_prog_compiler_static='-qstaticlink'
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8946 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_wl=''
8951 *Sun\ F* | *Sun*Fortran*)
8952 lt_prog_compiler_pic='-KPIC'
8953 lt_prog_compiler_static='-Bstatic'
8954 lt_prog_compiler_wl='-Qoption ld '
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
8960 lt_prog_compiler_wl='-Wl,'
8962 *Intel*\ [CF]*Compiler*)
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-fPIC'
8965 lt_prog_compiler_static='-static'
8968 lt_prog_compiler_wl='-Wl,'
8969 lt_prog_compiler_pic='-fpic'
8970 lt_prog_compiler_static='-Bstatic'
8978 lt_prog_compiler_pic='-KPIC'
8979 lt_prog_compiler_static='-Bstatic'
8983 # QNX uses GNU C++, but need to define -shared option too, otherwise
8985 lt_prog_compiler_pic='-fPIC -shared'
8988 osf3* | osf4* | osf5*)
8989 lt_prog_compiler_wl='-Wl,'
8990 # All OSF/1 code is PIC.
8991 lt_prog_compiler_static='-non_shared'
8995 lt_prog_compiler_static='-non_shared'
8999 lt_prog_compiler_pic='-KPIC'
9000 lt_prog_compiler_static='-Bstatic'
9001 case $cc_basename in
9002 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9003 lt_prog_compiler_wl='-Qoption ld ';;
9005 lt_prog_compiler_wl='-Wl,';;
9010 lt_prog_compiler_wl='-Qoption ld '
9011 lt_prog_compiler_pic='-PIC'
9012 lt_prog_compiler_static='-Bstatic'
9015 sysv4 | sysv4.2uw2* | sysv4.3*)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-KPIC'
9018 lt_prog_compiler_static='-Bstatic'
9022 if test -d /usr/nec ;then
9023 lt_prog_compiler_pic='-Kconform_pic'
9024 lt_prog_compiler_static='-Bstatic'
9028 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9029 lt_prog_compiler_wl='-Wl,'
9030 lt_prog_compiler_pic='-KPIC'
9031 lt_prog_compiler_static='-Bstatic'
9035 lt_prog_compiler_wl='-Wl,'
9036 lt_prog_compiler_can_build_shared=no
9040 lt_prog_compiler_pic='-pic'
9041 lt_prog_compiler_static='-Bstatic'
9045 lt_prog_compiler_can_build_shared=no
9051 # For platforms which do not support PIC, -DPIC is meaningless:
9053 lt_prog_compiler_pic=
9056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9061 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9062 if ${lt_cv_prog_compiler_pic+:} false; then :
9063 $as_echo_n "(cached) " >&6
9065 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9068 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9069 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9072 # Check to make sure the PIC flag actually works.
9074 if test -n "$lt_prog_compiler_pic"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9076 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9077 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9078 $as_echo_n "(cached) " >&6
9080 lt_cv_prog_compiler_pic_works=no
9081 ac_outfile=conftest.$ac_objext
9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9083 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9084 # Insert the option either (1) after the last *FLAGS variable, or
9085 # (2) before a word containing "conftest.", or (3) at the end.
9086 # Note that $ac_compile itself does not contain backslashes and begins
9087 # with a dollar sign (not a hyphen), so the echo should work correctly.
9088 # The option is referenced via a variable to avoid confusing sed.
9089 lt_compile=`echo "$ac_compile" | $SED \
9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092 -e 's:$: $lt_compiler_flag:'`
9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9094 (eval "$lt_compile" 2>conftest.err)
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 if (exit $ac_status) && test -s "$ac_outfile"; then
9099 # The compiler can only warn and ignore the option if not recognized
9100 # So say no if there are warnings other than the usual output.
9101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9104 lt_cv_prog_compiler_pic_works=yes
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9111 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9113 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9114 case $lt_prog_compiler_pic in
9116 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9119 lt_prog_compiler_pic=
9120 lt_prog_compiler_can_build_shared=no
9136 # Check to make sure the static flag actually works.
9138 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9140 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9141 if ${lt_cv_prog_compiler_static_works+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 lt_cv_prog_compiler_static_works=no
9145 save_LDFLAGS="$LDFLAGS"
9146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9149 # The linker can only warn and ignore the option if not recognized
9150 # So say no if there are warnings
9151 if test -s conftest.err; then
9152 # Append any errors to the config.log.
9153 cat conftest.err 1>&5
9154 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9156 if diff conftest.exp conftest.er2 >/dev/null; then
9157 lt_cv_prog_compiler_static_works=yes
9160 lt_cv_prog_compiler_static_works=yes
9164 LDFLAGS="$save_LDFLAGS"
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9168 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9170 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9173 lt_prog_compiler_static=
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9184 if ${lt_cv_prog_compiler_c_o+:} false; then :
9185 $as_echo_n "(cached) " >&6
9187 lt_cv_prog_compiler_c_o=no
9188 $RM -r conftest 2>/dev/null
9192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9194 lt_compiler_flag="-o out/conftest2.$ac_objext"
9195 # Insert the option either (1) after the last *FLAGS variable, or
9196 # (2) before a word containing "conftest.", or (3) at the end.
9197 # Note that $ac_compile itself does not contain backslashes and begins
9198 # with a dollar sign (not a hyphen), so the echo should work correctly.
9199 lt_compile=`echo "$ac_compile" | $SED \
9200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9202 -e 's:$: $lt_compiler_flag:'`
9203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9204 (eval "$lt_compile" 2>out/conftest.err)
9206 cat out/conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9210 # The compiler can only warn and ignore the option if not recognized
9211 # So say no if there are warnings
9212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9215 lt_cv_prog_compiler_c_o=yes
9220 # SGI C++ compiler will create directory out/ii_files/ for
9221 # template instantiation
9222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9223 $RM out/* && rmdir out
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9238 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9239 if ${lt_cv_prog_compiler_c_o+:} false; then :
9240 $as_echo_n "(cached) " >&6
9242 lt_cv_prog_compiler_c_o=no
9243 $RM -r conftest 2>/dev/null
9247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9249 lt_compiler_flag="-o out/conftest2.$ac_objext"
9250 # Insert the option either (1) after the last *FLAGS variable, or
9251 # (2) before a word containing "conftest.", or (3) at the end.
9252 # Note that $ac_compile itself does not contain backslashes and begins
9253 # with a dollar sign (not a hyphen), so the echo should work correctly.
9254 lt_compile=`echo "$ac_compile" | $SED \
9255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9257 -e 's:$: $lt_compiler_flag:'`
9258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9259 (eval "$lt_compile" 2>out/conftest.err)
9261 cat out/conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9265 # The compiler can only warn and ignore the option if not recognized
9266 # So say no if there are warnings
9267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9270 lt_cv_prog_compiler_c_o=yes
9275 # SGI C++ compiler will create directory out/ii_files/ for
9276 # template instantiation
9277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9278 $RM out/* && rmdir out
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9285 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9290 hard_links="nottested"
9291 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9292 # do not overwrite the value of need_locks provided by the user
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9294 $as_echo_n "checking if we can lock with hard links... " >&6; }
9297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9299 ln conftest.a conftest.b 2>&5 || hard_links=no
9300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9302 $as_echo "$hard_links" >&6; }
9303 if test "$hard_links" = no; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9305 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9318 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9321 allow_undefined_flag=
9322 always_export_symbols=no
9324 archive_expsym_cmds=
9325 compiler_needs_object=no
9326 enable_shared_with_static_runtimes=no
9327 export_dynamic_flag_spec=
9328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9329 hardcode_automatic=no
9331 hardcode_direct_absolute=no
9332 hardcode_libdir_flag_spec=
9333 hardcode_libdir_separator=
9335 hardcode_shlibpath_var=unsupported
9337 link_all_deplibs=unknown
9340 old_archive_from_new_cmds=
9341 old_archive_from_expsyms_cmds=
9342 thread_safe_flag_spec=
9343 whole_archive_flag_spec=
9344 # include_expsyms should be a list of space-separated symbols to be *always*
9345 # included in the symbol list
9347 # exclude_expsyms can be an extended regexp of symbols to exclude
9348 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9349 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9350 # as well as any symbol that contains `d'.
9351 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9352 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9353 # platforms (ab)use it in PIC code, but their linkers get confused if
9354 # the symbol is explicitly referenced. Since portable code cannot
9355 # rely on this symbol name, it's probably fine to never include it in
9356 # preloaded symbol tables.
9357 # Exclude shared library initialization/finalization symbols.
9358 extract_expsyms_cmds=
9361 cygwin* | mingw* | pw32* | cegcc*)
9362 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9363 # When not using gcc, we currently assume that we are using
9364 # Microsoft Visual C++.
9365 if test "$GCC" != yes; then
9370 # we just hope/assume this is gcc and not c89 (= MSVC++)
9380 # On some targets, GNU ld is compatible enough with the native linker
9381 # that we're better off using the native interface for both.
9382 lt_use_gnu_ld_interface=no
9383 if test "$with_gnu_ld" = yes; then
9386 # The AIX port of GNU ld has always aspired to compatibility
9387 # with the native linker. However, as the warning in the GNU ld
9388 # block says, versions before 2.19.5* couldn't really create working
9389 # shared libraries, regardless of the interface used.
9390 case `$LD -v 2>&1` in
9391 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9392 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9393 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9395 lt_use_gnu_ld_interface=yes
9400 lt_use_gnu_ld_interface=yes
9405 if test "$lt_use_gnu_ld_interface" = yes; then
9406 # If archive_cmds runs LD, not CC, wlarc should be empty
9409 # Set some defaults for GNU ld with shared library support. These
9410 # are reset later if shared libraries are not supported. Putting them
9411 # here allows them to be overridden if necessary.
9412 runpath_var=LD_RUN_PATH
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 export_dynamic_flag_spec='${wl}--export-dynamic'
9415 # ancient GNU ld didn't support --whole-archive et. al.
9416 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9419 whole_archive_flag_spec=
9421 supports_anon_versioning=no
9422 case `$LD -v 2>&1` in
9423 *GNU\ gold*) supports_anon_versioning=yes ;;
9424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9427 *\ 2.11.*) ;; # other 2.11 versions
9428 *) supports_anon_versioning=yes ;;
9431 # See if GNU ld supports shared libraries.
9434 # On AIX/PPC, the GNU linker is very broken
9435 if test "$host_cpu" != ia64; then
9439 *** Warning: the GNU linker, at least up to release 2.19, is reported
9440 *** to be unable to reliably create shared libraries on AIX.
9441 *** Therefore, libtool is disabling shared libraries support. If you
9442 *** really care for shared libraries, you may want to install binutils
9443 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9444 *** You will then need to restart the configuration process.
9453 # see comment about AmigaOS4 .so support
9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 archive_expsym_cmds=''
9458 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)'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_minus_L=yes
9466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9467 allow_undefined_flag=unsupported
9468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9469 # support --undefined. This deserves some investigation. FIXME
9470 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9476 cygwin* | mingw* | pw32* | cegcc*)
9477 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9478 # as there is no search path for DLLs.
9479 hardcode_libdir_flag_spec='-L$libdir'
9480 export_dynamic_flag_spec='${wl}--export-all-symbols'
9481 allow_undefined_flag=unsupported
9482 always_export_symbols=no
9483 enable_shared_with_static_runtimes=yes
9484 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'
9485 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9489 # If the export-symbols file already is a .def file (1st line
9490 # is EXPORTS), use it as is; otherwise, prepend...
9491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9492 cp $export_symbols $output_objdir/$soname.def;
9494 echo EXPORTS > $output_objdir/$soname.def;
9495 cat $export_symbols >> $output_objdir/$soname.def;
9497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505 link_all_deplibs=yes
9510 hardcode_shlibpath_var=no
9511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9512 export_dynamic_flag_spec='${wl}-E'
9513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9514 # Instead, shared libraries are loaded at an image base (0x10000000 by
9515 # default) and relocated if they conflict, which is a slow very memory
9516 # consuming and fragmenting process. To avoid this, we pick a random,
9517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9518 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9519 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9520 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'
9523 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9525 if test "$host_os" = linux-dietlibc; then
9526 case $cc_basename in
9527 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9530 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9531 && test "$tmp_diet" = no
9533 tmp_addflag=' $pic_flag'
9534 tmp_sharedflag='-shared'
9535 case $cc_basename,$host_cpu in
9536 pgcc*) # Portland Group C compiler
9537 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'
9538 tmp_addflag=' $pic_flag'
9540 pgf77* | pgf90* | pgf95* | pgfortran*)
9541 # Portland Group f77 and f90 compilers
9542 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'
9543 tmp_addflag=' $pic_flag -Mnomain' ;;
9544 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9545 tmp_addflag=' -i_dynamic' ;;
9546 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9547 tmp_addflag=' -i_dynamic -nofor_main' ;;
9548 ifc* | ifort*) # Intel Fortran compiler
9549 tmp_addflag=' -nofor_main' ;;
9550 lf95*) # Lahey Fortran 8.1
9551 whole_archive_flag_spec=
9552 tmp_sharedflag='--shared' ;;
9553 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9554 tmp_sharedflag='-qmkshrobj'
9556 nvcc*) # Cuda Compiler Driver 2.2
9557 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'
9558 compiler_needs_object=yes
9561 case `$CC -V 2>&1 | sed 5q` in
9562 *Sun\ C*) # Sun C 5.9
9563 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'
9564 compiler_needs_object=yes
9565 tmp_sharedflag='-G' ;;
9566 *Sun\ F*) # Sun Fortran 8.3
9567 tmp_sharedflag='-G' ;;
9569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 if test "x$supports_anon_versioning" = xyes; then
9572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9574 echo "local: *; };" >> $output_objdir/$libname.ver~
9575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9578 case $cc_basename in
9579 xlf* | bgf* | bgxlf* | mpixlf*)
9580 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9581 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9584 if test "x$supports_anon_versioning" = xyes; then
9585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9587 echo "local: *; };" >> $output_objdir/$libname.ver~
9588 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9599 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9602 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9608 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9613 *** create shared libraries on Solaris systems. Therefore, libtool
9614 *** is disabling shared libraries support. We urge you to upgrade GNU
9615 *** binutils to release 2.9.1 or newer. Another option is to modify
9616 *** your PATH or compiler configuration so that the native linker is
9617 *** used, and then restart.
9620 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9629 case `$LD -v 2>&1` in
9630 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9634 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9635 *** reliably create shared libraries on SCO systems. Therefore, libtool
9636 *** is disabling shared libraries support. We urge you to upgrade GNU
9637 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9638 *** your PATH or compiler configuration so that the native linker is
9639 *** used, and then restart.
9644 # For security reasons, it is highly recommended that you always
9645 # use absolute paths for naming shared libraries, and exclude the
9646 # DT_RUNPATH tag from executables and libraries. But doing so
9647 # requires that you compile everything twice, which is a pain.
9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9660 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_shlibpath_var=no
9667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9676 if test "$ld_shlibs" = no; then
9678 hardcode_libdir_flag_spec=
9679 export_dynamic_flag_spec=
9680 whole_archive_flag_spec=
9683 # PORTME fill in a description of your system's linker (not GNU ld)
9686 allow_undefined_flag=unsupported
9687 always_export_symbols=yes
9688 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'
9689 # Note: this linker hardcodes the directories in LIBPATH if there
9690 # are no directories specified by -L.
9691 hardcode_minus_L=yes
9692 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9693 # Neither direct hardcoding nor static linking is supported with a
9695 hardcode_direct=unsupported
9700 if test "$host_cpu" = ia64; then
9701 # On IA64, the linker does run time linking by default, so we don't
9702 # have to do anything special.
9703 aix_use_runtimelinking=no
9704 exp_sym_flag='-Bexport'
9707 # If we're using GNU nm, then we don't want the "-C" option.
9708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9709 # Also, AIX nm treats weak defined symbols like other global
9710 # defined symbols, whereas GNU nm marks them as "W".
9711 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9712 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'
9714 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'
9716 aix_use_runtimelinking=no
9718 # Test if we are trying to use run time linking or normal
9719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9720 # need to do runtime linking.
9721 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9722 for ld_flag in $LDFLAGS; do
9723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9724 aix_use_runtimelinking=yes
9731 exp_sym_flag='-bexport'
9732 no_entry_flag='-bnoentry'
9735 # When large executables or shared objects are built, AIX ld can
9736 # have problems creating the table of contents. If linking a library
9737 # or program results in "error TOC overflow" add -mminimal-toc to
9738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9743 hardcode_direct_absolute=yes
9744 hardcode_libdir_separator=':'
9745 link_all_deplibs=yes
9746 file_list_spec='${wl}-f,'
9748 if test "$GCC" = yes; then
9749 case $host_os in aix4.[012]|aix4.[012].*)
9750 # We only want to do this on AIX 4.2 and lower, the check
9751 # below for broken collect2 doesn't work under 4.3+
9752 collect2name=`${CC} -print-prog-name=collect2`
9753 if test -f "$collect2name" &&
9754 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9756 # We have reworked collect2
9759 # We have old collect2
9760 hardcode_direct=unsupported
9761 # It fails to find uninstalled libraries when the uninstalled
9762 # path is not listed in the libpath. Setting hardcode_minus_L
9763 # to unsupported forces relinking
9764 hardcode_minus_L=yes
9765 hardcode_libdir_flag_spec='-L$libdir'
9766 hardcode_libdir_separator=
9770 shared_flag='-shared'
9771 if test "$aix_use_runtimelinking" = yes; then
9772 shared_flag="$shared_flag "'${wl}-G'
9776 if test "$host_cpu" = ia64; then
9777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9778 # chokes on -Wl,-G. The following line is correct:
9781 if test "$aix_use_runtimelinking" = yes; then
9782 shared_flag='${wl}-G'
9784 shared_flag='${wl}-bM:SRE'
9789 export_dynamic_flag_spec='${wl}-bexpall'
9790 # It seems that -bexpall does not export symbols beginning with
9791 # underscore (_), so it is better to generate a list of symbols to export.
9792 always_export_symbols=yes
9793 if test "$aix_use_runtimelinking" = yes; then
9794 # Warning - without using the other runtime loading flags (-brtl),
9795 # -berok will link without error, but may produce a broken library.
9796 allow_undefined_flag='-berok'
9797 # Determine the default libpath from the value encoded in an
9799 if test "${lt_cv_aix_libpath+set}" = set; then
9800 aix_libpath=$lt_cv_aix_libpath
9802 if ${lt_cv_aix_libpath_+:} false; then :
9803 $as_echo_n "(cached) " >&6
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9816 if ac_fn_c_try_link "$LINENO"; then :
9818 lt_aix_libpath_sed='
9819 /Import File Strings/,/^$/ {
9821 s/^0 *\([^ ]*\) *$/\1/
9825 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9826 # Check for a 64-bit object if we didn't find anything.
9827 if test -z "$lt_cv_aix_libpath_"; then
9828 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 if test -z "$lt_cv_aix_libpath_"; then
9834 lt_cv_aix_libpath_="/usr/lib:/lib"
9839 aix_libpath=$lt_cv_aix_libpath_
9842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9843 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"
9845 if test "$host_cpu" = ia64; then
9846 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9847 allow_undefined_flag="-z nodefs"
9848 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"
9850 # Determine the default libpath from the value encoded in an
9852 if test "${lt_cv_aix_libpath+set}" = set; then
9853 aix_libpath=$lt_cv_aix_libpath
9855 if ${lt_cv_aix_libpath_+:} false; then :
9856 $as_echo_n "(cached) " >&6
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9869 if ac_fn_c_try_link "$LINENO"; then :
9871 lt_aix_libpath_sed='
9872 /Import File Strings/,/^$/ {
9874 s/^0 *\([^ ]*\) *$/\1/
9878 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879 # Check for a 64-bit object if we didn't find anything.
9880 if test -z "$lt_cv_aix_libpath_"; then
9881 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9884 rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 if test -z "$lt_cv_aix_libpath_"; then
9887 lt_cv_aix_libpath_="/usr/lib:/lib"
9892 aix_libpath=$lt_cv_aix_libpath_
9895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896 # Warning - without using the other run time loading flags,
9897 # -berok will link without error, but may produce a broken library.
9898 no_undefined_flag=' ${wl}-bernotok'
9899 allow_undefined_flag=' ${wl}-berok'
9900 if test "$with_gnu_ld" = yes; then
9901 # We only use this code for GNU lds that support --whole-archive.
9902 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9904 # Exported symbols can be pulled into shared objects from archives
9905 whole_archive_flag_spec='$convenience'
9907 archive_cmds_need_lc=yes
9908 # This is similar to how AIX traditionally builds its shared libraries.
9909 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'
9917 # see comment about AmigaOS4 .so support
9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9919 archive_expsym_cmds=''
9922 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)'
9923 hardcode_libdir_flag_spec='-L$libdir'
9924 hardcode_minus_L=yes
9930 export_dynamic_flag_spec=-rdynamic
9933 cygwin* | mingw* | pw32* | cegcc*)
9934 # When not using gcc, we currently assume that we are using
9935 # Microsoft Visual C++.
9936 # hardcode_libdir_flag_spec is actually meaningless, as there is
9937 # no search path for DLLs.
9938 case $cc_basename in
9941 hardcode_libdir_flag_spec=' '
9942 allow_undefined_flag=unsupported
9943 always_export_symbols=yes
9945 # Tell ltmain to make .lib files, not .a files.
9947 # Tell ltmain to make .dll files, not .so files.
9949 # FIXME: Setting linknames here is a bad hack.
9950 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9952 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9954 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9956 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9958 # The linker will not automatically build a static lib if we build a DLL.
9959 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9960 enable_shared_with_static_runtimes=yes
9961 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9964 old_postinstall_cmds='chmod 644 $oldlib'
9965 postlink_cmds='lt_outputfile="@OUTPUT@"~
9966 lt_tool_outputfile="@TOOL_OUTPUT@"~
9967 case $lt_outputfile in
9970 lt_outputfile="$lt_outputfile.exe"
9971 lt_tool_outputfile="$lt_tool_outputfile.exe"
9974 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9975 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9976 $RM "$lt_outputfile.manifest";
9980 # Assume MSVC wrapper
9981 hardcode_libdir_flag_spec=' '
9982 allow_undefined_flag=unsupported
9983 # Tell ltmain to make .lib files, not .a files.
9985 # Tell ltmain to make .dll files, not .so files.
9987 # FIXME: Setting linknames here is a bad hack.
9988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9989 # The linker will automatically build a .lib file if we build a DLL.
9990 old_archive_from_new_cmds='true'
9991 # FIXME: Should let the user specify the lib program.
9992 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9993 enable_shared_with_static_runtimes=yes
9998 darwin* | rhapsody*)
10001 archive_cmds_need_lc=no
10003 hardcode_automatic=yes
10004 hardcode_shlibpath_var=unsupported
10005 if test "$lt_cv_ld_force_load" = "yes"; then
10006 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\"`'
10009 whole_archive_flag_spec=''
10011 link_all_deplibs=yes
10012 allow_undefined_flag="$_lt_dar_allow_undefined"
10013 case $cc_basename in
10014 ifort*) _lt_dar_can_shared=yes ;;
10015 *) _lt_dar_can_shared=$GCC ;;
10017 if test "$_lt_dar_can_shared" = "yes"; then
10018 output_verbose_link_cmd=func_echo_all
10019 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10020 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10021 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}"
10022 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}"
10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_libdir_flag_spec='-L$libdir'
10033 hardcode_shlibpath_var=no
10036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10037 # support. Future versions do this automatically, but an explicit c++rt0.o
10038 # does not break anything, and helps significantly (at the cost of a little
10041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10042 hardcode_libdir_flag_spec='-R$libdir'
10043 hardcode_direct=yes
10044 hardcode_shlibpath_var=no
10047 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct=yes
10051 hardcode_minus_L=yes
10052 hardcode_shlibpath_var=no
10055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10056 freebsd* | dragonfly*)
10057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10058 hardcode_libdir_flag_spec='-R$libdir'
10059 hardcode_direct=yes
10060 hardcode_shlibpath_var=no
10064 if test "$GCC" = yes; then
10065 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'
10067 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'
10069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10070 hardcode_libdir_separator=:
10071 hardcode_direct=yes
10073 # hardcode_minus_L: Not really in the search PATH,
10074 # but as the default location of the library.
10075 hardcode_minus_L=yes
10076 export_dynamic_flag_spec='${wl}-E'
10080 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10081 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10085 if test "$with_gnu_ld" = no; then
10086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10087 hardcode_libdir_separator=:
10088 hardcode_direct=yes
10089 hardcode_direct_absolute=yes
10090 export_dynamic_flag_spec='${wl}-E'
10091 # hardcode_minus_L: Not really in the search PATH,
10092 # but as the default location of the library.
10093 hardcode_minus_L=yes
10098 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10101 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10120 # Older versions of the 11.00 compiler do not understand -b yet
10121 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10123 $as_echo_n "checking if $CC understands -b... " >&6; }
10124 if ${lt_cv_prog_compiler__b+:} false; then :
10125 $as_echo_n "(cached) " >&6
10127 lt_cv_prog_compiler__b=no
10128 save_LDFLAGS="$LDFLAGS"
10129 LDFLAGS="$LDFLAGS -b"
10130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10132 # The linker can only warn and ignore the option if not recognized
10133 # So say no if there are warnings
10134 if test -s conftest.err; then
10135 # Append any errors to the config.log.
10136 cat conftest.err 1>&5
10137 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10139 if diff conftest.exp conftest.er2 >/dev/null; then
10140 lt_cv_prog_compiler__b=yes
10143 lt_cv_prog_compiler__b=yes
10147 LDFLAGS="$save_LDFLAGS"
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10151 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10153 if test x"$lt_cv_prog_compiler__b" = xyes; then
10154 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10162 if test "$with_gnu_ld" = no; then
10163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10164 hardcode_libdir_separator=:
10169 hardcode_shlibpath_var=no
10172 hardcode_direct=yes
10173 hardcode_direct_absolute=yes
10174 export_dynamic_flag_spec='${wl}-E'
10176 # hardcode_minus_L: Not really in the search PATH,
10177 # but as the default location of the library.
10178 hardcode_minus_L=yes
10184 irix5* | irix6* | nonstopux*)
10185 if test "$GCC" = yes; then
10186 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'
10187 # Try to use the -exported_symbol ld option, if it does not
10188 # work, assume that -exports_file does not work either and
10189 # implicitly export all symbols.
10190 # This should be the same for all languages, so no per-tag cache variable.
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10192 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10193 if ${lt_cv_irix_exported_symbol+:} false; then :
10194 $as_echo_n "(cached) " >&6
10196 save_LDFLAGS="$LDFLAGS"
10197 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10200 int foo (void) { return 0; }
10202 if ac_fn_c_try_link "$LINENO"; then :
10203 lt_cv_irix_exported_symbol=yes
10205 lt_cv_irix_exported_symbol=no
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LDFLAGS="$save_LDFLAGS"
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10212 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10213 if test "$lt_cv_irix_exported_symbol" = yes; then
10214 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'
10217 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'
10218 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'
10220 archive_cmds_need_lc='no'
10221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222 hardcode_libdir_separator=:
10224 link_all_deplibs=yes
10228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10231 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10233 hardcode_libdir_flag_spec='-R$libdir'
10234 hardcode_direct=yes
10235 hardcode_shlibpath_var=no
10239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240 hardcode_direct=yes
10241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242 hardcode_libdir_separator=:
10243 hardcode_shlibpath_var=no
10250 if test -f /usr/libexec/ld.so; then
10251 hardcode_direct=yes
10252 hardcode_shlibpath_var=no
10253 hardcode_direct_absolute=yes
10254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10258 export_dynamic_flag_spec='${wl}-E'
10261 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10263 hardcode_libdir_flag_spec='-R$libdir'
10266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10277 hardcode_libdir_flag_spec='-L$libdir'
10278 hardcode_minus_L=yes
10279 allow_undefined_flag=unsupported
10280 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'
10281 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10285 if test "$GCC" = yes; then
10286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10287 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'
10289 allow_undefined_flag=' -expect_unresolved \*'
10290 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'
10292 archive_cmds_need_lc='no'
10293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10294 hardcode_libdir_separator=:
10297 osf4* | osf5*) # as osf3* with the addition of -msym flag
10298 if test "$GCC" = yes; then
10299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10300 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'
10301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10303 allow_undefined_flag=' -expect_unresolved \*'
10304 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'
10305 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~
10306 $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'
10308 # Both c and cxx compiler support -rpath directly
10309 hardcode_libdir_flag_spec='-rpath $libdir'
10311 archive_cmds_need_lc='no'
10312 hardcode_libdir_separator=:
10316 no_undefined_flag=' -z defs'
10317 if test "$GCC" = yes; then
10319 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10321 $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'
10323 case `$CC -V 2>&1` in
10326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10332 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10334 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10338 hardcode_libdir_flag_spec='-R$libdir'
10339 hardcode_shlibpath_var=no
10341 solaris2.[0-5] | solaris2.[0-5].*) ;;
10343 # The compiler driver will combine and reorder linker options,
10344 # but understands `-z linker_flag'. GCC discards it without `$wl',
10345 # but is careful enough not to reorder.
10346 # Supported since Solaris 2.6 (maybe 2.5.1?)
10347 if test "$GCC" = yes; then
10348 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10354 link_all_deplibs=yes
10358 if test "x$host_vendor" = xsequent; then
10359 # Use $CC to link under sequent, because it throws in some extra .o
10360 # files that make .init and .fini sections work.
10361 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10365 hardcode_libdir_flag_spec='-L$libdir'
10366 hardcode_direct=yes
10367 hardcode_minus_L=yes
10368 hardcode_shlibpath_var=no
10372 case $host_vendor in
10374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_direct=yes # is this really true???
10378 ## LD is ld it makes a PLAMLIB
10379 ## CC just makes a GrossModule.
10380 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10381 reload_cmds='$CC -r -o $output$reload_objs'
10385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10389 runpath_var='LD_RUN_PATH'
10390 hardcode_shlibpath_var=no
10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_shlibpath_var=no
10396 export_dynamic_flag_spec='-Bexport'
10400 if test -d /usr/nec; then
10401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402 hardcode_shlibpath_var=no
10403 runpath_var=LD_RUN_PATH
10404 hardcode_runpath_var=yes
10409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10410 no_undefined_flag='${wl}-z,text'
10411 archive_cmds_need_lc=no
10412 hardcode_shlibpath_var=no
10413 runpath_var='LD_RUN_PATH'
10415 if test "$GCC" = yes; then
10416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 sysv5* | sco3.2v5* | sco5v6*)
10425 # Note: We can NOT use -z defs as we might desire, because we do not
10426 # link with -lc, and that would cause any symbols used from libc to
10427 # always be unresolved, which means just about no library would
10428 # ever link correctly. If we're not using GNU ld we use -z text
10429 # though, which does catch some bad symbols but isn't as heavy-handed
10431 no_undefined_flag='${wl}-z,text'
10432 allow_undefined_flag='${wl}-z,nodefs'
10433 archive_cmds_need_lc=no
10434 hardcode_shlibpath_var=no
10435 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10436 hardcode_libdir_separator=':'
10437 link_all_deplibs=yes
10438 export_dynamic_flag_spec='${wl}-Bexport'
10439 runpath_var='LD_RUN_PATH'
10441 if test "$GCC" = yes; then
10442 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_libdir_flag_spec='-L$libdir'
10453 hardcode_shlibpath_var=no
10461 if test x$host_vendor = xsni; then
10463 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10464 export_dynamic_flag_spec='${wl}-Blargedynsym'
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10471 $as_echo "$ld_shlibs" >&6; }
10472 test "$ld_shlibs" = no && can_build_shared=no
10474 with_gnu_ld=$with_gnu_ld
10491 # Do we need to explicitly link libc?
10493 case "x$archive_cmds_need_lc" in
10495 # Assume -lc should be added
10496 archive_cmds_need_lc=yes
10498 if test "$enable_shared" = yes && test "$GCC" = yes; then
10499 case $archive_cmds in
10501 # FIXME: we may have to deal with multi-command sequences.
10504 # Test whether the compiler implicitly links with -lc since on some
10505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10506 # to ld, don't add -lc before -lgcc.
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10509 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10510 $as_echo_n "(cached) " >&6
10513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10516 (eval $ac_compile) 2>&5
10518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519 test $ac_status = 0; } 2>conftest.err; then
10522 libobjs=conftest.$ac_objext
10524 wl=$lt_prog_compiler_wl
10525 pic_flag=$lt_prog_compiler_pic
10531 lt_save_allow_undefined_flag=$allow_undefined_flag
10532 allow_undefined_flag=
10533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10534 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10537 test $ac_status = 0; }
10539 lt_cv_archive_cmds_need_lc=no
10541 lt_cv_archive_cmds_need_lc=yes
10543 allow_undefined_flag=$lt_save_allow_undefined_flag
10545 cat conftest.err 1>&5
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10551 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10552 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10713 if test "$GCC" = yes; then
10715 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10716 *) lt_awk_arg="/^libraries:/" ;;
10719 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10720 *) lt_sed_strip_eq="s,=/,/,g" ;;
10722 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10723 case $lt_search_path_spec in
10725 # if the path contains ";" then we assume it to be the separator
10726 # otherwise default to the standard path separator (i.e. ":") - it is
10727 # assumed that no part of a normal pathname contains ";" but that should
10728 # okay in the real world where ";" in dirpaths is itself problematic.
10729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10732 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10735 # Ok, now we have the path, separated by spaces, we can step through it
10736 # and add multilib dir if necessary.
10737 lt_tmp_lt_search_path_spec=
10738 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10739 for lt_sys_path in $lt_search_path_spec; do
10740 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10741 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10743 test -d "$lt_sys_path" && \
10744 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10747 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10748 BEGIN {RS=" "; FS="/|\n";} {
10751 for (lt_i = NF; lt_i > 0; lt_i--) {
10752 if ($lt_i != "" && $lt_i != ".") {
10753 if ($lt_i == "..") {
10756 if (lt_count == 0) {
10757 lt_foo="/" $lt_i lt_foo;
10764 if (lt_foo != "") { lt_freq[lt_foo]++; }
10765 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10767 # AWK program above erroneously prepends '/' to C:/dos/paths
10770 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10771 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10773 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10775 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10777 library_names_spec=
10778 libname_spec='lib$name'
10782 postuninstall_cmds=
10786 shlibpath_overrides_runpath=unknown
10788 dynamic_linker="$host_os ld.so"
10789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10790 need_lib_prefix=unknown
10791 hardcode_into_libs=no
10793 # when you set need_version to no, make sure it does not cause -set_version
10794 # flags to be left without arguments
10795 need_version=unknown
10799 version_type=linux # correct to gnu/linux during the next big refactor
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10801 shlibpath_var=LIBPATH
10803 # AIX 3 has no versioning support, so we append a major version to the name.
10804 soname_spec='${libname}${release}${shared_ext}$major'
10808 version_type=linux # correct to gnu/linux during the next big refactor
10811 hardcode_into_libs=yes
10812 if test "$host_cpu" = ia64; then
10813 # AIX 5 supports IA64
10814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10815 shlibpath_var=LD_LIBRARY_PATH
10817 # With GCC up to 2.95.x, collect2 would create an import file
10818 # for dependence libraries. The import file would start with
10819 # the line `#! .'. This would cause the generated library to
10820 # depend on `.', always an invalid library. This was fixed in
10821 # development snapshots of GCC prior to 3.0.
10823 aix4 | aix4.[01] | aix4.[01].*)
10824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10826 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10829 can_build_shared=no
10833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10834 # soname into executable. Probably we can add versioning support to
10835 # collect2, so additional links can be useful in future.
10836 if test "$aix_use_runtimelinking" = yes; then
10837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10838 # instead of lib<name>.a to let people know that these are not
10839 # typical AIX shared libraries.
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 # We preserve .a as extension for shared libraries through AIX4.2
10843 # and later when we are not doing run time linking.
10844 library_names_spec='${libname}${release}.a $libname.a'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10847 shlibpath_var=LIBPATH
10854 # Since July 2007 AmigaOS4 officially supports .so libraries.
10855 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 library_names_spec='$libname.ixlibrary $libname.a'
10860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10861 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'
10867 library_names_spec='${libname}${shared_ext}'
10868 dynamic_linker="$host_os ld.so"
10869 shlibpath_var=LIBRARY_PATH
10873 version_type=linux # correct to gnu/linux during the next big refactor
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10881 # the default ld.so.conf also contains /usr/contrib/lib and
10882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10883 # libtool to hard-code these into programs
10886 cygwin* | mingw* | pw32* | cegcc*)
10887 version_type=windows
10892 case $GCC,$cc_basename in
10895 library_names_spec='$libname.dll.a'
10896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10897 postinstall_cmds='base_file=`basename \${file}`~
10898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10899 dldir=$destdir/`dirname \$dlpath`~
10900 test -d \$dldir || mkdir -p \$dldir~
10901 $install_prog $dir/$dlname \$dldir/$dlname~
10902 chmod a+x \$dldir/$dlname~
10903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10907 dlpath=$dir/\$dldll~
10909 shlibpath_overrides_runpath=yes
10913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10919 # MinGW DLLs use traditional 'lib' prefix
10920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10923 # pw32 DLLs use 'pw' prefix rather than 'lib'
10924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10927 dynamic_linker='Win32 ld.exe'
10932 libname_spec='$name'
10933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10934 library_names_spec='${libname}.dll.lib'
10938 sys_lib_search_path_spec=
10941 for lt_path in $LIB
10944 # Let DOS variable expansion print the short 8.3 style file name.
10945 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10946 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10949 # Convert to MSYS style.
10950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10953 # Convert to unix form, then to dos form, then back to unix form
10954 # but this time dos style (no spaces!) so that the unix form looks
10955 # like /cygdrive/c/PROGRA~1:/cygdr...
10956 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10957 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10958 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10961 sys_lib_search_path_spec="$LIB"
10962 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10963 # It is most probably a Windows format PATH.
10964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10968 # FIXME: find the short name or the path components, as spaces are
10969 # common. (e.g. "Program Files" -> "PROGRA~1")
10973 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10974 postinstall_cmds='base_file=`basename \${file}`~
10975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10976 dldir=$destdir/`dirname \$dlpath`~
10977 test -d \$dldir || mkdir -p \$dldir~
10978 $install_prog $dir/$dlname \$dldir/$dlname'
10979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10980 dlpath=$dir/\$dldll~
10982 shlibpath_overrides_runpath=yes
10983 dynamic_linker='Win32 link.exe'
10987 # Assume MSVC wrapper
10988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10989 dynamic_linker='Win32 ld.exe'
10992 # FIXME: first we should search . and the directory the executable is in
10996 darwin* | rhapsody*)
10997 dynamic_linker="$host_os dyld"
10998 version_type=darwin
11001 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11002 soname_spec='${libname}${release}${major}$shared_ext'
11003 shlibpath_overrides_runpath=yes
11004 shlibpath_var=DYLD_LIBRARY_PATH
11005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11007 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11012 version_type=linux # correct to gnu/linux during the next big refactor
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11020 freebsd* | dragonfly*)
11021 # DragonFly does not have aout. When/if they implement a new
11022 # versioning mechanism, adjust this.
11023 if test -x /usr/bin/objformat; then
11024 objformat=`/usr/bin/objformat`
11027 freebsd[23].*) objformat=aout ;;
11028 *) objformat=elf ;;
11031 version_type=freebsd-$objformat
11032 case $version_type in
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11043 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11048 freebsd3.[01]* | freebsdelf3.[01]*)
11049 shlibpath_overrides_runpath=yes
11050 hardcode_into_libs=yes
11052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11057 *) # from 4.6 on, and DragonFly
11058 shlibpath_overrides_runpath=yes
11059 hardcode_into_libs=yes
11065 version_type=linux # correct to gnu/linux during the next big refactor
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=no
11072 hardcode_into_libs=yes
11076 version_type=linux # correct to gnu/linux during the next big refactor
11079 dynamic_linker="$host_os runtime_loader"
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 shlibpath_var=LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11085 hardcode_into_libs=yes
11088 hpux9* | hpux10* | hpux11*)
11089 # Give a soname corresponding to the major version so that dld.sl refuses to
11090 # link against other versions.
11097 hardcode_into_libs=yes
11098 dynamic_linker="$host_os dld.so"
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 if test "X$HPUX_IA64_MODE" = X32; then
11104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11112 hardcode_into_libs=yes
11113 dynamic_linker="$host_os dld.sl"
11114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11123 dynamic_linker="$host_os dld.sl"
11124 shlibpath_var=SHLIB_PATH
11125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11130 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11131 postinstall_cmds='chmod 555 $lib'
11132 # or fails outright, so override atomically:
11133 install_override_mode=555
11137 version_type=linux # correct to gnu/linux during the next big refactor
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11141 soname_spec='${libname}${release}${shared_ext}$major'
11142 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=no
11145 hardcode_into_libs=yes
11148 irix5* | irix6* | nonstopux*)
11150 nonstopux*) version_type=nonstopux ;;
11152 if test "$lt_cv_prog_gnu_ld" = yes; then
11153 version_type=linux # correct to gnu/linux during the next big refactor
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11163 irix5* | nonstopux*)
11164 libsuff= shlibsuff=
11167 case $LD in # libtool.m4 will add one of these switches to LD
11168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11169 libsuff= shlibsuff= libmagic=32-bit;;
11170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11171 libsuff=32 shlibsuff=N32 libmagic=N32;;
11172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11174 *) libsuff= shlibsuff= libmagic=never-match;;
11178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11179 shlibpath_overrides_runpath=no
11180 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11181 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11182 hardcode_into_libs=yes
11185 # No shared lib support for Linux oldld, aout, or coff.
11186 linux*oldld* | linux*aout* | linux*coff*)
11190 # This must be glibc/ELF.
11191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11192 version_type=linux # correct to gnu/linux during the next big refactor
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=no
11201 # Some binutils ld are patched to set DT_RUNPATH
11202 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11203 $as_echo_n "(cached) " >&6
11205 lt_cv_shlibpath_overrides_runpath=no
11206 save_LDFLAGS=$LDFLAGS
11207 save_libdir=$libdir
11208 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11209 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11221 if ac_fn_c_try_link "$LINENO"; then :
11222 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11223 lt_cv_shlibpath_overrides_runpath=yes
11226 rm -f core conftest.err conftest.$ac_objext \
11227 conftest$ac_exeext conftest.$ac_ext
11228 LDFLAGS=$save_LDFLAGS
11229 libdir=$save_libdir
11233 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11235 # This implies no fast_install, which is unacceptable.
11236 # Some rework will be needed to allow for fast_install
11237 # before this can be enabled.
11238 hardcode_into_libs=yes
11240 # Add ABI-specific directories to the system library path.
11241 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11243 # Append ld.so.conf contents to the search path
11244 if test -f /etc/ld.so.conf; then
11245 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' ' '`
11246 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11250 # We used to test for /lib/ld.so.1 and disable shared libraries on
11251 # powerpc, because MkLinux only supported shared libraries with the
11252 # GNU dynamic linker. Since this was broken with cross compilers,
11253 # most powerpc-linux boxes support dynamic linking these days and
11254 # people can always --disable-shared, the test was removed, and we
11255 # assume the GNU/Linux dynamic linker is in use.
11256 dynamic_linker='GNU/Linux ld.so'
11263 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11266 dynamic_linker='NetBSD (a.out) ld.so'
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 dynamic_linker='NetBSD ld.elf_so'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11274 hardcode_into_libs=yes
11278 version_type=linux # correct to gnu/linux during the next big refactor
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=yes
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 shlibpath_overrides_runpath=no
11292 hardcode_into_libs=yes
11293 dynamic_linker='ldqnx.so'
11298 sys_lib_dlsearch_path_spec="/usr/lib"
11300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11303 *) need_version=no ;;
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11310 openbsd2.[89] | openbsd2.[89].*)
11311 shlibpath_overrides_runpath=no
11314 shlibpath_overrides_runpath=yes
11318 shlibpath_overrides_runpath=yes
11323 libname_spec='$name'
11326 library_names_spec='$libname${shared_ext} $libname.a'
11327 dynamic_linker='OS/2 ld.exe'
11328 shlibpath_var=LIBPATH
11331 osf3* | osf4* | osf5*)
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11339 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11347 version_type=linux # correct to gnu/linux during the next big refactor
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes
11354 hardcode_into_libs=yes
11355 # ldd complains unless libraries are executable
11356 postinstall_cmds='chmod +x $lib'
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=yes
11365 if test "$with_gnu_ld" = yes; then
11372 version_type=linux # correct to gnu/linux during the next big refactor
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 case $host_vendor in
11378 shlibpath_overrides_runpath=no
11380 runpath_var=LD_RUN_PATH
11388 shlibpath_overrides_runpath=no
11389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11395 if test -d /usr/nec ;then
11396 version_type=linux # correct to gnu/linux during the next big refactor
11397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11398 soname_spec='$libname${shared_ext}.$major'
11399 shlibpath_var=LD_LIBRARY_PATH
11403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11404 version_type=freebsd-elf
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11412 if test "$with_gnu_ld" = yes; then
11413 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11415 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11418 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11422 sys_lib_dlsearch_path_spec='/usr/lib'
11426 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11427 version_type=linux # correct to gnu/linux during the next big refactor
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=no
11433 hardcode_into_libs=yes
11437 version_type=linux # correct to gnu/linux during the next big refactor
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 shlibpath_var=LD_LIBRARY_PATH
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11448 $as_echo "$dynamic_linker" >&6; }
11449 test "$dynamic_linker" = no && can_build_shared=no
11451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11452 if test "$GCC" = yes; then
11453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11456 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11457 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11459 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11460 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11555 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11557 if test -n "$hardcode_libdir_flag_spec" ||
11558 test -n "$runpath_var" ||
11559 test "X$hardcode_automatic" = "Xyes" ; then
11561 # We can hardcode non-existent directories.
11562 if test "$hardcode_direct" != no &&
11563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11564 # have to relink, otherwise we might link with an installed library
11565 # when we should be linking with a yet-to-be-installed one
11566 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11567 test "$hardcode_minus_L" != no; then
11568 # Linking always hardcodes the temporary library directory.
11569 hardcode_action=relink
11571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11572 hardcode_action=immediate
11575 # We cannot hardcode anything, or else we can only hardcode existing
11577 hardcode_action=unsupported
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11580 $as_echo "$hardcode_action" >&6; }
11582 if test "$hardcode_action" = relink ||
11583 test "$inherit_rpath" = yes; then
11584 # Fast installation is not supported
11585 enable_fast_install=no
11586 elif test "$shlibpath_overrides_runpath" = yes ||
11587 test "$enable_shared" = no; then
11588 # Fast installation is not necessary
11589 enable_fast_install=needless
11597 if test "x$enable_dlopen" != xyes; then
11598 enable_dlopen=unknown
11599 enable_dlopen_self=unknown
11600 enable_dlopen_self_static=unknown
11607 lt_cv_dlopen="load_add_on"
11609 lt_cv_dlopen_self=yes
11612 mingw* | pw32* | cegcc*)
11613 lt_cv_dlopen="LoadLibrary"
11618 lt_cv_dlopen="dlopen"
11623 # if libdl is installed we need to link against it
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11626 if ${ac_cv_lib_dl_dlopen+:} false; then :
11627 $as_echo_n "(cached) " >&6
11629 ac_check_lib_save_LIBS=$LIBS
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11649 if ac_fn_c_try_link "$LINENO"; then :
11650 ac_cv_lib_dl_dlopen=yes
11652 ac_cv_lib_dl_dlopen=no
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11660 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11664 lt_cv_dlopen="dyld"
11666 lt_cv_dlopen_self=yes
11673 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11674 if test "x$ac_cv_func_shl_load" = xyes; then :
11675 lt_cv_dlopen="shl_load"
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11678 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11679 if ${ac_cv_lib_dld_shl_load+:} false; then :
11680 $as_echo_n "(cached) " >&6
11682 ac_check_lib_save_LIBS=$LIBS
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11687 /* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
11697 return shl_load ();
11702 if ac_fn_c_try_link "$LINENO"; then :
11703 ac_cv_lib_dld_shl_load=yes
11705 ac_cv_lib_dld_shl_load=no
11707 rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11709 LIBS=$ac_check_lib_save_LIBS
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11712 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11713 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11714 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11716 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11717 if test "x$ac_cv_func_dlopen" = xyes; then :
11718 lt_cv_dlopen="dlopen"
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11721 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11722 if ${ac_cv_lib_dl_dlopen+:} false; then :
11723 $as_echo_n "(cached) " >&6
11725 ac_check_lib_save_LIBS=$LIBS
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11730 /* Override any GCC internal prototype to avoid an error.
11731 Use char because int might match the return type of a GCC
11732 builtin and then its argument prototype would still apply. */
11745 if ac_fn_c_try_link "$LINENO"; then :
11746 ac_cv_lib_dl_dlopen=yes
11748 ac_cv_lib_dl_dlopen=no
11750 rm -f core conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11755 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11756 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11760 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11761 if ${ac_cv_lib_svld_dlopen+:} false; then :
11762 $as_echo_n "(cached) " >&6
11764 ac_check_lib_save_LIBS=$LIBS
11765 LIBS="-lsvld $LIBS"
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11784 if ac_fn_c_try_link "$LINENO"; then :
11785 ac_cv_lib_svld_dlopen=yes
11787 ac_cv_lib_svld_dlopen=no
11789 rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11794 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11795 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11796 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11799 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11800 if ${ac_cv_lib_dld_dld_link+:} false; then :
11801 $as_echo_n "(cached) " >&6
11803 ac_check_lib_save_LIBS=$LIBS
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11818 return dld_link ();
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_lib_dld_dld_link=yes
11826 ac_cv_lib_dld_dld_link=no
11828 rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11833 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11834 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11835 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11856 if test "x$lt_cv_dlopen" != xno; then
11862 case $lt_cv_dlopen in
11864 save_CPPFLAGS="$CPPFLAGS"
11865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11867 save_LDFLAGS="$LDFLAGS"
11868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11871 LIBS="$lt_cv_dlopen_libs $LIBS"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11874 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11875 if ${lt_cv_dlopen_self+:} false; then :
11876 $as_echo_n "(cached) " >&6
11878 if test "$cross_compiling" = yes; then :
11879 lt_cv_dlopen_self=cross
11881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11882 lt_status=$lt_dlunknown
11883 cat > conftest.$ac_ext <<_LT_EOF
11884 #line $LINENO "configure"
11885 #include "confdefs.h"
11894 # define LT_DLGLOBAL RTLD_GLOBAL
11897 # define LT_DLGLOBAL DL_GLOBAL
11899 # define LT_DLGLOBAL 0
11903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11904 find out it does not work in some platform. */
11905 #ifndef LT_DLLAZY_OR_NOW
11907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11910 # define LT_DLLAZY_OR_NOW DL_LAZY
11913 # define LT_DLLAZY_OR_NOW RTLD_NOW
11916 # define LT_DLLAZY_OR_NOW DL_NOW
11918 # define LT_DLLAZY_OR_NOW 0
11925 /* When -fvisbility=hidden is used, assume the code has been annotated
11926 correspondingly for the symbols needed. */
11927 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11928 int fnord () __attribute__((visibility("default")));
11931 int fnord () { return 42; }
11934 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11935 int status = $lt_dlunknown;
11939 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11942 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11943 else puts (dlerror ());
11945 /* dlclose (self); */
11953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11954 (eval $ac_link) 2>&5
11956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11957 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11958 (./conftest; exit; ) >&5 2>/dev/null
11960 case x$lt_status in
11961 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11962 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11963 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11966 # compilation failed
11967 lt_cv_dlopen_self=no
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11975 $as_echo "$lt_cv_dlopen_self" >&6; }
11977 if test "x$lt_cv_dlopen_self" = xyes; then
11978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11980 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11981 if ${lt_cv_dlopen_self_static+:} false; then :
11982 $as_echo_n "(cached) " >&6
11984 if test "$cross_compiling" = yes; then :
11985 lt_cv_dlopen_self_static=cross
11987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11988 lt_status=$lt_dlunknown
11989 cat > conftest.$ac_ext <<_LT_EOF
11990 #line $LINENO "configure"
11991 #include "confdefs.h"
12000 # define LT_DLGLOBAL RTLD_GLOBAL
12003 # define LT_DLGLOBAL DL_GLOBAL
12005 # define LT_DLGLOBAL 0
12009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12010 find out it does not work in some platform. */
12011 #ifndef LT_DLLAZY_OR_NOW
12013 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12016 # define LT_DLLAZY_OR_NOW DL_LAZY
12019 # define LT_DLLAZY_OR_NOW RTLD_NOW
12022 # define LT_DLLAZY_OR_NOW DL_NOW
12024 # define LT_DLLAZY_OR_NOW 0
12031 /* When -fvisbility=hidden is used, assume the code has been annotated
12032 correspondingly for the symbols needed. */
12033 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12034 int fnord () __attribute__((visibility("default")));
12037 int fnord () { return 42; }
12040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12041 int status = $lt_dlunknown;
12045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12048 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12049 else puts (dlerror ());
12051 /* dlclose (self); */
12059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12060 (eval $ac_link) 2>&5
12062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12063 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12064 (./conftest; exit; ) >&5 2>/dev/null
12066 case x$lt_status in
12067 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12068 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12069 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12072 # compilation failed
12073 lt_cv_dlopen_self_static=no
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12081 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12084 CPPFLAGS="$save_CPPFLAGS"
12085 LDFLAGS="$save_LDFLAGS"
12090 case $lt_cv_dlopen_self in
12091 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12092 *) enable_dlopen_self=unknown ;;
12095 case $lt_cv_dlopen_self_static in
12096 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12097 *) enable_dlopen_self_static=unknown ;;
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12120 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12121 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12122 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12123 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12125 $as_echo "yes" >&6; }
12127 # FIXME - insert some real tests, host_os isn't really good enough
12130 if test -n "$STRIP" ; then
12131 striplib="$STRIP -x"
12132 old_striplib="$STRIP -S"
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12134 $as_echo "yes" >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12158 # Report which library types will actually be built
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12160 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12162 $as_echo "$can_build_shared" >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12165 $as_echo_n "checking whether to build shared libraries... " >&6; }
12166 test "$can_build_shared" = "no" && enable_shared=no
12168 # On AIX, shared libraries and static libraries use the same namespace, and
12169 # are all built from PIC.
12172 test "$enable_shared" = yes && enable_static=no
12173 if test -n "$RANLIB"; then
12174 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12175 postinstall_cmds='$RANLIB $lib'
12180 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12181 test "$enable_shared" = yes && enable_static=no
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12186 $as_echo "$enable_shared" >&6; }
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12189 $as_echo_n "checking whether to build static libraries... " >&6; }
12190 # Make sure either enable_shared or enable_static is yes.
12191 test "$enable_shared" = yes || enable_static=yes
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12193 $as_echo "$enable_static" >&6; }
12200 ac_cpp='$CPP $CPPFLAGS'
12201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12207 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12208 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12209 (test "X$CXX" != "Xg++"))) ; then
12211 ac_cpp='$CXXCPP $CPPFLAGS'
12212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12216 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12217 if test -z "$CXXCPP"; then
12218 if ${ac_cv_prog_CXXCPP+:} false; then :
12219 $as_echo_n "(cached) " >&6
12221 # Double quotes because CXXCPP needs to be expanded
12222 for CXXCPP in "$CXX -E" "/lib/cpp"
12224 ac_preproc_ok=false
12225 for ac_cxx_preproc_warn_flag in '' yes
12227 # Use a header file that comes with gcc, so configuring glibc
12228 # with a fresh cross-compiler works.
12229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12230 # <limits.h> exists even on freestanding compilers.
12231 # On the NeXT, cc -E runs the code through the compiler's parser,
12232 # not just through cpp. "Syntax error" is here to catch this case.
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12236 # include <limits.h>
12238 # include <assert.h>
12242 if ac_fn_cxx_try_cpp "$LINENO"; then :
12245 # Broken: fails on valid input.
12248 rm -f conftest.err conftest.i conftest.$ac_ext
12250 # OK, works on sane cases. Now check whether nonexistent headers
12251 # can be detected and how.
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12254 #include <ac_nonexistent.h>
12256 if ac_fn_cxx_try_cpp "$LINENO"; then :
12257 # Broken: success on invalid input.
12260 # Passes both tests.
12264 rm -f conftest.err conftest.i conftest.$ac_ext
12267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12268 rm -f conftest.i conftest.err conftest.$ac_ext
12269 if $ac_preproc_ok; then :
12274 ac_cv_prog_CXXCPP=$CXXCPP
12277 CXXCPP=$ac_cv_prog_CXXCPP
12279 ac_cv_prog_CXXCPP=$CXXCPP
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12282 $as_echo "$CXXCPP" >&6; }
12283 ac_preproc_ok=false
12284 for ac_cxx_preproc_warn_flag in '' yes
12286 # Use a header file that comes with gcc, so configuring glibc
12287 # with a fresh cross-compiler works.
12288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12289 # <limits.h> exists even on freestanding compilers.
12290 # On the NeXT, cc -E runs the code through the compiler's parser,
12291 # not just through cpp. "Syntax error" is here to catch this case.
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12295 # include <limits.h>
12297 # include <assert.h>
12301 if ac_fn_cxx_try_cpp "$LINENO"; then :
12304 # Broken: fails on valid input.
12307 rm -f conftest.err conftest.i conftest.$ac_ext
12309 # OK, works on sane cases. Now check whether nonexistent headers
12310 # can be detected and how.
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313 #include <ac_nonexistent.h>
12315 if ac_fn_cxx_try_cpp "$LINENO"; then :
12316 # Broken: success on invalid input.
12319 # Passes both tests.
12323 rm -f conftest.err conftest.i conftest.$ac_ext
12326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12327 rm -f conftest.i conftest.err conftest.$ac_ext
12328 if $ac_preproc_ok; then :
12331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12334 See \`config.log' for more details" "$LINENO" 5; }
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344 _lt_caught_CXX_error=yes
12348 ac_cpp='$CXXCPP $CPPFLAGS'
12349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12353 archive_cmds_need_lc_CXX=no
12354 allow_undefined_flag_CXX=
12355 always_export_symbols_CXX=no
12356 archive_expsym_cmds_CXX=
12357 compiler_needs_object_CXX=no
12358 export_dynamic_flag_spec_CXX=
12359 hardcode_direct_CXX=no
12360 hardcode_direct_absolute_CXX=no
12361 hardcode_libdir_flag_spec_CXX=
12362 hardcode_libdir_separator_CXX=
12363 hardcode_minus_L_CXX=no
12364 hardcode_shlibpath_var_CXX=unsupported
12365 hardcode_automatic_CXX=no
12366 inherit_rpath_CXX=no
12368 module_expsym_cmds_CXX=
12369 link_all_deplibs_CXX=unknown
12370 old_archive_cmds_CXX=$old_archive_cmds
12371 reload_flag_CXX=$reload_flag
12372 reload_cmds_CXX=$reload_cmds
12373 no_undefined_flag_CXX=
12374 whole_archive_flag_spec_CXX=
12375 enable_shared_with_static_runtimes_CXX=no
12377 # Source file extension for C++ test sources.
12380 # Object file extension for compiled C++ test sources.
12384 # No sense in running all these tests if we already determined that
12385 # the CXX compiler isn't working. Some variables (like enable_shared)
12386 # are currently assumed to apply to all compilers on this platform,
12387 # and will be corrupted by setting them based on a non-working compiler.
12388 if test "$_lt_caught_CXX_error" != yes; then
12389 # Code to be used in simple compile tests
12390 lt_simple_compile_test_code="int some_variable = 0;"
12392 # Code to be used in simple link tests
12393 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12402 # If no C compiler was specified, use CC.
12405 # If no C compiler flags were specified, use CFLAGS.
12406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12408 # Allow CC to be a program name with arguments.
12412 # save warnings/boilerplate of simple test code
12413 ac_outfile=conftest.$ac_objext
12414 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12415 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12416 _lt_compiler_boilerplate=`cat conftest.err`
12419 ac_outfile=conftest.$ac_objext
12420 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12421 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12422 _lt_linker_boilerplate=`cat conftest.err`
12426 # Allow CC to be a program name with arguments.
12428 lt_save_CFLAGS=$CFLAGS
12432 lt_save_with_gnu_ld=$with_gnu_ld
12433 lt_save_path_LD=$lt_cv_path_LD
12434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12437 $as_unset lt_cv_prog_gnu_ld
12439 if test -n "${lt_cv_path_LDCXX+set}"; then
12440 lt_cv_path_LD=$lt_cv_path_LDCXX
12442 $as_unset lt_cv_path_LD
12444 test -z "${LDCXX+set}" || LD=$LDCXX
12449 for cc_temp in $compiler""; do
12451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12457 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12460 if test -n "$compiler"; then
12461 # We don't want -fno-exception when compiling C++ code, so set the
12462 # no_builtin_flag separately
12463 if test "$GXX" = yes; then
12464 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12466 lt_prog_compiler_no_builtin_flag_CXX=
12469 if test "$GXX" = yes; then
12470 # Set up default GNU C++ configuration
12474 # Check whether --with-gnu-ld was given.
12475 if test "${with_gnu_ld+set}" = set; then :
12476 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12482 if test "$GCC" = yes; then
12483 # Check if gcc -print-prog-name=ld gives a path.
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12485 $as_echo_n "checking for ld used by $CC... " >&6; }
12488 # gcc leaves a trailing carriage return which upsets mingw
12489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12494 # Accept absolute paths.
12496 re_direlt='/[^/][^/]*/\.\./'
12497 # Canonicalize the pathname of ld
12498 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12499 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12500 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12502 test -z "$LD" && LD="$ac_prog"
12505 # If it fails, then pretend we aren't using GCC.
12509 # If it is relative, then search for the first ld in PATH.
12510 with_gnu_ld=unknown
12513 elif test "$with_gnu_ld" = yes; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12515 $as_echo_n "checking for GNU ld... " >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12518 $as_echo_n "checking for non-GNU ld... " >&6; }
12520 if ${lt_cv_path_LD+:} false; then :
12521 $as_echo_n "(cached) " >&6
12523 if test -z "$LD"; then
12524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12525 for ac_dir in $PATH; do
12527 test -z "$ac_dir" && ac_dir=.
12528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12529 lt_cv_path_LD="$ac_dir/$ac_prog"
12530 # Check to see if the program is GNU ld. I'd rather use --version,
12531 # but apparently some variants of GNU ld only accept -v.
12532 # Break only if it was the GNU/non-GNU ld that we prefer.
12533 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12534 *GNU* | *'with BFD'*)
12535 test "$with_gnu_ld" != no && break
12538 test "$with_gnu_ld" != yes && break
12545 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12549 LD="$lt_cv_path_LD"
12550 if test -n "$LD"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12552 $as_echo "$LD" >&6; }
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12557 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12559 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12560 if ${lt_cv_prog_gnu_ld+:} false; then :
12561 $as_echo_n "(cached) " >&6
12563 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12564 case `$LD -v 2>&1 </dev/null` in
12565 *GNU* | *'with BFD'*)
12566 lt_cv_prog_gnu_ld=yes
12569 lt_cv_prog_gnu_ld=no
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12574 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12575 with_gnu_ld=$lt_cv_prog_gnu_ld
12583 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12584 # archiving commands below assume that GNU ld is being used.
12585 if test "$with_gnu_ld" = yes; then
12586 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12587 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'
12589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12590 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12592 # If archive_cmds runs LD, not CC, wlarc should be empty
12593 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12594 # investigate it a little bit more. (MM)
12597 # ancient GNU ld didn't support --whole-archive et. al.
12598 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12599 $GREP 'no-whole-archive' > /dev/null; then
12600 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12602 whole_archive_flag_spec_CXX=
12608 # A generic and very simple default shared library creation
12609 # command for GNU C++ for the case where it uses the native
12610 # linker, instead of GNU ld. If possible, this setting should
12611 # overridden to take advantage of the native linker features on
12612 # the platform it is being used on.
12613 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12616 # Commands to make compiler produce verbose output that lists
12617 # what "hidden" libraries, object files and flags are used when
12618 # linking a shared library.
12619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12627 # PORTME: fill in a description of your system's C++ link characteristics
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12629 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12633 # FIXME: insert proper C++ library support
12637 if test "$host_cpu" = ia64; then
12638 # On IA64, the linker does run time linking by default, so we don't
12639 # have to do anything special.
12640 aix_use_runtimelinking=no
12641 exp_sym_flag='-Bexport'
12644 aix_use_runtimelinking=no
12646 # Test if we are trying to use run time linking or normal
12647 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12648 # need to do runtime linking.
12649 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12650 for ld_flag in $LDFLAGS; do
12653 aix_use_runtimelinking=yes
12661 exp_sym_flag='-bexport'
12662 no_entry_flag='-bnoentry'
12665 # When large executables or shared objects are built, AIX ld can
12666 # have problems creating the table of contents. If linking a library
12667 # or program results in "error TOC overflow" add -mminimal-toc to
12668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12671 archive_cmds_CXX=''
12672 hardcode_direct_CXX=yes
12673 hardcode_direct_absolute_CXX=yes
12674 hardcode_libdir_separator_CXX=':'
12675 link_all_deplibs_CXX=yes
12676 file_list_spec_CXX='${wl}-f,'
12678 if test "$GXX" = yes; then
12679 case $host_os in aix4.[012]|aix4.[012].*)
12680 # We only want to do this on AIX 4.2 and lower, the check
12681 # below for broken collect2 doesn't work under 4.3+
12682 collect2name=`${CC} -print-prog-name=collect2`
12683 if test -f "$collect2name" &&
12684 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12686 # We have reworked collect2
12689 # We have old collect2
12690 hardcode_direct_CXX=unsupported
12691 # It fails to find uninstalled libraries when the uninstalled
12692 # path is not listed in the libpath. Setting hardcode_minus_L
12693 # to unsupported forces relinking
12694 hardcode_minus_L_CXX=yes
12695 hardcode_libdir_flag_spec_CXX='-L$libdir'
12696 hardcode_libdir_separator_CXX=
12699 shared_flag='-shared'
12700 if test "$aix_use_runtimelinking" = yes; then
12701 shared_flag="$shared_flag "'${wl}-G'
12705 if test "$host_cpu" = ia64; then
12706 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12707 # chokes on -Wl,-G. The following line is correct:
12710 if test "$aix_use_runtimelinking" = yes; then
12711 shared_flag='${wl}-G'
12713 shared_flag='${wl}-bM:SRE'
12718 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12719 # It seems that -bexpall does not export symbols beginning with
12720 # underscore (_), so it is better to generate a list of symbols to
12722 always_export_symbols_CXX=yes
12723 if test "$aix_use_runtimelinking" = yes; then
12724 # Warning - without using the other runtime loading flags (-brtl),
12725 # -berok will link without error, but may produce a broken library.
12726 allow_undefined_flag_CXX='-berok'
12727 # Determine the default libpath from the value encoded in an empty
12729 if test "${lt_cv_aix_libpath+set}" = set; then
12730 aix_libpath=$lt_cv_aix_libpath
12732 if ${lt_cv_aix_libpath__CXX+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12746 if ac_fn_cxx_try_link "$LINENO"; then :
12748 lt_aix_libpath_sed='
12749 /Import File Strings/,/^$/ {
12751 s/^0 *\([^ ]*\) *$/\1/
12755 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12756 # Check for a 64-bit object if we didn't find anything.
12757 if test -z "$lt_cv_aix_libpath__CXX"; then
12758 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12761 rm -f core conftest.err conftest.$ac_objext \
12762 conftest$ac_exeext conftest.$ac_ext
12763 if test -z "$lt_cv_aix_libpath__CXX"; then
12764 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12769 aix_libpath=$lt_cv_aix_libpath__CXX
12772 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12774 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"
12776 if test "$host_cpu" = ia64; then
12777 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12778 allow_undefined_flag_CXX="-z nodefs"
12779 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"
12781 # Determine the default libpath from the value encoded in an
12782 # empty executable.
12783 if test "${lt_cv_aix_libpath+set}" = set; then
12784 aix_libpath=$lt_cv_aix_libpath
12786 if ${lt_cv_aix_libpath__CXX+:} false; then :
12787 $as_echo_n "(cached) " >&6
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12800 if ac_fn_cxx_try_link "$LINENO"; then :
12802 lt_aix_libpath_sed='
12803 /Import File Strings/,/^$/ {
12805 s/^0 *\([^ ]*\) *$/\1/
12809 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12810 # Check for a 64-bit object if we didn't find anything.
12811 if test -z "$lt_cv_aix_libpath__CXX"; then
12812 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 if test -z "$lt_cv_aix_libpath__CXX"; then
12818 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12823 aix_libpath=$lt_cv_aix_libpath__CXX
12826 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12827 # Warning - without using the other run time loading flags,
12828 # -berok will link without error, but may produce a broken library.
12829 no_undefined_flag_CXX=' ${wl}-bernotok'
12830 allow_undefined_flag_CXX=' ${wl}-berok'
12831 if test "$with_gnu_ld" = yes; then
12832 # We only use this code for GNU lds that support --whole-archive.
12833 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12835 # Exported symbols can be pulled into shared objects from archives
12836 whole_archive_flag_spec_CXX='$convenience'
12838 archive_cmds_need_lc_CXX=yes
12839 # This is similar to how AIX traditionally builds its shared
12841 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'
12847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12848 allow_undefined_flag_CXX=unsupported
12849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12850 # support --undefined. This deserves some investigation. FIXME
12851 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12858 case $cc_basename in
12860 # FIXME: insert proper C++ library support
12866 cygwin* | mingw* | pw32* | cegcc*)
12867 case $GXX,$cc_basename in
12870 # hardcode_libdir_flag_spec is actually meaningless, as there is
12871 # no search path for DLLs.
12872 hardcode_libdir_flag_spec_CXX=' '
12873 allow_undefined_flag_CXX=unsupported
12874 always_export_symbols_CXX=yes
12875 file_list_spec_CXX='@'
12876 # Tell ltmain to make .lib files, not .a files.
12878 # Tell ltmain to make .dll files, not .so files.
12880 # FIXME: Setting linknames here is a bad hack.
12881 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12882 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12883 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12885 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12887 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12889 # The linker will not automatically build a static lib if we build a DLL.
12890 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12891 enable_shared_with_static_runtimes_CXX=yes
12893 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12894 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12895 lt_tool_outputfile="@TOOL_OUTPUT@"~
12896 case $lt_outputfile in
12899 lt_outputfile="$lt_outputfile.exe"
12900 lt_tool_outputfile="$lt_tool_outputfile.exe"
12903 func_to_tool_file "$lt_outputfile"~
12904 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12905 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12906 $RM "$lt_outputfile.manifest";
12911 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12912 # as there is no search path for DLLs.
12913 hardcode_libdir_flag_spec_CXX='-L$libdir'
12914 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12915 allow_undefined_flag_CXX=unsupported
12916 always_export_symbols_CXX=no
12917 enable_shared_with_static_runtimes_CXX=yes
12919 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12920 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'
12921 # If the export-symbols file already is a .def file (1st line
12922 # is EXPORTS), use it as is; otherwise, prepend...
12923 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12924 cp $export_symbols $output_objdir/$soname.def;
12926 echo EXPORTS > $output_objdir/$soname.def;
12927 cat $export_symbols >> $output_objdir/$soname.def;
12929 $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'
12936 darwin* | rhapsody*)
12939 archive_cmds_need_lc_CXX=no
12940 hardcode_direct_CXX=no
12941 hardcode_automatic_CXX=yes
12942 hardcode_shlibpath_var_CXX=unsupported
12943 if test "$lt_cv_ld_force_load" = "yes"; then
12944 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\"`'
12947 whole_archive_flag_spec_CXX=''
12949 link_all_deplibs_CXX=yes
12950 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12951 case $cc_basename in
12952 ifort*) _lt_dar_can_shared=yes ;;
12953 *) _lt_dar_can_shared=$GCC ;;
12955 if test "$_lt_dar_can_shared" = "yes"; then
12956 output_verbose_link_cmd=func_echo_all
12957 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}"
12958 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12959 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}"
12960 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}"
12961 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12962 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}"
12963 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}"
12973 case $cc_basename in
12975 # FIXME: insert proper C++ library support
12979 # Green Hills C++ Compiler
12980 # FIXME: insert proper C++ library support
12984 # FIXME: insert proper C++ library support
12991 # C++ shared libraries reported to be fairly broken before
12997 archive_cmds_need_lc_CXX=no
13000 freebsd* | dragonfly*)
13001 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13010 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13011 link_all_deplibs_CXX=yes
13015 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13016 hardcode_libdir_separator_CXX=:
13017 export_dynamic_flag_spec_CXX='${wl}-E'
13018 hardcode_direct_CXX=yes
13019 hardcode_minus_L_CXX=yes # Not in the search PATH,
13020 # but as the default
13021 # location of the library.
13023 case $cc_basename in
13025 # FIXME: insert proper C++ library support
13029 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'
13030 # Commands to make compiler produce verbose output that lists
13031 # what "hidden" libraries, object files and flags are used when
13032 # linking a shared library.
13034 # There doesn't appear to be a way to prevent this compiler from
13035 # explicitly linking system object files so we need to strip them
13036 # from the output so that they don't get included in the library
13038 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"'
13041 if test "$GXX" = yes; then
13042 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'
13044 # FIXME: insert proper C++ library support
13052 if test $with_gnu_ld = no; then
13053 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13054 hardcode_libdir_separator_CXX=:
13060 export_dynamic_flag_spec_CXX='${wl}-E'
13066 hardcode_direct_CXX=no
13067 hardcode_shlibpath_var_CXX=no
13070 hardcode_direct_CXX=yes
13071 hardcode_direct_absolute_CXX=yes
13072 hardcode_minus_L_CXX=yes # Not in the search PATH,
13073 # but as the default
13074 # location of the library.
13078 case $cc_basename in
13080 # FIXME: insert proper C++ library support
13086 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13089 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13092 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13095 # Commands to make compiler produce verbose output that lists
13096 # what "hidden" libraries, object files and flags are used when
13097 # linking a shared library.
13099 # There doesn't appear to be a way to prevent this compiler from
13100 # explicitly linking system object files so we need to strip them
13101 # from the output so that they don't get included in the library
13103 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"'
13106 if test "$GXX" = yes; then
13107 if test $with_gnu_ld = no; then
13110 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13113 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13116 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'
13121 # FIXME: insert proper C++ library support
13129 hardcode_direct_CXX=no
13130 hardcode_shlibpath_var_CXX=no
13131 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13132 export_dynamic_flag_spec_CXX='${wl}-E'
13133 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13134 # Instead, shared libraries are loaded at an image base (0x10000000 by
13135 # default) and relocated if they conflict, which is a slow very memory
13136 # consuming and fragmenting process. To avoid this, we pick a random,
13137 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13138 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13139 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'
13140 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'
13143 case $cc_basename in
13146 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'
13148 # Archives containing C++ object files must be created using
13149 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13150 # necessary to make sure instantiated templates are included
13152 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13155 if test "$GXX" = yes; then
13156 if test "$with_gnu_ld" = no; then
13157 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'
13159 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'
13162 link_all_deplibs_CXX=yes
13165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13166 hardcode_libdir_separator_CXX=:
13167 inherit_rpath_CXX=yes
13170 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13171 case $cc_basename in
13173 # Kuck and Associates, Inc. (KAI) C++ Compiler
13175 # KCC will only create a shared library if the output file
13176 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13177 # to its proper name (with version) after linking.
13178 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'
13179 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'
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13188 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"'
13190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13191 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13193 # Archives containing C++ object files must be created using
13194 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13195 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13200 # version 8.0 and above of icpc choke on multiply defined symbols
13201 # if we add $predep_objects and $postdep_objects, however 7.1 and
13202 # earlier do not add the objects themselves.
13203 case `$CC -V 2>&1` in
13205 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13206 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'
13208 *) # Version 8.0 or newer
13211 ia64*) tmp_idyn=' -i_dynamic';;
13213 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13214 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'
13217 archive_cmds_need_lc_CXX=no
13218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13220 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13223 # Portland Group C++ compiler
13225 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13226 prelink_cmds_CXX='tpldir=Template.dir~
13228 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13229 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13230 old_archive_cmds_CXX='tpldir=Template.dir~
13232 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13233 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13235 archive_cmds_CXX='tpldir=Template.dir~
13237 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13238 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13239 archive_expsym_cmds_CXX='tpldir=Template.dir~
13241 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13242 $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'
13244 *) # Version 6 and above use weak symbols
13245 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13246 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'
13250 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13251 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13252 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'
13256 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257 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'
13259 runpath_var=LD_RUN_PATH
13260 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13261 hardcode_libdir_separator_CXX=:
13263 # Commands to make compiler produce verbose output that lists
13264 # what "hidden" libraries, object files and flags are used when
13265 # linking a shared library.
13267 # There doesn't appear to be a way to prevent this compiler from
13268 # explicitly linking system object files so we need to strip them
13269 # from the output so that they don't get included in the library
13271 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'
13273 xl* | mpixl* | bgxl*)
13274 # IBM XL 8.0 on PPC, with GNU ld
13275 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13277 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278 if test "x$supports_anon_versioning" = xyes; then
13279 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13281 echo "local: *; };" >> $output_objdir/$libname.ver~
13282 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13286 case `$CC -V 2>&1 | sed 5q` in
13289 no_undefined_flag_CXX=' -zdefs'
13290 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13291 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'
13292 hardcode_libdir_flag_spec_CXX='-R$libdir'
13293 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'
13294 compiler_needs_object_CXX=yes
13296 # Not sure whether something based on
13297 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13299 output_verbose_link_cmd='func_echo_all'
13301 # Archives containing C++ object files must be created using
13302 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13303 # necessary to make sure instantiated templates are included
13305 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13313 # FIXME: insert proper C++ library support
13318 # FIXME: insert proper C++ library support
13323 case $cc_basename in
13325 # FIXME: insert proper C++ library support
13329 # FIXME: insert proper C++ library support
13336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13337 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13339 hardcode_libdir_flag_spec_CXX='-R$libdir'
13340 hardcode_direct_CXX=yes
13341 hardcode_shlibpath_var_CXX=no
13343 # Workaround some broken pre-1.5 toolchains
13344 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13352 # C++ shared libraries are fairly broken
13357 if test -f /usr/libexec/ld.so; then
13358 hardcode_direct_CXX=yes
13359 hardcode_shlibpath_var_CXX=no
13360 hardcode_direct_absolute_CXX=yes
13361 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13364 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13365 export_dynamic_flag_spec_CXX='${wl}-E'
13366 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13368 output_verbose_link_cmd=func_echo_all
13374 osf3* | osf4* | osf5*)
13375 case $cc_basename in
13377 # Kuck and Associates, Inc. (KAI) C++ Compiler
13379 # KCC will only create a shared library if the output file
13380 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13381 # to its proper name (with version) after linking.
13382 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'
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385 hardcode_libdir_separator_CXX=:
13387 # Archives containing C++ object files must be created using
13388 # the KAI C++ compiler.
13390 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13391 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13395 # Rational C++ 2.4.1
13396 # FIXME: insert proper C++ library support
13402 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13403 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'
13404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13407 allow_undefined_flag_CXX=' -expect_unresolved \*'
13408 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'
13409 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13410 echo "-hidden">> $lib.exp~
13411 $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~
13413 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13417 hardcode_libdir_separator_CXX=:
13419 # Commands to make compiler produce verbose output that lists
13420 # what "hidden" libraries, object files and flags are used when
13421 # linking a shared library.
13423 # There doesn't appear to be a way to prevent this compiler from
13424 # explicitly linking system object files so we need to strip them
13425 # from the output so that they don't get included in the library
13427 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"'
13430 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13431 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13434 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'
13437 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'
13441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442 hardcode_libdir_separator_CXX=:
13444 # Commands to make compiler produce verbose output that lists
13445 # what "hidden" libraries, object files and flags are used when
13446 # linking a shared library.
13447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13450 # FIXME: insert proper C++ library support
13458 # FIXME: insert proper C++ library support
13463 case $cc_basename in
13466 # FIXME: insert proper C++ library support
13471 # FIXME: insert proper C++ library support
13475 # FIXME: insert proper C++ library support
13482 case $cc_basename in
13484 # Sun C++ 4.2, 5.x and Centerline C++
13485 archive_cmds_need_lc_CXX=yes
13486 no_undefined_flag_CXX=' -zdefs'
13487 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13488 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13489 $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'
13491 hardcode_libdir_flag_spec_CXX='-R$libdir'
13492 hardcode_shlibpath_var_CXX=no
13494 solaris2.[0-5] | solaris2.[0-5].*) ;;
13496 # The compiler driver will combine and reorder linker options,
13497 # but understands `-z linker_flag'.
13498 # Supported since Solaris 2.6 (maybe 2.5.1?)
13499 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13502 link_all_deplibs_CXX=yes
13504 output_verbose_link_cmd='func_echo_all'
13506 # Archives containing C++ object files must be created using
13507 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13508 # necessary to make sure instantiated templates are included
13510 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13513 # Green Hills C++ Compiler
13514 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13516 # The C++ compiler must be used to create the archive.
13517 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13520 # GNU C++ compiler with Solaris linker
13521 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13522 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13523 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13524 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13525 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13526 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13528 # Commands to make compiler produce verbose output that lists
13529 # what "hidden" libraries, object files and flags are used when
13530 # linking a shared library.
13531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13533 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13535 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13536 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13537 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13539 # Commands to make compiler produce verbose output that lists
13540 # what "hidden" libraries, object files and flags are used when
13541 # linking a shared library.
13542 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13545 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13547 solaris2.[0-5] | solaris2.[0-5].*) ;;
13549 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13557 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13558 no_undefined_flag_CXX='${wl}-z,text'
13559 archive_cmds_need_lc_CXX=no
13560 hardcode_shlibpath_var_CXX=no
13561 runpath_var='LD_RUN_PATH'
13563 case $cc_basename in
13565 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13570 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 sysv5* | sco3.2v5* | sco5v6*)
13576 # Note: We can NOT use -z defs as we might desire, because we do not
13577 # link with -lc, and that would cause any symbols used from libc to
13578 # always be unresolved, which means just about no library would
13579 # ever link correctly. If we're not using GNU ld we use -z text
13580 # though, which does catch some bad symbols but isn't as heavy-handed
13582 no_undefined_flag_CXX='${wl}-z,text'
13583 allow_undefined_flag_CXX='${wl}-z,nodefs'
13584 archive_cmds_need_lc_CXX=no
13585 hardcode_shlibpath_var_CXX=no
13586 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13587 hardcode_libdir_separator_CXX=':'
13588 link_all_deplibs_CXX=yes
13589 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13590 runpath_var='LD_RUN_PATH'
13592 case $cc_basename in
13594 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13596 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13597 '"$old_archive_cmds_CXX"
13598 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13599 '"$reload_cmds_CXX"
13602 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13603 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13609 case $cc_basename in
13611 # NonStop-UX NCC 3.20
13612 # FIXME: insert proper C++ library support
13616 # FIXME: insert proper C++ library support
13623 # FIXME: insert proper C++ library support
13628 # FIXME: insert proper C++ library support
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13634 $as_echo "$ld_shlibs_CXX" >&6; }
13635 test "$ld_shlibs_CXX" = no && can_build_shared=no
13641 ## There is no encapsulation within the following macros, do not change
13642 ## the running order or otherwise move them around unless you know exactly
13643 ## what you are doing...
13644 # Dependencies to place before and after the object being linked:
13645 predep_objects_CXX=
13646 postdep_objects_CXX=
13649 compiler_lib_search_path_CXX=
13651 cat > conftest.$ac_ext <<_LT_EOF
13655 Foo (void) { a = 0; }
13662 _lt_libdeps_save_CFLAGS=$CFLAGS
13663 case "$CC $CFLAGS " in #(
13664 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13665 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13666 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13670 (eval $ac_compile) 2>&5
13672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13673 test $ac_status = 0; }; then
13674 # Parse the compiler output and extract the necessary
13675 # objects, libraries and library flags.
13677 # Sentinel used to keep track of whether or not we are before
13678 # the conftest object file.
13679 pre_test_object_deps_done=no
13681 for p in `eval "$output_verbose_link_cmd"`; do
13682 case ${prev}${p} in
13685 # Some compilers place space between "-{L,R}" and the path.
13686 # Remove the space.
13687 if test $p = "-L" ||
13688 test $p = "-R"; then
13693 # Expand the sysroot to ease extracting the directories later.
13694 if test -z "$prev"; then
13696 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13697 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13698 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13702 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13704 if test "$pre_test_object_deps_done" = no; then
13707 # Internal compiler library paths should come after those
13708 # provided the user. The postdeps already come after the
13709 # user supplied libs so there is no need to process them.
13710 if test -z "$compiler_lib_search_path_CXX"; then
13711 compiler_lib_search_path_CXX="${prev}${p}"
13713 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13716 # The "-l" case would never come before the object being
13717 # linked, so don't bother handling this case.
13720 if test -z "$postdeps_CXX"; then
13721 postdeps_CXX="${prev}${p}"
13723 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13729 *.lto.$objext) ;; # Ignore GCC LTO objects
13731 # This assumes that the test object file only shows up
13732 # once in the compiler output.
13733 if test "$p" = "conftest.$objext"; then
13734 pre_test_object_deps_done=yes
13738 if test "$pre_test_object_deps_done" = no; then
13739 if test -z "$predep_objects_CXX"; then
13740 predep_objects_CXX="$p"
13742 predep_objects_CXX="$predep_objects_CXX $p"
13745 if test -z "$postdep_objects_CXX"; then
13746 postdep_objects_CXX="$p"
13748 postdep_objects_CXX="$postdep_objects_CXX $p"
13753 *) ;; # Ignore the rest.
13761 echo "libtool.m4: error: problem compiling CXX test program"
13764 $RM -f confest.$objext
13765 CFLAGS=$_lt_libdeps_save_CFLAGS
13767 # PORTME: override above test on systems where it is broken
13770 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13771 # hack all around it, let's just trust "g++" to DTRT.
13772 predep_objects_CXX=
13773 postdep_objects_CXX=
13778 case `$CC -V 2>&1 | sed 5q` in
13782 # The more standards-conforming stlport4 library is
13783 # incompatible with the Cstd library. Avoid specifying
13784 # it if it's in CXXFLAGS. Ignore libCrun as
13785 # -library=stlport4 depends on it.
13786 case " $CXX $CXXFLAGS " in
13787 *" -library=stlport4 "*)
13788 solaris_use_stlport4=yes
13792 if test "$solaris_use_stlport4" != yes; then
13793 postdeps_CXX='-library=Cstd -library=Crun'
13800 case $cc_basename in
13802 # The more standards-conforming stlport4 library is
13803 # incompatible with the Cstd library. Avoid specifying
13804 # it if it's in CXXFLAGS. Ignore libCrun as
13805 # -library=stlport4 depends on it.
13806 case " $CXX $CXXFLAGS " in
13807 *" -library=stlport4 "*)
13808 solaris_use_stlport4=yes
13812 # Adding this requires a known-good setup of shared libraries for
13813 # Sun compiler versions before 5.6, else PIC objects from an old
13814 # archive will be linked into the output, leading to subtle bugs.
13815 if test "$solaris_use_stlport4" != yes; then
13816 postdeps_CXX='-library=Cstd -library=Crun'
13824 case " $postdeps_CXX " in
13825 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13827 compiler_lib_search_dirs_CXX=
13828 if test -n "${compiler_lib_search_path_CXX}"; then
13829 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13862 lt_prog_compiler_wl_CXX=
13863 lt_prog_compiler_pic_CXX=
13864 lt_prog_compiler_static_CXX=
13867 # C++ specific cases for pic, static, wl, etc.
13868 if test "$GXX" = yes; then
13869 lt_prog_compiler_wl_CXX='-Wl,'
13870 lt_prog_compiler_static_CXX='-static'
13874 # All AIX code is PIC.
13875 if test "$host_cpu" = ia64; then
13876 # AIX 5 now supports IA64 processor
13877 lt_prog_compiler_static_CXX='-Bstatic'
13884 # see comment about AmigaOS4 .so support
13885 lt_prog_compiler_pic_CXX='-fPIC'
13888 # FIXME: we need at least 68020 code to build shared libraries, but
13889 # adding the `-m68020' flag to GCC prevents building anything better,
13891 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13897 # PIC is the default for these OSes.
13899 mingw* | cygwin* | os2* | pw32* | cegcc*)
13900 # This hack is so that the source file can tell whether it is being
13901 # built for inclusion in a dll (and should export symbols for example).
13902 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13903 # (--disable-auto-import) libraries
13904 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13906 darwin* | rhapsody*)
13907 # PIC is the default on this platform
13908 # Common symbols not allowed in MH_DYLIB files
13909 lt_prog_compiler_pic_CXX='-fno-common'
13912 # DJGPP does not support shared libraries at all
13913 lt_prog_compiler_pic_CXX=
13916 # PIC is the default for Haiku.
13917 # The "-static" flag exists, but is broken.
13918 lt_prog_compiler_static_CXX=
13921 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13922 # Instead, we relocate shared libraries at runtime.
13925 if test -d /usr/nec; then
13926 lt_prog_compiler_pic_CXX=-Kconform_pic
13930 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13931 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13932 # sets the default TLS model and affects inlining.
13937 lt_prog_compiler_pic_CXX='-fPIC'
13942 # QNX uses GNU C++, but need to define -shared option too, otherwise
13943 # it will coredump.
13944 lt_prog_compiler_pic_CXX='-fPIC -shared'
13947 lt_prog_compiler_pic_CXX='-fPIC'
13953 # All AIX code is PIC.
13954 if test "$host_cpu" = ia64; then
13955 # AIX 5 now supports IA64 processor
13956 lt_prog_compiler_static_CXX='-Bstatic'
13958 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13962 case $cc_basename in
13964 # Green Hills C++ Compiler
13965 # _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"
13969 mingw* | cygwin* | os2* | pw32* | cegcc*)
13970 # This hack is so that the source file can tell whether it is being
13971 # built for inclusion in a dll (and should export symbols for example).
13972 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13975 case $cc_basename in
13977 lt_prog_compiler_pic_CXX='-KPIC'
13980 # Green Hills C++ Compiler
13981 lt_prog_compiler_pic_CXX='-pic'
13987 freebsd* | dragonfly*)
13988 # FreeBSD uses GNU C++
13990 hpux9* | hpux10* | hpux11*)
13991 case $cc_basename in
13993 lt_prog_compiler_wl_CXX='-Wl,'
13994 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13995 if test "$host_cpu" != ia64; then
13996 lt_prog_compiler_pic_CXX='+Z'
14000 lt_prog_compiler_wl_CXX='-Wl,'
14001 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14007 lt_prog_compiler_pic_CXX='+Z'
14016 # This is c89, which is MS Visual C++ (no shared libs)
14017 # Anyone wants to do a port?
14019 irix5* | irix6* | nonstopux*)
14020 case $cc_basename in
14022 lt_prog_compiler_wl_CXX='-Wl,'
14023 lt_prog_compiler_static_CXX='-non_shared'
14024 # CC pic flag -KPIC is the default.
14030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14031 case $cc_basename in
14034 lt_prog_compiler_wl_CXX='--backend -Wl,'
14035 lt_prog_compiler_pic_CXX='-fPIC'
14038 # old Intel C++ for x86_64 which still supported -KPIC.
14039 lt_prog_compiler_wl_CXX='-Wl,'
14040 lt_prog_compiler_pic_CXX='-KPIC'
14041 lt_prog_compiler_static_CXX='-static'
14044 # Intel C++, used to be incompatible with GCC.
14045 # ICC 10 doesn't accept -KPIC any more.
14046 lt_prog_compiler_wl_CXX='-Wl,'
14047 lt_prog_compiler_pic_CXX='-fPIC'
14048 lt_prog_compiler_static_CXX='-static'
14051 # Portland Group C++ compiler
14052 lt_prog_compiler_wl_CXX='-Wl,'
14053 lt_prog_compiler_pic_CXX='-fpic'
14054 lt_prog_compiler_static_CXX='-Bstatic'
14058 # Make sure the PIC flag is empty. It appears that all Alpha
14059 # Linux and Compaq Tru64 Unix objects are PIC.
14060 lt_prog_compiler_pic_CXX=
14061 lt_prog_compiler_static_CXX='-non_shared'
14063 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14064 # IBM XL 8.0, 9.0 on PPC and BlueGene
14065 lt_prog_compiler_wl_CXX='-Wl,'
14066 lt_prog_compiler_pic_CXX='-qpic'
14067 lt_prog_compiler_static_CXX='-qstaticlink'
14070 case `$CC -V 2>&1 | sed 5q` in
14073 lt_prog_compiler_pic_CXX='-KPIC'
14074 lt_prog_compiler_static_CXX='-Bstatic'
14075 lt_prog_compiler_wl_CXX='-Qoption ld '
14086 case $cc_basename in
14088 lt_prog_compiler_pic_CXX='-W c,exportall'
14097 # QNX uses GNU C++, but need to define -shared option too, otherwise
14098 # it will coredump.
14099 lt_prog_compiler_pic_CXX='-fPIC -shared'
14101 osf3* | osf4* | osf5*)
14102 case $cc_basename in
14104 lt_prog_compiler_wl_CXX='--backend -Wl,'
14107 # Rational C++ 2.4.1
14108 lt_prog_compiler_pic_CXX='-pic'
14111 # Digital/Compaq C++
14112 lt_prog_compiler_wl_CXX='-Wl,'
14113 # Make sure the PIC flag is empty. It appears that all Alpha
14114 # Linux and Compaq Tru64 Unix objects are PIC.
14115 lt_prog_compiler_pic_CXX=
14116 lt_prog_compiler_static_CXX='-non_shared'
14125 case $cc_basename in
14127 # Sun C++ 4.2, 5.x and Centerline C++
14128 lt_prog_compiler_pic_CXX='-KPIC'
14129 lt_prog_compiler_static_CXX='-Bstatic'
14130 lt_prog_compiler_wl_CXX='-Qoption ld '
14133 # Green Hills C++ Compiler
14134 lt_prog_compiler_pic_CXX='-PIC'
14141 case $cc_basename in
14144 lt_prog_compiler_pic_CXX='-pic'
14145 lt_prog_compiler_static_CXX='-Bstatic'
14149 lt_prog_compiler_pic_CXX='-pic'
14155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14156 case $cc_basename in
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_pic_CXX='-KPIC'
14160 lt_prog_compiler_static_CXX='-Bstatic'
14165 case $cc_basename in
14167 # NonStop-UX NCC 3.20
14168 lt_prog_compiler_pic_CXX='-KPIC'
14177 lt_prog_compiler_can_build_shared_CXX=no
14183 # For platforms which do not support PIC, -DPIC is meaningless:
14185 lt_prog_compiler_pic_CXX=
14188 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14193 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14194 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14195 $as_echo_n "(cached) " >&6
14197 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14200 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14201 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14204 # Check to make sure the PIC flag actually works.
14206 if test -n "$lt_prog_compiler_pic_CXX"; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14208 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14209 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14210 $as_echo_n "(cached) " >&6
14212 lt_cv_prog_compiler_pic_works_CXX=no
14213 ac_outfile=conftest.$ac_objext
14214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14216 # Insert the option either (1) after the last *FLAGS variable, or
14217 # (2) before a word containing "conftest.", or (3) at the end.
14218 # Note that $ac_compile itself does not contain backslashes and begins
14219 # with a dollar sign (not a hyphen), so the echo should work correctly.
14220 # The option is referenced via a variable to avoid confusing sed.
14221 lt_compile=`echo "$ac_compile" | $SED \
14222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224 -e 's:$: $lt_compiler_flag:'`
14225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14226 (eval "$lt_compile" 2>conftest.err)
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 if (exit $ac_status) && test -s "$ac_outfile"; then
14231 # The compiler can only warn and ignore the option if not recognized
14232 # So say no if there are warnings other than the usual output.
14233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14235 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14236 lt_cv_prog_compiler_pic_works_CXX=yes
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14243 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14245 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14246 case $lt_prog_compiler_pic_CXX in
14248 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14251 lt_prog_compiler_pic_CXX=
14252 lt_prog_compiler_can_build_shared_CXX=no
14262 # Check to make sure the static flag actually works.
14264 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14266 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14267 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14268 $as_echo_n "(cached) " >&6
14270 lt_cv_prog_compiler_static_works_CXX=no
14271 save_LDFLAGS="$LDFLAGS"
14272 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14273 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14274 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14275 # The linker can only warn and ignore the option if not recognized
14276 # So say no if there are warnings
14277 if test -s conftest.err; then
14278 # Append any errors to the config.log.
14279 cat conftest.err 1>&5
14280 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14282 if diff conftest.exp conftest.er2 >/dev/null; then
14283 lt_cv_prog_compiler_static_works_CXX=yes
14286 lt_cv_prog_compiler_static_works_CXX=yes
14290 LDFLAGS="$save_LDFLAGS"
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14294 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14296 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14299 lt_prog_compiler_static_CXX=
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14307 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14308 $as_echo_n "(cached) " >&6
14310 lt_cv_prog_compiler_c_o_CXX=no
14311 $RM -r conftest 2>/dev/null
14315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14317 lt_compiler_flag="-o out/conftest2.$ac_objext"
14318 # Insert the option either (1) after the last *FLAGS variable, or
14319 # (2) before a word containing "conftest.", or (3) at the end.
14320 # Note that $ac_compile itself does not contain backslashes and begins
14321 # with a dollar sign (not a hyphen), so the echo should work correctly.
14322 lt_compile=`echo "$ac_compile" | $SED \
14323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14325 -e 's:$: $lt_compiler_flag:'`
14326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14327 (eval "$lt_compile" 2>out/conftest.err)
14329 cat out/conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14333 # The compiler can only warn and ignore the option if not recognized
14334 # So say no if there are warnings
14335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14338 lt_cv_prog_compiler_c_o_CXX=yes
14343 # SGI C++ compiler will create directory out/ii_files/ for
14344 # template instantiation
14345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14346 $RM out/* && rmdir out
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14353 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14359 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14360 $as_echo_n "(cached) " >&6
14362 lt_cv_prog_compiler_c_o_CXX=no
14363 $RM -r conftest 2>/dev/null
14367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14369 lt_compiler_flag="-o out/conftest2.$ac_objext"
14370 # Insert the option either (1) after the last *FLAGS variable, or
14371 # (2) before a word containing "conftest.", or (3) at the end.
14372 # Note that $ac_compile itself does not contain backslashes and begins
14373 # with a dollar sign (not a hyphen), so the echo should work correctly.
14374 lt_compile=`echo "$ac_compile" | $SED \
14375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14377 -e 's:$: $lt_compiler_flag:'`
14378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14379 (eval "$lt_compile" 2>out/conftest.err)
14381 cat out/conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14385 # The compiler can only warn and ignore the option if not recognized
14386 # So say no if there are warnings
14387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14390 lt_cv_prog_compiler_c_o_CXX=yes
14395 # SGI C++ compiler will create directory out/ii_files/ for
14396 # template instantiation
14397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14398 $RM out/* && rmdir out
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14405 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14410 hard_links="nottested"
14411 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14412 # do not overwrite the value of need_locks provided by the user
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14414 $as_echo_n "checking if we can lock with hard links... " >&6; }
14417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14419 ln conftest.a conftest.b 2>&5 || hard_links=no
14420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14422 $as_echo "$hard_links" >&6; }
14423 if test "$hard_links" = no; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14425 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14435 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14437 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14438 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14441 # If we're using GNU nm, then we don't want the "-C" option.
14442 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14443 # Also, AIX nm treats weak defined symbols like other global defined
14444 # symbols, whereas GNU nm marks them as "W".
14445 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14446 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'
14448 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'
14452 export_symbols_cmds_CXX="$ltdll_cmds"
14454 cygwin* | mingw* | cegcc*)
14455 case $cc_basename in
14457 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14460 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'
14461 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14466 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14471 $as_echo "$ld_shlibs_CXX" >&6; }
14472 test "$ld_shlibs_CXX" = no && can_build_shared=no
14474 with_gnu_ld_CXX=$with_gnu_ld
14482 # Do we need to explicitly link libc?
14484 case "x$archive_cmds_need_lc_CXX" in
14486 # Assume -lc should be added
14487 archive_cmds_need_lc_CXX=yes
14489 if test "$enable_shared" = yes && test "$GCC" = yes; then
14490 case $archive_cmds_CXX in
14492 # FIXME: we may have to deal with multi-command sequences.
14495 # Test whether the compiler implicitly links with -lc since on some
14496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14497 # to ld, don't add -lc before -lgcc.
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14500 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14501 $as_echo_n "(cached) " >&6
14504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14507 (eval $ac_compile) 2>&5
14509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14510 test $ac_status = 0; } 2>conftest.err; then
14513 libobjs=conftest.$ac_objext
14515 wl=$lt_prog_compiler_wl_CXX
14516 pic_flag=$lt_prog_compiler_pic_CXX
14522 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14523 allow_undefined_flag_CXX=
14524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14525 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14528 test $ac_status = 0; }
14530 lt_cv_archive_cmds_need_lc_CXX=no
14532 lt_cv_archive_cmds_need_lc_CXX=yes
14534 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14536 cat conftest.err 1>&5
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14542 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14543 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14612 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14614 library_names_spec=
14615 libname_spec='lib$name'
14619 postuninstall_cmds=
14623 shlibpath_overrides_runpath=unknown
14625 dynamic_linker="$host_os ld.so"
14626 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14627 need_lib_prefix=unknown
14628 hardcode_into_libs=no
14630 # when you set need_version to no, make sure it does not cause -set_version
14631 # flags to be left without arguments
14632 need_version=unknown
14636 version_type=linux # correct to gnu/linux during the next big refactor
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14638 shlibpath_var=LIBPATH
14640 # AIX 3 has no versioning support, so we append a major version to the name.
14641 soname_spec='${libname}${release}${shared_ext}$major'
14645 version_type=linux # correct to gnu/linux during the next big refactor
14648 hardcode_into_libs=yes
14649 if test "$host_cpu" = ia64; then
14650 # AIX 5 supports IA64
14651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14652 shlibpath_var=LD_LIBRARY_PATH
14654 # With GCC up to 2.95.x, collect2 would create an import file
14655 # for dependence libraries. The import file would start with
14656 # the line `#! .'. This would cause the generated library to
14657 # depend on `.', always an invalid library. This was fixed in
14658 # development snapshots of GCC prior to 3.0.
14660 aix4 | aix4.[01] | aix4.[01].*)
14661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14663 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14666 can_build_shared=no
14670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14671 # soname into executable. Probably we can add versioning support to
14672 # collect2, so additional links can be useful in future.
14673 if test "$aix_use_runtimelinking" = yes; then
14674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14675 # instead of lib<name>.a to let people know that these are not
14676 # typical AIX shared libraries.
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679 # We preserve .a as extension for shared libraries through AIX4.2
14680 # and later when we are not doing run time linking.
14681 library_names_spec='${libname}${release}.a $libname.a'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14684 shlibpath_var=LIBPATH
14691 # Since July 2007 AmigaOS4 officially supports .so libraries.
14692 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 library_names_spec='$libname.ixlibrary $libname.a'
14697 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14698 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'
14704 library_names_spec='${libname}${shared_ext}'
14705 dynamic_linker="$host_os ld.so"
14706 shlibpath_var=LIBRARY_PATH
14710 version_type=linux # correct to gnu/linux during the next big refactor
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14718 # the default ld.so.conf also contains /usr/contrib/lib and
14719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14720 # libtool to hard-code these into programs
14723 cygwin* | mingw* | pw32* | cegcc*)
14724 version_type=windows
14729 case $GCC,$cc_basename in
14732 library_names_spec='$libname.dll.a'
14733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14734 postinstall_cmds='base_file=`basename \${file}`~
14735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14736 dldir=$destdir/`dirname \$dlpath`~
14737 test -d \$dldir || mkdir -p \$dldir~
14738 $install_prog $dir/$dlname \$dldir/$dlname~
14739 chmod a+x \$dldir/$dlname~
14740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14744 dlpath=$dir/\$dldll~
14746 shlibpath_overrides_runpath=yes
14750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14755 # MinGW DLLs use traditional 'lib' prefix
14756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14759 # pw32 DLLs use 'pw' prefix rather than 'lib'
14760 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14763 dynamic_linker='Win32 ld.exe'
14768 libname_spec='$name'
14769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14770 library_names_spec='${libname}.dll.lib'
14774 sys_lib_search_path_spec=
14777 for lt_path in $LIB
14780 # Let DOS variable expansion print the short 8.3 style file name.
14781 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14782 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14785 # Convert to MSYS style.
14786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14789 # Convert to unix form, then to dos form, then back to unix form
14790 # but this time dos style (no spaces!) so that the unix form looks
14791 # like /cygdrive/c/PROGRA~1:/cygdr...
14792 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14793 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14794 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14797 sys_lib_search_path_spec="$LIB"
14798 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14799 # It is most probably a Windows format PATH.
14800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14802 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14804 # FIXME: find the short name or the path components, as spaces are
14805 # common. (e.g. "Program Files" -> "PROGRA~1")
14809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14810 postinstall_cmds='base_file=`basename \${file}`~
14811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14812 dldir=$destdir/`dirname \$dlpath`~
14813 test -d \$dldir || mkdir -p \$dldir~
14814 $install_prog $dir/$dlname \$dldir/$dlname'
14815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14816 dlpath=$dir/\$dldll~
14818 shlibpath_overrides_runpath=yes
14819 dynamic_linker='Win32 link.exe'
14823 # Assume MSVC wrapper
14824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14825 dynamic_linker='Win32 ld.exe'
14828 # FIXME: first we should search . and the directory the executable is in
14832 darwin* | rhapsody*)
14833 dynamic_linker="$host_os dyld"
14834 version_type=darwin
14837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14838 soname_spec='${libname}${release}${major}$shared_ext'
14839 shlibpath_overrides_runpath=yes
14840 shlibpath_var=DYLD_LIBRARY_PATH
14841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14843 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14847 version_type=linux # correct to gnu/linux during the next big refactor
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 shlibpath_var=LD_LIBRARY_PATH
14855 freebsd* | dragonfly*)
14856 # DragonFly does not have aout. When/if they implement a new
14857 # versioning mechanism, adjust this.
14858 if test -x /usr/bin/objformat; then
14859 objformat=`/usr/bin/objformat`
14862 freebsd[23].*) objformat=aout ;;
14863 *) objformat=elf ;;
14866 version_type=freebsd-$objformat
14867 case $version_type in
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14878 shlibpath_var=LD_LIBRARY_PATH
14881 shlibpath_overrides_runpath=yes
14883 freebsd3.[01]* | freebsdelf3.[01]*)
14884 shlibpath_overrides_runpath=yes
14885 hardcode_into_libs=yes
14887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14889 shlibpath_overrides_runpath=no
14890 hardcode_into_libs=yes
14892 *) # from 4.6 on, and DragonFly
14893 shlibpath_overrides_runpath=yes
14894 hardcode_into_libs=yes
14900 version_type=linux # correct to gnu/linux during the next big refactor
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 shlibpath_overrides_runpath=no
14907 hardcode_into_libs=yes
14911 version_type=linux # correct to gnu/linux during the next big refactor
14914 dynamic_linker="$host_os runtime_loader"
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 shlibpath_var=LIBRARY_PATH
14918 shlibpath_overrides_runpath=yes
14919 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14920 hardcode_into_libs=yes
14923 hpux9* | hpux10* | hpux11*)
14924 # Give a soname corresponding to the major version so that dld.sl refuses to
14925 # link against other versions.
14932 hardcode_into_libs=yes
14933 dynamic_linker="$host_os dld.so"
14934 shlibpath_var=LD_LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 if test "X$HPUX_IA64_MODE" = X32; then
14939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14947 hardcode_into_libs=yes
14948 dynamic_linker="$host_os dld.sl"
14949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14958 dynamic_linker="$host_os dld.sl"
14959 shlibpath_var=SHLIB_PATH
14960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14965 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14966 postinstall_cmds='chmod 555 $lib'
14967 # or fails outright, so override atomically:
14968 install_override_mode=555
14972 version_type=linux # correct to gnu/linux during the next big refactor
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14976 soname_spec='${libname}${release}${shared_ext}$major'
14977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 shlibpath_overrides_runpath=no
14980 hardcode_into_libs=yes
14983 irix5* | irix6* | nonstopux*)
14985 nonstopux*) version_type=nonstopux ;;
14987 if test "$lt_cv_prog_gnu_ld" = yes; then
14988 version_type=linux # correct to gnu/linux during the next big refactor
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14998 irix5* | nonstopux*)
14999 libsuff= shlibsuff=
15002 case $LD in # libtool.m4 will add one of these switches to LD
15003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15004 libsuff= shlibsuff= libmagic=32-bit;;
15005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15006 libsuff=32 shlibsuff=N32 libmagic=N32;;
15007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15008 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15009 *) libsuff= shlibsuff= libmagic=never-match;;
15013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15014 shlibpath_overrides_runpath=no
15015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15017 hardcode_into_libs=yes
15020 # No shared lib support for Linux oldld, aout, or coff.
15021 linux*oldld* | linux*aout* | linux*coff*)
15025 # This must be glibc/ELF.
15026 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15027 version_type=linux # correct to gnu/linux during the next big refactor
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 soname_spec='${libname}${release}${shared_ext}$major'
15032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15033 shlibpath_var=LD_LIBRARY_PATH
15034 shlibpath_overrides_runpath=no
15036 # Some binutils ld are patched to set DT_RUNPATH
15037 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15038 $as_echo_n "(cached) " >&6
15040 lt_cv_shlibpath_overrides_runpath=no
15041 save_LDFLAGS=$LDFLAGS
15042 save_libdir=$libdir
15043 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15044 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15056 if ac_fn_cxx_try_link "$LINENO"; then :
15057 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15058 lt_cv_shlibpath_overrides_runpath=yes
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15063 LDFLAGS=$save_LDFLAGS
15064 libdir=$save_libdir
15068 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15070 # This implies no fast_install, which is unacceptable.
15071 # Some rework will be needed to allow for fast_install
15072 # before this can be enabled.
15073 hardcode_into_libs=yes
15075 # Add ABI-specific directories to the system library path.
15076 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15078 # Append ld.so.conf contents to the search path
15079 if test -f /etc/ld.so.conf; then
15080 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' ' '`
15081 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15085 # We used to test for /lib/ld.so.1 and disable shared libraries on
15086 # powerpc, because MkLinux only supported shared libraries with the
15087 # GNU dynamic linker. Since this was broken with cross compilers,
15088 # most powerpc-linux boxes support dynamic linking these days and
15089 # people can always --disable-shared, the test was removed, and we
15090 # assume the GNU/Linux dynamic linker is in use.
15091 dynamic_linker='GNU/Linux ld.so'
15098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15101 dynamic_linker='NetBSD (a.out) ld.so'
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 dynamic_linker='NetBSD ld.elf_so'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=yes
15109 hardcode_into_libs=yes
15113 version_type=linux # correct to gnu/linux during the next big refactor
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath=no
15127 hardcode_into_libs=yes
15128 dynamic_linker='ldqnx.so'
15133 sys_lib_dlsearch_path_spec="/usr/lib"
15135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15138 *) need_version=no ;;
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15145 openbsd2.[89] | openbsd2.[89].*)
15146 shlibpath_overrides_runpath=no
15149 shlibpath_overrides_runpath=yes
15153 shlibpath_overrides_runpath=yes
15158 libname_spec='$name'
15161 library_names_spec='$libname${shared_ext} $libname.a'
15162 dynamic_linker='OS/2 ld.exe'
15163 shlibpath_var=LIBPATH
15166 osf3* | osf4* | osf5*)
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15182 version_type=linux # correct to gnu/linux during the next big refactor
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 shlibpath_var=LD_LIBRARY_PATH
15188 shlibpath_overrides_runpath=yes
15189 hardcode_into_libs=yes
15190 # ldd complains unless libraries are executable
15191 postinstall_cmds='chmod +x $lib'
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15198 shlibpath_var=LD_LIBRARY_PATH
15199 shlibpath_overrides_runpath=yes
15200 if test "$with_gnu_ld" = yes; then
15207 version_type=linux # correct to gnu/linux during the next big refactor
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 case $host_vendor in
15213 shlibpath_overrides_runpath=no
15215 runpath_var=LD_RUN_PATH
15223 shlibpath_overrides_runpath=no
15224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15230 if test -d /usr/nec ;then
15231 version_type=linux # correct to gnu/linux during the next big refactor
15232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15233 soname_spec='$libname${shared_ext}.$major'
15234 shlibpath_var=LD_LIBRARY_PATH
15238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15239 version_type=freebsd-elf
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=yes
15246 hardcode_into_libs=yes
15247 if test "$with_gnu_ld" = yes; then
15248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15250 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15257 sys_lib_dlsearch_path_spec='/usr/lib'
15261 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15262 version_type=linux # correct to gnu/linux during the next big refactor
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=no
15268 hardcode_into_libs=yes
15272 version_type=linux # correct to gnu/linux during the next big refactor
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 shlibpath_var=LD_LIBRARY_PATH
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15283 $as_echo "$dynamic_linker" >&6; }
15284 test "$dynamic_linker" = no && can_build_shared=no
15286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15287 if test "$GCC" = yes; then
15288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15291 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15292 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15294 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15295 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15336 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15337 hardcode_action_CXX=
15338 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15339 test -n "$runpath_var_CXX" ||
15340 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15342 # We can hardcode non-existent directories.
15343 if test "$hardcode_direct_CXX" != no &&
15344 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15345 # have to relink, otherwise we might link with an installed library
15346 # when we should be linking with a yet-to-be-installed one
15347 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15348 test "$hardcode_minus_L_CXX" != no; then
15349 # Linking always hardcodes the temporary library directory.
15350 hardcode_action_CXX=relink
15352 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15353 hardcode_action_CXX=immediate
15356 # We cannot hardcode anything, or else we can only hardcode existing
15358 hardcode_action_CXX=unsupported
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15361 $as_echo "$hardcode_action_CXX" >&6; }
15363 if test "$hardcode_action_CXX" = relink ||
15364 test "$inherit_rpath_CXX" = yes; then
15365 # Fast installation is not supported
15366 enable_fast_install=no
15367 elif test "$shlibpath_overrides_runpath" = yes ||
15368 test "$enable_shared" = no; then
15369 # Fast installation is not necessary
15370 enable_fast_install=needless
15379 fi # test -n "$compiler"
15382 CFLAGS=$lt_save_CFLAGS
15386 with_gnu_ld=$lt_save_with_gnu_ld
15387 lt_cv_path_LDCXX=$lt_cv_path_LD
15388 lt_cv_path_LD=$lt_save_path_LD
15389 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15390 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15391 fi # test "$_lt_caught_CXX_error" != yes
15394 ac_cpp='$CPP $CPPFLAGS'
15395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15413 ac_config_commands="$ac_config_commands libtool"
15418 # Only expand once:
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system provides zonefiles or we should bring our own? " >&5
15426 $as_echo_n "checking whether the system provides zonefiles or we should bring our own? ... " >&6; }
15429 use_builtin_timezone=yes
15433 use_builtin_timezone=no
15437 use_builtin_timezone=no
15441 use_builtin_timezone=yes
15446 if test "$use_builtin_timezone" = "no" ; then
15447 if test ! -d /usr/share/zoneinfo; then
15448 use_builtin_timezone=yes
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_builtin_timezone" >&5
15453 $as_echo "$use_builtin_timezone" >&6; }
15454 if test $os_win32 = yes; then
15463 if test "x$os_win32" = "xyes"; then
15464 zoneinfo_dir="zoneinfo"
15468 # Check whether --with-builtintz was given.
15469 if test "${with_builtintz+set}" = set; then :
15470 withval=$with_builtintz; if test "x$withval" = "xyes" ; then
15471 use_builtin_timezone="yes"
15473 if test "x$withval" = "xno" ; then
15474 use_builtin_timezone="no"
15481 if test "$use_builtin_timezone" = "yes"; then
15483 $as_echo "#define USE_BUILTIN_TZDATA /**/" >>confdefs.h
15485 zoneinfodir=zoneinfo
15487 ZONE_INFO="$zoneinfodir"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB4 support" >&5
15494 $as_echo_n "checking for Berkeley DB4 support... " >&6; }
15496 # Check whether --with-bdb4 was given.
15497 if test "${with_bdb4+set}" = set; then :
15498 withval=$with_bdb4; case $with_bdb4 in
15499 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15500 $as_echo "yes" >&6; }
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding Berkeley DB support" >&5
15502 $as_echo "Adding Berkeley DB support" >&6; }
15505 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15506 $as_echo "no" >&6; }
15508 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ignoring unknown argument to --with-bdb4: $with_bdb4" >&5
15511 $as_echo "Ignoring unknown argument to --with-bdb4: $with_bdb4" >&6; }
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15520 if test x$WITH_BDB4 = xyes; then
15522 # Check whether --with-bdb4_dir was given.
15523 if test "${with_bdb4_dir+set}" = set; then :
15524 withval=$with_bdb4_dir; BDB_DIR=$withval
15526 BDB_DIR=/usr/local/BerkeleyDB.4.0
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB include files" >&5
15532 $as_echo_n "checking for Berkeley DB include files... " >&6; }
15533 if test -f $BDB_DIR/include/db.h; then
15534 BDB_DIR_INCLUDE=$BDB_DIR/include
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_INCLUDE" >&5
15536 $as_echo "$BDB_DIR_INCLUDE" >&6; }
15538 if test -f $BDB_DIR/include/db4/db.h; then
15539 BDB_DIR_INCLUDE=$BDB_DIR/include/db4
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_INCLUDE" >&5
15541 $as_echo "$BDB_DIR_INCLUDE" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
15545 $as_echo "not found!" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB libraries" >&5
15550 $as_echo_n "checking for Berkeley DB libraries... " >&6; }
15551 if test -f $BDB_DIR/lib/libdb-4.0.la; then
15552 BDB_DIR_LIB=$BDB_DIR/lib
15553 BDB_LIB=libdb-4.0.la
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_LIB $BDB_LIB" >&5
15555 $as_echo "$BDB_DIR_LIB $BDB_LIB" >&6; }
15557 if test -f $BDB_DIR/lib/libdb4.la; then
15558 BDB_DIR_LIB=$BDB_DIR/lib
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_LIB $BDB_LIB" >&5
15561 $as_echo "$BDB_DIR_LIB $BDB_LIB" >&6; }
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
15565 $as_echo "not found!" >&6; }
15576 if test x$WITH_BDB4 = xyes; then
15578 WITH_BDB4_FALSE='#'
15587 # Check whether --with-backtrace was given.
15588 if test "${with_backtrace+set}" = set; then :
15589 withval=$with_backtrace; if test "x$withval" != "xno" ; then
15590 CFLAGS="$CFLAGS -rdynamic "
15591 LDFLAGS="$LDFLAGS -rdynamic "
15592 SERVER_LDFLAGS="$SERVER_LDFLAGS -rdynamic "
15593 for ac_func in backtrace
15595 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
15596 if test "x$ac_cv_func_backtrace" = xyes; then :
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_BACKTRACE 1
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support development" >&5
15612 $as_echo_n "checking whether to support development... " >&6; }
15614 # Check whether --with-devel was given.
15615 if test "${with_devel+set}" = set; then :
15616 withval=$with_devel; case $with_devel in
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15619 $as_echo "yes" >&6; }
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting up for development: -Wall" >&5
15621 $as_echo "Setting up for development: -Wall" >&6; }
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Note that you will need flex 2.5.7 or higher" >&5
15623 $as_echo "** Note that you will need flex 2.5.7 or higher" >&6; }
15625 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15628 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 $as_echo "no" >&6; }
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ignoring unknown argument to --with-devel: $with_devel" >&5
15631 $as_echo "Ignoring unknown argument to --with-devel: $with_devel" >&6; }
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15639 if test x$DEV = xyes; then
15648 for ac_prog in ar aal
15650 # Extract the first word of "$ac_prog", so it can be a program name with args.
15651 set dummy $ac_prog; ac_word=$2
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15653 $as_echo_n "checking for $ac_word... " >&6; }
15654 if ${ac_cv_prog_AR+:} false; then :
15655 $as_echo_n "(cached) " >&6
15657 if test -n "$AR"; then
15658 ac_cv_prog_AR="$AR" # Let the user override the test.
15660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15661 for as_dir in $PATH
15664 test -z "$as_dir" && as_dir=.
15665 for ac_exec_ext in '' $ac_executable_extensions; do
15666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15667 ac_cv_prog_AR="$ac_prog"
15668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15678 if test -n "$AR"; then
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15680 $as_echo "$AR" >&6; }
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683 $as_echo "no" >&6; }
15687 test -n "$AR" && break
15689 test -n "$AR" || AR="ar"
15691 for ac_prog in perl5 perl
15693 # Extract the first word of "$ac_prog", so it can be a program name with args.
15694 set dummy $ac_prog; ac_word=$2
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15696 $as_echo_n "checking for $ac_word... " >&6; }
15697 if ${ac_cv_prog_PERL+:} false; then :
15698 $as_echo_n "(cached) " >&6
15700 if test -n "$PERL"; then
15701 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15704 for as_dir in $PATH
15707 test -z "$as_dir" && as_dir=.
15708 for ac_exec_ext in '' $ac_executable_extensions; do
15709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15710 ac_cv_prog_PERL="$ac_prog"
15711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15720 PERL=$ac_cv_prog_PERL
15721 if test -n "$PERL"; then
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15723 $as_echo "$PERL" >&6; }
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15730 test -n "$PERL" && break
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to define _REENTRANT" >&5
15735 $as_echo_n "checking whether to define _REENTRANT... " >&6; }
15736 # Check whether --enable-reentrant was given.
15737 if test "${enable_reentrant+set}" = set; then :
15738 enableval=$enable_reentrant; case "${enableval}" in
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15746 $as_echo "yes" >&6; }
15748 $as_echo "#define ICAL_REENTRANT /**/" >>confdefs.h
15749 CFLAGS="$CFLAGS -D_REENTRANT"
15750 ac_cv_reentrant=yes
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15755 $as_echo "no" >&6; }
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if icalerrors_* calls should abort instead of internally signalling an error" >&5
15762 $as_echo_n "checking if icalerrors_* calls should abort instead of internally signalling an error... " >&6; }
15763 # Check whether --enable-icalerrors-are-fatal was given.
15764 if test "${enable_icalerrors_are_fatal+set}" = set; then :
15765 enableval=$enable_icalerrors_are_fatal; case "${enableval}" in
15767 ac_cv_ical_errors_are_fatal=yes
15770 ac_cv_ical_errors_are_fatal=no
15774 ac_cv_ical_errors_are_fatal=no
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ical_errors_are_fatal" >&5
15779 $as_echo "$ac_cv_ical_errors_are_fatal" >&6; }
15781 if test "x$ac_cv_ical_errors_are_fatal" != "xyes"; then
15783 $as_echo "#define ICAL_ERRORS_ARE_FATAL 0" >>confdefs.h
15787 $as_echo "#define ICAL_ERRORS_ARE_FATAL 1" >>confdefs.h
15792 $as_echo "#define NO_WARN_DEPRECATED 1" >>confdefs.h
15795 $as_echo "#define NO_WARN_ICAL_MALFORMEDDATA_ERROR_HACK 1" >>confdefs.h
15799 $as_echo "#define ICAL_UNIX_NEWLINE 1" >>confdefs.h
15802 $as_echo "#define ICAL_ALLOW_EMPTY_PROPERTIES 0" >>confdefs.h
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for pthread_create in -lpthread... -pthread (FreeBSD 4.x style)" >&5
15810 $as_echo "checking for pthread_create in -lpthread... -pthread (FreeBSD 4.x style)" >&6; }
15812 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
15814 PTHREAD_LIBS=-pthread;;
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15818 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15819 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15820 $as_echo_n "(cached) " >&6
15822 ac_check_lib_save_LIBS=$LIBS
15823 LIBS="-lpthread $LIBS"
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15833 char pthread_create ();
15837 return pthread_create ();
15842 if ac_fn_c_try_link "$LINENO"; then :
15843 ac_cv_lib_pthread_pthread_create=yes
15845 ac_cv_lib_pthread_pthread_create=no
15847 rm -f core conftest.err conftest.$ac_objext \
15848 conftest$ac_exeext conftest.$ac_ext
15849 LIBS=$ac_check_lib_save_LIBS
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15852 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15853 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15857 if test "x$have_pthread" = xyes; then
15859 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
15861 PTHREAD_LIBS=-lpthread
15865 if test "$have_pthread" = "yes"; then
15867 HAVE_PTHREAD_FALSE='#'
15869 HAVE_PTHREAD_TRUE='#'
15870 HAVE_PTHREAD_FALSE=
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15876 $as_echo_n "checking for ANSI C header files... " >&6; }
15877 if ${ac_cv_header_stdc+:} false; then :
15878 $as_echo_n "(cached) " >&6
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 #include <stdlib.h>
15883 #include <stdarg.h>
15884 #include <string.h>
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 ac_cv_header_stdc=yes
15898 ac_cv_header_stdc=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 if test $ac_cv_header_stdc = yes; then
15903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #include <string.h>
15909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15910 $EGREP "memchr" >/dev/null 2>&1; then :
15913 ac_cv_header_stdc=no
15919 if test $ac_cv_header_stdc = yes; then
15920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15923 #include <stdlib.h>
15926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15927 $EGREP "free" >/dev/null 2>&1; then :
15930 ac_cv_header_stdc=no
15936 if test $ac_cv_header_stdc = yes; then
15937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15938 if test "$cross_compiling" = yes; then :
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15944 #include <stdlib.h>
15945 #if ((' ' & 0x0FF) == 0x020)
15946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15949 # define ISLOWER(c) \
15950 (('a' <= (c) && (c) <= 'i') \
15951 || ('j' <= (c) && (c) <= 'r') \
15952 || ('s' <= (c) && (c) <= 'z'))
15953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15961 for (i = 0; i < 256; i++)
15962 if (XOR (islower (i), ISLOWER (i))
15963 || toupper (i) != TOUPPER (i))
15968 if ac_fn_c_try_run "$LINENO"; then :
15971 ac_cv_header_stdc=no
15973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15974 conftest.$ac_objext conftest.beam conftest.$ac_ext
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15980 $as_echo "$ac_cv_header_stdc" >&6; }
15981 if test $ac_cv_header_stdc = yes; then
15983 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15987 for ac_header in assert.h ctype.h pthread.h stdint.h time.h sys/types.h unistd.h wctype.h endian.h sys/endian.h byteswap.h
15989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15990 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15992 cat >>confdefs.h <<_ACEOF
15993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16002 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16003 if ${ac_cv_c_const+:} false; then :
16004 $as_echo_n "(cached) " >&6
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16013 #ifndef __cplusplus
16014 /* Ultrix mips cc rejects this sort of thing. */
16015 typedef int charset[2];
16016 const charset cs = { 0, 0 };
16017 /* SunOS 4.1.1 cc rejects this. */
16018 char const *const *pcpcc;
16020 /* NEC SVR4.0.2 mips cc rejects this. */
16021 struct point {int x, y;};
16022 static struct point const zero = {0,0};
16023 /* AIX XL C 1.02.0.0 rejects this.
16024 It does not let you subtract one const X* pointer from another in
16025 an arm of an if-expression whose if-part is not a constant
16027 const char *g = "string";
16028 pcpcc = &g + (g ? g-g : 0);
16029 /* HPUX 7.0 cc rejects these. */
16031 ppc = (char**) pcpcc;
16032 pcpcc = (char const *const *) ppc;
16033 { /* SCO 3.2v4 cc rejects this sort of thing. */
16036 char const *s = 0 ? (char *) 0 : (char const *) 0;
16041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16042 int x[] = {25, 17};
16043 const int *foo = &x[0];
16046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16047 typedef const int *iptr;
16051 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16053 struct s { int j; const int *ap[3]; } bx;
16054 struct s *b = &bx; b->j = 5;
16056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16057 const int foo = 10;
16058 if (!foo) return 0;
16060 return !cs[0] && !zero.x;
16067 if ac_fn_c_try_compile "$LINENO"; then :
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16075 $as_echo "$ac_cv_c_const" >&6; }
16076 if test $ac_cv_c_const = no; then
16078 $as_echo "#define const /**/" >>confdefs.h
16082 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16083 if test "x$ac_cv_type_size_t" = xyes; then :
16087 cat >>confdefs.h <<_ACEOF
16088 #define size_t unsigned int
16093 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16094 if test "x$ac_cv_type_mode_t" = xyes; then :
16098 cat >>confdefs.h <<_ACEOF
16104 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16105 if test "x$ac_cv_type_intptr_t" = xyes; then :
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16110 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16111 if ${ac_cv_struct_tm+:} false; then :
16112 $as_echo_n "(cached) " >&6
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16116 #include <sys/types.h>
16123 int *p = &tm.tm_sec;
16129 if ac_fn_c_try_compile "$LINENO"; then :
16130 ac_cv_struct_tm=time.h
16132 ac_cv_struct_tm=sys/time.h
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16137 $as_echo "$ac_cv_struct_tm" >&6; }
16138 if test $ac_cv_struct_tm = sys/time.h; then
16140 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16145 for ac_func in gmtime_r isspace iswspace strdup snprintf unsetenv setenv
16147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16150 cat >>confdefs.h <<_ACEOF
16151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16159 # Check whether --enable-cxx was given.
16160 if test "${enable_cxx+set}" = set; then :
16161 enableval=$enable_cxx;
16166 if test x$enable_cxx = "xyes"; then
16167 WITH_CXX_BINDINGS_TRUE=
16168 WITH_CXX_BINDINGS_FALSE='#'
16170 WITH_CXX_BINDINGS_TRUE='#'
16171 WITH_CXX_BINDINGS_FALSE=
16176 if test "$prefix" = NONE; then
16178 cat >>confdefs.h <<_ACEOF
16179 #define PACKAGE_DATA_DIR "$ac_default_prefix/share/libical"
16182 ssl_dir="$ac_default_prefix/keys"
16185 cat >>confdefs.h <<_ACEOF
16186 #define PACKAGE_DATA_DIR "$prefix/share/libical"
16192 # Check whether --enable-java was given.
16193 if test "${enable_java+set}" = set; then :
16194 enableval=$enable_java;
16199 if test "x$enable_java" = "xyes"; then
16200 # Extract the first word of "jar", so it can be a program name with args.
16201 set dummy jar; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if ${ac_cv_path_JAR+:} false; then :
16205 $as_echo_n "(cached) " >&6
16209 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
16212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16213 as_dummy="/usr/local/bin:$PATH"
16214 for as_dir in $as_dummy
16217 test -z "$as_dir" && as_dir=.
16218 for ac_exec_ext in '' $ac_executable_extensions; do
16219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16220 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
16221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16228 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="/usr/local/bin/jar"
16232 JAR=$ac_cv_path_JAR
16233 if test -n "$JAR"; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
16235 $as_echo "$JAR" >&6; }
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16242 # Extract the first word of "java", so it can be a program name with args.
16243 set dummy java; ac_word=$2
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16245 $as_echo_n "checking for $ac_word... " >&6; }
16246 if ${ac_cv_path_JAVA+:} false; then :
16247 $as_echo_n "(cached) " >&6
16251 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16255 as_dummy="/usr/local/bin:$PATH"
16256 for as_dir in $as_dummy
16259 test -z "$as_dir" && as_dir=.
16260 for ac_exec_ext in '' $ac_executable_extensions; do
16261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16262 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16270 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="/usr/local/bin/java"
16274 JAVA=$ac_cv_path_JAVA
16275 if test -n "$JAVA"; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16277 $as_echo "$JAVA" >&6; }
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 $as_echo "no" >&6; }
16284 # Extract the first word of "javac", so it can be a program name with args.
16285 set dummy javac; ac_word=$2
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16287 $as_echo_n "checking for $ac_word... " >&6; }
16288 if ${ac_cv_path_JAVAC+:} false; then :
16289 $as_echo_n "(cached) " >&6
16293 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16297 as_dummy="/usr/local/bin:$PATH"
16298 for as_dir in $as_dummy
16301 test -z "$as_dir" && as_dir=.
16302 for ac_exec_ext in '' $ac_executable_extensions; do
16303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16304 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16312 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="/usr/local/bin/javac"
16316 JAVAC=$ac_cv_path_JAVAC
16317 if test -n "$JAVAC"; then
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16319 $as_echo "$JAVAC" >&6; }
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16326 # Extract the first word of "javah", so it can be a program name with args.
16327 set dummy javah; ac_word=$2
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16329 $as_echo_n "checking for $ac_word... " >&6; }
16330 if ${ac_cv_path_JAVAH+:} false; then :
16331 $as_echo_n "(cached) " >&6
16335 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
16338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16339 as_dummy="/usr/local/bin:$PATH"
16340 for as_dir in $as_dummy
16343 test -z "$as_dir" && as_dir=.
16344 for ac_exec_ext in '' $ac_executable_extensions; do
16345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16346 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
16347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16354 test -z "$ac_cv_path_JAVAH" && ac_cv_path_JAVAH="/usr/local/bin/javah"
16358 JAVAH=$ac_cv_path_JAVAH
16359 if test -n "$JAVAH"; then
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
16361 $as_echo "$JAVAH" >&6; }
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16364 $as_echo "no" >&6; }
16375 *-*-solaris*) JAVA_PLATFORM="solaris" ;;
16376 *-*-linux*) JAVA_PLATFORM="linux" ;;
16377 *-*-freebsd*) JAVA_PLATFORM="bsd" ;;
16378 *-*-aix*) JAVA_PLATFORM="aix" ;;
16379 *-sequent-*) JAVA_PLATFORM="ptx" ;;
16380 *-*-hpux*) JAVA_PLATFORM="hpux" ;;
16381 *-*-irix*) JAVA_PLATFORM="irix" ;;
16382 *-*-os390*) JAVA_PLATFORM="os390" ;;
16383 *-*-os400*) JAVA_PLATFORM="os400" ;;
16384 *-apple-darwin*|*-apple-rhapsody*) JAVA_PLATFORM="darwin" ;;
16385 *) JAVA_PLATFORM="unknown" ;;
16391 if test x$enable_java = "xyes"; then
16393 WITH_JAVA_FALSE='#'
16401 # Check whether --enable-python was given.
16402 if test "${enable_python+set}" = set; then :
16403 enableval=$enable_python;
16409 if test "x$enable_python" = "xyes"; then
16416 if test -n "$PYTHON"; then
16417 # If the user set $PYTHON, use it and don't search something else.
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.3" >&5
16419 $as_echo_n "checking whether $PYTHON version is >= 2.3... " >&6; }
16421 # split strings by '.' and convert to numeric. Append some zeros
16422 # because we need at least 4 digits for the hex conversion.
16423 # map returns an iterator in Python 3.0 and a list in 2.x
16424 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
16426 # xrange is not present in Python 3.0 and range returns an iterator
16427 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16428 sys.exit(sys.hexversion < minverhex)"
16429 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16430 ($PYTHON -c "$prog") >&5 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; then :
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16435 $as_echo "yes" >&6; }
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16439 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16441 am_display_PYTHON=$PYTHON
16443 # Otherwise, try each interpreter until we find one that satisfies
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
16446 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
16447 if ${am_cv_pathless_PYTHON+:} false; then :
16448 $as_echo_n "(cached) " >&6
16451 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
16452 test "$am_cv_pathless_PYTHON" = none && break
16454 # split strings by '.' and convert to numeric. Append some zeros
16455 # because we need at least 4 digits for the hex conversion.
16456 # map returns an iterator in Python 3.0 and a list in 2.x
16457 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
16459 # xrange is not present in Python 3.0 and range returns an iterator
16460 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16461 sys.exit(sys.hexversion < minverhex)"
16462 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16463 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; then :
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16472 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16473 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16474 if test "$am_cv_pathless_PYTHON" = none; then
16477 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16478 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16480 $as_echo_n "checking for $ac_word... " >&6; }
16481 if ${ac_cv_path_PYTHON+:} false; then :
16482 $as_echo_n "(cached) " >&6
16486 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16490 for as_dir in $PATH
16493 test -z "$as_dir" && as_dir=.
16494 for ac_exec_ext in '' $ac_executable_extensions; do
16495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16496 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16507 PYTHON=$ac_cv_path_PYTHON
16508 if test -n "$PYTHON"; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16510 $as_echo "$PYTHON" >&6; }
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513 $as_echo "no" >&6; }
16518 am_display_PYTHON=$am_cv_pathless_PYTHON
16522 if test "$PYTHON" = :; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16528 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16529 if ${am_cv_python_version+:} false; then :
16530 $as_echo_n "(cached) " >&6
16532 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16535 $as_echo "$am_cv_python_version" >&6; }
16536 PYTHON_VERSION=$am_cv_python_version
16540 PYTHON_PREFIX='${prefix}'
16542 PYTHON_EXEC_PREFIX='${exec_prefix}'
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16547 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16548 if ${am_cv_python_platform+:} false; then :
16549 $as_echo_n "(cached) " >&6
16551 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16554 $as_echo "$am_cv_python_platform" >&6; }
16555 PYTHON_PLATFORM=$am_cv_python_platform
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16561 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16562 if ${am_cv_python_pythondir+:} false; then :
16563 $as_echo_n "(cached) " >&6
16565 if test "x$prefix" = xNONE
16567 am_py_prefix=$ac_default_prefix
16569 am_py_prefix=$prefix
16571 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
16572 case $am_cv_python_pythondir in
16574 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16575 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16578 case $am_py_prefix in
16581 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16589 $as_echo "$am_cv_python_pythondir" >&6; }
16590 pythondir=$am_cv_python_pythondir
16594 pkgpythondir=\${pythondir}/$PACKAGE
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16598 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16599 if ${am_cv_python_pyexecdir+:} false; then :
16600 $as_echo_n "(cached) " >&6
16602 if test "x$exec_prefix" = xNONE
16604 am_py_exec_prefix=$am_py_prefix
16606 am_py_exec_prefix=$exec_prefix
16608 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
16609 case $am_cv_python_pyexecdir in
16610 $am_py_exec_prefix*)
16611 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16612 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16615 case $am_py_exec_prefix in
16618 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16626 $as_echo "$am_cv_python_pyexecdir" >&6; }
16627 pyexecdir=$am_cv_python_pyexecdir
16631 pkgpyexecdir=\${pyexecdir}/$PACKAGE
16638 if test "$PYTHON" != :; then
16640 HAVE_PYTHON_FALSE='#'
16642 HAVE_PYTHON_TRUE='#'
16646 # Extract the first word of "swig", so it can be a program name with args.
16647 set dummy swig; ac_word=$2
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16649 $as_echo_n "checking for $ac_word... " >&6; }
16650 if ${ac_cv_prog_swig_val+:} false; then :
16651 $as_echo_n "(cached) " >&6
16653 if test -n "$swig_val"; then
16654 ac_cv_prog_swig_val="$swig_val" # Let the user override the test.
16656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16657 for as_dir in $PATH
16660 test -z "$as_dir" && as_dir=.
16661 for ac_exec_ext in '' $ac_executable_extensions; do
16662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16663 ac_cv_prog_swig_val="true"
16664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16671 test -z "$ac_cv_prog_swig_val" && ac_cv_prog_swig_val="false"
16674 swig_val=$ac_cv_prog_swig_val
16675 if test -n "$swig_val"; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_val" >&5
16677 $as_echo "$swig_val" >&6; }
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16680 $as_echo "no" >&6; }
16684 if test "x$swig_val" = "xtrue"; then
16686 HAVE_SWIG_FALSE='#'
16693 PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
16694 as_ac_Header=`$as_echo "ac_cv_header_python$PYTHON_VERSION/Python.h" | $as_tr_sh`
16695 ac_fn_c_check_header_mongrel "$LINENO" "python$PYTHON_VERSION/Python.h" "$as_ac_Header" "$ac_includes_default"
16696 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16699 as_fn_error $? "Can't find python header files" "$LINENO" 5
16703 if test -f "$PY_PREFIX/include/python$PYTHON_VERSION/Python.h"; then
16705 PY_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
16708 # SWIG needs PIC in order to work.
16709 CFLAGS="$CFLAGS -fPIC"
16712 ac_config_files="$ac_config_files src/python/Makefile"
16717 HAVE_PYTHON_FALSE='#'
16719 HAVE_PYTHON_TRUE='#'
16725 HAVE_SWIG_FALSE='#'
16733 if test "$use_builtin_timezone" = "yes"; then
16734 ac_config_files="$ac_config_files zoneinfo/Makefile"
16738 ac_config_files="$ac_config_files Makefile"
16740 ac_config_files="$ac_config_files design-data/Makefile"
16742 ac_config_files="$ac_config_files doc/Makefile"
16744 ac_config_files="$ac_config_files examples/Makefile"
16746 ac_config_files="$ac_config_files scripts/Makefile"
16748 ac_config_files="$ac_config_files src/Makefile"
16750 ac_config_files="$ac_config_files src/libical/Makefile"
16752 ac_config_files="$ac_config_files src/libical/icalversion.h"
16754 ac_config_files="$ac_config_files src/libical/icalerror.h"
16756 ac_config_files="$ac_config_files src/libicalss/Makefile"
16758 ac_config_files="$ac_config_files src/libicalvcal/Makefile"
16760 ac_config_files="$ac_config_files src/test/Makefile"
16762 ac_config_files="$ac_config_files test-data/Makefile"
16764 ac_config_files="$ac_config_files libical.pc"
16767 cat >confcache <<\_ACEOF
16768 # This file is a shell script that caches the results of configure
16769 # tests run on this system so they can be shared between configure
16770 # scripts and configure runs, see configure's option --config-cache.
16771 # It is not useful on other systems. If it contains results you don't
16772 # want to keep, you may remove or edit it.
16774 # config.status only pays attention to the cache file if you give it
16775 # the --recheck option to rerun configure.
16777 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16779 # following values.
16783 # The following way of writing the cache mishandles newlines in values,
16784 # but we know of no workaround that is simple, portable, and efficient.
16785 # So, we kill variables containing newlines.
16786 # Ultrix sh set writes to stderr and can't be redirected directly,
16787 # and sets the high bit in the cache file unless we assign to the vars.
16789 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16790 eval ac_val=\$$ac_var
16794 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16795 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16798 _ | IFS | as_nl) ;; #(
16799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16800 *) { eval $ac_var=; unset $ac_var;} ;;
16806 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16807 *${as_nl}ac_space=\ *)
16808 # `set' does not quote correctly, so add quotes: double-quote
16809 # substitution turns \\\\ into \\, and sed turns \\ into \.
16812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16815 # `set' quotes correctly as required by POSIX, so do not add quotes.
16816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16825 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16827 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16829 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16830 if test -w "$cache_file"; then
16831 if test "x$cache_file" != "x/dev/null"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16833 $as_echo "$as_me: updating cache $cache_file" >&6;}
16834 if test ! -f "$cache_file" || test -h "$cache_file"; then
16835 cat confcache >"$cache_file"
16837 case $cache_file in #(
16839 mv -f confcache "$cache_file"$$ &&
16840 mv -f "$cache_file"$$ "$cache_file" ;; #(
16842 mv -f confcache "$cache_file" ;;
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16848 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16853 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16854 # Let make expand exec_prefix.
16855 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16857 DEFS=-DHAVE_CONFIG_H
16862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16863 # 1. Remove the extension, and $U if already installed.
16864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16865 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16867 # will be set to the directory where LIBOBJS objects are built.
16868 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16869 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16871 LIBOBJS=$ac_libobjs
16873 LTLIBOBJS=$ac_ltlibobjs
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16877 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16878 if test -n "$am_sleep_pid"; then
16879 # Hide warnings about reused PIDs.
16880 wait $am_sleep_pid 2>/dev/null
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16883 $as_echo "done" >&6; }
16884 if test -n "$EXEEXT"; then
16886 am__EXEEXT_FALSE='#'
16888 am__EXEEXT_TRUE='#'
16892 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16893 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16897 as_fn_error $? "conditional \"AMDEP\" was never defined.
16898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16901 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16904 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16905 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16908 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16909 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16912 if test -z "${WITH_BDB4_TRUE}" && test -z "${WITH_BDB4_FALSE}"; then
16913 as_fn_error $? "conditional \"WITH_BDB4\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16916 if test -z "${DEV_TRUE}" && test -z "${DEV_FALSE}"; then
16917 as_fn_error $? "conditional \"DEV\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16920 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
16921 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16924 if test -z "${WITH_CXX_BINDINGS_TRUE}" && test -z "${WITH_CXX_BINDINGS_FALSE}"; then
16925 as_fn_error $? "conditional \"WITH_CXX_BINDINGS\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16928 if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
16929 as_fn_error $? "conditional \"WITH_JAVA\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16932 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16933 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16936 if test -z "${HAVE_SWIG_TRUE}" && test -z "${HAVE_SWIG_FALSE}"; then
16937 as_fn_error $? "conditional \"HAVE_SWIG\" was never defined.
16938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16940 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16941 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16944 if test -z "${HAVE_SWIG_TRUE}" && test -z "${HAVE_SWIG_FALSE}"; then
16945 as_fn_error $? "conditional \"HAVE_SWIG\" was never defined.
16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16949 : "${CONFIG_STATUS=./config.status}"
16951 ac_clean_files_save=$ac_clean_files
16952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16954 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16956 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16958 # Generated by $as_me.
16959 # Run this file to recreate the current configuration.
16960 # Compiler output produced by configure, useful for debugging
16961 # configure, is in config.log if it exists.
16964 ac_cs_recheck=false
16967 SHELL=\${CONFIG_SHELL-$SHELL}
16970 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16971 ## -------------------- ##
16972 ## M4sh Initialization. ##
16973 ## -------------------- ##
16975 # Be more Bourne compatible
16976 DUALCASE=1; export DUALCASE # for MKS sh
16977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16980 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16981 # is contrary to our usage. Disable this feature.
16982 alias -g '${1+"$@"}'='"$@"'
16983 setopt NO_GLOB_SUBST
16985 case `(set -o) 2>/dev/null` in #(
16997 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16998 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17001 # Prefer a ksh shell builtin over an external printf program on Solaris,
17002 # but without wasting forks for bash or zsh.
17003 if test -z "$BASH_VERSION$ZSH_VERSION" \
17004 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17005 as_echo='print -r --'
17006 as_echo_n='print -rn --'
17007 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17008 as_echo='printf %s\n'
17009 as_echo_n='printf %s'
17011 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17012 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17013 as_echo_n='/usr/ucb/echo -n'
17015 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17016 as_echo_n_body='eval
17020 expr "X$arg" : "X\\(.*\\)$as_nl";
17021 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17023 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17025 export as_echo_n_body
17026 as_echo_n='sh -c $as_echo_n_body as_echo'
17028 export as_echo_body
17029 as_echo='sh -c $as_echo_body as_echo'
17032 # The user is always right.
17033 if test "${PATH_SEPARATOR+set}" != set; then
17035 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17036 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17043 # We need space, tab and new line, in precisely that order. Quoting is
17044 # there to prevent editors from complaining about space-tab.
17045 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17046 # splitting by setting IFS to empty value.)
17049 # Find who we are. Look in the path if we contain no directory separator.
17052 *[\\/]* ) as_myself=$0 ;;
17053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17054 for as_dir in $PATH
17057 test -z "$as_dir" && as_dir=.
17058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17064 # We did not find ourselves, most probably we were run as `sh COMMAND'
17065 # in which case we are not to be found in the path.
17066 if test "x$as_myself" = x; then
17069 if test ! -f "$as_myself"; then
17070 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17074 # Unset variables that we do not need and which cause bugs (e.g. in
17075 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17076 # suppresses any "Segmentation fault" message there. '((' could
17077 # trigger a bug in pdksh 5.2.14.
17078 for as_var in BASH_ENV ENV MAIL MAILPATH
17079 do eval test x\${$as_var+set} = xset \
17080 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17096 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17097 # ----------------------------------------
17098 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17099 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17100 # script with STATUS, using 1 if that was 0.
17103 as_status=$1; test $as_status -eq 0 && as_status=1
17105 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17106 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17108 $as_echo "$as_me: error: $2" >&2
17109 as_fn_exit $as_status
17113 # as_fn_set_status STATUS
17114 # -----------------------
17115 # Set $? to STATUS, without forking.
17116 as_fn_set_status ()
17119 } # as_fn_set_status
17121 # as_fn_exit STATUS
17122 # -----------------
17123 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17127 as_fn_set_status $1
17133 # Portably unset VAR.
17136 { eval $1=; unset $1;}
17138 as_unset=as_fn_unset
17139 # as_fn_append VAR VALUE
17140 # ----------------------
17141 # Append the text in VALUE to the end of the definition contained in VAR. Take
17142 # advantage of any shell optimizations that allow amortized linear growth over
17143 # repeated appends, instead of the typical quadratic growth present in naive
17145 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17146 eval 'as_fn_append ()
17157 # as_fn_arith ARG...
17158 # ------------------
17159 # Perform arithmetic evaluation on the ARGs, and store the result in the
17160 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17161 # must be portable across $(()) and expr.
17162 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17163 eval 'as_fn_arith ()
17170 as_val=`expr "$@" || test $? -eq 1`
17175 if expr a : '\(a\)' >/dev/null 2>&1 &&
17176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17182 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17183 as_basename=basename
17188 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17194 as_me=`$as_basename -- "$0" ||
17195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17196 X"$0" : 'X\(//\)$' \| \
17197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17199 sed '/^.*\/\([^/][^/]*\)\/*$/{
17213 # Avoid depending upon Character Ranges.
17214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17217 as_cr_digits='0123456789'
17218 as_cr_alnum=$as_cr_Letters$as_cr_digits
17220 ECHO_C= ECHO_N= ECHO_T=
17221 case `echo -n x` in #(((((
17223 case `echo 'xy\c'` in
17224 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17226 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17233 rm -f conf$$ conf$$.exe conf$$.file
17234 if test -d conf$$.dir; then
17235 rm -f conf$$.dir/conf$$.file
17238 mkdir conf$$.dir 2>/dev/null
17240 if (echo >conf$$.file) 2>/dev/null; then
17241 if ln -s conf$$.file conf$$ 2>/dev/null; then
17243 # ... but there are two gotchas:
17244 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17245 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17246 # In both cases, we have to default to `cp -pR'.
17247 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17249 elif ln conf$$.file conf$$ 2>/dev/null; then
17257 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17258 rmdir conf$$.dir 2>/dev/null
17263 # Create "$as_dir" as a directory, including parents if necessary.
17268 -*) as_dir=./$as_dir;;
17270 test -d "$as_dir" || eval $as_mkdir_p || {
17274 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17275 *) as_qdir=$as_dir;;
17277 as_dirs="'$as_qdir' $as_dirs"
17278 as_dir=`$as_dirname -- "$as_dir" ||
17279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$as_dir" : 'X\(//\)[^/]' \| \
17281 X"$as_dir" : 'X\(//\)$' \| \
17282 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17283 $as_echo X"$as_dir" |
17284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17288 /^X\(\/\/\)[^/].*/{
17301 test -d "$as_dir" && break
17303 test -z "$as_dirs" || eval "mkdir $as_dirs"
17304 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17308 if mkdir -p . 2>/dev/null; then
17309 as_mkdir_p='mkdir -p "$as_dir"'
17311 test -d ./-p && rmdir ./-p
17316 # as_fn_executable_p FILE
17317 # -----------------------
17318 # Test if FILE is an executable regular file.
17319 as_fn_executable_p ()
17321 test -f "$1" && test -x "$1"
17322 } # as_fn_executable_p
17323 as_test_x='test -x'
17324 as_executable_p=as_fn_executable_p
17326 # Sed expression to map a string onto a valid CPP name.
17327 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17329 # Sed expression to map a string onto a valid variable name.
17330 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17334 ## ----------------------------------- ##
17335 ## Main body of $CONFIG_STATUS script. ##
17336 ## ----------------------------------- ##
17338 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341 # Save the log message, to keep $0 and so on meaningful, and to
17342 # report actual input values of CONFIG_FILES etc. instead of their
17343 # values after options handling.
17345 This file was extended by libical $as_me 1.00, which was
17346 generated by GNU Autoconf 2.69. Invocation command line was
17348 CONFIG_FILES = $CONFIG_FILES
17349 CONFIG_HEADERS = $CONFIG_HEADERS
17350 CONFIG_LINKS = $CONFIG_LINKS
17351 CONFIG_COMMANDS = $CONFIG_COMMANDS
17354 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17359 case $ac_config_files in *"
17360 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17363 case $ac_config_headers in *"
17364 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17369 # Files that config.status was made for.
17370 config_files="$ac_config_files"
17371 config_headers="$ac_config_headers"
17372 config_commands="$ac_config_commands"
17376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17378 \`$as_me' instantiates files and other configuration actions
17379 from templates according to the current configuration. Unless the files
17380 and actions are specified as TAGs, all are instantiated by default.
17382 Usage: $0 [OPTION]... [TAG]...
17384 -h, --help print this help, then exit
17385 -V, --version print version number and configuration settings, then exit
17386 --config print configuration, then exit
17387 -q, --quiet, --silent
17388 do not print progress messages
17389 -d, --debug don't remove temporary files
17390 --recheck update $as_me by reconfiguring in the same conditions
17391 --file=FILE[:TEMPLATE]
17392 instantiate the configuration file FILE
17393 --header=FILE[:TEMPLATE]
17394 instantiate the configuration header FILE
17396 Configuration files:
17399 Configuration headers:
17402 Configuration commands:
17405 Report bugs to <http://freeassociation.sf.net/>."
17408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17411 libical config.status 1.00
17412 configured by $0, generated by GNU Autoconf 2.69,
17413 with options \\"\$ac_cs_config\\"
17415 Copyright (C) 2012 Free Software Foundation, Inc.
17416 This config.status script is free software; the Free Software Foundation
17417 gives unlimited permission to copy, distribute and modify it."
17424 test -n "\$AWK" || AWK=awk
17427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17428 # The default lists apply if the user does not specify any file.
17434 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17435 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17439 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17451 # Handling of the options.
17452 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17454 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17455 $as_echo "$ac_cs_version"; exit ;;
17456 --config | --confi | --conf | --con | --co | --c )
17457 $as_echo "$ac_cs_config"; exit ;;
17458 --debug | --debu | --deb | --de | --d | -d )
17460 --file | --fil | --fi | --f )
17463 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17464 '') as_fn_error $? "missing file argument" ;;
17466 as_fn_append CONFIG_FILES " '$ac_optarg'"
17467 ac_need_defaults=false;;
17468 --header | --heade | --head | --hea )
17471 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17473 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17474 ac_need_defaults=false;;
17476 # Conflict between --help and --header
17477 as_fn_error $? "ambiguous option: \`$1'
17478 Try \`$0 --help' for more information.";;
17479 --help | --hel | -h )
17480 $as_echo "$ac_cs_usage"; exit ;;
17481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17485 # This is an error.
17486 -*) as_fn_error $? "unrecognized option: \`$1'
17487 Try \`$0 --help' for more information." ;;
17489 *) as_fn_append ac_config_targets " $1"
17490 ac_need_defaults=false ;;
17496 ac_configure_extra_args=
17498 if $ac_cs_silent; then
17500 ac_configure_extra_args="$ac_configure_extra_args --silent"
17504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17505 if \$ac_cs_recheck; then
17506 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17508 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17509 CONFIG_SHELL='$SHELL'
17510 export CONFIG_SHELL
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17520 ## Running $as_me. ##
17526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17530 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17533 # The HP-UX ksh and POSIX shell print the target directory to stdout
17534 # if CDPATH is set.
17535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17537 sed_quote_subst='$sed_quote_subst'
17538 double_quote_subst='$double_quote_subst'
17539 delay_variable_subst='$delay_variable_subst'
17540 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17541 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17542 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17543 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17544 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17545 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17546 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17547 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17548 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17549 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17550 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17551 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17552 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17553 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17554 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17555 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17556 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17557 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17558 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17559 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17560 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17561 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17562 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17563 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17564 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17565 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17566 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17567 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17568 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17569 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17570 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17571 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17572 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17573 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17574 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17575 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17576 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17577 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17578 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17579 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17580 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17581 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17582 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17583 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17584 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17585 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17586 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17587 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17588 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17589 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17590 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17591 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17592 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17593 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17594 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17595 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17596 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"`'
17597 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17598 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17599 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17600 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17601 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17602 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17603 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17604 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17605 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17606 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17607 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17608 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17609 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17610 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17611 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17612 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17613 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17614 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17615 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17616 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17617 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17618 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17619 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17620 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17621 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17622 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17623 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17624 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17625 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17626 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17627 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17628 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17629 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17630 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17631 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17632 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17633 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17634 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17635 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17636 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17637 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17638 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17639 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17640 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17641 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17642 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17643 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17644 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17645 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17646 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17647 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17648 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17649 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17650 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17651 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17652 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17653 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17654 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17655 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17656 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17657 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17658 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17659 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17660 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17661 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17662 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17663 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17664 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17665 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17666 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17667 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17668 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17669 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17670 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17671 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17672 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17673 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17674 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17675 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17676 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17677 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17678 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17679 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17680 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17681 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17682 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17683 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17684 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17685 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17686 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17687 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17688 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17689 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17690 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17691 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17692 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17693 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17694 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17695 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17696 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17697 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17698 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17699 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17700 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17701 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17702 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17703 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17704 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17705 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17706 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17707 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17708 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17709 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17710 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17711 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17712 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17713 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17714 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17715 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17716 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17717 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17718 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17719 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17720 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17721 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17722 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17723 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17726 LTCFLAGS='$LTCFLAGS'
17727 compiler='$compiler_DEFAULT'
17729 # A function that is used when there is no print builtin or printf.
17730 func_fallback_echo ()
17732 eval 'cat <<_LTECHO_EOF
17737 # Quote evaled strings.
17752 deplibs_check_method \
17757 sharedlib_from_linklib_cmd \
17760 archiver_list_spec \
17766 lt_cv_sys_global_symbol_pipe \
17767 lt_cv_sys_global_symbol_to_cdecl \
17768 lt_cv_sys_global_symbol_to_c_name_address \
17769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17770 nm_file_list_spec \
17771 lt_prog_compiler_no_builtin_flag \
17772 lt_prog_compiler_pic \
17773 lt_prog_compiler_wl \
17774 lt_prog_compiler_static \
17775 lt_cv_prog_compiler_c_o \
17784 export_dynamic_flag_spec \
17785 whole_archive_flag_spec \
17786 compiler_needs_object \
17788 allow_undefined_flag \
17789 no_undefined_flag \
17790 hardcode_libdir_flag_spec \
17791 hardcode_libdir_separator \
17795 variables_saved_for_relink \
17797 library_names_spec \
17799 install_override_mode \
17803 compiler_lib_search_dirs \
17808 compiler_lib_search_path \
17812 lt_prog_compiler_no_builtin_flag_CXX \
17813 lt_prog_compiler_pic_CXX \
17814 lt_prog_compiler_wl_CXX \
17815 lt_prog_compiler_static_CXX \
17816 lt_cv_prog_compiler_c_o_CXX \
17817 export_dynamic_flag_spec_CXX \
17818 whole_archive_flag_spec_CXX \
17819 compiler_needs_object_CXX \
17821 allow_undefined_flag_CXX \
17822 no_undefined_flag_CXX \
17823 hardcode_libdir_flag_spec_CXX \
17824 hardcode_libdir_separator_CXX \
17825 exclude_expsyms_CXX \
17826 include_expsyms_CXX \
17827 file_list_spec_CXX \
17828 compiler_lib_search_dirs_CXX \
17829 predep_objects_CXX \
17830 postdep_objects_CXX \
17833 compiler_lib_search_path_CXX; do
17834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17835 *[\\\\\\\`\\"\\\$]*)
17836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17844 # Double-quote double-evaled strings.
17845 for var in reload_cmds \
17846 old_postinstall_cmds \
17847 old_postuninstall_cmds \
17849 extract_expsyms_cmds \
17850 old_archive_from_new_cmds \
17851 old_archive_from_expsyms_cmds \
17853 archive_expsym_cmds \
17855 module_expsym_cmds \
17856 export_symbols_cmds \
17860 postuninstall_cmds \
17862 sys_lib_search_path_spec \
17863 sys_lib_dlsearch_path_spec \
17865 old_archive_cmds_CXX \
17866 old_archive_from_new_cmds_CXX \
17867 old_archive_from_expsyms_cmds_CXX \
17869 archive_expsym_cmds_CXX \
17871 module_expsym_cmds_CXX \
17872 export_symbols_cmds_CXX \
17874 postlink_cmds_CXX; do
17875 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17876 *[\\\\\\\`\\"\\\$]*)
17877 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17880 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17885 ac_aux_dir='$ac_aux_dir'
17886 xsi_shell='$xsi_shell'
17887 lt_shell_append='$lt_shell_append'
17889 # See if we are running on zsh, and set the options which allow our
17890 # commands through without removal of \ escapes INIT.
17891 if test -n "\${ZSH_VERSION+set}" ; then
17892 setopt NO_GLOB_SUBST
17898 TIMESTAMP='$TIMESTAMP'
17909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17911 # Handling of arguments.
17912 for ac_config_target in $ac_config_targets
17914 case $ac_config_target in
17915 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17916 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17917 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17918 "src/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/python/Makefile" ;;
17919 "zoneinfo/Makefile") CONFIG_FILES="$CONFIG_FILES zoneinfo/Makefile" ;;
17920 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17921 "design-data/Makefile") CONFIG_FILES="$CONFIG_FILES design-data/Makefile" ;;
17922 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17923 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17924 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17925 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17926 "src/libical/Makefile") CONFIG_FILES="$CONFIG_FILES src/libical/Makefile" ;;
17927 "src/libical/icalversion.h") CONFIG_FILES="$CONFIG_FILES src/libical/icalversion.h" ;;
17928 "src/libical/icalerror.h") CONFIG_FILES="$CONFIG_FILES src/libical/icalerror.h" ;;
17929 "src/libicalss/Makefile") CONFIG_FILES="$CONFIG_FILES src/libicalss/Makefile" ;;
17930 "src/libicalvcal/Makefile") CONFIG_FILES="$CONFIG_FILES src/libicalvcal/Makefile" ;;
17931 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17932 "test-data/Makefile") CONFIG_FILES="$CONFIG_FILES test-data/Makefile" ;;
17933 "libical.pc") CONFIG_FILES="$CONFIG_FILES libical.pc" ;;
17935 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17940 # If the user did not use the arguments to specify the items to instantiate,
17941 # then the envvar interface is used. Set only those that are not.
17942 # We use the long form for the default assignment because of an extremely
17943 # bizarre bug on SunOS 4.1.3.
17944 if $ac_need_defaults; then
17945 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17946 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17950 # Have a temporary directory for convenience. Make it in the build tree
17951 # simply because there is no reason against having it here, and in addition,
17952 # creating and moving files from /tmp can sometimes cause problems.
17953 # Hook for its removal unless debugging.
17954 # Note that there is a small window in which the directory will not be cleaned:
17955 # after its creation but before its name has been assigned to `$tmp'.
17959 trap 'exit_status=$?
17960 : "${ac_tmp:=$tmp}"
17961 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17963 trap 'as_fn_exit 1' 1 2 13 15
17965 # Create a (secure) tmp directory for tmp files.
17968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17972 tmp=./conf$$-$RANDOM
17973 (umask 077 && mkdir "$tmp")
17974 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17977 # Set up the scripts for CONFIG_FILES section.
17978 # No need to generate them if there are no CONFIG_FILES.
17979 # This happens for instance with `./config.status config.h'.
17980 if test -n "$CONFIG_FILES"; then
17983 ac_cr=`echo X | tr X '\015'`
17984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17985 # But we know of no other shell where ac_cr would be empty at this
17986 # point, so we can use a bashism as a fallback.
17987 if test "x$ac_cr" = x; then
17988 eval ac_cr=\$\'\\r\'
17990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17994 ac_cs_awk_cr=$ac_cr
17997 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18002 echo "cat >conf$$subs.awk <<_ACEOF" &&
18003 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18005 } >conf$$subs.sh ||
18006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18009 for ac_last_try in false false false false false :; do
18010 . ./conf$$subs.sh ||
18011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18013 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18014 if test $ac_delim_n = $ac_delim_num; then
18016 elif $ac_last_try; then
18017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18022 rm -f conf$$subs.sh
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18029 s/^/S["/; s/!.*/"]=/
18039 s/\(.\{148\}\)..*/\1/
18041 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18053 s/\(.\{148\}\)..*/\1/
18055 s/["\\]/\\&/g; s/^/"/; s/$/"/
18059 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18064 ' <conf$$subs.awk | sed '
18069 ' >>$CONFIG_STATUS || ac_write_fail=1
18070 rm -f conf$$subs.awk
18071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18073 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18074 for (key in S) S_is_set[key] = 1
18080 nfields = split(line, field, "@")
18082 len = length(field[1])
18083 for (i = 2; i < nfields; i++) {
18085 keylen = length(key)
18086 if (S_is_set[key]) {
18088 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18089 len += length(value) + length(field[++i])
18100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18101 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18102 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18105 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18106 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18109 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18110 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18111 # trailing colons and then remove the whole line if VPATH becomes empty
18112 # (actually we leave an empty line to preserve line numbers).
18113 if test "x$srcdir" = x.; then
18114 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18133 fi # test -n "$CONFIG_FILES"
18135 # Set up the scripts for CONFIG_HEADERS section.
18136 # No need to generate them if there are no CONFIG_HEADERS.
18137 # This happens for instance with `./config.status Makefile'.
18138 if test -n "$CONFIG_HEADERS"; then
18139 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18143 # Transform confdefs.h into an awk script `defines.awk', embedded as
18144 # here-document in config.status, that substitutes the proper values into
18145 # config.h.in to produce config.h.
18147 # Create a delimiter string that does not exist in confdefs.h, to ease
18148 # handling of long lines.
18150 for ac_last_try in false false :; do
18151 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18152 if test -z "$ac_tt"; then
18154 elif $ac_last_try; then
18155 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18161 # For the awk script, D is an array of macro values keyed by name,
18162 # likewise P contains macro parameters if any. Preserve backslash
18163 # newline sequences.
18165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18167 s/.\{148\}/&'"$ac_delim"'/g
18170 s/^[ ]*#[ ]*define[ ][ ]*/ /
18177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18179 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18184 D["\1"]=" \3\\\\\\n"\\/p
18186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18191 s/.\{148\}/&'"$ac_delim"'/g
18196 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18199 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18201 ' <confdefs.h | sed '
18202 s/'"$ac_delim"'/"\\\
18203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18206 for (key in D) D_is_set[key] = 1
18209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18211 split(line, arg, " ")
18212 if (arg[1] == "#") {
18216 defundef = substr(arg[1], 2)
18219 split(mac1, mac2, "(") #)
18221 prefix = substr(line, 1, index(line, defundef) - 1)
18222 if (D_is_set[macro]) {
18223 # Preserve the white space surrounding the "#".
18224 print prefix "define", macro P[macro] D[macro]
18227 # Replace #undef with comments. This is necessary, for example,
18228 # in the case of _POSIX_SOURCE, which is predefined and required
18229 # on some systems where configure will not decide to define it.
18230 if (defundef == "undef") {
18231 print "/*", prefix defundef, macro, "*/"
18239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18240 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18241 fi # test -n "$CONFIG_HEADERS"
18244 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18249 :[FHLC]) ac_mode=$ac_tag; continue;;
18251 case $ac_mode$ac_tag in
18253 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18254 :[FH]-) ac_tag=-:-;;
18255 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18272 -) ac_f="$ac_tmp/stdin";;
18273 *) # Look for the file first in the build tree, then in the source tree
18274 # (if the path is not absolute). The absolute path cannot be DOS-style,
18275 # because $ac_f cannot contain `:'.
18279 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18281 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18283 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18284 as_fn_append ac_file_inputs " '$ac_f'"
18287 # Let's still pretend it is `configure' which instantiates (i.e., don't
18288 # use $as_me), people would be surprised to read:
18289 # /* config.h. Generated by config.status. */
18290 configure_input='Generated from '`
18291 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18293 if test x"$ac_file" != x-; then
18294 configure_input="$ac_file. $configure_input"
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18296 $as_echo "$as_me: creating $ac_file" >&6;}
18298 # Neutralize special characters interpreted by sed in replacement strings.
18299 case $configure_input in #(
18300 *\&* | *\|* | *\\* )
18301 ac_sed_conf_input=`$as_echo "$configure_input" |
18302 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18303 *) ac_sed_conf_input=$configure_input;;
18307 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18313 ac_dir=`$as_dirname -- "$ac_file" ||
18314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18315 X"$ac_file" : 'X\(//\)[^/]' \| \
18316 X"$ac_file" : 'X\(//\)$' \| \
18317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18318 $as_echo X"$ac_file" |
18319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18323 /^X\(\/\/\)[^/].*/{
18336 as_dir="$ac_dir"; as_fn_mkdir_p
18340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18342 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18343 # A ".." for each directory in $ac_dir_suffix.
18344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18345 case $ac_top_builddir_sub in
18346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18350 ac_abs_top_builddir=$ac_pwd
18351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18352 # for backward compatibility:
18353 ac_top_builddir=$ac_top_build_prefix
18356 .) # We are building in place.
18358 ac_top_srcdir=$ac_top_builddir_sub
18359 ac_abs_top_srcdir=$ac_pwd ;;
18360 [\\/]* | ?:[\\/]* ) # Absolute name.
18361 ac_srcdir=$srcdir$ac_dir_suffix;
18362 ac_top_srcdir=$srcdir
18363 ac_abs_top_srcdir=$srcdir ;;
18364 *) # Relative name.
18365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18366 ac_top_srcdir=$ac_top_build_prefix$srcdir
18367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18379 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18380 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18382 ac_MKDIR_P=$MKDIR_P
18384 [\\/$]* | ?:[\\/]* ) ;;
18385 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18390 # If the template does not know about datarootdir, expand it.
18391 # FIXME: This hack should be removed a few years after 2.60.
18392 ac_datarootdir_hack=; ac_datarootdir_seen=
18403 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18404 *datarootdir*) ac_datarootdir_seen=yes;;
18405 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18407 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18410 ac_datarootdir_hack='
18411 s&@datadir@&$datadir&g
18412 s&@docdir@&$docdir&g
18413 s&@infodir@&$infodir&g
18414 s&@localedir@&$localedir&g
18415 s&@mandir@&$mandir&g
18416 s&\\\${datarootdir}&$datarootdir&g' ;;
18420 # Neutralize VPATH when `$srcdir' = `.'.
18421 # Shell code in configure.ac might set extrasub.
18422 # FIXME: do we really want to maintain this feature?
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 ac_sed_extra="$ac_vpsub
18427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18430 s|@configure_input@|$ac_sed_conf_input|;t t
18431 s&@top_builddir@&$ac_top_builddir_sub&;t t
18432 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18433 s&@srcdir@&$ac_srcdir&;t t
18434 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18435 s&@top_srcdir@&$ac_top_srcdir&;t t
18436 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18437 s&@builddir@&$ac_builddir&;t t
18438 s&@abs_builddir@&$ac_abs_builddir&;t t
18439 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18440 s&@INSTALL@&$ac_INSTALL&;t t
18441 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18442 $ac_datarootdir_hack
18444 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18445 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18447 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18448 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18449 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18450 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18452 which seems to be undefined. Please make sure it is defined" >&5
18453 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18454 which seems to be undefined. Please make sure it is defined" >&2;}
18456 rm -f "$ac_tmp/stdin"
18458 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18459 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18467 if test x"$ac_file" != x-; then
18469 $as_echo "/* $configure_input */" \
18470 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18471 } >"$ac_tmp/config.h" \
18472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18473 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18475 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18478 mv "$ac_tmp/config.h" "$ac_file" \
18479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18482 $as_echo "/* $configure_input */" \
18483 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18484 || as_fn_error $? "could not create -" "$LINENO" 5
18486 # Compute "$ac_file"'s index in $config_headers.
18489 for _am_header in $config_headers :; do
18490 case $_am_header in
18491 $_am_arg | $_am_arg:* )
18494 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18497 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18498 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499 X"$_am_arg" : 'X\(//\)[^/]' \| \
18500 X"$_am_arg" : 'X\(//\)$' \| \
18501 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X"$_am_arg" |
18503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18507 /^X\(\/\/\)[^/].*/{
18519 s/.*/./; q'`/stamp-h$_am_stamp_count
18522 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18523 $as_echo "$as_me: executing $ac_file commands" >&6;}
18528 case $ac_file$ac_mode in
18529 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18530 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18531 # are listed without --file. Let's play safe and only enable the eval
18532 # if we detect the quoting.
18533 case $CONFIG_FILES in
18534 *\'*) eval set x "$CONFIG_FILES" ;;
18535 *) set x $CONFIG_FILES ;;
18540 # Strip MF so we end up with the name of the file.
18541 mf=`echo "$mf" | sed -e 's/:.*$//'`
18542 # Check whether this is an Automake generated Makefile or not.
18543 # We used to match only the files named 'Makefile.in', but
18544 # some people rename them; so instead we look at the file content.
18545 # Grep'ing the first line is not enough: some people post-process
18546 # each Makefile.in and add a new line on top of each file to say so.
18547 # Grep'ing the whole file is not good either: AIX grep has a line
18548 # limit of 2048, but all sed's we know have understand at least 4000.
18549 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18550 dirpart=`$as_dirname -- "$mf" ||
18551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18552 X"$mf" : 'X\(//\)[^/]' \| \
18553 X"$mf" : 'X\(//\)$' \| \
18554 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18560 /^X\(\/\/\)[^/].*/{
18576 # Extract the definition of DEPDIR, am__include, and am__quote
18577 # from the Makefile without running 'make'.
18578 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18579 test -z "$DEPDIR" && continue
18580 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18581 test -z "am__include" && continue
18582 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18583 # Find all dependency output files, they are included files with
18584 # $(DEPDIR) in their names. We invoke sed twice because it is the
18585 # simplest approach to changing $(DEPDIR) to its actual value in the
18587 for file in `sed -n "
18588 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18589 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18590 # Make sure the directory exists.
18591 test -f "$dirpart/$file" && continue
18592 fdir=`$as_dirname -- "$file" ||
18593 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18594 X"$file" : 'X\(//\)[^/]' \| \
18595 X"$file" : 'X\(//\)$' \| \
18596 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18597 $as_echo X"$file" |
18598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18602 /^X\(\/\/\)[^/].*/{
18615 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18616 # echo "creating $dirpart/$file"
18617 echo '# dummy' > "$dirpart/$file"
18624 # See if we are running on zsh, and set the options which allow our
18625 # commands through without removal of \ escapes.
18626 if test -n "${ZSH_VERSION+set}" ; then
18627 setopt NO_GLOB_SUBST
18630 cfgfile="${ofile}T"
18631 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18634 cat <<_LT_EOF >> "$cfgfile"
18637 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18638 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18640 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18642 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18643 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18645 # Written by Gordon Matzigkeit, 1996
18647 # This file is part of GNU Libtool.
18649 # GNU Libtool is free software; you can redistribute it and/or
18650 # modify it under the terms of the GNU General Public License as
18651 # published by the Free Software Foundation; either version 2 of
18652 # the License, or (at your option) any later version.
18654 # As a special exception to the GNU General Public License,
18655 # if you distribute this file as part of a program or library that
18656 # is built using GNU Libtool, you may include this file under the
18657 # same distribution terms that you use for the rest of that program.
18659 # GNU Libtool is distributed in the hope that it will be useful,
18660 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18661 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18662 # GNU General Public License for more details.
18664 # You should have received a copy of the GNU General Public License
18665 # along with GNU Libtool; see the file COPYING. If not, a copy
18666 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18667 # obtained by writing to the Free Software Foundation, Inc.,
18668 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18671 # The names of the tagged configurations supported by this script.
18672 available_tags="CXX "
18674 # ### BEGIN LIBTOOL CONFIG
18676 # Which release of libtool.m4 was used?
18677 macro_version=$macro_version
18678 macro_revision=$macro_revision
18680 # Whether or not to build shared libraries.
18681 build_libtool_libs=$enable_shared
18683 # Whether or not to build static libraries.
18684 build_old_libs=$enable_static
18686 # What type of objects to build.
18689 # Whether or not to optimize for fast installation.
18690 fast_install=$enable_fast_install
18692 # Shell to use when invoking shell scripts.
18695 # An echo program that protects backslashes.
18698 # The PATH separator for the build system.
18699 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18702 host_alias=$host_alias
18706 # The build system.
18707 build_alias=$build_alias
18711 # A sed program that does not truncate output.
18714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18715 Xsed="\$SED -e 1s/^X//"
18717 # A grep program that handles long lines.
18723 # A literal string matcher.
18726 # A BSD- or MS-compatible name lister.
18729 # Whether we need soft or hard links.
18732 # What is the maximum length of a command?
18733 max_cmd_len=$max_cmd_len
18735 # Object file suffix (normally "o").
18738 # Executable file suffix (normally "").
18741 # whether the shell understands "unset".
18744 # turn spaces into newlines.
18747 # turn newlines into spaces.
18750 # convert \$build file names to \$host format.
18751 to_host_file_cmd=$lt_cv_to_host_file_cmd
18753 # convert \$build files to toolchain format.
18754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18756 # An object symbol dumper.
18757 OBJDUMP=$lt_OBJDUMP
18759 # Method to check whether dependent libraries are shared objects.
18760 deplibs_check_method=$lt_deplibs_check_method
18762 # Command to use when deplibs_check_method = "file_magic".
18763 file_magic_cmd=$lt_file_magic_cmd
18765 # How to find potential files when deplibs_check_method = "file_magic".
18766 file_magic_glob=$lt_file_magic_glob
18768 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18769 want_nocaseglob=$lt_want_nocaseglob
18771 # DLL creation program.
18772 DLLTOOL=$lt_DLLTOOL
18774 # Command to associate shared and link libraries.
18775 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18780 # Flags to create an archive.
18781 AR_FLAGS=$lt_AR_FLAGS
18783 # How to feed a file listing to the archiver.
18784 archiver_list_spec=$lt_archiver_list_spec
18786 # A symbol stripping program.
18789 # Commands used to install an old-style archive.
18791 old_postinstall_cmds=$lt_old_postinstall_cmds
18792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18794 # Whether to use a lock for old archive extraction.
18795 lock_old_archive_extraction=$lock_old_archive_extraction
18800 # LTCC compiler flags.
18801 LTCFLAGS=$lt_CFLAGS
18803 # Take the output of nm and produce a listing of raw symbols and C names.
18804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18806 # Transform the output of nm in a proper C declaration.
18807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18809 # Transform the output of nm in a C name address pair.
18810 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18812 # Transform the output of nm in a C name address pair when lib prefix is needed.
18813 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18815 # Specify filename containing input files for \$NM.
18816 nm_file_list_spec=$lt_nm_file_list_spec
18818 # The root where to search for dependent libraries,and in which our libraries should be installed.
18819 lt_sysroot=$lt_sysroot
18821 # The name of the directory that contains temporary libtool files.
18824 # Used to examine libraries when file_magic_cmd begins with "file".
18825 MAGIC_CMD=$MAGIC_CMD
18827 # Must we lock files when doing compilation?
18828 need_locks=$lt_need_locks
18831 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18833 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18834 DSYMUTIL=$lt_DSYMUTIL
18836 # Tool to change global to local symbols on Mac OS X.
18839 # Tool to manipulate fat objects and archives on Mac OS X.
18842 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18845 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18846 OTOOL64=$lt_OTOOL64
18848 # Old archive suffix (normally "a").
18851 # Shared library suffix (normally ".so").
18852 shrext_cmds=$lt_shrext_cmds
18854 # The commands to extract the exported symbol list from a shared archive.
18855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18857 # Variables whose values should be saved in libtool wrapper scripts and
18858 # restored at link time.
18859 variables_saved_for_relink=$lt_variables_saved_for_relink
18861 # Do we need the "lib" prefix for modules?
18862 need_lib_prefix=$need_lib_prefix
18864 # Do we need a version for libraries?
18865 need_version=$need_version
18867 # Library versioning type.
18868 version_type=$version_type
18870 # Shared library runtime path variable.
18871 runpath_var=$runpath_var
18873 # Shared library path variable.
18874 shlibpath_var=$shlibpath_var
18876 # Is shlibpath searched before the hard-coded library search path?
18877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18879 # Format of library name prefix.
18880 libname_spec=$lt_libname_spec
18882 # List of archive names. First name is the real one, the rest are links.
18883 # The last name is the one that the linker finds with -lNAME
18884 library_names_spec=$lt_library_names_spec
18886 # The coded name of the library, if different from the real name.
18887 soname_spec=$lt_soname_spec
18889 # Permission mode override for installation of shared libraries.
18890 install_override_mode=$lt_install_override_mode
18892 # Command to use after installation of a shared archive.
18893 postinstall_cmds=$lt_postinstall_cmds
18895 # Command to use after uninstallation of a shared archive.
18896 postuninstall_cmds=$lt_postuninstall_cmds
18898 # Commands used to finish a libtool library installation in a directory.
18899 finish_cmds=$lt_finish_cmds
18901 # As "finish_cmds", except a single script fragment to be evaled but
18903 finish_eval=$lt_finish_eval
18905 # Whether we should hardcode library paths into libraries.
18906 hardcode_into_libs=$hardcode_into_libs
18908 # Compile-time system search path for libraries.
18909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18911 # Run-time system search path for libraries.
18912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18914 # Whether dlopen is supported.
18915 dlopen_support=$enable_dlopen
18917 # Whether dlopen of programs is supported.
18918 dlopen_self=$enable_dlopen_self
18920 # Whether dlopen of statically linked programs is supported.
18921 dlopen_self_static=$enable_dlopen_self_static
18923 # Commands to strip libraries.
18924 old_striplib=$lt_old_striplib
18925 striplib=$lt_striplib
18928 # The linker used to build libraries.
18931 # How to create reloadable object files.
18932 reload_flag=$lt_reload_flag
18933 reload_cmds=$lt_reload_cmds
18935 # Commands used to build an old-style archive.
18936 old_archive_cmds=$lt_old_archive_cmds
18938 # A language specific compiler.
18941 # Is the compiler the GNU compiler?
18944 # Compiler flag to turn off builtin functions.
18945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18947 # Additional compiler flags for building library objects.
18948 pic_flag=$lt_lt_prog_compiler_pic
18950 # How to pass a linker flag through the compiler.
18951 wl=$lt_lt_prog_compiler_wl
18953 # Compiler flag to prevent dynamic linking.
18954 link_static_flag=$lt_lt_prog_compiler_static
18956 # Does compiler simultaneously support -c and -o options?
18957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18959 # Whether or not to add -lc for building shared libraries.
18960 build_libtool_need_lc=$archive_cmds_need_lc
18962 # Whether or not to disallow shared libs when runtime libs are static.
18963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18965 # Compiler flag to allow reflexive dlopens.
18966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18968 # Compiler flag to generate shared objects directly from archives.
18969 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18971 # Whether the compiler copes with passing no objects directly.
18972 compiler_needs_object=$lt_compiler_needs_object
18974 # Create an old-style archive from a shared archive.
18975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18977 # Create a temporary old-style archive to link instead of a shared archive.
18978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18980 # Commands used to build a shared archive.
18981 archive_cmds=$lt_archive_cmds
18982 archive_expsym_cmds=$lt_archive_expsym_cmds
18984 # Commands used to build a loadable module if different from building
18985 # a shared archive.
18986 module_cmds=$lt_module_cmds
18987 module_expsym_cmds=$lt_module_expsym_cmds
18989 # Whether we are building with GNU ld or not.
18990 with_gnu_ld=$lt_with_gnu_ld
18992 # Flag that allows shared libraries with undefined symbols to be built.
18993 allow_undefined_flag=$lt_allow_undefined_flag
18995 # Flag that enforces no undefined symbols.
18996 no_undefined_flag=$lt_no_undefined_flag
18998 # Flag to hardcode \$libdir into a binary during linking.
18999 # This must work even if \$libdir does not exist
19000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19002 # Whether we need a single "-rpath" flag with a separated argument.
19003 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19005 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19006 # DIR into the resulting binary.
19007 hardcode_direct=$hardcode_direct
19009 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19010 # DIR into the resulting binary and the resulting library dependency is
19011 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19012 # library is relocated.
19013 hardcode_direct_absolute=$hardcode_direct_absolute
19015 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19016 # into the resulting binary.
19017 hardcode_minus_L=$hardcode_minus_L
19019 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19020 # into the resulting binary.
19021 hardcode_shlibpath_var=$hardcode_shlibpath_var
19023 # Set to "yes" if building a shared library automatically hardcodes DIR
19024 # into the library and all subsequent libraries and executables linked
19026 hardcode_automatic=$hardcode_automatic
19028 # Set to yes if linker adds runtime paths of dependent libraries
19029 # to runtime path list.
19030 inherit_rpath=$inherit_rpath
19032 # Whether libtool must link a program against all its dependency libraries.
19033 link_all_deplibs=$link_all_deplibs
19035 # Set to "yes" if exported symbols are required.
19036 always_export_symbols=$always_export_symbols
19038 # The commands to list exported symbols.
19039 export_symbols_cmds=$lt_export_symbols_cmds
19041 # Symbols that should not be listed in the preloaded symbols.
19042 exclude_expsyms=$lt_exclude_expsyms
19044 # Symbols that must always be exported.
19045 include_expsyms=$lt_include_expsyms
19047 # Commands necessary for linking programs (against libraries) with templates.
19048 prelink_cmds=$lt_prelink_cmds
19050 # Commands necessary for finishing linking programs.
19051 postlink_cmds=$lt_postlink_cmds
19053 # Specify filename containing input files.
19054 file_list_spec=$lt_file_list_spec
19056 # How to hardcode a shared library path into an executable.
19057 hardcode_action=$hardcode_action
19059 # The directories searched by this compiler when creating a shared library.
19060 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19062 # Dependencies to place before and after the objects being linked to
19063 # create a shared library.
19064 predep_objects=$lt_predep_objects
19065 postdep_objects=$lt_postdep_objects
19066 predeps=$lt_predeps
19067 postdeps=$lt_postdeps
19069 # The library search path used internally by the compiler when linking
19070 # a shared library.
19071 compiler_lib_search_path=$lt_compiler_lib_search_path
19073 # ### END LIBTOOL CONFIG
19079 cat <<\_LT_EOF >> "$cfgfile"
19080 # AIX sometimes has problems with the GCC collect2 program. For some
19081 # reason, if we set the COLLECT_NAMES environment variable, the problems
19082 # vanish in a puff of smoke.
19083 if test "X${COLLECT_NAMES+set}" != Xset; then
19085 export COLLECT_NAMES
19092 ltmain="$ac_aux_dir/ltmain.sh"
19095 # We use sed instead of cat because bash on DJGPP gets confused if
19096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19097 # text mode, it properly converts lines to CR/LF. This bash problem
19098 # is reportedly fixed, but why not run on old versions too?
19099 sed '$q' "$ltmain" >> "$cfgfile" \
19100 || (rm -f "$cfgfile"; exit 1)
19102 if test x"$xsi_shell" = xyes; then
19103 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19107 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19108 \ * ) func_dirname_result="${3}" ;;\
19110 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19111 && mv -f "$cfgfile.tmp" "$cfgfile" \
19112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19113 test 0 -eq $? || _lt_function_replace_fail=:
19116 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19119 \ func_basename_result="${1##*/}"\
19120 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19121 && mv -f "$cfgfile.tmp" "$cfgfile" \
19122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19123 test 0 -eq $? || _lt_function_replace_fail=:
19126 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19127 func_dirname_and_basename ()\
19130 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19131 \ * ) func_dirname_result="${3}" ;;\
19133 \ func_basename_result="${1##*/}"\
19134 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19135 && mv -f "$cfgfile.tmp" "$cfgfile" \
19136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19137 test 0 -eq $? || _lt_function_replace_fail=:
19140 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19143 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19144 \ # positional parameters, so assign one to ordinary parameter first.\
19145 \ func_stripname_result=${3}\
19146 \ func_stripname_result=${func_stripname_result#"${1}"}\
19147 \ func_stripname_result=${func_stripname_result%"${2}"}\
19148 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19149 && mv -f "$cfgfile.tmp" "$cfgfile" \
19150 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19151 test 0 -eq $? || _lt_function_replace_fail=:
19154 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19155 func_split_long_opt ()\
19157 \ func_split_long_opt_name=${1%%=*}\
19158 \ func_split_long_opt_arg=${1#*=}\
19159 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19160 && mv -f "$cfgfile.tmp" "$cfgfile" \
19161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19162 test 0 -eq $? || _lt_function_replace_fail=:
19165 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19166 func_split_short_opt ()\
19168 \ func_split_short_opt_arg=${1#??}\
19169 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19170 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19171 && mv -f "$cfgfile.tmp" "$cfgfile" \
19172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19173 test 0 -eq $? || _lt_function_replace_fail=:
19176 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19180 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19181 \ *) func_lo2o_result=${1} ;;\
19183 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19184 && mv -f "$cfgfile.tmp" "$cfgfile" \
19185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19186 test 0 -eq $? || _lt_function_replace_fail=:
19189 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19192 func_xform_result=${1%.*}.lo\
19193 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19194 && mv -f "$cfgfile.tmp" "$cfgfile" \
19195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19196 test 0 -eq $? || _lt_function_replace_fail=:
19199 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19202 func_arith_result=$(( $* ))\
19203 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19204 && mv -f "$cfgfile.tmp" "$cfgfile" \
19205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19206 test 0 -eq $? || _lt_function_replace_fail=:
19209 sed -e '/^func_len ()$/,/^} # func_len /c\
19212 func_len_result=${#1}\
19213 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19214 && mv -f "$cfgfile.tmp" "$cfgfile" \
19215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19216 test 0 -eq $? || _lt_function_replace_fail=:
19220 if test x"$lt_shell_append" = xyes; then
19221 sed -e '/^func_append ()$/,/^} # func_append /c\
19224 eval "${1}+=\\${2}"\
19225 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19226 && mv -f "$cfgfile.tmp" "$cfgfile" \
19227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19228 test 0 -eq $? || _lt_function_replace_fail=:
19231 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19232 func_append_quoted ()\
19234 \ func_quote_for_eval "${2}"\
19235 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19236 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19237 && mv -f "$cfgfile.tmp" "$cfgfile" \
19238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19239 test 0 -eq $? || _lt_function_replace_fail=:
19242 # Save a `func_append' function call where possible by direct use of '+='
19243 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19244 && mv -f "$cfgfile.tmp" "$cfgfile" \
19245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19246 test 0 -eq $? || _lt_function_replace_fail=:
19248 # Save a `func_append' function call even when '+=' is not available
19249 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19250 && mv -f "$cfgfile.tmp" "$cfgfile" \
19251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19252 test 0 -eq $? || _lt_function_replace_fail=:
19255 if test x"$_lt_function_replace_fail" = x":"; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19257 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19261 mv -f "$cfgfile" "$ofile" ||
19262 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19266 cat <<_LT_EOF >> "$ofile"
19268 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19270 # The linker used to build libraries.
19273 # How to create reloadable object files.
19274 reload_flag=$lt_reload_flag_CXX
19275 reload_cmds=$lt_reload_cmds_CXX
19277 # Commands used to build an old-style archive.
19278 old_archive_cmds=$lt_old_archive_cmds_CXX
19280 # A language specific compiler.
19281 CC=$lt_compiler_CXX
19283 # Is the compiler the GNU compiler?
19286 # Compiler flag to turn off builtin functions.
19287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19289 # Additional compiler flags for building library objects.
19290 pic_flag=$lt_lt_prog_compiler_pic_CXX
19292 # How to pass a linker flag through the compiler.
19293 wl=$lt_lt_prog_compiler_wl_CXX
19295 # Compiler flag to prevent dynamic linking.
19296 link_static_flag=$lt_lt_prog_compiler_static_CXX
19298 # Does compiler simultaneously support -c and -o options?
19299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19301 # Whether or not to add -lc for building shared libraries.
19302 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19304 # Whether or not to disallow shared libs when runtime libs are static.
19305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19307 # Compiler flag to allow reflexive dlopens.
19308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19310 # Compiler flag to generate shared objects directly from archives.
19311 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19313 # Whether the compiler copes with passing no objects directly.
19314 compiler_needs_object=$lt_compiler_needs_object_CXX
19316 # Create an old-style archive from a shared archive.
19317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19319 # Create a temporary old-style archive to link instead of a shared archive.
19320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19322 # Commands used to build a shared archive.
19323 archive_cmds=$lt_archive_cmds_CXX
19324 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19326 # Commands used to build a loadable module if different from building
19327 # a shared archive.
19328 module_cmds=$lt_module_cmds_CXX
19329 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19331 # Whether we are building with GNU ld or not.
19332 with_gnu_ld=$lt_with_gnu_ld_CXX
19334 # Flag that allows shared libraries with undefined symbols to be built.
19335 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19337 # Flag that enforces no undefined symbols.
19338 no_undefined_flag=$lt_no_undefined_flag_CXX
19340 # Flag to hardcode \$libdir into a binary during linking.
19341 # This must work even if \$libdir does not exist
19342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19344 # Whether we need a single "-rpath" flag with a separated argument.
19345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19348 # DIR into the resulting binary.
19349 hardcode_direct=$hardcode_direct_CXX
19351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19352 # DIR into the resulting binary and the resulting library dependency is
19353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19354 # library is relocated.
19355 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19358 # into the resulting binary.
19359 hardcode_minus_L=$hardcode_minus_L_CXX
19361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19362 # into the resulting binary.
19363 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19365 # Set to "yes" if building a shared library automatically hardcodes DIR
19366 # into the library and all subsequent libraries and executables linked
19368 hardcode_automatic=$hardcode_automatic_CXX
19370 # Set to yes if linker adds runtime paths of dependent libraries
19371 # to runtime path list.
19372 inherit_rpath=$inherit_rpath_CXX
19374 # Whether libtool must link a program against all its dependency libraries.
19375 link_all_deplibs=$link_all_deplibs_CXX
19377 # Set to "yes" if exported symbols are required.
19378 always_export_symbols=$always_export_symbols_CXX
19380 # The commands to list exported symbols.
19381 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19383 # Symbols that should not be listed in the preloaded symbols.
19384 exclude_expsyms=$lt_exclude_expsyms_CXX
19386 # Symbols that must always be exported.
19387 include_expsyms=$lt_include_expsyms_CXX
19389 # Commands necessary for linking programs (against libraries) with templates.
19390 prelink_cmds=$lt_prelink_cmds_CXX
19392 # Commands necessary for finishing linking programs.
19393 postlink_cmds=$lt_postlink_cmds_CXX
19395 # Specify filename containing input files.
19396 file_list_spec=$lt_file_list_spec_CXX
19398 # How to hardcode a shared library path into an executable.
19399 hardcode_action=$hardcode_action_CXX
19401 # The directories searched by this compiler when creating a shared library.
19402 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19404 # Dependencies to place before and after the objects being linked to
19405 # create a shared library.
19406 predep_objects=$lt_predep_objects_CXX
19407 postdep_objects=$lt_postdep_objects_CXX
19408 predeps=$lt_predeps_CXX
19409 postdeps=$lt_postdeps_CXX
19411 # The library search path used internally by the compiler when linking
19412 # a shared library.
19413 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19415 # ### END LIBTOOL TAG CONFIG: CXX
19426 ac_clean_files=$ac_clean_files_save
19428 test $ac_write_fail = 0 ||
19429 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19432 # configure is writing to config.log, and then calls config.status.
19433 # config.status does its own redirection, appending to config.log.
19434 # Unfortunately, on DOS this fails, as config.log is still kept open
19435 # by configure, so config.status won't be able to write to it; its
19436 # output is simply discarded. So we exec the FD to /dev/null,
19437 # effectively closing config.log, so it can be properly (re)opened and
19438 # appended to by config.status. When coming back to configure, we
19439 # need to make the FD available again.
19440 if test "$no_create" != yes; then
19442 ac_config_status_args=
19443 test "$silent" = yes &&
19444 ac_config_status_args="$ac_config_status_args --quiet"
19446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19449 # would make configure fail if this is the last instruction.
19450 $ac_cs_success || as_fn_exit 1
19452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}