2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for spice 0.12.4.
5 # Report bugs to <spice-devel@lists.freedesktop.org>.
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: spice-devel@lists.freedesktop.org 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.
592 PACKAGE_TARNAME='spice'
593 PACKAGE_VERSION='0.12.4'
594 PACKAGE_STRING='spice 0.12.4'
595 PACKAGE_BUGREPORT='spice-devel@lists.freedesktop.org'
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 enable_option_checking=no
635 ac_subst_vars='am__EXEEXT_FALSE
643 SPICEC_STATIC_LINKAGE_BSTATIC
644 SPICE_NONPKGCONFIG_LIBS
645 SPICE_NONPKGCONFIG_CFLAGS
647 HAVE_LD_VERSION_SCRIPT_FALSE
648 HAVE_LD_VERSION_SCRIPT_TRUE
649 VISIBILITY_HIDDEN_CFLAGS
703 SUPPORT_AUTOMATED_TESTS_FALSE
704 SUPPORT_AUTOMATED_TESTS_TRUE
707 SUPPORT_SMARTCARD_FALSE
708 SUPPORT_SMARTCARD_TRUE
765 MAINTAINER_MODE_FALSE
785 INSTALL_STRIP_PROGRAM
836 program_transform_name
849 enable_option_checking
850 enable_dependency_tracking
851 enable_maintainer_mode
864 enable_automated_tests
866 enable_static_linkage
871 ac_precious_vars='build_alias
915 ac_subdirs_all='spice-common'
917 # Initialize some variables set by options.
919 ac_init_version=false
920 ac_unrecognized_opts=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
931 program_transform_name=s,x,x,
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
971 eval $ac_prev=\$ac_option
977 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 # Accept the important Cygnus configure options, so we can diagnose typos.
984 case $ac_dashdash$ac_option in
988 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 -build | --build | --buil | --bui | --bu)
994 ac_prev=build_alias ;;
995 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996 build_alias=$ac_optarg ;;
998 -cache-file | --cache-file | --cache-fil | --cache-fi \
999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000 ac_prev=cache_file ;;
1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003 cache_file=$ac_optarg ;;
1005 --config-cache | -C)
1006 cache_file=config.cache ;;
1008 -datadir | --datadir | --datadi | --datad)
1010 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011 datadir=$ac_optarg ;;
1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014 | --dataroo | --dataro | --datar)
1015 ac_prev=datarootdir ;;
1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018 datarootdir=$ac_optarg ;;
1020 -disable-* | --disable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1034 eval enable_$ac_useropt=no ;;
1036 -docdir | --docdir | --docdi | --doc | --do)
1038 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039 docdir=$ac_optarg ;;
1041 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044 dvidir=$ac_optarg ;;
1046 -enable-* | --enable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1224 -site=* | --site=* | --sit=*)
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=\$ac_optarg ;;
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378 test "$silent" = yes && exec 6>/dev/null
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1421 ac_srcdir_defaulted=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1455 \`configure' configures spice 0.12.4 to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/spice]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of spice 0.12.4:";;
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-dependency-tracking
1534 do not reject slow dependency extractors
1535 --disable-dependency-tracking
1536 speeds up one-time build
1537 --enable-maintainer-mode
1538 enable make rules and dependencies not useful (and
1539 sometimes confusing) to the casual installer
1540 --enable-shared[=PKGS] build shared libraries [default=yes]
1541 --enable-static[=PKGS] build static libraries [default=yes]
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
1544 --disable-libtool-lock avoid locking (might break parallel builds)
1545 --enable-tunnel Enable network redirection
1546 --enable-gui Enable start dialog with CEGUI
1547 --enable-opengl Enable opengl requirement / support (not recommended)
1548 --enable-smartcard Enable network redirection
1549 --enable-client Enable spice client
1550 --enable-automated-tests Enable automated tests using snappy (part of spice--gtk)
1551 --disable-xinerama disable Xinerama library [default=no]
1552 --enable-static-linkage will generate spice client binary with static linkage to external libraries
1553 --enable-werror Use -Werror (if supported)
1554 --enable-silent-rules less verbose build output (undo: "make V=1")
1555 --disable-silent-rules verbose build output (undo: "make V=0")
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1560 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-sysroot=DIR Search for dependent libraries within DIR
1564 (or the compiler's sysroot if not specified).
1565 --with-sasl use cyrus SASL for authentication [default=check]
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1578 CXXCPP C++ preprocessor
1579 PKG_CONFIG path to pkg-config utility
1581 directories to add to pkg-config's search path
1583 path overriding pkg-config's built-in search path
1585 C compiler flags for CEGUI06, overriding pkg-config
1587 linker flags for CEGUI06, overriding pkg-config
1589 C compiler flags for CEGUI, overriding pkg-config
1590 CEGUI_LIBS linker flags for CEGUI, overriding pkg-config
1592 C compiler flags for SLIRP, overriding pkg-config
1593 SLIRP_LIBS linker flags for SLIRP, overriding pkg-config
1595 C compiler flags for CAC_CARD, overriding pkg-config
1597 linker flags for CAC_CARD, overriding pkg-config
1599 C compiler flags for GLIB2, overriding pkg-config
1600 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1602 C compiler flags for PIXMAN, overriding pkg-config
1603 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
1605 C compiler flags for CELT051, overriding pkg-config
1607 linker flags for CELT051, overriding pkg-config
1608 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1609 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1610 SSL_CFLAGS C compiler flags for SSL, overriding pkg-config
1611 SSL_LIBS linker flags for SSL, overriding pkg-config
1613 C compiler flags for XRANDR, overriding pkg-config
1614 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1616 C compiler flags for XFIXES, overriding pkg-config
1617 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1619 C compiler flags for MISC_X, overriding pkg-config
1620 MISC_X_LIBS linker flags for MISC_X, overriding pkg-config
1622 C compiler flags for XRANDR12, overriding pkg-config
1624 linker flags for XRANDR12, overriding pkg-config
1626 C compiler flags for XINERAMA, overriding pkg-config
1628 linker flags for XINERAMA, overriding pkg-config
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1633 Report bugs to <spice-devel@lists.freedesktop.org>.
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1663 .) # We are building in place.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1696 spice configure 0.12.4
1697 generated by GNU Autoconf 2.69
1699 Copyright (C) 2012 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_compile
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
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
1784 } # ac_fn_cxx_try_compile
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
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>conftest.err
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_header_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } > conftest.i && {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1900 # ac_fn_c_try_run LINENO
1901 # ----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1903 # that executables *can* be run.
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_link"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_link") 2>&5
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1918 { { case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_try") 2>&5
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; }; }; then :
1930 $as_echo "$as_me: program exited with status $ac_status" >&5
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1934 ac_retval=$ac_status
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1942 # ac_fn_c_check_func LINENO FUNC VAR
1943 # ----------------------------------
1944 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1945 ac_fn_c_check_func ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1957 #define $2 innocuous_$2
1959 /* System header to define __stub macros and hopefully few prototypes,
1960 which can conflict with char $2 (); below.
1961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1962 <limits.h> exists even on freestanding compilers. */
1965 # include <limits.h>
1967 # include <assert.h>
1972 /* Override any GCC internal prototype to avoid an error.
1973 Use char because int might match the return type of a GCC
1974 builtin and then its argument prototype would still apply. */
1979 /* The GNU C library defines this for functions which it implements
1980 to always fail with ENOSYS. Some functions are actually named
1981 something starting with __ and the normal name is an alias. */
1982 #if defined __stub_$2 || defined __stub___$2
1994 if ac_fn_c_try_link "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext \
2000 conftest$ac_exeext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 } # ac_fn_c_check_func
2009 # ac_fn_cxx_try_cpp LINENO
2010 # ------------------------
2011 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2012 ac_fn_cxx_try_cpp ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if { { ac_try="$ac_cpp conftest.$ac_ext"
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } > conftest.i && {
2031 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2032 test ! -s conftest.err
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2044 } # ac_fn_cxx_try_cpp
2046 # ac_fn_cxx_try_link LINENO
2047 # -------------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_link ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 rm -f conftest.$ac_objext conftest$ac_exeext
2053 if { { ac_try="$ac_link"
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_link") 2>conftest.err
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && {
2069 test -z "$ac_cxx_werror_flag" ||
2070 test ! -s conftest.err
2071 } && test -s conftest$ac_exeext && {
2072 test "$cross_compiling" = yes ||
2073 test -x conftest$ac_exeext
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2082 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2083 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2084 # interfere with the next link command; also delete a directory that is
2085 # left behind by Apple's compiler. We do this before executing the actions.
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 as_fn_set_status $ac_retval
2090 } # ac_fn_cxx_try_link
2092 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095 # the include files in INCLUDES and setting the cache variable VAR
2097 ac_fn_c_check_header_mongrel ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if eval \${$3+:} false; then :
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2110 # Is the header compilable?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112 $as_echo_n "checking $2 usability... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_header_compiler=yes
2121 ac_header_compiler=no
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125 $as_echo "$ac_header_compiler" >&6; }
2127 # Is the header present?
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129 $as_echo_n "checking $2 presence... " >&6; }
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 if ac_fn_c_try_cpp "$LINENO"; then :
2135 ac_header_preproc=yes
2137 ac_header_preproc=no
2139 rm -f conftest.err conftest.i conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141 $as_echo "$ac_header_preproc" >&6; }
2143 # So? What about this header?
2144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2155 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2159 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 ( $as_echo "## ------------------------------------------------ ##
2163 ## Report this to spice-devel@lists.freedesktop.org ##
2164 ## ------------------------------------------------ ##"
2165 ) | sed "s/^/$as_me: WARNING: /" >&2
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2173 eval "$3=\$ac_header_compiler"
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 } # ac_fn_c_check_header_mongrel
2183 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2184 # -------------------------------------------
2185 # Tests whether TYPE exists after having included INCLUDES, setting cache
2186 # variable VAR accordingly.
2187 ac_fn_c_check_type ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2221 if ac_fn_c_try_compile "$LINENO"; then :
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_type
2236 cat >config.log <<_ACEOF
2237 This file contains any messages produced by compilers while
2238 running configure, to aid debugging if configure makes a mistake.
2240 It was created by spice $as_me 0.12.4, which was
2241 generated by GNU Autoconf 2.69. Invocation command line was
2253 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2259 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2262 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2263 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2264 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2266 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2267 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2268 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 test -z "$as_dir" && as_dir=.
2277 $as_echo "PATH: $as_dir"
2293 # Keep a trace of the command line.
2294 # Strip out --no-create and --no-recursion so they do not pile up.
2295 # Strip out --silent because we don't want to record it for future runs.
2296 # Also quote any args containing shell meta-characters.
2297 # Make two passes to allow for proper duplicate-argument suppression.
2301 ac_must_keep_next=false
2307 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2309 | -silent | --silent | --silen | --sile | --sil)
2312 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2317 as_fn_append ac_configure_args1 " '$ac_arg'"
2318 if test $ac_must_keep_next = true; then
2319 ac_must_keep_next=false # Got value, back to normal.
2322 *=* | --config-cache | -C | -disable-* | --disable-* \
2323 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2324 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2325 | -with-* | --with-* | -without-* | --without-* | --x)
2326 case "$ac_configure_args0 " in
2327 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2330 -* ) ac_must_keep_next=true ;;
2333 as_fn_append ac_configure_args " '$ac_arg'"
2338 { ac_configure_args0=; unset ac_configure_args0;}
2339 { ac_configure_args1=; unset ac_configure_args1;}
2341 # When interrupted or exit'd, cleanup temporary files, and complete
2342 # config.log. We remove comments because anyway the quotes in there
2343 # would cause problems or look ugly.
2344 # WARNING: Use '\'' to represent an apostrophe within the trap.
2345 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346 trap 'exit_status=$?
2347 # Save into config.log some information that might help in debugging.
2351 $as_echo "## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##"
2355 # The following way of writing the cache mishandles newlines in values,
2357 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2358 eval ac_val=\$$ac_var
2362 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2366 _ | IFS | as_nl) ;; #(
2367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2368 *) { eval $ac_var=; unset $ac_var;} ;;
2373 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2374 *${as_nl}ac_space=\ *)
2376 "s/'\''/'\''\\\\'\'''\''/g;
2377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2387 $as_echo "## ----------------- ##
2388 ## Output variables. ##
2389 ## ----------------- ##"
2391 for ac_var in $ac_subst_vars
2393 eval ac_val=\$$ac_var
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 $as_echo "$ac_var='\''$ac_val'\''"
2401 if test -n "$ac_subst_files"; then
2402 $as_echo "## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##"
2406 for ac_var in $ac_subst_files
2408 eval ac_val=\$$ac_var
2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 $as_echo "$ac_var='\''$ac_val'\''"
2417 if test -s confdefs.h; then
2418 $as_echo "## ----------- ##
2425 test "$ac_signal" != 0 &&
2426 $as_echo "$as_me: caught signal $ac_signal"
2427 $as_echo "$as_me: exit $exit_status"
2429 rm -f core *.core core.conftest.* &&
2430 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433 for ac_signal in 1 2 13 15; do
2434 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2439 rm -f -r conftest* confdefs.h
2441 $as_echo "/* confdefs.h */" > confdefs.h
2443 # Predefined preprocessor variables.
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_NAME "$PACKAGE_NAME"
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_STRING "$PACKAGE_STRING"
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_URL "$PACKAGE_URL"
2470 # Let the site file select an alternate cache file if it wants to.
2471 # Prefer an explicitly selected file to automatically selected ones.
2474 if test -n "$CONFIG_SITE"; then
2475 # We do not want a PATH search for config.site.
2476 case $CONFIG_SITE in #((
2477 -*) ac_site_file1=./$CONFIG_SITE;;
2478 */*) ac_site_file1=$CONFIG_SITE;;
2479 *) ac_site_file1=./$CONFIG_SITE;;
2481 elif test "x$prefix" != xNONE; then
2482 ac_site_file1=$prefix/share/config.site
2483 ac_site_file2=$prefix/etc/config.site
2485 ac_site_file1=$ac_default_prefix/share/config.site
2486 ac_site_file2=$ac_default_prefix/etc/config.site
2488 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2490 test "x$ac_site_file" = xNONE && continue
2491 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2493 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2494 sed 's/^/| /' "$ac_site_file" >&5
2496 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 as_fn_error $? "failed to load site script $ac_site_file
2499 See \`config.log' for more details" "$LINENO" 5; }
2503 if test -r "$cache_file"; then
2504 # Some versions of bash will fail to source /dev/null (special files
2505 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2506 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2510 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2511 *) . "./$cache_file";;
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 # Check that the precious variables saved in the cache have kept the same
2522 ac_cache_corrupted=false
2523 for ac_var in $ac_precious_vars; do
2524 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525 eval ac_new_set=\$ac_env_${ac_var}_set
2526 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527 eval ac_new_val=\$ac_env_${ac_var}_value
2528 case $ac_old_set,$ac_new_set in
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2539 if test "x$ac_old_val" != "x$ac_new_val"; then
2540 # differences in whitespace do not lead to failure.
2541 ac_old_val_w=`echo x $ac_old_val`
2542 ac_new_val_w=`echo x $ac_new_val`
2543 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546 ac_cache_corrupted=:
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550 eval $ac_var=\$ac_old_val
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2553 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2555 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2558 # Pass precious variables to config.status.
2559 if test "$ac_new_set" = set; then
2561 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562 *) ac_arg=$ac_var=$ac_new_val ;;
2564 case " $ac_configure_args " in
2565 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2566 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2570 if $ac_cache_corrupted; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 ac_config_headers="$ac_config_headers config.h"
2593 for ac_dir in . "$srcdir"/.; do
2594 if test -f "$ac_dir/install-sh"; then
2596 ac_install_sh="$ac_aux_dir/install-sh -c"
2598 elif test -f "$ac_dir/install.sh"; then
2600 ac_install_sh="$ac_aux_dir/install.sh -c"
2602 elif test -f "$ac_dir/shtool"; then
2604 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 if test -z "$ac_aux_dir"; then
2609 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622 # For automake >= 1.12
2623 # expand $ac_aux_dir to an absolute path
2624 am_aux_dir=`cd $ac_aux_dir && pwd`
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2670 if test -z "$ac_cv_prog_CC"; then
2672 # Extract the first word of "gcc", so it can be a program name with args.
2673 set dummy gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$ac_ct_CC"; then
2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_ac_ct_CC="gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700 if test -n "$ac_ct_CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2702 $as_echo "$ac_ct_CC" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2708 if test "x$ac_ct_CC" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2723 if test -z "$CC"; then
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}cc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="${ac_tool_prefix}cc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2764 if test -z "$CC"; then
2765 # Extract the first word of "cc", so it can be a program name with args.
2766 set dummy cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CC+:} false; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2784 ac_prog_rejected=yes
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test $ac_prog_rejected = yes; then
2796 # We found a bogon in the path, so make sure we never use it.
2797 set dummy $ac_cv_prog_CC
2799 if test $# != 0; then
2800 # We chose a different compiler from the bogus one.
2801 # However, it has the same basename, so the bogon will be chosen
2802 # first if we set CC to just the basename; use the full file name.
2804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in cl.exe
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2861 test -n "$CC" && break
2864 if test -z "$CC"; then
2866 for ac_prog in cl.exe
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2898 $as_echo "$ac_ct_CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2905 test -n "$ac_ct_CC" && break
2908 if test "x$ac_ct_CC" = x; then
2911 case $cross_compiling:$ac_tool_warned in
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926 as_fn_error $? "no acceptable C compiler found in \$PATH
2927 See \`config.log' for more details" "$LINENO" 5; }
2929 # Provide some information about the compiler.
2930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2933 for ac_option in --version -v -V -qversion; do
2934 { { ac_try="$ac_compiler $ac_option >&5"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940 $as_echo "$ac_try_echo"; } >&5
2941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2943 if test -s conftest.err; then
2945 ... rest of stderr output deleted ...
2946 10q' conftest.err >conftest.er1
2947 cat conftest.er1 >&5
2949 rm -f conftest.er1 conftest.err
2950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2951 test $ac_status = 0; }
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2965 ac_clean_files_save=$ac_clean_files
2966 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2967 # Try to create an executable without -o first, disregard a.out.
2968 # It will help us diagnose broken compilers, and finding out an intuition
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2971 $as_echo_n "checking whether the C compiler works... " >&6; }
2972 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2974 # The possible output files:
2975 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2978 for ac_file in $ac_files
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2987 if { { ac_try="$ac_link_default"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_link_default") 2>&5
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }; then :
2998 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2999 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3000 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3001 # so that the user can short-circuit this test for compilers unknown to
3003 for ac_file in $ac_files ''
3005 test -f "$ac_file" || continue
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3010 # We found the default executable, but exeext='' is most
3014 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3016 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 # We set ac_cv_exeext here because the later test for it is not
3019 # safe: cross compilers may not add the suffix if given an `-o'
3020 # argument, so we may need to know it at that point already.
3021 # Even if this section looks crufty: it has the advantage of
3028 test "$ac_cv_exeext" = no && ac_cv_exeext=
3033 if test -z "$ac_file"; then :
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error 77 "C compiler cannot create executables
3042 See \`config.log' for more details" "$LINENO" 5; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3045 $as_echo "yes" >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3048 $as_echo_n "checking for C compiler default output file name... " >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3050 $as_echo "$ac_file" >&6; }
3051 ac_exeext=$ac_cv_exeext
3053 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3054 ac_clean_files=$ac_clean_files_save
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3056 $as_echo_n "checking for suffix of executables... " >&6; }
3057 if { { ac_try="$ac_link"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 $as_echo "$ac_try_echo"; } >&5
3064 (eval "$ac_link") 2>&5
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }; then :
3068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3069 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe'), while it won't with
3072 for ac_file in conftest.exe conftest conftest.*; do
3073 test -f "$ac_file" || continue
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details" "$LINENO" 5; }
3087 rm -f conftest conftest$ac_cv_exeext
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3089 $as_echo "$ac_cv_exeext" >&6; }
3091 rm -f conftest.$ac_ext
3092 EXEEXT=$ac_cv_exeext
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3100 FILE *f = fopen ("conftest.out", "w");
3101 return ferror (f) || fclose (f) != 0;
3107 ac_clean_files="$ac_clean_files conftest.out"
3108 # Check that the compiler produces executables we can run. If not, either
3109 # the compiler is broken, or we cross compile.
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3111 $as_echo_n "checking whether we are cross compiling... " >&6; }
3112 if test "$cross_compiling" != yes; then
3113 { { ac_try="$ac_link"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link") 2>&5
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3124 if { ac_try='./conftest$ac_cv_exeext'
3125 { { case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_try") 2>&5
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; }; then
3137 if test "$cross_compiling" = maybe; then
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details" "$LINENO" 5; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3149 $as_echo "$cross_compiling" >&6; }
3151 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3152 ac_clean_files=$ac_clean_files_save
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3154 $as_echo_n "checking for suffix of object files... " >&6; }
3155 if ${ac_cv_objext+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3169 rm -f conftest.o conftest.obj
3170 if { { ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compile") 2>&5
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
3181 for ac_file in conftest.o conftest.obj conftest.*; do
3182 test -f "$ac_file" || continue;
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot compute suffix of object files: cannot compile
3196 See \`config.log' for more details" "$LINENO" 5; }
3198 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3201 $as_echo "$ac_cv_objext" >&6; }
3202 OBJEXT=$ac_cv_objext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3205 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3206 if ${ac_cv_c_compiler_gnu+:} false; then :
3207 $as_echo_n "(cached) " >&6
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3223 if ac_fn_c_try_compile "$LINENO"; then :
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234 if test $ac_compiler_gnu = yes; then
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3243 if ${ac_cv_prog_cc_g+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3261 if ac_fn_c_try_compile "$LINENO"; then :
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3276 if ac_fn_c_try_compile "$LINENO"; then :
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 if ac_fn_c_try_compile "$LINENO"; then :
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3303 $as_echo "$ac_cv_prog_cc_g" >&6; }
3304 if test "$ac_test_CFLAGS" = set; then
3305 CFLAGS=$ac_save_CFLAGS
3306 elif test $ac_cv_prog_cc_g = yes; then
3307 if test "$GCC" = yes; then
3313 if test "$GCC" = yes; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3320 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3321 if ${ac_cv_prog_cc_c89+:} false; then :
3322 $as_echo_n "(cached) " >&6
3324 ac_cv_prog_cc_c89=no
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3345 s = g (p, va_arg (v,int));
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 if ac_fn_c_try_compile "$LINENO"; then :
3383 ac_cv_prog_cc_c89=$ac_arg
3385 rm -f core conftest.err conftest.$ac_objext
3386 test "x$ac_cv_prog_cc_c89" != "xno" && break
3388 rm -f conftest.$ac_ext
3393 case "x$ac_cv_prog_cc_c89" in
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396 $as_echo "none needed" >&6; } ;;
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399 $as_echo "unsupported" >&6; } ;;
3401 CC="$CC $ac_cv_prog_cc_c89"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3405 if test "x$ac_cv_prog_cc_c89" != xno; then :
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 if test -n "$ac_tool_prefix"; then
3417 for ac_prog in ar lib "link -lib"
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_AR+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$AR"; then
3427 ac_cv_prog_AR="$AR" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test -n "$AR"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3449 $as_echo "$AR" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3456 test -n "$AR" && break
3459 if test -z "$AR"; then
3461 for ac_prog in ar lib "link -lib"
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3468 $as_echo_n "(cached) " >&6
3470 if test -n "$ac_ct_AR"; then
3471 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_AR="$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3491 if test -n "$ac_ct_AR"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3493 $as_echo "$ac_ct_AR" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3500 test -n "$ac_ct_AR" && break
3503 if test "x$ac_ct_AR" = x; then
3506 case $cross_compiling:$ac_tool_warned in
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3519 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3520 if ${am_cv_ar_interface+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 am_cv_ar_interface=ar
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 int some_variable = 0;
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3531 (eval $am_ar_try) 2>&5
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3535 if test "$ac_status" -eq 0; then
3536 am_cv_ar_interface=ar
3538 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3540 (eval $am_ar_try) 2>&5
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }
3544 if test "$ac_status" -eq 0; then
3545 am_cv_ar_interface=lib
3547 am_cv_ar_interface=unknown
3550 rm -f conftest.lib libconftest.a
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3557 $as_echo "$am_cv_ar_interface" >&6; }
3559 case $am_cv_ar_interface in
3563 # Microsoft lib, so override with the ar-lib wrapper script.
3564 # FIXME: It is wrong to rewrite AR.
3565 # But if we don't then we get into trouble of one sort or another.
3566 # A longer-term fix would be to have automake use am__AR in this case,
3567 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3569 AR="$am_aux_dir/ar-lib $AR"
3572 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3577 am__api_version='1.12'
3579 # Find a good install program. We prefer a C program (faster),
3580 # so one script is as good as another. But avoid the broken or
3581 # incompatible versions:
3582 # SysV /etc/install, /usr/sbin/install
3583 # SunOS /usr/etc/install
3584 # IRIX /sbin/install
3586 # AmigaOS /C/install, which installs bootblocks on floppy discs
3587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3590 # OS/2's system install, which has a completely different semantic
3591 # ./install, which can be erroneously created by make from ./install.sh.
3592 # Reject install programs that cannot install multiple files.
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3594 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3595 if test -z "$INSTALL"; then
3596 if ${ac_cv_path_install+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 # Account for people who put trailing slashes in PATH elements.
3605 case $as_dir/ in #((
3606 ./ | .// | /[cC]/* | \
3607 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3608 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3611 # OSF1 and SCO ODT 3.0 have their own names for install.
3612 # Don't use installbsd from OSF since it installs stuff as root
3614 for ac_prog in ginstall scoinst install; do
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3617 if test $ac_prog = install &&
3618 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3619 # AIX install. It has an incompatible calling convention.
3621 elif test $ac_prog = install &&
3622 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3623 # program-specific install script used by HP pwplus--don't use.
3626 rm -rf conftest.one conftest.two conftest.dir
3627 echo one > conftest.one
3628 echo two > conftest.two
3630 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3631 test -s conftest.one && test -s conftest.two &&
3632 test -s conftest.dir/conftest.one &&
3633 test -s conftest.dir/conftest.two
3635 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3648 rm -rf conftest.one conftest.two conftest.dir
3651 if test "${ac_cv_path_install+set}" = set; then
3652 INSTALL=$ac_cv_path_install
3654 # As a last resort, use the slow shell script. Don't cache a
3655 # value for INSTALL within a source directory, because that will
3656 # break other packages using the cache if that directory is
3657 # removed, or if the value is a relative name.
3658 INSTALL=$ac_install_sh
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3662 $as_echo "$INSTALL" >&6; }
3664 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3665 # It thinks the first close brace ends the variable substitution.
3666 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3668 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3670 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3673 $as_echo_n "checking whether build environment is sane... " >&6; }
3674 # Reject unsafe characters in $srcdir or the absolute working directory
3675 # name. Accept space and tab only in the latter.
3679 *[\\\"\#\$\&\'\`$am_lf]*)
3680 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3683 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3684 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3687 # Do 'set' in a subshell so we don't clobber the current shell's
3688 # arguments. Must try -L first in case configure is actually a
3689 # symlink; some systems play weird games with the mod time of symlinks
3690 # (eg FreeBSD returns the mod time of the symlink's containing
3694 for am_try in 1 2; do
3695 echo "timestamp, slept: $am_has_slept" > conftest.file
3696 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3697 if test "$*" = "X"; then
3699 set X `ls -t "$srcdir/configure" conftest.file`
3701 if test "$*" != "X $srcdir/configure conftest.file" \
3702 && test "$*" != "X conftest.file $srcdir/configure"; then
3704 # If neither matched, then we have a broken ls. This can happen
3705 # if, for instance, CONFIG_SHELL is bash and it inherits a
3706 # broken ls alias from the environment. This has actually
3707 # happened. Such a system could not be considered "sane".
3708 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3709 alias in your environment" "$LINENO" 5
3711 if test "$2" = conftest.file || test $am_try -eq 2; then
3718 test "$2" = conftest.file
3724 as_fn_error $? "newly created file is older than distributed files!
3725 Check your system clock" "$LINENO" 5
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3728 $as_echo "yes" >&6; }
3729 # If we didn't sleep, we still need to ensure time stamps of config.status and
3730 # generated files are strictly newer.
3732 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3739 test "$program_prefix" != NONE &&
3740 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3741 # Use a double $ so make ignores it.
3742 test "$program_suffix" != NONE &&
3743 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3744 # Double any \ or $.
3745 # By default was `s,x,x', remove it if useless.
3746 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3747 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3749 if test x"${MISSING+set}" != xset; then
3752 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3754 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3757 # Use eval to expand $SHELL
3758 if eval "$MISSING --run true"; then
3759 am_missing_run="$MISSING --run "
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3763 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3766 if test x"${install_sh}" != xset; then
3769 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3771 install_sh="\${SHELL} $am_aux_dir/install-sh"
3775 # Installed binaries are usually stripped using 'strip' when the user
3776 # run "make install-strip". However 'strip' might not be the right
3777 # tool to use in cross-compilation environments, therefore Automake
3778 # will honor the 'STRIP' environment variable to overrule this program.
3779 if test "$cross_compiling" != no; then
3780 if test -n "$ac_tool_prefix"; then
3781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3782 set dummy ${ac_tool_prefix}strip; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_STRIP+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 if test -n "$STRIP"; then
3789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 STRIP=$ac_cv_prog_STRIP
3809 if test -n "$STRIP"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3811 $as_echo "$STRIP" >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3819 if test -z "$ac_cv_prog_STRIP"; then
3821 # Extract the first word of "strip", so it can be a program name with args.
3822 set dummy strip; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3826 $as_echo_n "(cached) " >&6
3828 if test -n "$ac_ct_STRIP"; then
3829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_ac_ct_STRIP="strip"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3849 if test -n "$ac_ct_STRIP"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3851 $as_echo "$ac_ct_STRIP" >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3857 if test "x$ac_ct_STRIP" = x; then
3860 case $cross_compiling:$ac_tool_warned in
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3869 STRIP="$ac_cv_prog_STRIP"
3873 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3876 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3877 if test -z "$MKDIR_P"; then
3878 if ${ac_cv_path_mkdir+:} false; then :
3879 $as_echo_n "(cached) " >&6
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in mkdir gmkdir; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3889 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3890 'mkdir (GNU coreutils) '* | \
3891 'mkdir (coreutils) '* | \
3892 'mkdir (fileutils) '4.1*)
3893 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3903 test -d ./--version && rmdir ./--version
3904 if test "${ac_cv_path_mkdir+set}" = set; then
3905 MKDIR_P="$ac_cv_path_mkdir -p"
3907 # As a last resort, use the slow shell script. Don't cache a
3908 # value for MKDIR_P within a source directory, because that will
3909 # break other packages using the cache if that directory is
3910 # removed, or if the value is a relative name.
3911 MKDIR_P="$ac_install_sh -d"
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3915 $as_echo "$MKDIR_P" >&6; }
3917 for ac_prog in gawk mawk nawk awk
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_AWK+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 if test -n "$AWK"; then
3927 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_AWK="$ac_prog"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 if test -n "$AWK"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3949 $as_echo "$AWK" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3956 test -n "$AWK" && break
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3960 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3962 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3963 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3964 $as_echo_n "(cached) " >&6
3966 cat >conftest.make <<\_ACEOF
3969 @echo '@@@%%%=$(MAKE)=@@@%%%'
3971 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3972 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3974 eval ac_cv_prog_make_${ac_make}_set=yes;;
3976 eval ac_cv_prog_make_${ac_make}_set=no;;
3980 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 $as_echo "yes" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 SET_MAKE="MAKE=${MAKE-make}"
3990 rm -rf .tst 2>/dev/null
3991 mkdir .tst 2>/dev/null
3992 if test -d .tst; then
3997 rmdir .tst 2>/dev/null
3999 DEPDIR="${am__leading_dot}deps"
4001 ac_config_commands="$ac_config_commands depfiles"
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4007 @echo this is the am__doit target
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # Ignore all kinds of additional output from 'make'.
4019 case `$am_make -s -f confmf 2> /dev/null` in #(
4020 *the\ am__doit\ target*)
4026 # Now try BSD make style include.
4027 if test "$am__include" = "#"; then
4028 echo '.include "confinc"' > confmf
4029 case `$am_make -s -f confmf 2> /dev/null` in #(
4030 *the\ am__doit\ target*)
4031 am__include=.include
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045 enableval=$enable_dependency_tracking;
4048 if test "x$enable_dependency_tracking" != xno; then
4049 am_depcomp="$ac_aux_dir/depcomp"
4053 if test "x$enable_dependency_tracking" != xno; then
4062 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4063 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4064 # is not polluted with repeated "-I."
4065 am__isrc=' -I$(srcdir)'
4066 # test to see if srcdir already configured
4067 if test -f $srcdir/config.status; then
4068 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4072 # test whether we have cygpath
4073 if test -z "$CYGPATH_W"; then
4074 if (cygpath --version) >/dev/null 2>/dev/null; then
4075 CYGPATH_W='cygpath -w'
4082 # Define the identity of the package.
4087 cat >>confdefs.h <<_ACEOF
4088 #define PACKAGE "$PACKAGE"
4092 cat >>confdefs.h <<_ACEOF
4093 #define VERSION "$VERSION"
4096 # Some tools Automake needs.
4098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4101 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4104 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4107 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4110 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4112 # For better backward compatibility. To be removed once Automake 1.9.x
4113 # dies out for good. For more background, see:
4114 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4115 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4116 mkdir_p='$(MKDIR_P)'
4118 # We need awk for the "check" target. The system "awk" is bad on
4120 # Always define AMTAR for backward compatibility. Yes, it's still used
4121 # in the wild :-( We should find a proper way to deprecate it ...
4124 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4129 depcc="$CC" am_compiler_list=
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4132 $as_echo_n "checking dependency style of $depcc... " >&6; }
4133 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4137 # We make a subdir and do the tests there. Otherwise we can end up
4138 # making bogus files that we don't know about and never remove. For
4139 # instance it was reported that on HP-UX the gcc test will end up
4140 # making a dummy file named 'D' -- because '-MD' means "put the output
4144 # Copy depcomp to subdir because otherwise we won't find it if we're
4145 # using a relative directory.
4146 cp "$am_depcomp" conftest.dir
4148 # We will build objects and dependencies in a subdirectory because
4149 # it helps to detect inapplicable dependency modes. For instance
4150 # both Tru64's cc and ICC support -MD to output dependencies as a
4151 # side effect of compilation, but ICC will put the dependencies in
4152 # the current directory while Tru64 will put them in the object
4156 am_cv_CC_dependencies_compiler_type=none
4157 if test "$am_compiler_list" = ""; then
4158 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4161 case " $depcc " in #(
4162 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4165 for depmode in $am_compiler_list; do
4166 # Setup a source with many dependencies, because some compilers
4167 # like to wrap large dependency lists on column 80 (with \), and
4168 # we should not choose a depcomp mode which is confused by this.
4170 # We need to recreate these files for each test, as the compiler may
4171 # overwrite some of them when testing with obscure command lines.
4172 # This happens at least with the AIX C compiler.
4174 for i in 1 2 3 4 5 6; do
4175 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4176 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4177 # Solaris 10 /bin/sh.
4178 echo '/* dummy */' > sub/conftst$i.h
4180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4182 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4183 # mode. It turns out that the SunPro C++ compiler does not properly
4184 # handle '-M -o', and we need to detect this. Also, some Intel
4185 # versions had trouble with output in subdirs.
4186 am__obj=sub/conftest.${OBJEXT-o}
4187 am__minus_obj="-o $am__obj"
4190 # This depmode causes a compiler race in universal mode.
4191 test "$am__universal" = false || continue
4194 # After this tag, mechanisms are not by side-effect, so they'll
4195 # only be used when explicitly requested.
4196 if test "x$enable_dependency_tracking" = xyes; then
4202 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4203 # This compiler won't grok '-c -o', but also, the minuso test has
4204 # not run yet. These depmodes are late enough in the game, and
4205 # so weak that their functioning should not be impacted.
4206 am__obj=conftest.${OBJEXT-o}
4211 if depmode=$depmode \
4212 source=sub/conftest.c object=$am__obj \
4213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4214 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4215 >/dev/null 2>conftest.err &&
4216 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4217 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4218 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4219 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4220 # icc doesn't choke on unknown options, it will just issue warnings
4221 # or remarks (even with -Werror). So we grep stderr for any message
4222 # that says an option was ignored or not supported.
4223 # When given -MP, icc 7.0 and 7.1 complain thusly:
4224 # icc: Command line warning: ignoring option '-M'; no argument required
4225 # The diagnosis changed in icc 8.0:
4226 # icc: Command line remark: option '-MP' not supported
4227 if (grep 'ignoring option' conftest.err ||
4228 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4229 am_cv_CC_dependencies_compiler_type=$depmode
4238 am_cv_CC_dependencies_compiler_type=none
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4243 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4244 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247 test "x$enable_dependency_tracking" != xno \
4248 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4250 am__fastdepCC_FALSE='#'
4252 am__fastdepCC_TRUE='#'
4253 am__fastdepCC_FALSE=
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4260 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4261 # Check whether --enable-maintainer-mode was given.
4262 if test "${enable_maintainer_mode+set}" = set; then :
4263 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4265 USE_MAINTAINER_MODE=no
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4269 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4270 if test $USE_MAINTAINER_MODE = yes; then
4271 MAINTAINER_MODE_TRUE=
4272 MAINTAINER_MODE_FALSE='#'
4274 MAINTAINER_MODE_TRUE='#'
4275 MAINTAINER_MODE_FALSE=
4278 MAINT=$MAINTAINER_MODE_TRUE
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 if test -n "$ac_tool_prefix"; then
4288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC="$CC" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test -z "$ac_cv_prog_CC"; then
4328 # Extract the first word of "gcc", so it can be a program name with args.
4329 set dummy gcc; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$ac_ct_CC"; then
4336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_prog_ac_ct_CC="gcc"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4356 if test -n "$ac_ct_CC"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4358 $as_echo "$ac_ct_CC" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4364 if test "x$ac_ct_CC" = x; then
4367 case $cross_compiling:$ac_tool_warned in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4379 if test -z "$CC"; then
4380 if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}cc; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_prog_CC+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_CC="${ac_tool_prefix}cc"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 if test -n "$CC"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4411 $as_echo "$CC" >&6; }
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4420 if test -z "$CC"; then
4421 # Extract the first word of "cc", so it can be a program name with args.
4422 set dummy cc; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_CC+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$CC"; then
4429 ac_cv_prog_CC="$CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4440 ac_prog_rejected=yes
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 if test $ac_prog_rejected = yes; then
4452 # We found a bogon in the path, so make sure we never use it.
4453 set dummy $ac_cv_prog_CC
4455 if test $# != 0; then
4456 # We chose a different compiler from the bogus one.
4457 # However, it has the same basename, so the bogon will be chosen
4458 # first if we set CC to just the basename; use the full file name.
4460 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4466 if test -n "$CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4468 $as_echo "$CC" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4476 if test -z "$CC"; then
4477 if test -n "$ac_tool_prefix"; then
4478 for ac_prog in cl.exe
4480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if ${ac_cv_prog_CC+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -n "$CC"; then
4488 ac_cv_prog_CC="$CC" # Let the user override the test.
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 if test -n "$CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4510 $as_echo "$CC" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4517 test -n "$CC" && break
4520 if test -z "$CC"; then
4522 for ac_prog in cl.exe
4524 # Extract the first word of "$ac_prog", so it can be a program name with args.
4525 set dummy $ac_prog; ac_word=$2
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 $as_echo_n "checking for $ac_word... " >&6; }
4528 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 if test -n "$ac_ct_CC"; then
4532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_prog_ac_ct_CC="$ac_prog"
4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4552 if test -n "$ac_ct_CC"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4554 $as_echo "$ac_ct_CC" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4561 test -n "$ac_ct_CC" && break
4564 if test "x$ac_ct_CC" = x; then
4567 case $cross_compiling:$ac_tool_warned in
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4571 ac_tool_warned=yes ;;
4580 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error $? "no acceptable C compiler found in \$PATH
4583 See \`config.log' for more details" "$LINENO" 5; }
4585 # Provide some information about the compiler.
4586 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4589 for ac_option in --version -v -V -qversion; do
4590 { { ac_try="$ac_compiler $ac_option >&5"
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4596 $as_echo "$ac_try_echo"; } >&5
4597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4599 if test -s conftest.err; then
4601 ... rest of stderr output deleted ...
4602 10q' conftest.err >conftest.er1
4603 cat conftest.er1 >&5
4605 rm -f conftest.er1 conftest.err
4606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4611 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4612 if ${ac_cv_c_compiler_gnu+:} false; then :
4613 $as_echo_n "(cached) " >&6
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4629 if ac_fn_c_try_compile "$LINENO"; then :
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4639 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4640 if test $ac_compiler_gnu = yes; then
4645 ac_test_CFLAGS=${CFLAGS+set}
4646 ac_save_CFLAGS=$CFLAGS
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4648 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4649 if ${ac_cv_prog_cc_g+:} false; then :
4650 $as_echo_n "(cached) " >&6
4652 ac_save_c_werror_flag=$ac_c_werror_flag
4653 ac_c_werror_flag=yes
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4667 if ac_fn_c_try_compile "$LINENO"; then :
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4682 if ac_fn_c_try_compile "$LINENO"; then :
4685 ac_c_werror_flag=$ac_save_c_werror_flag
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4698 if ac_fn_c_try_compile "$LINENO"; then :
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ac_c_werror_flag=$ac_save_c_werror_flag
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4709 $as_echo "$ac_cv_prog_cc_g" >&6; }
4710 if test "$ac_test_CFLAGS" = set; then
4711 CFLAGS=$ac_save_CFLAGS
4712 elif test $ac_cv_prog_cc_g = yes; then
4713 if test "$GCC" = yes; then
4719 if test "$GCC" = yes; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4726 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4727 if ${ac_cv_prog_cc_c89+:} false; then :
4728 $as_echo_n "(cached) " >&6
4730 ac_cv_prog_cc_c89=no
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4738 struct buf { int x; };
4739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4740 static char *e (p, i)
4746 static char *f (char * (*g) (char **, int), char **p, ...)
4751 s = g (p, va_arg (v,int));
4756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4757 function prototypes and stuff, but not '\xHH' hex character constants.
4758 These don't provoke an error unfortunately, instead are silently treated
4759 as 'x'. The following induces an error, until -std is added to get
4760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4761 array size at least. It's necessary to write '\x00'==0 to get something
4762 that's true only with -std. */
4763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4766 inside strings and character constants. */
4768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4770 int test (int i, double x);
4771 struct s1 {int (*f) (int a);};
4772 struct s2 {int (*f) (double a);};
4773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4787 CC="$ac_save_CC $ac_arg"
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_prog_cc_c89=$ac_arg
4791 rm -f core conftest.err conftest.$ac_objext
4792 test "x$ac_cv_prog_cc_c89" != "xno" && break
4794 rm -f conftest.$ac_ext
4799 case "x$ac_cv_prog_cc_c89" in
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4802 $as_echo "none needed" >&6; } ;;
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4805 $as_echo "unsupported" >&6; } ;;
4807 CC="$CC $ac_cv_prog_cc_c89"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4811 if test "x$ac_cv_prog_cc_c89" != xno; then :
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4822 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4823 if ${ac_cv_prog_cc_c99+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 ac_cv_prog_cc_c99=no
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4831 #include <stdbool.h>
4836 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4837 #define debug(...) fprintf (stderr, __VA_ARGS__)
4838 #define showlist(...) puts (#__VA_ARGS__)
4839 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4841 test_varargs_macros (void)
4846 debug ("X = %d\n", x);
4847 showlist (The first, second, and third items.);
4848 report (x>y, "x is %d but y is %d", x, y);
4851 // Check long long types.
4852 #define BIG64 18446744073709551615ull
4853 #define BIG32 4294967295ul
4854 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4856 your preprocessor is broken;
4860 your preprocessor is broken;
4862 static long long int bignum = -9223372036854775807LL;
4863 static unsigned long long int ubignum = BIG64;
4865 struct incomplete_array
4873 const wchar_t *name;
4877 typedef const char *ccp;
4880 test_restrict (ccp restrict text)
4882 // See if C++-style comments work.
4883 // Iterate through items via the restricted pointer.
4884 // Also check for declarations in for loops.
4885 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4890 // Check varargs and va_copy.
4892 test_varargs (const char *format, ...)
4895 va_start (args, format);
4897 va_copy (args_copy, args);
4908 str = va_arg (args_copy, const char *);
4911 number = va_arg (args_copy, int);
4914 fnumber = va_arg (args_copy, double);
4929 _Bool success = false;
4932 if (test_restrict ("String literal") == 0)
4934 char *restrict newvar = "Another string";
4937 test_varargs ("s, d' f .", "string", 65, 34.234);
4938 test_varargs_macros ();
4940 // Check flexible array members.
4941 struct incomplete_array *ia =
4942 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4944 for (int i = 0; i < ia->datasize; ++i)
4945 ia->data[i] = i * 1.234;
4947 // Check named initializers.
4948 struct named_init ni = {
4950 .name = L"Test wide string",
4951 .average = 543.34343,
4956 int dynamic_array[ni.number];
4957 dynamic_array[ni.number - 1] = 543;
4959 // work around unused variable warnings
4960 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4961 || dynamic_array[ni.number - 1] != 543);
4967 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4969 CC="$ac_save_CC $ac_arg"
4970 if ac_fn_c_try_compile "$LINENO"; then :
4971 ac_cv_prog_cc_c99=$ac_arg
4973 rm -f core conftest.err conftest.$ac_objext
4974 test "x$ac_cv_prog_cc_c99" != "xno" && break
4976 rm -f conftest.$ac_ext
4981 case "x$ac_cv_prog_cc_c99" in
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4984 $as_echo "none needed" >&6; } ;;
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4987 $as_echo "unsupported" >&6; } ;;
4989 CC="$CC $ac_cv_prog_cc_c99"
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4991 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4993 if test "x$ac_cv_prog_cc_c99" != xno; then :
4998 if test x"$ac_cv_prog_cc_c99" = xno; then
4999 as_fn_error $? "C99 compiler is required." "$LINENO" 5
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 if test -z "$CXX"; then
5007 if test -n "$CCC"; then
5010 if test -n "$ac_tool_prefix"; then
5011 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_CXX+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 if test -n "$CXX"; then
5021 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 if test -n "$CXX"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5043 $as_echo "$CXX" >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5050 test -n "$CXX" && break
5053 if test -z "$CXX"; then
5055 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5057 # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5062 $as_echo_n "(cached) " >&6
5064 if test -n "$ac_ct_CXX"; then
5065 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_ac_ct_CXX="$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5085 if test -n "$ac_ct_CXX"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5087 $as_echo "$ac_ct_CXX" >&6; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 test -n "$ac_ct_CXX" && break
5097 if test "x$ac_ct_CXX" = x; then
5100 case $cross_compiling:$ac_tool_warned in
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5112 # Provide some information about the compiler.
5113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5116 for ac_option in --version -v -V -qversion; do
5117 { { ac_try="$ac_compiler $ac_option >&5"
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5126 if test -s conftest.err; then
5128 ... rest of stderr output deleted ...
5129 10q' conftest.err >conftest.er1
5130 cat conftest.er1 >&5
5132 rm -f conftest.er1 conftest.err
5133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5134 test $ac_status = 0; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5138 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5139 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5156 if ac_fn_cxx_try_compile "$LINENO"; then :
5161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5166 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5167 if test $ac_compiler_gnu = yes; then
5172 ac_test_CXXFLAGS=${CXXFLAGS+set}
5173 ac_save_CXXFLAGS=$CXXFLAGS
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5175 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5176 if ${ac_cv_prog_cxx_g+:} false; then :
5177 $as_echo_n "(cached) " >&6
5179 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5180 ac_cxx_werror_flag=yes
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5194 if ac_fn_cxx_try_compile "$LINENO"; then :
5195 ac_cv_prog_cxx_g=yes
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5209 if ac_fn_cxx_try_compile "$LINENO"; then :
5212 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5225 if ac_fn_cxx_try_compile "$LINENO"; then :
5226 ac_cv_prog_cxx_g=yes
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5236 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5237 if test "$ac_test_CXXFLAGS" = set; then
5238 CXXFLAGS=$ac_save_CXXFLAGS
5239 elif test $ac_cv_prog_cxx_g = yes; then
5240 if test "$GXX" = yes; then
5246 if test "$GXX" = yes; then
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 depcc="$CXX" am_compiler_list=
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5261 $as_echo_n "checking dependency style of $depcc... " >&6; }
5262 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5263 $as_echo_n "(cached) " >&6
5265 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5266 # We make a subdir and do the tests there. Otherwise we can end up
5267 # making bogus files that we don't know about and never remove. For
5268 # instance it was reported that on HP-UX the gcc test will end up
5269 # making a dummy file named 'D' -- because '-MD' means "put the output
5273 # Copy depcomp to subdir because otherwise we won't find it if we're
5274 # using a relative directory.
5275 cp "$am_depcomp" conftest.dir
5277 # We will build objects and dependencies in a subdirectory because
5278 # it helps to detect inapplicable dependency modes. For instance
5279 # both Tru64's cc and ICC support -MD to output dependencies as a
5280 # side effect of compilation, but ICC will put the dependencies in
5281 # the current directory while Tru64 will put them in the object
5285 am_cv_CXX_dependencies_compiler_type=none
5286 if test "$am_compiler_list" = ""; then
5287 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5290 case " $depcc " in #(
5291 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5294 for depmode in $am_compiler_list; do
5295 # Setup a source with many dependencies, because some compilers
5296 # like to wrap large dependency lists on column 80 (with \), and
5297 # we should not choose a depcomp mode which is confused by this.
5299 # We need to recreate these files for each test, as the compiler may
5300 # overwrite some of them when testing with obscure command lines.
5301 # This happens at least with the AIX C compiler.
5303 for i in 1 2 3 4 5 6; do
5304 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5305 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5306 # Solaris 10 /bin/sh.
5307 echo '/* dummy */' > sub/conftst$i.h
5309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5311 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5312 # mode. It turns out that the SunPro C++ compiler does not properly
5313 # handle '-M -o', and we need to detect this. Also, some Intel
5314 # versions had trouble with output in subdirs.
5315 am__obj=sub/conftest.${OBJEXT-o}
5316 am__minus_obj="-o $am__obj"
5319 # This depmode causes a compiler race in universal mode.
5320 test "$am__universal" = false || continue
5323 # After this tag, mechanisms are not by side-effect, so they'll
5324 # only be used when explicitly requested.
5325 if test "x$enable_dependency_tracking" = xyes; then
5331 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5332 # This compiler won't grok '-c -o', but also, the minuso test has
5333 # not run yet. These depmodes are late enough in the game, and
5334 # so weak that their functioning should not be impacted.
5335 am__obj=conftest.${OBJEXT-o}
5340 if depmode=$depmode \
5341 source=sub/conftest.c object=$am__obj \
5342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5343 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5344 >/dev/null 2>conftest.err &&
5345 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5346 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5347 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5348 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5349 # icc doesn't choke on unknown options, it will just issue warnings
5350 # or remarks (even with -Werror). So we grep stderr for any message
5351 # that says an option was ignored or not supported.
5352 # When given -MP, icc 7.0 and 7.1 complain thusly:
5353 # icc: Command line warning: ignoring option '-M'; no argument required
5354 # The diagnosis changed in icc 8.0:
5355 # icc: Command line remark: option '-MP' not supported
5356 if (grep 'ignoring option' conftest.err ||
5357 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5358 am_cv_CXX_dependencies_compiler_type=$depmode
5367 am_cv_CXX_dependencies_compiler_type=none
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5372 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5373 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5376 test "x$enable_dependency_tracking" != xno \
5377 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5378 am__fastdepCXX_TRUE=
5379 am__fastdepCXX_FALSE='#'
5381 am__fastdepCXX_TRUE='#'
5382 am__fastdepCXX_FALSE=
5387 # Make sure we can run config.sub.
5388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5389 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5392 $as_echo_n "checking build system type... " >&6; }
5393 if ${ac_cv_build+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 ac_build_alias=$build_alias
5397 test "x$ac_build_alias" = x &&
5398 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5399 test "x$ac_build_alias" = x &&
5400 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5406 $as_echo "$ac_cv_build" >&6; }
5407 case $ac_cv_build in
5409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5412 ac_save_IFS=$IFS; IFS='-'
5418 # Remember, the first character of IFS is used to create $*,
5419 # except with old shells:
5422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5426 $as_echo_n "checking host system type... " >&6; }
5427 if ${ac_cv_host+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 if test "x$host_alias" = x; then
5431 ac_cv_host=$ac_cv_build
5433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5439 $as_echo "$ac_cv_host" >&6; }
5442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5445 ac_save_IFS=$IFS; IFS='-'
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5461 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5466 macro_version='2.4.2'
5467 macro_revision='1.3337'
5481 ltmain="$ac_aux_dir/ltmain.sh"
5483 # Backslashify metacharacters that are still active within
5484 # double-quoted strings.
5485 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5487 # Same as above, but do not quote variable references.
5488 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5490 # Sed substitution to delay expansion of an escaped shell variable in a
5491 # double_quote_subst'ed string.
5492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5494 # Sed substitution to delay expansion of an escaped single quote.
5495 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5497 # Sed substitution to avoid accidental globbing in evaled expressions
5498 no_glob_subst='s/\*/\\\*/g'
5500 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5501 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5505 $as_echo_n "checking how to print strings... " >&6; }
5506 # Test print first, because it will be a builtin if present.
5507 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5508 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5510 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5513 # Use this function as a fallback that always works.
5514 func_fallback_echo ()
5516 eval 'cat <<_LTECHO_EOF
5520 ECHO='func_fallback_echo'
5523 # func_echo_all arg...
5524 # Invoke $ECHO with all args, space-separated.
5531 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5532 $as_echo "printf" >&6; } ;;
5533 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5534 $as_echo "print -r" >&6; } ;;
5535 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5536 $as_echo "cat" >&6; } ;;
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5553 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5554 if ${ac_cv_path_SED+:} false; then :
5555 $as_echo_n "(cached) " >&6
5557 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5558 for ac_i in 1 2 3 4 5 6 7; do
5559 ac_script="$ac_script$as_nl$ac_script"
5561 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5562 { ac_script=; unset ac_script;}
5563 if test -z "$SED"; then
5564 ac_path_SED_found=false
5565 # Loop through the user's path and test for each of PROGNAME-LIST
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_prog in sed gsed; do
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5574 as_fn_executable_p "$ac_path_SED" || continue
5575 # Check for GNU ac_path_SED and select it if it is found.
5576 # Check for GNU $ac_path_SED
5577 case `"$ac_path_SED" --version 2>&1` in
5579 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5582 $as_echo_n 0123456789 >"conftest.in"
5585 cat "conftest.in" "conftest.in" >"conftest.tmp"
5586 mv "conftest.tmp" "conftest.in"
5587 cp "conftest.in" "conftest.nl"
5588 $as_echo '' >> "conftest.nl"
5589 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5591 as_fn_arith $ac_count + 1 && ac_count=$as_val
5592 if test $ac_count -gt ${ac_path_SED_max-0}; then
5593 # Best one so far, save it but keep looking for a better one
5594 ac_cv_path_SED="$ac_path_SED"
5595 ac_path_SED_max=$ac_count
5597 # 10*(2^10) chars as input seems more than enough
5598 test $ac_count -gt 10 && break
5600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5603 $ac_path_SED_found && break 3
5608 if test -z "$ac_cv_path_SED"; then
5609 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5617 $as_echo "$ac_cv_path_SED" >&6; }
5618 SED="$ac_cv_path_SED"
5621 test -z "$SED" && SED=sed
5622 Xsed="$SED -e 1s/^X//"
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5635 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5636 if ${ac_cv_path_GREP+:} false; then :
5637 $as_echo_n "(cached) " >&6
5639 if test -z "$GREP"; then
5640 ac_path_GREP_found=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 test -z "$as_dir" && as_dir=.
5647 for ac_prog in grep ggrep; do
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5650 as_fn_executable_p "$ac_path_GREP" || continue
5651 # Check for GNU ac_path_GREP and select it if it is found.
5652 # Check for GNU $ac_path_GREP
5653 case `"$ac_path_GREP" --version 2>&1` in
5655 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5658 $as_echo_n 0123456789 >"conftest.in"
5661 cat "conftest.in" "conftest.in" >"conftest.tmp"
5662 mv "conftest.tmp" "conftest.in"
5663 cp "conftest.in" "conftest.nl"
5664 $as_echo 'GREP' >> "conftest.nl"
5665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667 as_fn_arith $ac_count + 1 && ac_count=$as_val
5668 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5669 # Best one so far, save it but keep looking for a better one
5670 ac_cv_path_GREP="$ac_path_GREP"
5671 ac_path_GREP_max=$ac_count
5673 # 10*(2^10) chars as input seems more than enough
5674 test $ac_count -gt 10 && break
5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5679 $ac_path_GREP_found && break 3
5684 if test -z "$ac_cv_path_GREP"; then
5685 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688 ac_cv_path_GREP=$GREP
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5693 $as_echo "$ac_cv_path_GREP" >&6; }
5694 GREP="$ac_cv_path_GREP"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5698 $as_echo_n "checking for egrep... " >&6; }
5699 if ${ac_cv_path_EGREP+:} false; then :
5700 $as_echo_n "(cached) " >&6
5702 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5703 then ac_cv_path_EGREP="$GREP -E"
5705 if test -z "$EGREP"; then
5706 ac_path_EGREP_found=false
5707 # Loop through the user's path and test for each of PROGNAME-LIST
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5712 test -z "$as_dir" && as_dir=.
5713 for ac_prog in egrep; do
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5716 as_fn_executable_p "$ac_path_EGREP" || continue
5717 # Check for GNU ac_path_EGREP and select it if it is found.
5718 # Check for GNU $ac_path_EGREP
5719 case `"$ac_path_EGREP" --version 2>&1` in
5721 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5724 $as_echo_n 0123456789 >"conftest.in"
5727 cat "conftest.in" "conftest.in" >"conftest.tmp"
5728 mv "conftest.tmp" "conftest.in"
5729 cp "conftest.in" "conftest.nl"
5730 $as_echo 'EGREP' >> "conftest.nl"
5731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5733 as_fn_arith $ac_count + 1 && ac_count=$as_val
5734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5735 # Best one so far, save it but keep looking for a better one
5736 ac_cv_path_EGREP="$ac_path_EGREP"
5737 ac_path_EGREP_max=$ac_count
5739 # 10*(2^10) chars as input seems more than enough
5740 test $ac_count -gt 10 && break
5742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5745 $ac_path_EGREP_found && break 3
5750 if test -z "$ac_cv_path_EGREP"; then
5751 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5754 ac_cv_path_EGREP=$EGREP
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5760 $as_echo "$ac_cv_path_EGREP" >&6; }
5761 EGREP="$ac_cv_path_EGREP"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5765 $as_echo_n "checking for fgrep... " >&6; }
5766 if ${ac_cv_path_FGREP+:} false; then :
5767 $as_echo_n "(cached) " >&6
5769 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5770 then ac_cv_path_FGREP="$GREP -F"
5772 if test -z "$FGREP"; then
5773 ac_path_FGREP_found=false
5774 # Loop through the user's path and test for each of PROGNAME-LIST
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5779 test -z "$as_dir" && as_dir=.
5780 for ac_prog in fgrep; do
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5783 as_fn_executable_p "$ac_path_FGREP" || continue
5784 # Check for GNU ac_path_FGREP and select it if it is found.
5785 # Check for GNU $ac_path_FGREP
5786 case `"$ac_path_FGREP" --version 2>&1` in
5788 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5791 $as_echo_n 0123456789 >"conftest.in"
5794 cat "conftest.in" "conftest.in" >"conftest.tmp"
5795 mv "conftest.tmp" "conftest.in"
5796 cp "conftest.in" "conftest.nl"
5797 $as_echo 'FGREP' >> "conftest.nl"
5798 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5800 as_fn_arith $ac_count + 1 && ac_count=$as_val
5801 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5802 # Best one so far, save it but keep looking for a better one
5803 ac_cv_path_FGREP="$ac_path_FGREP"
5804 ac_path_FGREP_max=$ac_count
5806 # 10*(2^10) chars as input seems more than enough
5807 test $ac_count -gt 10 && break
5809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5812 $ac_path_FGREP_found && break 3
5817 if test -z "$ac_cv_path_FGREP"; then
5818 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5821 ac_cv_path_FGREP=$FGREP
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5827 $as_echo "$ac_cv_path_FGREP" >&6; }
5828 FGREP="$ac_cv_path_FGREP"
5831 test -z "$GREP" && GREP=grep
5851 # Check whether --with-gnu-ld was given.
5852 if test "${with_gnu_ld+set}" = set; then :
5853 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5859 if test "$GCC" = yes; then
5860 # Check if gcc -print-prog-name=ld gives a path.
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5862 $as_echo_n "checking for ld used by $CC... " >&6; }
5865 # gcc leaves a trailing carriage return which upsets mingw
5866 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5868 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5871 # Accept absolute paths.
5873 re_direlt='/[^/][^/]*/\.\./'
5874 # Canonicalize the pathname of ld
5875 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5876 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5877 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5879 test -z "$LD" && LD="$ac_prog"
5882 # If it fails, then pretend we aren't using GCC.
5886 # If it is relative, then search for the first ld in PATH.
5890 elif test "$with_gnu_ld" = yes; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5892 $as_echo_n "checking for GNU ld... " >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5895 $as_echo_n "checking for non-GNU ld... " >&6; }
5897 if ${lt_cv_path_LD+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -z "$LD"; then
5901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5902 for ac_dir in $PATH; do
5904 test -z "$ac_dir" && ac_dir=.
5905 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5906 lt_cv_path_LD="$ac_dir/$ac_prog"
5907 # Check to see if the program is GNU ld. I'd rather use --version,
5908 # but apparently some variants of GNU ld only accept -v.
5909 # Break only if it was the GNU/non-GNU ld that we prefer.
5910 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5911 *GNU* | *'with BFD'*)
5912 test "$with_gnu_ld" != no && break
5915 test "$with_gnu_ld" != yes && break
5922 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5927 if test -n "$LD"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5929 $as_echo "$LD" >&6; }
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5934 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5936 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5937 if ${lt_cv_prog_gnu_ld+:} false; then :
5938 $as_echo_n "(cached) " >&6
5940 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5941 case `$LD -v 2>&1 </dev/null` in
5942 *GNU* | *'with BFD'*)
5943 lt_cv_prog_gnu_ld=yes
5946 lt_cv_prog_gnu_ld=no
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5951 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5952 with_gnu_ld=$lt_cv_prog_gnu_ld
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5963 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5964 if ${lt_cv_path_NM+:} false; then :
5965 $as_echo_n "(cached) " >&6
5967 if test -n "$NM"; then
5968 # Let the user override the test.
5971 lt_nm_to_check="${ac_tool_prefix}nm"
5972 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5973 lt_nm_to_check="$lt_nm_to_check nm"
5975 for lt_tmp_nm in $lt_nm_to_check; do
5976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5979 test -z "$ac_dir" && ac_dir=.
5980 tmp_nm="$ac_dir/$lt_tmp_nm"
5981 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5982 # Check to see if the nm accepts a BSD-compat flag.
5983 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5984 # nm: unknown option "B" ignored
5985 # Tru64's nm complains that /dev/null is an invalid object file
5986 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5987 */dev/null* | *'Invalid file or object type'*)
5988 lt_cv_path_NM="$tmp_nm -B"
5992 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5994 lt_cv_path_NM="$tmp_nm -p"
5998 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999 continue # so that we can try to find one that supports BSD flags
6008 : ${lt_cv_path_NM=no}
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6012 $as_echo "$lt_cv_path_NM" >&6; }
6013 if test "$lt_cv_path_NM" != "no"; then
6016 # Didn't find any BSD compatible name lister, look for dumpbin.
6017 if test -n "$DUMPBIN"; then :
6018 # Let the user override the test.
6020 if test -n "$ac_tool_prefix"; then
6021 for ac_prog in dumpbin "link -dump"
6023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_DUMPBIN+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$DUMPBIN"; then
6031 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 DUMPBIN=$ac_cv_prog_DUMPBIN
6051 if test -n "$DUMPBIN"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6053 $as_echo "$DUMPBIN" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6060 test -n "$DUMPBIN" && break
6063 if test -z "$DUMPBIN"; then
6064 ac_ct_DUMPBIN=$DUMPBIN
6065 for ac_prog in dumpbin "link -dump"
6067 # Extract the first word of "$ac_prog", so it can be a program name with args.
6068 set dummy $ac_prog; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6072 $as_echo_n "(cached) " >&6
6074 if test -n "$ac_ct_DUMPBIN"; then
6075 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6095 if test -n "$ac_ct_DUMPBIN"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6097 $as_echo "$ac_ct_DUMPBIN" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6104 test -n "$ac_ct_DUMPBIN" && break
6107 if test "x$ac_ct_DUMPBIN" = x; then
6110 case $cross_compiling:$ac_tool_warned in
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6116 DUMPBIN=$ac_ct_DUMPBIN
6120 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6122 DUMPBIN="$DUMPBIN -symbols"
6130 if test "$DUMPBIN" != ":"; then
6134 test -z "$NM" && NM=nm
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6142 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6143 if ${lt_cv_nm_interface+:} false; then :
6144 $as_echo_n "(cached) " >&6
6146 lt_cv_nm_interface="BSD nm"
6147 echo "int some_variable = 0;" > conftest.$ac_ext
6148 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6149 (eval "$ac_compile" 2>conftest.err)
6150 cat conftest.err >&5
6151 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6152 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6153 cat conftest.err >&5
6154 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6155 cat conftest.out >&5
6156 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6157 lt_cv_nm_interface="MS dumpbin"
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6162 $as_echo "$lt_cv_nm_interface" >&6; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6165 $as_echo_n "checking whether ln -s works... " >&6; }
6167 if test "$LN_S" = "ln -s"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6169 $as_echo "yes" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6172 $as_echo "no, using $LN_S" >&6; }
6175 # find the maximum length of command line arguments
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6177 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6178 if ${lt_cv_sys_max_cmd_len+:} false; then :
6179 $as_echo_n "(cached) " >&6
6186 # On DJGPP, this test can blow up pretty badly due to problems in libc
6187 # (any single argument exceeding 2000 bytes causes a buffer overrun
6188 # during glob expansion). Even if it were fixed, the result of this
6189 # check would be larger than it should be.
6190 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6194 # Under GNU Hurd, this test is not required because there is
6195 # no limit to the length of command line arguments.
6196 # Libtool will interpret -1 as no limit whatsoever
6197 lt_cv_sys_max_cmd_len=-1;
6200 cygwin* | mingw* | cegcc*)
6201 # On Win9x/ME, this test blows up -- it succeeds, but takes
6202 # about 5 minutes as the teststring grows exponentially.
6203 # Worse, since 9x/ME are not pre-emptively multitasking,
6204 # you end up with a "frozen" computer, even though with patience
6205 # the test eventually succeeds (with a max line length of 256k).
6206 # Instead, let's just punt: use the minimum linelength reported by
6207 # all of the supported platforms: 8192 (on NT/2K/XP).
6208 lt_cv_sys_max_cmd_len=8192;
6212 # On MiNT this can take a long time and run out of memory.
6213 lt_cv_sys_max_cmd_len=8192;
6217 # On AmigaOS with pdksh, this test takes hours, literally.
6218 # So we just punt and use a minimum line length of 8192.
6219 lt_cv_sys_max_cmd_len=8192;
6222 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6223 # This has been around since 386BSD, at least. Likely further.
6224 if test -x /sbin/sysctl; then
6225 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6226 elif test -x /usr/sbin/sysctl; then
6227 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6229 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6231 # And add a safety zone
6232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6237 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6238 lt_cv_sys_max_cmd_len=196608
6242 # The test takes a long time on OS/2.
6243 lt_cv_sys_max_cmd_len=8192
6247 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6248 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6249 # nice to cause kernel panics so lets avoid the loop below.
6250 # First set a reasonable default.
6251 lt_cv_sys_max_cmd_len=16384
6253 if test -x /sbin/sysconfig; then
6254 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6255 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6260 lt_cv_sys_max_cmd_len=102400
6262 sysv5* | sco5v6* | sysv4.2uw2*)
6263 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6264 if test -n "$kargmax"; then
6265 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6267 lt_cv_sys_max_cmd_len=32768
6271 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6272 if test -n "$lt_cv_sys_max_cmd_len"; then
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6276 # Make teststring a little bigger before we do anything with it.
6277 # a 1K string should be a reasonable start.
6278 for i in 1 2 3 4 5 6 7 8 ; do
6279 teststring=$teststring$teststring
6281 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6282 # If test is not a shell built-in, we'll probably end up computing a
6283 # maximum length that is only half of the actual maximum length, but
6285 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6286 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6287 test $i != 17 # 1/2 MB should be enough
6290 teststring=$teststring$teststring
6292 # Only check the string length outside the loop.
6293 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6295 # Add a significant safety factor because C++ compilers can tack on
6296 # massive amounts of additional arguments before passing them to the
6297 # linker. It appears as though 1/2 is a usable value.
6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6305 if test -n $lt_cv_sys_max_cmd_len ; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6307 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6310 $as_echo "none" >&6; }
6312 max_cmd_len=$lt_cv_sys_max_cmd_len
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6324 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6325 # Try some XSI features
6328 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6330 && eval 'test $(( 1 + 1 )) -eq 2 \
6331 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6334 $as_echo "$xsi_shell" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6338 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6340 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6342 && lt_shell_append=yes
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6344 $as_echo "$lt_shell_append" >&6; }
6347 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6357 # test EBCDIC or ASCII
6358 case `echo X|tr X '\101'` in
6359 A) # ASCII based system
6360 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6361 lt_SP2NL='tr \040 \012'
6362 lt_NL2SP='tr \015\012 \040\040'
6364 *) # EBCDIC based system
6365 lt_SP2NL='tr \100 \n'
6366 lt_NL2SP='tr \r\n \100\100'
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6379 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6380 if ${lt_cv_to_host_file_cmd+:} false; then :
6381 $as_echo_n "(cached) " >&6
6386 *-*-mingw* ) # actually msys
6387 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6390 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6392 * ) # otherwise, assume *nix
6393 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6399 *-*-mingw* ) # actually msys
6400 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6403 lt_cv_to_host_file_cmd=func_convert_file_noop
6405 * ) # otherwise, assume *nix
6406 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6410 * ) # unhandled hosts (and "normal" native builds)
6411 lt_cv_to_host_file_cmd=func_convert_file_noop
6417 to_host_file_cmd=$lt_cv_to_host_file_cmd
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6419 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6426 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6427 if ${lt_cv_to_tool_file_cmd+:} false; then :
6428 $as_echo_n "(cached) " >&6
6430 #assume ordinary cross tools, or native build.
6431 lt_cv_to_tool_file_cmd=func_convert_file_noop
6435 *-*-mingw* ) # actually msys
6436 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6444 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6446 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6453 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6454 if ${lt_cv_ld_reload_flag+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 lt_cv_ld_reload_flag='-r'
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6460 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6461 reload_flag=$lt_cv_ld_reload_flag
6462 case $reload_flag in
6464 *) reload_flag=" $reload_flag" ;;
6466 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6468 cygwin* | mingw* | pw32* | cegcc*)
6469 if test "$GCC" != yes; then
6474 if test "$GCC" = yes; then
6475 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_OBJDUMP+:} false; then :
6496 $as_echo_n "(cached) " >&6
6498 if test -n "$OBJDUMP"; then
6499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 OBJDUMP=$ac_cv_prog_OBJDUMP
6519 if test -n "$OBJDUMP"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6521 $as_echo "$OBJDUMP" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6529 if test -z "$ac_cv_prog_OBJDUMP"; then
6530 ac_ct_OBJDUMP=$OBJDUMP
6531 # Extract the first word of "objdump", so it can be a program name with args.
6532 set dummy objdump; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6536 $as_echo_n "(cached) " >&6
6538 if test -n "$ac_ct_OBJDUMP"; then
6539 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6559 if test -n "$ac_ct_OBJDUMP"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6561 $as_echo "$ac_ct_OBJDUMP" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6567 if test "x$ac_ct_OBJDUMP" = x; then
6570 case $cross_compiling:$ac_tool_warned in
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6576 OBJDUMP=$ac_ct_OBJDUMP
6579 OBJDUMP="$ac_cv_prog_OBJDUMP"
6582 test -z "$OBJDUMP" && OBJDUMP=objdump
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6593 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6594 if ${lt_cv_deplibs_check_method+:} false; then :
6595 $as_echo_n "(cached) " >&6
6597 lt_cv_file_magic_cmd='$MAGIC_CMD'
6598 lt_cv_file_magic_test_file=
6599 lt_cv_deplibs_check_method='unknown'
6600 # Need to set the preceding variable on all platforms that support
6601 # interlibrary dependencies.
6602 # 'none' -- dependencies not supported.
6603 # `unknown' -- same as none, but documents that we really don't know.
6604 # 'pass_all' -- all dependencies passed with no checks.
6605 # 'test_compile' -- check by making test program.
6606 # 'file_magic [[regex]]' -- check by looking for files in library path
6607 # which responds to the $file_magic_cmd with a given extended regex.
6608 # If you have `file' or equivalent on your system and you're not sure
6609 # whether `pass_all' will *always* work, you probably want this one.
6613 lt_cv_deplibs_check_method=pass_all
6617 lt_cv_deplibs_check_method=pass_all
6621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6622 lt_cv_file_magic_cmd='/usr/bin/file -L'
6623 lt_cv_file_magic_test_file=/shlib/libc.so
6627 # func_win32_libid is a shell function defined in ltmain.sh
6628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6629 lt_cv_file_magic_cmd='func_win32_libid'
6633 # Base MSYS/MinGW do not provide the 'file' command needed by
6634 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6635 # unless we find 'file', for example because we are cross-compiling.
6636 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6637 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639 lt_cv_file_magic_cmd='func_win32_libid'
6641 # Keep this pattern in sync with the one in func_win32_libid.
6642 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6643 lt_cv_file_magic_cmd='$OBJDUMP -f'
6648 # use the weaker test based on 'objdump'. See mingw*.
6649 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6650 lt_cv_file_magic_cmd='$OBJDUMP -f'
6653 darwin* | rhapsody*)
6654 lt_cv_deplibs_check_method=pass_all
6657 freebsd* | dragonfly*)
6658 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6661 # Not sure whether the presence of OpenBSD here was a mistake.
6662 # Let's accept both of them until this is cleared up.
6663 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6664 lt_cv_file_magic_cmd=/usr/bin/file
6665 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6669 lt_cv_deplibs_check_method=pass_all
6674 lt_cv_deplibs_check_method=pass_all
6678 lt_cv_deplibs_check_method=pass_all
6681 hpux10.20* | hpux11*)
6682 lt_cv_file_magic_cmd=/usr/bin/file
6685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6686 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6689 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]'
6690 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6694 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6700 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6704 irix5* | irix6* | nonstopux*)
6706 *-32|*"-32 ") libmagic=32-bit;;
6707 *-n32|*"-n32 ") libmagic=N32;;
6708 *-64|*"-64 ") libmagic=64-bit;;
6709 *) libmagic=never-match;;
6711 lt_cv_deplibs_check_method=pass_all
6714 # This must be glibc/ELF.
6715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6716 lt_cv_deplibs_check_method=pass_all
6720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6729 lt_cv_file_magic_cmd=/usr/bin/file
6730 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6734 lt_cv_deplibs_check_method=pass_all
6738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6745 osf3* | osf4* | osf5*)
6746 lt_cv_deplibs_check_method=pass_all
6750 lt_cv_deplibs_check_method=pass_all
6754 lt_cv_deplibs_check_method=pass_all
6757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6758 lt_cv_deplibs_check_method=pass_all
6762 case $host_vendor in
6764 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]'
6765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6768 lt_cv_deplibs_check_method=pass_all
6771 lt_cv_file_magic_cmd='/bin/file'
6772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6775 lt_cv_file_magic_cmd='/bin/file'
6776 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6777 lt_cv_file_magic_test_file=/lib/libc.so
6780 lt_cv_deplibs_check_method=pass_all
6783 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6795 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6799 if test "$build" = "$host"; then
6802 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6805 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6811 file_magic_cmd=$lt_cv_file_magic_cmd
6812 deplibs_check_method=$lt_cv_deplibs_check_method
6813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_DLLTOOL+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -n "$DLLTOOL"; then
6845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 DLLTOOL=$ac_cv_prog_DLLTOOL
6865 if test -n "$DLLTOOL"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6867 $as_echo "$DLLTOOL" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6875 if test -z "$ac_cv_prog_DLLTOOL"; then
6876 ac_ct_DLLTOOL=$DLLTOOL
6877 # Extract the first word of "dlltool", so it can be a program name with args.
6878 set dummy dlltool; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 if test -n "$ac_ct_DLLTOOL"; then
6885 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6905 if test -n "$ac_ct_DLLTOOL"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6907 $as_echo "$ac_ct_DLLTOOL" >&6; }
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6913 if test "x$ac_ct_DLLTOOL" = x; then
6916 case $cross_compiling:$ac_tool_warned in
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6922 DLLTOOL=$ac_ct_DLLTOOL
6925 DLLTOOL="$ac_cv_prog_DLLTOOL"
6928 test -z "$DLLTOOL" && DLLTOOL=dlltool
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6940 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6941 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6942 $as_echo_n "(cached) " >&6
6944 lt_cv_sharedlib_from_linklib_cmd='unknown'
6947 cygwin* | mingw* | pw32* | cegcc*)
6948 # two different shell functions defined in ltmain.sh
6949 # decide which to use based on capabilities of $DLLTOOL
6950 case `$DLLTOOL --help 2>&1` in
6951 *--identify-strict*)
6952 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6955 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6960 # fallback: assume linklib IS sharedlib
6961 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6967 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6968 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6969 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6977 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_AR+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 if test -n "$AR"; then
6988 ac_cv_prog_AR="$AR" # Let the user override the test.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 if test -n "$AR"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7010 $as_echo "$AR" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7017 test -n "$AR" && break
7020 if test -z "$AR"; then
7024 # Extract the first word of "$ac_prog", so it can be a program name with args.
7025 set dummy $ac_prog; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7029 $as_echo_n "(cached) " >&6
7031 if test -n "$ac_ct_AR"; then
7032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_AR="$ac_prog"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7052 if test -n "$ac_ct_AR"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7054 $as_echo "$ac_ct_AR" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7061 test -n "$ac_ct_AR" && break
7064 if test "x$ac_ct_AR" = x; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7091 $as_echo_n "checking for archiver @FILE support... " >&6; }
7092 if ${lt_cv_ar_at_file+:} false; then :
7093 $as_echo_n "(cached) " >&6
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7107 if ac_fn_c_try_compile "$LINENO"; then :
7108 echo conftest.$ac_objext > conftest.lst
7109 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7111 (eval $lt_ar_try) 2>&5
7113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7114 test $ac_status = 0; }
7115 if test "$ac_status" -eq 0; then
7116 # Ensure the archiver fails upon bogus file names.
7117 rm -f conftest.$ac_objext libconftest.a
7118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7119 (eval $lt_ar_try) 2>&5
7121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122 test $ac_status = 0; }
7123 if test "$ac_status" -ne 0; then
7127 rm -f conftest.* libconftest.a
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7134 $as_echo "$lt_cv_ar_at_file" >&6; }
7136 if test "x$lt_cv_ar_at_file" = xno; then
7139 archiver_list_spec=$lt_cv_ar_at_file
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}strip; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_prog_STRIP+:} false; then :
7154 $as_echo_n "(cached) " >&6
7156 if test -n "$STRIP"; then
7157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 STRIP=$ac_cv_prog_STRIP
7177 if test -n "$STRIP"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7179 $as_echo "$STRIP" >&6; }
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7187 if test -z "$ac_cv_prog_STRIP"; then
7189 # Extract the first word of "strip", so it can be a program name with args.
7190 set dummy strip; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7194 $as_echo_n "(cached) " >&6
7196 if test -n "$ac_ct_STRIP"; then
7197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_ac_ct_STRIP="strip"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7217 if test -n "$ac_ct_STRIP"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7219 $as_echo "$ac_ct_STRIP" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7225 if test "x$ac_ct_STRIP" = x; then
7228 case $cross_compiling:$ac_tool_warned in
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232 ac_tool_warned=yes ;;
7237 STRIP="$ac_cv_prog_STRIP"
7240 test -z "$STRIP" && STRIP=:
7247 if test -n "$ac_tool_prefix"; then
7248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_RANLIB+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 if test -n "$RANLIB"; then
7256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 RANLIB=$ac_cv_prog_RANLIB
7276 if test -n "$RANLIB"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7278 $as_echo "$RANLIB" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7286 if test -z "$ac_cv_prog_RANLIB"; then
7287 ac_ct_RANLIB=$RANLIB
7288 # Extract the first word of "ranlib", so it can be a program name with args.
7289 set dummy ranlib; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -n "$ac_ct_RANLIB"; then
7296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_RANLIB="ranlib"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7316 if test -n "$ac_ct_RANLIB"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7318 $as_echo "$ac_ct_RANLIB" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7324 if test "x$ac_ct_RANLIB" = x; then
7327 case $cross_compiling:$ac_tool_warned in
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7333 RANLIB=$ac_ct_RANLIB
7336 RANLIB="$ac_cv_prog_RANLIB"
7339 test -z "$RANLIB" && RANLIB=:
7346 # Determine commands to create old-style static archives.
7347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7348 old_postinstall_cmds='chmod 644 $oldlib'
7349 old_postuninstall_cmds=
7351 if test -n "$RANLIB"; then
7354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7365 lock_old_archive_extraction=yes ;;
7367 lock_old_archive_extraction=no ;;
7408 # If no C compiler was specified, use CC.
7411 # If no C compiler flags were specified, use CFLAGS.
7412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7414 # Allow CC to be a program name with arguments.
7418 # Check for command to grab the raw symbol name followed by C symbol from nm.
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7420 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7421 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7422 $as_echo_n "(cached) " >&6
7425 # These are sane defaults that work on at least a few old systems.
7426 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7428 # Character class describing NM global symbol codes.
7429 symcode='[BCDEGRST]'
7431 # Regexp to match symbols that can be accessed directly from C.
7432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7434 # Define system-specific variables.
7439 cygwin* | mingw* | pw32* | cegcc*)
7440 symcode='[ABCDGISTW]'
7443 if test "$host_cpu" = ia64; then
7444 symcode='[ABCDEGRST]'
7448 symcode='[BCDEGRST]'
7451 symcode='[BCDEGQRST]'
7462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7470 # If we're using GNU nm, then use its standard symbol codes.
7471 case `$NM -V 2>&1` in
7472 *GNU* | *'with BFD'*)
7473 symcode='[ABCDGIRSTW]' ;;
7476 # Transform an extracted symbol line into a proper C declaration.
7477 # Some systems (esp. on ia64) link data and code symbols differently,
7478 # so use this general approach.
7479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7481 # Transform an extracted symbol line into symbol name and symbol address
7482 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7483 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'"
7485 # Handle CRLF in mingw tool chain
7489 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7493 # Try without a prefix underscore, then with it.
7494 for ac_symprfx in "" "_"; do
7496 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7497 symxfrm="\\1 $ac_symprfx\\2 \\2"
7499 # Write the raw and C identifiers.
7500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7501 # Fake it for dumpbin and say T for any non-static function
7502 # and D for any global variable.
7503 # Also find C++ and __fastcall symbols from MSVC++,
7504 # which start with @ or ?.
7505 lt_cv_sys_global_symbol_pipe="$AWK '"\
7506 " {last_section=section; section=\$ 3};"\
7507 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7508 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7509 " \$ 0!~/External *\|/{next};"\
7510 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7511 " {if(hide[section]) next};"\
7512 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7513 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7514 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7515 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7516 " ' prfx=^$ac_symprfx"
7518 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7520 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7522 # Check to see that the pipe works correctly.
7526 cat > conftest.$ac_ext <<_LT_EOF
7531 void nm_test_func(void);
7532 void nm_test_func(void){}
7536 int main(){nm_test_var='a';nm_test_func();return(0);}
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540 (eval $ac_compile) 2>&5
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 # Now try to grab the symbols.
7546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7547 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; } && test -s "$nlist"; then
7551 # Try sorting and uniquifying the output.
7552 if sort "$nlist" | uniq > "$nlist"T; then
7553 mv -f "$nlist"T "$nlist"
7558 # Make sure that we snagged all the symbols we need.
7559 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7560 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7561 cat <<_LT_EOF > conftest.$ac_ext
7562 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7563 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7564 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7565 relocations are performed -- see ld's documentation on pseudo-relocs. */
7566 # define LT_DLSYM_CONST
7567 #elif defined(__osf__)
7568 /* This system does not cope well with relocations in const data. */
7569 # define LT_DLSYM_CONST
7571 # define LT_DLSYM_CONST const
7579 # Now generate the symbol file.
7580 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7582 cat <<_LT_EOF >> conftest.$ac_ext
7584 /* The mapping between symbol names and symbols. */
7585 LT_DLSYM_CONST struct {
7589 lt__PROGRAM__LTX_preloaded_symbols[] =
7591 { "@PROGRAM@", (void *) 0 },
7593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7594 cat <<\_LT_EOF >> conftest.$ac_ext
7598 /* This works around a problem in FreeBSD linker */
7599 #ifdef FREEBSD_WORKAROUND
7600 static const void *lt_preloaded_setup() {
7601 return lt__PROGRAM__LTX_preloaded_symbols;
7609 # Now try linking the two files.
7610 mv conftest.$ac_objext conftstm.$ac_objext
7611 lt_globsym_save_LIBS=$LIBS
7612 lt_globsym_save_CFLAGS=$CFLAGS
7613 LIBS="conftstm.$ac_objext"
7614 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7616 (eval $ac_link) 2>&5
7618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7622 LIBS=$lt_globsym_save_LIBS
7623 CFLAGS=$lt_globsym_save_CFLAGS
7625 echo "cannot find nm_test_func in $nlist" >&5
7628 echo "cannot find nm_test_var in $nlist" >&5
7631 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7634 echo "$progname: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7637 rm -rf conftest* conftst*
7639 # Do not use the global_symbol_pipe unless it works.
7640 if test "$pipe_works" = yes; then
7643 lt_cv_sys_global_symbol_pipe=
7649 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7650 lt_cv_sys_global_symbol_to_cdecl=
7652 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7654 $as_echo "failed" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7657 $as_echo "ok" >&6; }
7660 # Response file support.
7661 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7662 nm_file_list_spec='@'
7663 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7664 nm_file_list_spec='@'
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7694 $as_echo_n "checking for sysroot... " >&6; }
7696 # Check whether --with-sysroot was given.
7697 if test "${with_sysroot+set}" = set; then :
7698 withval=$with_sysroot;
7705 case ${with_sysroot} in #(
7707 if test "$GCC" = yes; then
7708 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7712 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7718 $as_echo "${with_sysroot}" >&6; }
7719 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7724 $as_echo "${lt_sysroot:-no}" >&6; }
7730 # Check whether --enable-libtool-lock was given.
7731 if test "${enable_libtool_lock+set}" = set; then :
7732 enableval=$enable_libtool_lock;
7735 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7737 # Some flags need to be propagated to the compiler or linker for good
7741 # Find out which ABI we are using.
7742 echo 'int i;' > conftest.$ac_ext
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744 (eval $ac_compile) 2>&5
7746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; }; then
7748 case `/usr/bin/file conftest.$ac_objext` in
7760 # Find out which ABI we are using.
7761 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7763 (eval $ac_compile) 2>&5
7765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766 test $ac_status = 0; }; then
7767 if test "$lt_cv_prog_gnu_ld" = yes; then
7768 case `/usr/bin/file conftest.$ac_objext` in
7770 LD="${LD-ld} -melf32bsmip"
7773 LD="${LD-ld} -melf32bmipn32"
7776 LD="${LD-ld} -melf64bmip"
7780 case `/usr/bin/file conftest.$ac_objext` in
7796 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7797 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7798 # Find out which ABI we are using.
7799 echo 'int i;' > conftest.$ac_ext
7800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7801 (eval $ac_compile) 2>&5
7803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7804 test $ac_status = 0; }; then
7805 case `/usr/bin/file conftest.o` in
7808 x86_64-*kfreebsd*-gnu)
7809 LD="${LD-ld} -m elf_i386_fbsd"
7812 LD="${LD-ld} -m elf_i386"
7814 ppc64-*linux*|powerpc64-*linux*)
7815 LD="${LD-ld} -m elf32ppclinux"
7818 LD="${LD-ld} -m elf_s390"
7821 LD="${LD-ld} -m elf32_sparc"
7827 x86_64-*kfreebsd*-gnu)
7828 LD="${LD-ld} -m elf_x86_64_fbsd"
7831 LD="${LD-ld} -m elf_x86_64"
7833 ppc*-*linux*|powerpc*-*linux*)
7834 LD="${LD-ld} -m elf64ppc"
7836 s390*-*linux*|s390*-*tpf*)
7837 LD="${LD-ld} -m elf64_s390"
7840 LD="${LD-ld} -m elf64_sparc"
7850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7851 SAVE_CFLAGS="$CFLAGS"
7852 CFLAGS="$CFLAGS -belf"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7854 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7855 if ${lt_cv_cc_needs_belf+:} false; then :
7856 $as_echo_n "(cached) " >&6
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 lt_cv_cc_needs_belf=yes
7878 lt_cv_cc_needs_belf=no
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7883 ac_cpp='$CPP $CPPFLAGS'
7884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7893 CFLAGS="$SAVE_CFLAGS"
7897 # Find out which ABI we are using.
7898 echo 'int i;' > conftest.$ac_ext
7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900 (eval $ac_compile) 2>&5
7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; }; then
7904 case `/usr/bin/file conftest.o` in
7906 case $lt_cv_prog_gnu_ld in
7910 LD="${LD-ld} -m elf_x86_64"
7913 LD="${LD-ld} -m elf64_sparc"
7916 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7917 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7922 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7934 need_locks="$enable_libtool_lock"
7936 if test -n "$ac_tool_prefix"; then
7937 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7938 set dummy ${ac_tool_prefix}mt; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$MANIFEST_TOOL"; then
7945 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7965 if test -n "$MANIFEST_TOOL"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7967 $as_echo "$MANIFEST_TOOL" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7975 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7976 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7977 # Extract the first word of "mt", so it can be a program name with args.
7978 set dummy mt; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7982 $as_echo_n "(cached) " >&6
7984 if test -n "$ac_ct_MANIFEST_TOOL"; then
7985 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8005 if test -n "$ac_ct_MANIFEST_TOOL"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8007 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8013 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8016 case $cross_compiling:$ac_tool_warned in
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8022 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8025 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8028 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8030 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8031 if ${lt_cv_path_mainfest_tool+:} false; then :
8032 $as_echo_n "(cached) " >&6
8034 lt_cv_path_mainfest_tool=no
8035 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8036 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8037 cat conftest.err >&5
8038 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8039 lt_cv_path_mainfest_tool=yes
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8044 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8045 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8055 rhapsody* | darwin*)
8056 if test -n "$ac_tool_prefix"; then
8057 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8062 $as_echo_n "(cached) " >&6
8064 if test -n "$DSYMUTIL"; then
8065 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8085 if test -n "$DSYMUTIL"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8087 $as_echo "$DSYMUTIL" >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8095 if test -z "$ac_cv_prog_DSYMUTIL"; then
8096 ac_ct_DSYMUTIL=$DSYMUTIL
8097 # Extract the first word of "dsymutil", so it can be a program name with args.
8098 set dummy dsymutil; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8102 $as_echo_n "(cached) " >&6
8104 if test -n "$ac_ct_DSYMUTIL"; then
8105 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8125 if test -n "$ac_ct_DSYMUTIL"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8127 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8133 if test "x$ac_ct_DSYMUTIL" = x; then
8136 case $cross_compiling:$ac_tool_warned in
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8140 ac_tool_warned=yes ;;
8142 DSYMUTIL=$ac_ct_DSYMUTIL
8145 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8148 if test -n "$ac_tool_prefix"; then
8149 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_NMEDIT+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 if test -n "$NMEDIT"; then
8157 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 NMEDIT=$ac_cv_prog_NMEDIT
8177 if test -n "$NMEDIT"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8179 $as_echo "$NMEDIT" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8187 if test -z "$ac_cv_prog_NMEDIT"; then
8188 ac_ct_NMEDIT=$NMEDIT
8189 # Extract the first word of "nmedit", so it can be a program name with args.
8190 set dummy nmedit; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8194 $as_echo_n "(cached) " >&6
8196 if test -n "$ac_ct_NMEDIT"; then
8197 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8217 if test -n "$ac_ct_NMEDIT"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8219 $as_echo "$ac_ct_NMEDIT" >&6; }
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8225 if test "x$ac_ct_NMEDIT" = x; then
8228 case $cross_compiling:$ac_tool_warned in
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232 ac_tool_warned=yes ;;
8234 NMEDIT=$ac_ct_NMEDIT
8237 NMEDIT="$ac_cv_prog_NMEDIT"
8240 if test -n "$ac_tool_prefix"; then
8241 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_LIPO+:} false; then :
8246 $as_echo_n "(cached) " >&6
8248 if test -n "$LIPO"; then
8249 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 LIPO=$ac_cv_prog_LIPO
8269 if test -n "$LIPO"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8271 $as_echo "$LIPO" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8279 if test -z "$ac_cv_prog_LIPO"; then
8281 # Extract the first word of "lipo", so it can be a program name with args.
8282 set dummy lipo; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8286 $as_echo_n "(cached) " >&6
8288 if test -n "$ac_ct_LIPO"; then
8289 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_ac_ct_LIPO="lipo"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8309 if test -n "$ac_ct_LIPO"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8311 $as_echo "$ac_ct_LIPO" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8317 if test "x$ac_ct_LIPO" = x; then
8320 case $cross_compiling:$ac_tool_warned in
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8329 LIPO="$ac_cv_prog_LIPO"
8332 if test -n "$ac_tool_prefix"; then
8333 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}otool; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_OTOOL+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$OTOOL"; then
8341 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 OTOOL=$ac_cv_prog_OTOOL
8361 if test -n "$OTOOL"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8363 $as_echo "$OTOOL" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 if test -z "$ac_cv_prog_OTOOL"; then
8373 # Extract the first word of "otool", so it can be a program name with args.
8374 set dummy otool; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 if test -n "$ac_ct_OTOOL"; then
8381 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_ac_ct_OTOOL="otool"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8401 if test -n "$ac_ct_OTOOL"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8403 $as_echo "$ac_ct_OTOOL" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8409 if test "x$ac_ct_OTOOL" = x; then
8412 case $cross_compiling:$ac_tool_warned in
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8421 OTOOL="$ac_cv_prog_OTOOL"
8424 if test -n "$ac_tool_prefix"; then
8425 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_OTOOL64+:} false; then :
8430 $as_echo_n "(cached) " >&6
8432 if test -n "$OTOOL64"; then
8433 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 OTOOL64=$ac_cv_prog_OTOOL64
8453 if test -n "$OTOOL64"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8455 $as_echo "$OTOOL64" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8463 if test -z "$ac_cv_prog_OTOOL64"; then
8464 ac_ct_OTOOL64=$OTOOL64
8465 # Extract the first word of "otool64", so it can be a program name with args.
8466 set dummy otool64; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8470 $as_echo_n "(cached) " >&6
8472 if test -n "$ac_ct_OTOOL64"; then
8473 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_ac_ct_OTOOL64="otool64"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8493 if test -n "$ac_ct_OTOOL64"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8495 $as_echo "$ac_ct_OTOOL64" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8501 if test "x$ac_ct_OTOOL64" = x; then
8504 case $cross_compiling:$ac_tool_warned in
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8508 ac_tool_warned=yes ;;
8510 OTOOL64=$ac_ct_OTOOL64
8513 OTOOL64="$ac_cv_prog_OTOOL64"
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8543 $as_echo_n "checking for -single_module linker flag... " >&6; }
8544 if ${lt_cv_apple_cc_single_mod+:} false; then :
8545 $as_echo_n "(cached) " >&6
8547 lt_cv_apple_cc_single_mod=no
8548 if test -z "${LT_MULTI_MODULE}"; then
8549 # By default we will add the -single_module flag. You can override
8550 # by either setting the environment variable LT_MULTI_MODULE
8551 # non-empty at configure time, or by adding -multi_module to the
8553 rm -rf libconftest.dylib*
8554 echo "int foo(void){return 1;}" > conftest.c
8555 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8556 -dynamiclib -Wl,-single_module conftest.c" >&5
8557 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8558 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8560 # If there is a non-empty error log, and "single_module"
8561 # appears in it, assume the flag caused a linker warning
8562 if test -s conftest.err && $GREP single_module conftest.err; then
8563 cat conftest.err >&5
8564 # Otherwise, if the output was created with a 0 exit code from
8565 # the compiler, it worked.
8566 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8567 lt_cv_apple_cc_single_mod=yes
8569 cat conftest.err >&5
8571 rm -rf libconftest.dylib*
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8576 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8579 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8580 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8581 $as_echo_n "(cached) " >&6
8583 lt_cv_ld_exported_symbols_list=no
8584 save_LDFLAGS=$LDFLAGS
8585 echo "_main" > conftest.sym
8586 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8598 if ac_fn_c_try_link "$LINENO"; then :
8599 lt_cv_ld_exported_symbols_list=yes
8601 lt_cv_ld_exported_symbols_list=no
8603 rm -f core conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 LDFLAGS="$save_LDFLAGS"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8609 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8612 $as_echo_n "checking for -force_load linker flag... " >&6; }
8613 if ${lt_cv_ld_force_load+:} false; then :
8614 $as_echo_n "(cached) " >&6
8616 lt_cv_ld_force_load=no
8617 cat > conftest.c << _LT_EOF
8618 int forced_loaded() { return 2;}
8620 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8621 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8622 echo "$AR cru libconftest.a conftest.o" >&5
8623 $AR cru libconftest.a conftest.o 2>&5
8624 echo "$RANLIB libconftest.a" >&5
8625 $RANLIB libconftest.a 2>&5
8626 cat > conftest.c << _LT_EOF
8627 int main() { return 0;}
8629 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8630 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8632 if test -s conftest.err && $GREP force_load conftest.err; then
8633 cat conftest.err >&5
8634 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8635 lt_cv_ld_force_load=yes
8637 cat conftest.err >&5
8639 rm -f conftest.err libconftest.a conftest conftest.c
8640 rm -rf conftest.dSYM
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8644 $as_echo "$lt_cv_ld_force_load" >&6; }
8646 rhapsody* | darwin1.[012])
8647 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8650 darwin*) # darwin 5.x on
8651 # if running on 10.5 or later, the deployment target defaults
8652 # to the OS version, if on x86, and 10.4, the deployment
8653 # target defaults to 10.4. Don't you love it?
8654 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8655 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8656 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8660 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8664 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8665 _lt_dar_single_mod='$single_module'
8667 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8668 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8670 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8672 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8673 _lt_dsymutil='~$DSYMUTIL $lib || :'
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8686 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8687 # On Suns, sometimes $CPP names a directory.
8688 if test -n "$CPP" && test -d "$CPP"; then
8691 if test -z "$CPP"; then
8692 if ${ac_cv_prog_CPP+:} false; then :
8693 $as_echo_n "(cached) " >&6
8695 # Double quotes because CPP needs to be expanded
8696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8699 for ac_c_preproc_warn_flag in '' yes
8701 # Use a header file that comes with gcc, so configuring glibc
8702 # with a fresh cross-compiler works.
8703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704 # <limits.h> exists even on freestanding compilers.
8705 # On the NeXT, cc -E runs the code through the compiler's parser,
8706 # not just through cpp. "Syntax error" is here to catch this case.
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8710 # include <limits.h>
8712 # include <assert.h>
8716 if ac_fn_c_try_cpp "$LINENO"; then :
8719 # Broken: fails on valid input.
8722 rm -f conftest.err conftest.i conftest.$ac_ext
8724 # OK, works on sane cases. Now check whether nonexistent headers
8725 # can be detected and how.
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <ac_nonexistent.h>
8730 if ac_fn_c_try_cpp "$LINENO"; then :
8731 # Broken: success on invalid input.
8734 # Passes both tests.
8738 rm -f conftest.err conftest.i conftest.$ac_ext
8741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8742 rm -f conftest.i conftest.err conftest.$ac_ext
8743 if $ac_preproc_ok; then :
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8756 $as_echo "$CPP" >&6; }
8758 for ac_c_preproc_warn_flag in '' yes
8760 # Use a header file that comes with gcc, so configuring glibc
8761 # with a fresh cross-compiler works.
8762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8763 # <limits.h> exists even on freestanding compilers.
8764 # On the NeXT, cc -E runs the code through the compiler's parser,
8765 # not just through cpp. "Syntax error" is here to catch this case.
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8769 # include <limits.h>
8771 # include <assert.h>
8775 if ac_fn_c_try_cpp "$LINENO"; then :
8778 # Broken: fails on valid input.
8781 rm -f conftest.err conftest.i conftest.$ac_ext
8783 # OK, works on sane cases. Now check whether nonexistent headers
8784 # can be detected and how.
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 #include <ac_nonexistent.h>
8789 if ac_fn_c_try_cpp "$LINENO"; then :
8790 # Broken: success on invalid input.
8793 # Passes both tests.
8797 rm -f conftest.err conftest.i conftest.$ac_ext
8800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8801 rm -f conftest.i conftest.err conftest.$ac_ext
8802 if $ac_preproc_ok; then :
8805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8807 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8808 See \`config.log' for more details" "$LINENO" 5; }
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8819 $as_echo_n "checking for ANSI C header files... " >&6; }
8820 if ${ac_cv_header_stdc+:} false; then :
8821 $as_echo_n "(cached) " >&6
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 ac_cv_header_stdc=yes
8841 ac_cv_header_stdc=no
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 if test $ac_cv_header_stdc = yes; then
8846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8853 $EGREP "memchr" >/dev/null 2>&1; then :
8856 ac_cv_header_stdc=no
8862 if test $ac_cv_header_stdc = yes; then
8863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870 $EGREP "free" >/dev/null 2>&1; then :
8873 ac_cv_header_stdc=no
8879 if test $ac_cv_header_stdc = yes; then
8880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8881 if test "$cross_compiling" = yes; then :
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8888 #if ((' ' & 0x0FF) == 0x020)
8889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8892 # define ISLOWER(c) \
8893 (('a' <= (c) && (c) <= 'i') \
8894 || ('j' <= (c) && (c) <= 'r') \
8895 || ('s' <= (c) && (c) <= 'z'))
8896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8904 for (i = 0; i < 256; i++)
8905 if (XOR (islower (i), ISLOWER (i))
8906 || toupper (i) != TOUPPER (i))
8911 if ac_fn_c_try_run "$LINENO"; then :
8914 ac_cv_header_stdc=no
8916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8917 conftest.$ac_objext conftest.beam conftest.$ac_ext
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8923 $as_echo "$ac_cv_header_stdc" >&6; }
8924 if test $ac_cv_header_stdc = yes; then
8926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8932 inttypes.h stdint.h unistd.h
8934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8935 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8938 cat >>confdefs.h <<_ACEOF
8939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8947 for ac_header in dlfcn.h
8949 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8951 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_DLFCN_H 1
8963 func_stripname_cnf ()
8966 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8967 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8969 } # func_stripname_cnf
8985 # Check whether --enable-shared was given.
8986 if test "${enable_shared+set}" = set; then :
8987 enableval=$enable_shared; p=${PACKAGE-default}
8989 yes) enable_shared=yes ;;
8990 no) enable_shared=no ;;
8993 # Look at the argument we got. We use all the common list separators.
8994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8995 for pkg in $enableval; do
8997 if test "X$pkg" = "X$p"; then
9016 # Check whether --enable-static was given.
9017 if test "${enable_static+set}" = set; then :
9018 enableval=$enable_static; p=${PACKAGE-default}
9020 yes) enable_static=yes ;;
9021 no) enable_static=no ;;
9024 # Look at the argument we got. We use all the common list separators.
9025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9026 for pkg in $enableval; do
9028 if test "X$pkg" = "X$p"; then
9048 # Check whether --with-pic was given.
9049 if test "${with_pic+set}" = set; then :
9050 withval=$with_pic; lt_p=${PACKAGE-default}
9052 yes|no) pic_mode=$withval ;;
9055 # Look at the argument we got. We use all the common list separators.
9056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9057 for lt_pkg in $withval; do
9059 if test "X$lt_pkg" = "X$lt_p"; then
9071 test -z "$pic_mode" && pic_mode=default
9079 # Check whether --enable-fast-install was given.
9080 if test "${enable_fast_install+set}" = set; then :
9081 enableval=$enable_fast_install; p=${PACKAGE-default}
9083 yes) enable_fast_install=yes ;;
9084 no) enable_fast_install=no ;;
9086 enable_fast_install=no
9087 # Look at the argument we got. We use all the common list separators.
9088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9089 for pkg in $enableval; do
9091 if test "X$pkg" = "X$p"; then
9092 enable_fast_install=yes
9099 enable_fast_install=yes
9112 # This can be used to rebuild libtool when needed
9113 LIBTOOL_DEPS="$ltmain"
9115 # Always use our own libtool.
9116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9147 test -z "$LN_S" && LN_S="ln -s"
9162 if test -n "${ZSH_VERSION+set}" ; then
9163 setopt NO_GLOB_SUBST
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9167 $as_echo_n "checking for objdir... " >&6; }
9168 if ${lt_cv_objdir+:} false; then :
9169 $as_echo_n "(cached) " >&6
9171 rm -f .libs 2>/dev/null
9172 mkdir .libs 2>/dev/null
9173 if test -d .libs; then
9176 # MS-DOS does not allow filenames that begin with a dot.
9179 rmdir .libs 2>/dev/null
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9182 $as_echo "$lt_cv_objdir" >&6; }
9183 objdir=$lt_cv_objdir
9189 cat >>confdefs.h <<_ACEOF
9190 #define LT_OBJDIR "$lt_cv_objdir/"
9198 # AIX sometimes has problems with the GCC collect2 program. For some
9199 # reason, if we set the COLLECT_NAMES environment variable, the problems
9200 # vanish in a puff of smoke.
9201 if test "X${COLLECT_NAMES+set}" != Xset; then
9203 export COLLECT_NAMES
9210 can_build_shared=yes
9212 # All known linkers require a `.a' archive for static linking (except MSVC,
9213 # which needs '.lib').
9216 with_gnu_ld="$lt_cv_prog_gnu_ld"
9219 old_CFLAGS="$CFLAGS"
9221 # Set sane defaults for various variables
9222 test -z "$CC" && CC=cc
9223 test -z "$LTCC" && LTCC=$CC
9224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9225 test -z "$LD" && LD=ld
9226 test -z "$ac_objext" && ac_objext=o
9228 for cc_temp in $compiler""; do
9230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9236 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9239 # Only perform the check for file, if the check method requires it
9240 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9241 case $deplibs_check_method in
9243 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9245 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9246 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9247 $as_echo_n "(cached) " >&6
9251 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9254 lt_save_MAGIC_CMD="$MAGIC_CMD"
9255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9256 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9257 for ac_dir in $ac_dummy; do
9259 test -z "$ac_dir" && ac_dir=.
9260 if test -f $ac_dir/${ac_tool_prefix}file; then
9261 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9262 if test -n "$file_magic_test_file"; then
9263 case $deplibs_check_method in
9265 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9267 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9268 $EGREP "$file_magic_regex" > /dev/null; then
9273 *** Warning: the command libtool uses to detect shared libraries,
9274 *** $file_magic_cmd, produces output that libtool cannot recognize.
9275 *** The result is that libtool may fail to recognize shared libraries
9276 *** as such. This will affect the creation of libtool libraries that
9277 *** depend on shared libraries, but programs linked with such libtool
9278 *** libraries will work regardless of this problem. Nevertheless, you
9279 *** may want to report the problem to your system manager and/or to
9280 *** bug-libtool@gnu.org
9290 MAGIC_CMD="$lt_save_MAGIC_CMD"
9295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9296 if test -n "$MAGIC_CMD"; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9298 $as_echo "$MAGIC_CMD" >&6; }
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9308 if test -z "$lt_cv_path_MAGIC_CMD"; then
9309 if test -n "$ac_tool_prefix"; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9311 $as_echo_n "checking for file... " >&6; }
9312 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9313 $as_echo_n "(cached) " >&6
9317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9320 lt_save_MAGIC_CMD="$MAGIC_CMD"
9321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9323 for ac_dir in $ac_dummy; do
9325 test -z "$ac_dir" && ac_dir=.
9326 if test -f $ac_dir/file; then
9327 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9328 if test -n "$file_magic_test_file"; then
9329 case $deplibs_check_method in
9331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9334 $EGREP "$file_magic_regex" > /dev/null; then
9339 *** Warning: the command libtool uses to detect shared libraries,
9340 *** $file_magic_cmd, produces output that libtool cannot recognize.
9341 *** The result is that libtool may fail to recognize shared libraries
9342 *** as such. This will affect the creation of libtool libraries that
9343 *** depend on shared libraries, but programs linked with such libtool
9344 *** libraries will work regardless of this problem. Nevertheless, you
9345 *** may want to report the problem to your system manager and/or to
9346 *** bug-libtool@gnu.org
9356 MAGIC_CMD="$lt_save_MAGIC_CMD"
9361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9362 if test -n "$MAGIC_CMD"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9364 $as_echo "$MAGIC_CMD" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9380 # Use C for the default configuration in the libtool script
9384 ac_cpp='$CPP $CPPFLAGS'
9385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9390 # Source file extension for C test sources.
9393 # Object file extension for compiled C test sources.
9397 # Code to be used in simple compile tests
9398 lt_simple_compile_test_code="int some_variable = 0;"
9400 # Code to be used in simple link tests
9401 lt_simple_link_test_code='int main(){return(0);}'
9409 # If no C compiler was specified, use CC.
9412 # If no C compiler flags were specified, use CFLAGS.
9413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9415 # Allow CC to be a program name with arguments.
9418 # Save the default compiler, since it gets overwritten when the other
9419 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9420 compiler_DEFAULT=$CC
9422 # save warnings/boilerplate of simple test code
9423 ac_outfile=conftest.$ac_objext
9424 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9425 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9426 _lt_compiler_boilerplate=`cat conftest.err`
9429 ac_outfile=conftest.$ac_objext
9430 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9431 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9432 _lt_linker_boilerplate=`cat conftest.err`
9437 ## There is no encapsulation within the following macros, do not change
9438 ## the running order or otherwise move them around unless you know exactly
9439 ## what you are doing...
9440 if test -n "$compiler"; then
9442 lt_prog_compiler_no_builtin_flag=
9444 if test "$GCC" = yes; then
9445 case $cc_basename in
9447 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9449 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9453 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9454 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9455 $as_echo_n "(cached) " >&6
9457 lt_cv_prog_compiler_rtti_exceptions=no
9458 ac_outfile=conftest.$ac_objext
9459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9460 lt_compiler_flag="-fno-rtti -fno-exceptions"
9461 # Insert the option either (1) after the last *FLAGS variable, or
9462 # (2) before a word containing "conftest.", or (3) at the end.
9463 # Note that $ac_compile itself does not contain backslashes and begins
9464 # with a dollar sign (not a hyphen), so the echo should work correctly.
9465 # The option is referenced via a variable to avoid confusing sed.
9466 lt_compile=`echo "$ac_compile" | $SED \
9467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9469 -e 's:$: $lt_compiler_flag:'`
9470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9471 (eval "$lt_compile" 2>conftest.err)
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 if (exit $ac_status) && test -s "$ac_outfile"; then
9476 # The compiler can only warn and ignore the option if not recognized
9477 # So say no if there are warnings other than the usual output.
9478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9481 lt_cv_prog_compiler_rtti_exceptions=yes
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9488 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9490 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9491 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9503 lt_prog_compiler_wl=
9504 lt_prog_compiler_pic=
9505 lt_prog_compiler_static=
9508 if test "$GCC" = yes; then
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_static='-static'
9514 # All AIX code is PIC.
9515 if test "$host_cpu" = ia64; then
9516 # AIX 5 now supports IA64 processor
9517 lt_prog_compiler_static='-Bstatic'
9524 # see comment about AmigaOS4 .so support
9525 lt_prog_compiler_pic='-fPIC'
9528 # FIXME: we need at least 68020 code to build shared libraries, but
9529 # adding the `-m68020' flag to GCC prevents building anything better,
9531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9537 # PIC is the default for these OSes.
9540 mingw* | cygwin* | pw32* | os2* | cegcc*)
9541 # This hack is so that the source file can tell whether it is being
9542 # built for inclusion in a dll (and should export symbols for example).
9543 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9544 # (--disable-auto-import) libraries
9545 lt_prog_compiler_pic='-DDLL_EXPORT'
9548 darwin* | rhapsody*)
9549 # PIC is the default on this platform
9550 # Common symbols not allowed in MH_DYLIB files
9551 lt_prog_compiler_pic='-fno-common'
9555 # PIC is the default for Haiku.
9556 # The "-static" flag exists, but is broken.
9557 lt_prog_compiler_static=
9561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9563 # sets the default TLS model and affects inlining.
9569 lt_prog_compiler_pic='-fPIC'
9575 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9576 # Instead, we relocate shared libraries at runtime.
9580 # Just because we use GCC doesn't mean we suddenly get shared libraries
9581 # on systems that don't support them.
9582 lt_prog_compiler_can_build_shared=no
9587 # QNX uses GNU C++, but need to define -shared option too, otherwise
9589 lt_prog_compiler_pic='-fPIC -shared'
9593 if test -d /usr/nec; then
9594 lt_prog_compiler_pic=-Kconform_pic
9599 lt_prog_compiler_pic='-fPIC'
9603 case $cc_basename in
9604 nvcc*) # Cuda Compiler Driver 2.2
9605 lt_prog_compiler_wl='-Xlinker '
9606 if test -n "$lt_prog_compiler_pic"; then
9607 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9612 # PORTME Check for flag to pass linker flags through the system compiler.
9615 lt_prog_compiler_wl='-Wl,'
9616 if test "$host_cpu" = ia64; then
9617 # AIX 5 now supports IA64 processor
9618 lt_prog_compiler_static='-Bstatic'
9620 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9624 mingw* | cygwin* | pw32* | os2* | cegcc*)
9625 # This hack is so that the source file can tell whether it is being
9626 # built for inclusion in a dll (and should export symbols for example).
9627 lt_prog_compiler_pic='-DDLL_EXPORT'
9630 hpux9* | hpux10* | hpux11*)
9631 lt_prog_compiler_wl='-Wl,'
9632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9639 lt_prog_compiler_pic='+Z'
9642 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9643 lt_prog_compiler_static='${wl}-a ${wl}archive'
9646 irix5* | irix6* | nonstopux*)
9647 lt_prog_compiler_wl='-Wl,'
9648 # PIC (with -KPIC) is the default.
9649 lt_prog_compiler_static='-non_shared'
9652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9653 case $cc_basename in
9654 # old Intel for x86_64 which still supported -KPIC.
9656 lt_prog_compiler_wl='-Wl,'
9657 lt_prog_compiler_pic='-KPIC'
9658 lt_prog_compiler_static='-static'
9660 # icc used to be incompatible with GCC.
9661 # ICC 10 doesn't accept -KPIC any more.
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_pic='-fPIC'
9665 lt_prog_compiler_static='-static'
9667 # Lahey Fortran 8.1.
9669 lt_prog_compiler_wl='-Wl,'
9670 lt_prog_compiler_pic='--shared'
9671 lt_prog_compiler_static='--static'
9674 # NAG Fortran compiler
9675 lt_prog_compiler_wl='-Wl,-Wl,,'
9676 lt_prog_compiler_pic='-PIC'
9677 lt_prog_compiler_static='-Bstatic'
9679 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9680 # Portland Group compilers (*not* the Pentium gcc compiler,
9681 # which looks to be a dead project)
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_pic='-fpic'
9684 lt_prog_compiler_static='-Bstatic'
9687 lt_prog_compiler_wl='-Wl,'
9688 # All Alpha code is PIC.
9689 lt_prog_compiler_static='-non_shared'
9691 xl* | bgxl* | bgf* | mpixl*)
9692 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9693 lt_prog_compiler_wl='-Wl,'
9694 lt_prog_compiler_pic='-qpic'
9695 lt_prog_compiler_static='-qstaticlink'
9698 case `$CC -V 2>&1 | sed 5q` in
9699 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9700 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9701 lt_prog_compiler_pic='-KPIC'
9702 lt_prog_compiler_static='-Bstatic'
9703 lt_prog_compiler_wl=''
9705 *Sun\ F* | *Sun*Fortran*)
9706 lt_prog_compiler_pic='-KPIC'
9707 lt_prog_compiler_static='-Bstatic'
9708 lt_prog_compiler_wl='-Qoption ld '
9712 lt_prog_compiler_pic='-KPIC'
9713 lt_prog_compiler_static='-Bstatic'
9714 lt_prog_compiler_wl='-Wl,'
9716 *Intel*\ [CF]*Compiler*)
9717 lt_prog_compiler_wl='-Wl,'
9718 lt_prog_compiler_pic='-fPIC'
9719 lt_prog_compiler_static='-static'
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-fpic'
9724 lt_prog_compiler_static='-Bstatic'
9732 lt_prog_compiler_pic='-KPIC'
9733 lt_prog_compiler_static='-Bstatic'
9737 # QNX uses GNU C++, but need to define -shared option too, otherwise
9739 lt_prog_compiler_pic='-fPIC -shared'
9742 osf3* | osf4* | osf5*)
9743 lt_prog_compiler_wl='-Wl,'
9744 # All OSF/1 code is PIC.
9745 lt_prog_compiler_static='-non_shared'
9749 lt_prog_compiler_static='-non_shared'
9753 lt_prog_compiler_pic='-KPIC'
9754 lt_prog_compiler_static='-Bstatic'
9755 case $cc_basename in
9756 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9757 lt_prog_compiler_wl='-Qoption ld ';;
9759 lt_prog_compiler_wl='-Wl,';;
9764 lt_prog_compiler_wl='-Qoption ld '
9765 lt_prog_compiler_pic='-PIC'
9766 lt_prog_compiler_static='-Bstatic'
9769 sysv4 | sysv4.2uw2* | sysv4.3*)
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_pic='-KPIC'
9772 lt_prog_compiler_static='-Bstatic'
9776 if test -d /usr/nec ;then
9777 lt_prog_compiler_pic='-Kconform_pic'
9778 lt_prog_compiler_static='-Bstatic'
9782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9783 lt_prog_compiler_wl='-Wl,'
9784 lt_prog_compiler_pic='-KPIC'
9785 lt_prog_compiler_static='-Bstatic'
9789 lt_prog_compiler_wl='-Wl,'
9790 lt_prog_compiler_can_build_shared=no
9794 lt_prog_compiler_pic='-pic'
9795 lt_prog_compiler_static='-Bstatic'
9799 lt_prog_compiler_can_build_shared=no
9805 # For platforms which do not support PIC, -DPIC is meaningless:
9807 lt_prog_compiler_pic=
9810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9815 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9816 if ${lt_cv_prog_compiler_pic+:} false; then :
9817 $as_echo_n "(cached) " >&6
9819 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9822 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9823 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9826 # Check to make sure the PIC flag actually works.
9828 if test -n "$lt_prog_compiler_pic"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9830 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9831 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9832 $as_echo_n "(cached) " >&6
9834 lt_cv_prog_compiler_pic_works=no
9835 ac_outfile=conftest.$ac_objext
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9838 # Insert the option either (1) after the last *FLAGS variable, or
9839 # (2) before a word containing "conftest.", or (3) at the end.
9840 # Note that $ac_compile itself does not contain backslashes and begins
9841 # with a dollar sign (not a hyphen), so the echo should work correctly.
9842 # The option is referenced via a variable to avoid confusing sed.
9843 lt_compile=`echo "$ac_compile" | $SED \
9844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846 -e 's:$: $lt_compiler_flag:'`
9847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9848 (eval "$lt_compile" 2>conftest.err)
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 if (exit $ac_status) && test -s "$ac_outfile"; then
9853 # The compiler can only warn and ignore the option if not recognized
9854 # So say no if there are warnings other than the usual output.
9855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler_pic_works=yes
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9865 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9867 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9868 case $lt_prog_compiler_pic in
9870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9873 lt_prog_compiler_pic=
9874 lt_prog_compiler_can_build_shared=no
9890 # Check to make sure the static flag actually works.
9892 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9894 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9895 if ${lt_cv_prog_compiler_static_works+:} false; then :
9896 $as_echo_n "(cached) " >&6
9898 lt_cv_prog_compiler_static_works=no
9899 save_LDFLAGS="$LDFLAGS"
9900 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9901 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9903 # The linker can only warn and ignore the option if not recognized
9904 # So say no if there are warnings
9905 if test -s conftest.err; then
9906 # Append any errors to the config.log.
9907 cat conftest.err 1>&5
9908 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9910 if diff conftest.exp conftest.er2 >/dev/null; then
9911 lt_cv_prog_compiler_static_works=yes
9914 lt_cv_prog_compiler_static_works=yes
9918 LDFLAGS="$save_LDFLAGS"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9922 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9924 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9927 lt_prog_compiler_static=
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9937 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9938 if ${lt_cv_prog_compiler_c_o+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 lt_cv_prog_compiler_c_o=no
9942 $RM -r conftest 2>/dev/null
9946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9948 lt_compiler_flag="-o out/conftest2.$ac_objext"
9949 # Insert the option either (1) after the last *FLAGS variable, or
9950 # (2) before a word containing "conftest.", or (3) at the end.
9951 # Note that $ac_compile itself does not contain backslashes and begins
9952 # with a dollar sign (not a hyphen), so the echo should work correctly.
9953 lt_compile=`echo "$ac_compile" | $SED \
9954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9956 -e 's:$: $lt_compiler_flag:'`
9957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9958 (eval "$lt_compile" 2>out/conftest.err)
9960 cat out/conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9964 # The compiler can only warn and ignore the option if not recognized
9965 # So say no if there are warnings
9966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9969 lt_cv_prog_compiler_c_o=yes
9974 # SGI C++ compiler will create directory out/ii_files/ for
9975 # template instantiation
9976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9977 $RM out/* && rmdir out
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9984 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9993 if ${lt_cv_prog_compiler_c_o+:} false; then :
9994 $as_echo_n "(cached) " >&6
9996 lt_cv_prog_compiler_c_o=no
9997 $RM -r conftest 2>/dev/null
10001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10003 lt_compiler_flag="-o out/conftest2.$ac_objext"
10004 # Insert the option either (1) after the last *FLAGS variable, or
10005 # (2) before a word containing "conftest.", or (3) at the end.
10006 # Note that $ac_compile itself does not contain backslashes and begins
10007 # with a dollar sign (not a hyphen), so the echo should work correctly.
10008 lt_compile=`echo "$ac_compile" | $SED \
10009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10011 -e 's:$: $lt_compiler_flag:'`
10012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10013 (eval "$lt_compile" 2>out/conftest.err)
10015 cat out/conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10019 # The compiler can only warn and ignore the option if not recognized
10020 # So say no if there are warnings
10021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10024 lt_cv_prog_compiler_c_o=yes
10029 # SGI C++ compiler will create directory out/ii_files/ for
10030 # template instantiation
10031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10032 $RM out/* && rmdir out
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10039 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10044 hard_links="nottested"
10045 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10046 # do not overwrite the value of need_locks provided by the user
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10048 $as_echo_n "checking if we can lock with hard links... " >&6; }
10051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10053 ln conftest.a conftest.b 2>&5 || hard_links=no
10054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10056 $as_echo "$hard_links" >&6; }
10057 if test "$hard_links" = no; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10059 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10072 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10075 allow_undefined_flag=
10076 always_export_symbols=no
10078 archive_expsym_cmds=
10079 compiler_needs_object=no
10080 enable_shared_with_static_runtimes=no
10081 export_dynamic_flag_spec=
10082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10083 hardcode_automatic=no
10085 hardcode_direct_absolute=no
10086 hardcode_libdir_flag_spec=
10087 hardcode_libdir_separator=
10088 hardcode_minus_L=no
10089 hardcode_shlibpath_var=unsupported
10091 link_all_deplibs=unknown
10093 module_expsym_cmds=
10094 old_archive_from_new_cmds=
10095 old_archive_from_expsyms_cmds=
10096 thread_safe_flag_spec=
10097 whole_archive_flag_spec=
10098 # include_expsyms should be a list of space-separated symbols to be *always*
10099 # included in the symbol list
10101 # exclude_expsyms can be an extended regexp of symbols to exclude
10102 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10104 # as well as any symbol that contains `d'.
10105 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10107 # platforms (ab)use it in PIC code, but their linkers get confused if
10108 # the symbol is explicitly referenced. Since portable code cannot
10109 # rely on this symbol name, it's probably fine to never include it in
10110 # preloaded symbol tables.
10111 # Exclude shared library initialization/finalization symbols.
10112 extract_expsyms_cmds=
10115 cygwin* | mingw* | pw32* | cegcc*)
10116 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10117 # When not using gcc, we currently assume that we are using
10118 # Microsoft Visual C++.
10119 if test "$GCC" != yes; then
10124 # we just hope/assume this is gcc and not c89 (= MSVC++)
10134 # On some targets, GNU ld is compatible enough with the native linker
10135 # that we're better off using the native interface for both.
10136 lt_use_gnu_ld_interface=no
10137 if test "$with_gnu_ld" = yes; then
10140 # The AIX port of GNU ld has always aspired to compatibility
10141 # with the native linker. However, as the warning in the GNU ld
10142 # block says, versions before 2.19.5* couldn't really create working
10143 # shared libraries, regardless of the interface used.
10144 case `$LD -v 2>&1` in
10145 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10146 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10147 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10149 lt_use_gnu_ld_interface=yes
10154 lt_use_gnu_ld_interface=yes
10159 if test "$lt_use_gnu_ld_interface" = yes; then
10160 # If archive_cmds runs LD, not CC, wlarc should be empty
10163 # Set some defaults for GNU ld with shared library support. These
10164 # are reset later if shared libraries are not supported. Putting them
10165 # here allows them to be overridden if necessary.
10166 runpath_var=LD_RUN_PATH
10167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168 export_dynamic_flag_spec='${wl}--export-dynamic'
10169 # ancient GNU ld didn't support --whole-archive et. al.
10170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10173 whole_archive_flag_spec=
10175 supports_anon_versioning=no
10176 case `$LD -v 2>&1` in
10177 *GNU\ gold*) supports_anon_versioning=yes ;;
10178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10181 *\ 2.11.*) ;; # other 2.11 versions
10182 *) supports_anon_versioning=yes ;;
10185 # See if GNU ld supports shared libraries.
10188 # On AIX/PPC, the GNU linker is very broken
10189 if test "$host_cpu" != ia64; then
10193 *** Warning: the GNU linker, at least up to release 2.19, is reported
10194 *** to be unable to reliably create shared libraries on AIX.
10195 *** Therefore, libtool is disabling shared libraries support. If you
10196 *** really care for shared libraries, you may want to install binutils
10197 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10198 *** You will then need to restart the configuration process.
10207 # see comment about AmigaOS4 .so support
10208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209 archive_expsym_cmds=''
10212 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)'
10213 hardcode_libdir_flag_spec='-L$libdir'
10214 hardcode_minus_L=yes
10220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10221 allow_undefined_flag=unsupported
10222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10223 # support --undefined. This deserves some investigation. FIXME
10224 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230 cygwin* | mingw* | pw32* | cegcc*)
10231 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10232 # as there is no search path for DLLs.
10233 hardcode_libdir_flag_spec='-L$libdir'
10234 export_dynamic_flag_spec='${wl}--export-all-symbols'
10235 allow_undefined_flag=unsupported
10236 always_export_symbols=no
10237 enable_shared_with_static_runtimes=yes
10238 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'
10239 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10241 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10243 # If the export-symbols file already is a .def file (1st line
10244 # is EXPORTS), use it as is; otherwise, prepend...
10245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10246 cp $export_symbols $output_objdir/$soname.def;
10248 echo EXPORTS > $output_objdir/$soname.def;
10249 cat $export_symbols >> $output_objdir/$soname.def;
10251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 link_all_deplibs=yes
10264 hardcode_shlibpath_var=no
10265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10266 export_dynamic_flag_spec='${wl}-E'
10267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10268 # Instead, shared libraries are loaded at an image base (0x10000000 by
10269 # default) and relocated if they conflict, which is a slow very memory
10270 # consuming and fragmenting process. To avoid this, we pick a random,
10271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10274 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'
10277 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10279 if test "$host_os" = linux-dietlibc; then
10280 case $cc_basename in
10281 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10284 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10285 && test "$tmp_diet" = no
10287 tmp_addflag=' $pic_flag'
10288 tmp_sharedflag='-shared'
10289 case $cc_basename,$host_cpu in
10290 pgcc*) # Portland Group C compiler
10291 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'
10292 tmp_addflag=' $pic_flag'
10294 pgf77* | pgf90* | pgf95* | pgfortran*)
10295 # Portland Group f77 and f90 compilers
10296 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'
10297 tmp_addflag=' $pic_flag -Mnomain' ;;
10298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10299 tmp_addflag=' -i_dynamic' ;;
10300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10301 tmp_addflag=' -i_dynamic -nofor_main' ;;
10302 ifc* | ifort*) # Intel Fortran compiler
10303 tmp_addflag=' -nofor_main' ;;
10304 lf95*) # Lahey Fortran 8.1
10305 whole_archive_flag_spec=
10306 tmp_sharedflag='--shared' ;;
10307 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10308 tmp_sharedflag='-qmkshrobj'
10310 nvcc*) # Cuda Compiler Driver 2.2
10311 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'
10312 compiler_needs_object=yes
10315 case `$CC -V 2>&1 | sed 5q` in
10316 *Sun\ C*) # Sun C 5.9
10317 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'
10318 compiler_needs_object=yes
10319 tmp_sharedflag='-G' ;;
10320 *Sun\ F*) # Sun Fortran 8.3
10321 tmp_sharedflag='-G' ;;
10323 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 if test "x$supports_anon_versioning" = xyes; then
10326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10328 echo "local: *; };" >> $output_objdir/$libname.ver~
10329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10332 case $cc_basename in
10333 xlf* | bgf* | bgxlf* | mpixlf*)
10334 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10335 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10337 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10338 if test "x$supports_anon_versioning" = xyes; then
10339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10341 echo "local: *; };" >> $output_objdir/$libname.ver~
10342 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10356 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10357 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10362 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10367 *** create shared libraries on Solaris systems. Therefore, libtool
10368 *** is disabling shared libraries support. We urge you to upgrade GNU
10369 *** binutils to release 2.9.1 or newer. Another option is to modify
10370 *** your PATH or compiler configuration so that the native linker is
10371 *** used, and then restart.
10374 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10383 case `$LD -v 2>&1` in
10384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10389 *** reliably create shared libraries on SCO systems. Therefore, libtool
10390 *** is disabling shared libraries support. We urge you to upgrade GNU
10391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10392 *** your PATH or compiler configuration so that the native linker is
10393 *** used, and then restart.
10398 # For security reasons, it is highly recommended that you always
10399 # use absolute paths for naming shared libraries, and exclude the
10400 # DT_RUNPATH tag from executables and libraries. But doing so
10401 # requires that you compile everything twice, which is a pain.
10402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10414 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10416 hardcode_direct=yes
10417 hardcode_shlibpath_var=no
10421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10430 if test "$ld_shlibs" = no; then
10432 hardcode_libdir_flag_spec=
10433 export_dynamic_flag_spec=
10434 whole_archive_flag_spec=
10437 # PORTME fill in a description of your system's linker (not GNU ld)
10440 allow_undefined_flag=unsupported
10441 always_export_symbols=yes
10442 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'
10443 # Note: this linker hardcodes the directories in LIBPATH if there
10444 # are no directories specified by -L.
10445 hardcode_minus_L=yes
10446 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10447 # Neither direct hardcoding nor static linking is supported with a
10449 hardcode_direct=unsupported
10454 if test "$host_cpu" = ia64; then
10455 # On IA64, the linker does run time linking by default, so we don't
10456 # have to do anything special.
10457 aix_use_runtimelinking=no
10458 exp_sym_flag='-Bexport'
10461 # If we're using GNU nm, then we don't want the "-C" option.
10462 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10463 # Also, AIX nm treats weak defined symbols like other global
10464 # defined symbols, whereas GNU nm marks them as "W".
10465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10466 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'
10468 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'
10470 aix_use_runtimelinking=no
10472 # Test if we are trying to use run time linking or normal
10473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10474 # need to do runtime linking.
10475 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10476 for ld_flag in $LDFLAGS; do
10477 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10478 aix_use_runtimelinking=yes
10485 exp_sym_flag='-bexport'
10486 no_entry_flag='-bnoentry'
10489 # When large executables or shared objects are built, AIX ld can
10490 # have problems creating the table of contents. If linking a library
10491 # or program results in "error TOC overflow" add -mminimal-toc to
10492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10496 hardcode_direct=yes
10497 hardcode_direct_absolute=yes
10498 hardcode_libdir_separator=':'
10499 link_all_deplibs=yes
10500 file_list_spec='${wl}-f,'
10502 if test "$GCC" = yes; then
10503 case $host_os in aix4.[012]|aix4.[012].*)
10504 # We only want to do this on AIX 4.2 and lower, the check
10505 # below for broken collect2 doesn't work under 4.3+
10506 collect2name=`${CC} -print-prog-name=collect2`
10507 if test -f "$collect2name" &&
10508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10510 # We have reworked collect2
10513 # We have old collect2
10514 hardcode_direct=unsupported
10515 # It fails to find uninstalled libraries when the uninstalled
10516 # path is not listed in the libpath. Setting hardcode_minus_L
10517 # to unsupported forces relinking
10518 hardcode_minus_L=yes
10519 hardcode_libdir_flag_spec='-L$libdir'
10520 hardcode_libdir_separator=
10524 shared_flag='-shared'
10525 if test "$aix_use_runtimelinking" = yes; then
10526 shared_flag="$shared_flag "'${wl}-G'
10530 if test "$host_cpu" = ia64; then
10531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10532 # chokes on -Wl,-G. The following line is correct:
10535 if test "$aix_use_runtimelinking" = yes; then
10536 shared_flag='${wl}-G'
10538 shared_flag='${wl}-bM:SRE'
10543 export_dynamic_flag_spec='${wl}-bexpall'
10544 # It seems that -bexpall does not export symbols beginning with
10545 # underscore (_), so it is better to generate a list of symbols to export.
10546 always_export_symbols=yes
10547 if test "$aix_use_runtimelinking" = yes; then
10548 # Warning - without using the other runtime loading flags (-brtl),
10549 # -berok will link without error, but may produce a broken library.
10550 allow_undefined_flag='-berok'
10551 # Determine the default libpath from the value encoded in an
10552 # empty executable.
10553 if test "${lt_cv_aix_libpath+set}" = set; then
10554 aix_libpath=$lt_cv_aix_libpath
10556 if ${lt_cv_aix_libpath_+:} false; then :
10557 $as_echo_n "(cached) " >&6
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10570 if ac_fn_c_try_link "$LINENO"; then :
10572 lt_aix_libpath_sed='
10573 /Import File Strings/,/^$/ {
10575 s/^0 *\([^ ]*\) *$/\1/
10579 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10580 # Check for a 64-bit object if we didn't find anything.
10581 if test -z "$lt_cv_aix_libpath_"; then
10582 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 if test -z "$lt_cv_aix_libpath_"; then
10588 lt_cv_aix_libpath_="/usr/lib:/lib"
10593 aix_libpath=$lt_cv_aix_libpath_
10596 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10597 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"
10599 if test "$host_cpu" = ia64; then
10600 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10601 allow_undefined_flag="-z nodefs"
10602 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"
10604 # Determine the default libpath from the value encoded in an
10605 # empty executable.
10606 if test "${lt_cv_aix_libpath+set}" = set; then
10607 aix_libpath=$lt_cv_aix_libpath
10609 if ${lt_cv_aix_libpath_+:} false; then :
10610 $as_echo_n "(cached) " >&6
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10623 if ac_fn_c_try_link "$LINENO"; then :
10625 lt_aix_libpath_sed='
10626 /Import File Strings/,/^$/ {
10628 s/^0 *\([^ ]*\) *$/\1/
10632 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10633 # Check for a 64-bit object if we didn't find anything.
10634 if test -z "$lt_cv_aix_libpath_"; then
10635 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10638 rm -f core conftest.err conftest.$ac_objext \
10639 conftest$ac_exeext conftest.$ac_ext
10640 if test -z "$lt_cv_aix_libpath_"; then
10641 lt_cv_aix_libpath_="/usr/lib:/lib"
10646 aix_libpath=$lt_cv_aix_libpath_
10649 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10650 # Warning - without using the other run time loading flags,
10651 # -berok will link without error, but may produce a broken library.
10652 no_undefined_flag=' ${wl}-bernotok'
10653 allow_undefined_flag=' ${wl}-berok'
10654 if test "$with_gnu_ld" = yes; then
10655 # We only use this code for GNU lds that support --whole-archive.
10656 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10658 # Exported symbols can be pulled into shared objects from archives
10659 whole_archive_flag_spec='$convenience'
10661 archive_cmds_need_lc=yes
10662 # This is similar to how AIX traditionally builds its shared libraries.
10663 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'
10671 # see comment about AmigaOS4 .so support
10672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673 archive_expsym_cmds=''
10676 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)'
10677 hardcode_libdir_flag_spec='-L$libdir'
10678 hardcode_minus_L=yes
10684 export_dynamic_flag_spec=-rdynamic
10687 cygwin* | mingw* | pw32* | cegcc*)
10688 # When not using gcc, we currently assume that we are using
10689 # Microsoft Visual C++.
10690 # hardcode_libdir_flag_spec is actually meaningless, as there is
10691 # no search path for DLLs.
10692 case $cc_basename in
10695 hardcode_libdir_flag_spec=' '
10696 allow_undefined_flag=unsupported
10697 always_export_symbols=yes
10699 # Tell ltmain to make .lib files, not .a files.
10701 # Tell ltmain to make .dll files, not .so files.
10703 # FIXME: Setting linknames here is a bad hack.
10704 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10705 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10706 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10708 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10710 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10712 # The linker will not automatically build a static lib if we build a DLL.
10713 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10714 enable_shared_with_static_runtimes=yes
10715 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10718 old_postinstall_cmds='chmod 644 $oldlib'
10719 postlink_cmds='lt_outputfile="@OUTPUT@"~
10720 lt_tool_outputfile="@TOOL_OUTPUT@"~
10721 case $lt_outputfile in
10724 lt_outputfile="$lt_outputfile.exe"
10725 lt_tool_outputfile="$lt_tool_outputfile.exe"
10728 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10729 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10730 $RM "$lt_outputfile.manifest";
10734 # Assume MSVC wrapper
10735 hardcode_libdir_flag_spec=' '
10736 allow_undefined_flag=unsupported
10737 # Tell ltmain to make .lib files, not .a files.
10739 # Tell ltmain to make .dll files, not .so files.
10741 # FIXME: Setting linknames here is a bad hack.
10742 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10743 # The linker will automatically build a .lib file if we build a DLL.
10744 old_archive_from_new_cmds='true'
10745 # FIXME: Should let the user specify the lib program.
10746 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10747 enable_shared_with_static_runtimes=yes
10752 darwin* | rhapsody*)
10755 archive_cmds_need_lc=no
10757 hardcode_automatic=yes
10758 hardcode_shlibpath_var=unsupported
10759 if test "$lt_cv_ld_force_load" = "yes"; then
10760 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\"`'
10763 whole_archive_flag_spec=''
10765 link_all_deplibs=yes
10766 allow_undefined_flag="$_lt_dar_allow_undefined"
10767 case $cc_basename in
10768 ifort*) _lt_dar_can_shared=yes ;;
10769 *) _lt_dar_can_shared=$GCC ;;
10771 if test "$_lt_dar_can_shared" = "yes"; then
10772 output_verbose_link_cmd=func_echo_all
10773 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10774 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10775 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}"
10776 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}"
10785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_shlibpath_var=no
10790 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10791 # support. Future versions do this automatically, but an explicit c++rt0.o
10792 # does not break anything, and helps significantly (at the cost of a little
10795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10796 hardcode_libdir_flag_spec='-R$libdir'
10797 hardcode_direct=yes
10798 hardcode_shlibpath_var=no
10801 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_direct=yes
10805 hardcode_minus_L=yes
10806 hardcode_shlibpath_var=no
10809 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10810 freebsd* | dragonfly*)
10811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10812 hardcode_libdir_flag_spec='-R$libdir'
10813 hardcode_direct=yes
10814 hardcode_shlibpath_var=no
10818 if test "$GCC" = yes; then
10819 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'
10821 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'
10823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10824 hardcode_libdir_separator=:
10825 hardcode_direct=yes
10827 # hardcode_minus_L: Not really in the search PATH,
10828 # but as the default location of the library.
10829 hardcode_minus_L=yes
10830 export_dynamic_flag_spec='${wl}-E'
10834 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10835 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10839 if test "$with_gnu_ld" = no; then
10840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10841 hardcode_libdir_separator=:
10842 hardcode_direct=yes
10843 hardcode_direct_absolute=yes
10844 export_dynamic_flag_spec='${wl}-E'
10845 # hardcode_minus_L: Not really in the search PATH,
10846 # but as the default location of the library.
10847 hardcode_minus_L=yes
10852 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10855 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10861 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10867 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10874 # Older versions of the 11.00 compiler do not understand -b yet
10875 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10877 $as_echo_n "checking if $CC understands -b... " >&6; }
10878 if ${lt_cv_prog_compiler__b+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 lt_cv_prog_compiler__b=no
10882 save_LDFLAGS="$LDFLAGS"
10883 LDFLAGS="$LDFLAGS -b"
10884 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10886 # The linker can only warn and ignore the option if not recognized
10887 # So say no if there are warnings
10888 if test -s conftest.err; then
10889 # Append any errors to the config.log.
10890 cat conftest.err 1>&5
10891 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10893 if diff conftest.exp conftest.er2 >/dev/null; then
10894 lt_cv_prog_compiler__b=yes
10897 lt_cv_prog_compiler__b=yes
10901 LDFLAGS="$save_LDFLAGS"
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10905 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10907 if test x"$lt_cv_prog_compiler__b" = xyes; then
10908 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10910 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10916 if test "$with_gnu_ld" = no; then
10917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10918 hardcode_libdir_separator=:
10923 hardcode_shlibpath_var=no
10926 hardcode_direct=yes
10927 hardcode_direct_absolute=yes
10928 export_dynamic_flag_spec='${wl}-E'
10930 # hardcode_minus_L: Not really in the search PATH,
10931 # but as the default location of the library.
10932 hardcode_minus_L=yes
10938 irix5* | irix6* | nonstopux*)
10939 if test "$GCC" = yes; then
10940 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'
10941 # Try to use the -exported_symbol ld option, if it does not
10942 # work, assume that -exports_file does not work either and
10943 # implicitly export all symbols.
10944 # This should be the same for all languages, so no per-tag cache variable.
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10946 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10947 if ${lt_cv_irix_exported_symbol+:} false; then :
10948 $as_echo_n "(cached) " >&6
10950 save_LDFLAGS="$LDFLAGS"
10951 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10954 int foo (void) { return 0; }
10956 if ac_fn_c_try_link "$LINENO"; then :
10957 lt_cv_irix_exported_symbol=yes
10959 lt_cv_irix_exported_symbol=no
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LDFLAGS="$save_LDFLAGS"
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10966 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10967 if test "$lt_cv_irix_exported_symbol" = yes; then
10968 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'
10971 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'
10972 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'
10974 archive_cmds_need_lc='no'
10975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10976 hardcode_libdir_separator=:
10978 link_all_deplibs=yes
10982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10985 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10987 hardcode_libdir_flag_spec='-R$libdir'
10988 hardcode_direct=yes
10989 hardcode_shlibpath_var=no
10993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994 hardcode_direct=yes
10995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10996 hardcode_libdir_separator=:
10997 hardcode_shlibpath_var=no
11004 if test -f /usr/libexec/ld.so; then
11005 hardcode_direct=yes
11006 hardcode_shlibpath_var=no
11007 hardcode_direct_absolute=yes
11008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11012 export_dynamic_flag_spec='${wl}-E'
11015 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11017 hardcode_libdir_flag_spec='-R$libdir'
11020 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11021 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11031 hardcode_libdir_flag_spec='-L$libdir'
11032 hardcode_minus_L=yes
11033 allow_undefined_flag=unsupported
11034 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'
11035 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11039 if test "$GCC" = yes; then
11040 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11041 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'
11043 allow_undefined_flag=' -expect_unresolved \*'
11044 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'
11046 archive_cmds_need_lc='no'
11047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11048 hardcode_libdir_separator=:
11051 osf4* | osf5*) # as osf3* with the addition of -msym flag
11052 if test "$GCC" = yes; then
11053 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11054 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'
11055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11057 allow_undefined_flag=' -expect_unresolved \*'
11058 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'
11059 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~
11060 $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'
11062 # Both c and cxx compiler support -rpath directly
11063 hardcode_libdir_flag_spec='-rpath $libdir'
11065 archive_cmds_need_lc='no'
11066 hardcode_libdir_separator=:
11070 no_undefined_flag=' -z defs'
11071 if test "$GCC" = yes; then
11073 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11075 $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'
11077 case `$CC -V 2>&1` in
11080 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11081 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11082 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11086 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11088 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11092 hardcode_libdir_flag_spec='-R$libdir'
11093 hardcode_shlibpath_var=no
11095 solaris2.[0-5] | solaris2.[0-5].*) ;;
11097 # The compiler driver will combine and reorder linker options,
11098 # but understands `-z linker_flag'. GCC discards it without `$wl',
11099 # but is careful enough not to reorder.
11100 # Supported since Solaris 2.6 (maybe 2.5.1?)
11101 if test "$GCC" = yes; then
11102 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11104 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11108 link_all_deplibs=yes
11112 if test "x$host_vendor" = xsequent; then
11113 # Use $CC to link under sequent, because it throws in some extra .o
11114 # files that make .init and .fini sections work.
11115 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11117 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11119 hardcode_libdir_flag_spec='-L$libdir'
11120 hardcode_direct=yes
11121 hardcode_minus_L=yes
11122 hardcode_shlibpath_var=no
11126 case $host_vendor in
11128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11129 hardcode_direct=yes # is this really true???
11132 ## LD is ld it makes a PLAMLIB
11133 ## CC just makes a GrossModule.
11134 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11135 reload_cmds='$CC -r -o $output$reload_objs'
11139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11140 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11143 runpath_var='LD_RUN_PATH'
11144 hardcode_shlibpath_var=no
11148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11149 hardcode_shlibpath_var=no
11150 export_dynamic_flag_spec='-Bexport'
11154 if test -d /usr/nec; then
11155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11156 hardcode_shlibpath_var=no
11157 runpath_var=LD_RUN_PATH
11158 hardcode_runpath_var=yes
11163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11164 no_undefined_flag='${wl}-z,text'
11165 archive_cmds_need_lc=no
11166 hardcode_shlibpath_var=no
11167 runpath_var='LD_RUN_PATH'
11169 if test "$GCC" = yes; then
11170 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11171 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11173 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11178 sysv5* | sco3.2v5* | sco5v6*)
11179 # Note: We can NOT use -z defs as we might desire, because we do not
11180 # link with -lc, and that would cause any symbols used from libc to
11181 # always be unresolved, which means just about no library would
11182 # ever link correctly. If we're not using GNU ld we use -z text
11183 # though, which does catch some bad symbols but isn't as heavy-handed
11185 no_undefined_flag='${wl}-z,text'
11186 allow_undefined_flag='${wl}-z,nodefs'
11187 archive_cmds_need_lc=no
11188 hardcode_shlibpath_var=no
11189 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11190 hardcode_libdir_separator=':'
11191 link_all_deplibs=yes
11192 export_dynamic_flag_spec='${wl}-Bexport'
11193 runpath_var='LD_RUN_PATH'
11195 if test "$GCC" = yes; then
11196 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11199 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11200 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11206 hardcode_libdir_flag_spec='-L$libdir'
11207 hardcode_shlibpath_var=no
11215 if test x$host_vendor = xsni; then
11217 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11218 export_dynamic_flag_spec='${wl}-Blargedynsym'
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11225 $as_echo "$ld_shlibs" >&6; }
11226 test "$ld_shlibs" = no && can_build_shared=no
11228 with_gnu_ld=$with_gnu_ld
11245 # Do we need to explicitly link libc?
11247 case "x$archive_cmds_need_lc" in
11249 # Assume -lc should be added
11250 archive_cmds_need_lc=yes
11252 if test "$enable_shared" = yes && test "$GCC" = yes; then
11253 case $archive_cmds in
11255 # FIXME: we may have to deal with multi-command sequences.
11258 # Test whether the compiler implicitly links with -lc since on some
11259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11260 # to ld, don't add -lc before -lgcc.
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11262 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11263 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11264 $as_echo_n "(cached) " >&6
11267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11270 (eval $ac_compile) 2>&5
11272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11273 test $ac_status = 0; } 2>conftest.err; then
11276 libobjs=conftest.$ac_objext
11278 wl=$lt_prog_compiler_wl
11279 pic_flag=$lt_prog_compiler_pic
11285 lt_save_allow_undefined_flag=$allow_undefined_flag
11286 allow_undefined_flag=
11287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11288 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291 test $ac_status = 0; }
11293 lt_cv_archive_cmds_need_lc=no
11295 lt_cv_archive_cmds_need_lc=yes
11297 allow_undefined_flag=$lt_save_allow_undefined_flag
11299 cat conftest.err 1>&5
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11305 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11306 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11465 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11467 if test "$GCC" = yes; then
11469 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11470 *) lt_awk_arg="/^libraries:/" ;;
11473 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11474 *) lt_sed_strip_eq="s,=/,/,g" ;;
11476 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11477 case $lt_search_path_spec in
11479 # if the path contains ";" then we assume it to be the separator
11480 # otherwise default to the standard path separator (i.e. ":") - it is
11481 # assumed that no part of a normal pathname contains ";" but that should
11482 # okay in the real world where ";" in dirpaths is itself problematic.
11483 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11486 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11489 # Ok, now we have the path, separated by spaces, we can step through it
11490 # and add multilib dir if necessary.
11491 lt_tmp_lt_search_path_spec=
11492 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11493 for lt_sys_path in $lt_search_path_spec; do
11494 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11497 test -d "$lt_sys_path" && \
11498 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11501 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11502 BEGIN {RS=" "; FS="/|\n";} {
11505 for (lt_i = NF; lt_i > 0; lt_i--) {
11506 if ($lt_i != "" && $lt_i != ".") {
11507 if ($lt_i == "..") {
11510 if (lt_count == 0) {
11511 lt_foo="/" $lt_i lt_foo;
11518 if (lt_foo != "") { lt_freq[lt_foo]++; }
11519 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11521 # AWK program above erroneously prepends '/' to C:/dos/paths
11524 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11525 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11527 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11531 library_names_spec=
11532 libname_spec='lib$name'
11536 postuninstall_cmds=
11540 shlibpath_overrides_runpath=unknown
11542 dynamic_linker="$host_os ld.so"
11543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11544 need_lib_prefix=unknown
11545 hardcode_into_libs=no
11547 # when you set need_version to no, make sure it does not cause -set_version
11548 # flags to be left without arguments
11549 need_version=unknown
11553 version_type=linux # correct to gnu/linux during the next big refactor
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11555 shlibpath_var=LIBPATH
11557 # AIX 3 has no versioning support, so we append a major version to the name.
11558 soname_spec='${libname}${release}${shared_ext}$major'
11562 version_type=linux # correct to gnu/linux during the next big refactor
11565 hardcode_into_libs=yes
11566 if test "$host_cpu" = ia64; then
11567 # AIX 5 supports IA64
11568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11569 shlibpath_var=LD_LIBRARY_PATH
11571 # With GCC up to 2.95.x, collect2 would create an import file
11572 # for dependence libraries. The import file would start with
11573 # the line `#! .'. This would cause the generated library to
11574 # depend on `.', always an invalid library. This was fixed in
11575 # development snapshots of GCC prior to 3.0.
11577 aix4 | aix4.[01] | aix4.[01].*)
11578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11580 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11583 can_build_shared=no
11587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11588 # soname into executable. Probably we can add versioning support to
11589 # collect2, so additional links can be useful in future.
11590 if test "$aix_use_runtimelinking" = yes; then
11591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11592 # instead of lib<name>.a to let people know that these are not
11593 # typical AIX shared libraries.
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 # We preserve .a as extension for shared libraries through AIX4.2
11597 # and later when we are not doing run time linking.
11598 library_names_spec='${libname}${release}.a $libname.a'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LIBPATH
11608 # Since July 2007 AmigaOS4 officially supports .so libraries.
11609 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 library_names_spec='$libname.ixlibrary $libname.a'
11614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11615 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'
11621 library_names_spec='${libname}${shared_ext}'
11622 dynamic_linker="$host_os ld.so"
11623 shlibpath_var=LIBRARY_PATH
11627 version_type=linux # correct to gnu/linux during the next big refactor
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11634 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11635 # the default ld.so.conf also contains /usr/contrib/lib and
11636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11637 # libtool to hard-code these into programs
11640 cygwin* | mingw* | pw32* | cegcc*)
11641 version_type=windows
11646 case $GCC,$cc_basename in
11649 library_names_spec='$libname.dll.a'
11650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11651 postinstall_cmds='base_file=`basename \${file}`~
11652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11653 dldir=$destdir/`dirname \$dlpath`~
11654 test -d \$dldir || mkdir -p \$dldir~
11655 $install_prog $dir/$dlname \$dldir/$dlname~
11656 chmod a+x \$dldir/$dlname~
11657 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11658 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11661 dlpath=$dir/\$dldll~
11663 shlibpath_overrides_runpath=yes
11667 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11668 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11673 # MinGW DLLs use traditional 'lib' prefix
11674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11677 # pw32 DLLs use 'pw' prefix rather than 'lib'
11678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11681 dynamic_linker='Win32 ld.exe'
11686 libname_spec='$name'
11687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11688 library_names_spec='${libname}.dll.lib'
11692 sys_lib_search_path_spec=
11695 for lt_path in $LIB
11698 # Let DOS variable expansion print the short 8.3 style file name.
11699 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11700 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11703 # Convert to MSYS style.
11704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11707 # Convert to unix form, then to dos form, then back to unix form
11708 # but this time dos style (no spaces!) so that the unix form looks
11709 # like /cygdrive/c/PROGRA~1:/cygdr...
11710 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11711 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11712 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11715 sys_lib_search_path_spec="$LIB"
11716 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11717 # It is most probably a Windows format PATH.
11718 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11720 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11722 # FIXME: find the short name or the path components, as spaces are
11723 # common. (e.g. "Program Files" -> "PROGRA~1")
11727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11728 postinstall_cmds='base_file=`basename \${file}`~
11729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11730 dldir=$destdir/`dirname \$dlpath`~
11731 test -d \$dldir || mkdir -p \$dldir~
11732 $install_prog $dir/$dlname \$dldir/$dlname'
11733 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11734 dlpath=$dir/\$dldll~
11736 shlibpath_overrides_runpath=yes
11737 dynamic_linker='Win32 link.exe'
11741 # Assume MSVC wrapper
11742 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11743 dynamic_linker='Win32 ld.exe'
11746 # FIXME: first we should search . and the directory the executable is in
11750 darwin* | rhapsody*)
11751 dynamic_linker="$host_os dyld"
11752 version_type=darwin
11755 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11756 soname_spec='${libname}${release}${major}$shared_ext'
11757 shlibpath_overrides_runpath=yes
11758 shlibpath_var=DYLD_LIBRARY_PATH
11759 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11761 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11766 version_type=linux # correct to gnu/linux during the next big refactor
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11770 soname_spec='${libname}${release}${shared_ext}$major'
11771 shlibpath_var=LD_LIBRARY_PATH
11774 freebsd* | dragonfly*)
11775 # DragonFly does not have aout. When/if they implement a new
11776 # versioning mechanism, adjust this.
11777 if test -x /usr/bin/objformat; then
11778 objformat=`/usr/bin/objformat`
11781 freebsd[23].*) objformat=aout ;;
11782 *) objformat=elf ;;
11785 version_type=freebsd-$objformat
11786 case $version_type in
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11797 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11802 freebsd3.[01]* | freebsdelf3.[01]*)
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11811 *) # from 4.6 on, and DragonFly
11812 shlibpath_overrides_runpath=yes
11813 hardcode_into_libs=yes
11819 version_type=linux # correct to gnu/linux during the next big refactor
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11823 soname_spec='${libname}${release}${shared_ext}$major'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath=no
11826 hardcode_into_libs=yes
11830 version_type=linux # correct to gnu/linux during the next big refactor
11833 dynamic_linker="$host_os runtime_loader"
11834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11835 soname_spec='${libname}${release}${shared_ext}$major'
11836 shlibpath_var=LIBRARY_PATH
11837 shlibpath_overrides_runpath=yes
11838 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11839 hardcode_into_libs=yes
11842 hpux9* | hpux10* | hpux11*)
11843 # Give a soname corresponding to the major version so that dld.sl refuses to
11844 # link against other versions.
11851 hardcode_into_libs=yes
11852 dynamic_linker="$host_os dld.so"
11853 shlibpath_var=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 if test "X$HPUX_IA64_MODE" = X32; then
11858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11866 hardcode_into_libs=yes
11867 dynamic_linker="$host_os dld.sl"
11868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11877 dynamic_linker="$host_os dld.sl"
11878 shlibpath_var=SHLIB_PATH
11879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11884 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11885 postinstall_cmds='chmod 555 $lib'
11886 # or fails outright, so override atomically:
11887 install_override_mode=555
11891 version_type=linux # correct to gnu/linux during the next big refactor
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11895 soname_spec='${libname}${release}${shared_ext}$major'
11896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 shlibpath_overrides_runpath=no
11899 hardcode_into_libs=yes
11902 irix5* | irix6* | nonstopux*)
11904 nonstopux*) version_type=nonstopux ;;
11906 if test "$lt_cv_prog_gnu_ld" = yes; then
11907 version_type=linux # correct to gnu/linux during the next big refactor
11914 soname_spec='${libname}${release}${shared_ext}$major'
11915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11917 irix5* | nonstopux*)
11918 libsuff= shlibsuff=
11921 case $LD in # libtool.m4 will add one of these switches to LD
11922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11923 libsuff= shlibsuff= libmagic=32-bit;;
11924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11925 libsuff=32 shlibsuff=N32 libmagic=N32;;
11926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11928 *) libsuff= shlibsuff= libmagic=never-match;;
11932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11933 shlibpath_overrides_runpath=no
11934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11936 hardcode_into_libs=yes
11939 # No shared lib support for Linux oldld, aout, or coff.
11940 linux*oldld* | linux*aout* | linux*coff*)
11944 # This must be glibc/ELF.
11945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11946 version_type=linux # correct to gnu/linux during the next big refactor
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=no
11955 # Some binutils ld are patched to set DT_RUNPATH
11956 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11957 $as_echo_n "(cached) " >&6
11959 lt_cv_shlibpath_overrides_runpath=no
11960 save_LDFLAGS=$LDFLAGS
11961 save_libdir=$libdir
11962 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11963 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11975 if ac_fn_c_try_link "$LINENO"; then :
11976 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11977 lt_cv_shlibpath_overrides_runpath=yes
11980 rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982 LDFLAGS=$save_LDFLAGS
11983 libdir=$save_libdir
11987 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11989 # This implies no fast_install, which is unacceptable.
11990 # Some rework will be needed to allow for fast_install
11991 # before this can be enabled.
11992 hardcode_into_libs=yes
11994 # Add ABI-specific directories to the system library path.
11995 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11997 # Append ld.so.conf contents to the search path
11998 if test -f /etc/ld.so.conf; then
11999 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' ' '`
12000 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12004 # We used to test for /lib/ld.so.1 and disable shared libraries on
12005 # powerpc, because MkLinux only supported shared libraries with the
12006 # GNU dynamic linker. Since this was broken with cross compilers,
12007 # most powerpc-linux boxes support dynamic linking these days and
12008 # people can always --disable-shared, the test was removed, and we
12009 # assume the GNU/Linux dynamic linker is in use.
12010 dynamic_linker='GNU/Linux ld.so'
12017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12020 dynamic_linker='NetBSD (a.out) ld.so'
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 dynamic_linker='NetBSD ld.elf_so'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12028 hardcode_into_libs=yes
12032 version_type=linux # correct to gnu/linux during the next big refactor
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=yes
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043 soname_spec='${libname}${release}${shared_ext}$major'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=no
12046 hardcode_into_libs=yes
12047 dynamic_linker='ldqnx.so'
12052 sys_lib_dlsearch_path_spec="/usr/lib"
12054 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12056 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12057 *) need_version=no ;;
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12064 openbsd2.[89] | openbsd2.[89].*)
12065 shlibpath_overrides_runpath=no
12068 shlibpath_overrides_runpath=yes
12072 shlibpath_overrides_runpath=yes
12077 libname_spec='$name'
12080 library_names_spec='$libname${shared_ext} $libname.a'
12081 dynamic_linker='OS/2 ld.exe'
12082 shlibpath_var=LIBPATH
12085 osf3* | osf4* | osf5*)
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12093 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12101 version_type=linux # correct to gnu/linux during the next big refactor
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105 soname_spec='${libname}${release}${shared_ext}$major'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes
12108 hardcode_into_libs=yes
12109 # ldd complains unless libraries are executable
12110 postinstall_cmds='chmod +x $lib'
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12117 shlibpath_var=LD_LIBRARY_PATH
12118 shlibpath_overrides_runpath=yes
12119 if test "$with_gnu_ld" = yes; then
12126 version_type=linux # correct to gnu/linux during the next big refactor
12127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128 soname_spec='${libname}${release}${shared_ext}$major'
12129 shlibpath_var=LD_LIBRARY_PATH
12130 case $host_vendor in
12132 shlibpath_overrides_runpath=no
12134 runpath_var=LD_RUN_PATH
12142 shlibpath_overrides_runpath=no
12143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12149 if test -d /usr/nec ;then
12150 version_type=linux # correct to gnu/linux during the next big refactor
12151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12152 soname_spec='$libname${shared_ext}.$major'
12153 shlibpath_var=LD_LIBRARY_PATH
12157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12158 version_type=freebsd-elf
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12162 soname_spec='${libname}${release}${shared_ext}$major'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 shlibpath_overrides_runpath=yes
12165 hardcode_into_libs=yes
12166 if test "$with_gnu_ld" = yes; then
12167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12176 sys_lib_dlsearch_path_spec='/usr/lib'
12180 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12181 version_type=linux # correct to gnu/linux during the next big refactor
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=no
12187 hardcode_into_libs=yes
12191 version_type=linux # correct to gnu/linux during the next big refactor
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193 soname_spec='${libname}${release}${shared_ext}$major'
12194 shlibpath_var=LD_LIBRARY_PATH
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12202 $as_echo "$dynamic_linker" >&6; }
12203 test "$dynamic_linker" = no && can_build_shared=no
12205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12206 if test "$GCC" = yes; then
12207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12211 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12214 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12309 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12311 if test -n "$hardcode_libdir_flag_spec" ||
12312 test -n "$runpath_var" ||
12313 test "X$hardcode_automatic" = "Xyes" ; then
12315 # We can hardcode non-existent directories.
12316 if test "$hardcode_direct" != no &&
12317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12318 # have to relink, otherwise we might link with an installed library
12319 # when we should be linking with a yet-to-be-installed one
12320 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12321 test "$hardcode_minus_L" != no; then
12322 # Linking always hardcodes the temporary library directory.
12323 hardcode_action=relink
12325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12326 hardcode_action=immediate
12329 # We cannot hardcode anything, or else we can only hardcode existing
12331 hardcode_action=unsupported
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12334 $as_echo "$hardcode_action" >&6; }
12336 if test "$hardcode_action" = relink ||
12337 test "$inherit_rpath" = yes; then
12338 # Fast installation is not supported
12339 enable_fast_install=no
12340 elif test "$shlibpath_overrides_runpath" = yes ||
12341 test "$enable_shared" = no; then
12342 # Fast installation is not necessary
12343 enable_fast_install=needless
12351 if test "x$enable_dlopen" != xyes; then
12352 enable_dlopen=unknown
12353 enable_dlopen_self=unknown
12354 enable_dlopen_self_static=unknown
12361 lt_cv_dlopen="load_add_on"
12363 lt_cv_dlopen_self=yes
12366 mingw* | pw32* | cegcc*)
12367 lt_cv_dlopen="LoadLibrary"
12372 lt_cv_dlopen="dlopen"
12377 # if libdl is installed we need to link against it
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12380 if ${ac_cv_lib_dl_dlopen+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 ac_check_lib_save_LIBS=$LIBS
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12388 /* Override any GCC internal prototype to avoid an error.
12389 Use char because int might match the return type of a GCC
12390 builtin and then its argument prototype would still apply. */
12403 if ac_fn_c_try_link "$LINENO"; then :
12404 ac_cv_lib_dl_dlopen=yes
12406 ac_cv_lib_dl_dlopen=no
12408 rm -f core conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12410 LIBS=$ac_check_lib_save_LIBS
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12414 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12418 lt_cv_dlopen="dyld"
12420 lt_cv_dlopen_self=yes
12427 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12428 if test "x$ac_cv_func_shl_load" = xyes; then :
12429 lt_cv_dlopen="shl_load"
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12433 if ${ac_cv_lib_dld_shl_load+:} false; then :
12434 $as_echo_n "(cached) " >&6
12436 ac_check_lib_save_LIBS=$LIBS
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12451 return shl_load ();
12456 if ac_fn_c_try_link "$LINENO"; then :
12457 ac_cv_lib_dld_shl_load=yes
12459 ac_cv_lib_dld_shl_load=no
12461 rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12466 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12467 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12468 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12470 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12471 if test "x$ac_cv_func_dlopen" = xyes; then :
12472 lt_cv_dlopen="dlopen"
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12475 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12476 if ${ac_cv_lib_dl_dlopen+:} false; then :
12477 $as_echo_n "(cached) " >&6
12479 ac_check_lib_save_LIBS=$LIBS
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_lib_dl_dlopen=yes
12502 ac_cv_lib_dl_dlopen=no
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12509 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12510 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12514 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12515 if ${ac_cv_lib_svld_dlopen+:} false; then :
12516 $as_echo_n "(cached) " >&6
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lsvld $LIBS"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_lib_svld_dlopen=yes
12541 ac_cv_lib_svld_dlopen=no
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12548 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12549 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12553 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12554 if ${ac_cv_lib_dld_dld_link+:} false; then :
12555 $as_echo_n "(cached) " >&6
12557 ac_check_lib_save_LIBS=$LIBS
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12572 return dld_link ();
12577 if ac_fn_c_try_link "$LINENO"; then :
12578 ac_cv_lib_dld_dld_link=yes
12580 ac_cv_lib_dld_dld_link=no
12582 rm -f core conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12584 LIBS=$ac_check_lib_save_LIBS
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12587 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12588 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12589 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12610 if test "x$lt_cv_dlopen" != xno; then
12616 case $lt_cv_dlopen in
12618 save_CPPFLAGS="$CPPFLAGS"
12619 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12621 save_LDFLAGS="$LDFLAGS"
12622 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12625 LIBS="$lt_cv_dlopen_libs $LIBS"
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12628 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12629 if ${lt_cv_dlopen_self+:} false; then :
12630 $as_echo_n "(cached) " >&6
12632 if test "$cross_compiling" = yes; then :
12633 lt_cv_dlopen_self=cross
12635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636 lt_status=$lt_dlunknown
12637 cat > conftest.$ac_ext <<_LT_EOF
12638 #line $LINENO "configure"
12639 #include "confdefs.h"
12648 # define LT_DLGLOBAL RTLD_GLOBAL
12651 # define LT_DLGLOBAL DL_GLOBAL
12653 # define LT_DLGLOBAL 0
12657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12658 find out it does not work in some platform. */
12659 #ifndef LT_DLLAZY_OR_NOW
12661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12664 # define LT_DLLAZY_OR_NOW DL_LAZY
12667 # define LT_DLLAZY_OR_NOW RTLD_NOW
12670 # define LT_DLLAZY_OR_NOW DL_NOW
12672 # define LT_DLLAZY_OR_NOW 0
12679 /* When -fvisbility=hidden is used, assume the code has been annotated
12680 correspondingly for the symbols needed. */
12681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12682 int fnord () __attribute__((visibility("default")));
12685 int fnord () { return 42; }
12688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12689 int status = $lt_dlunknown;
12693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12697 else puts (dlerror ());
12699 /* dlclose (self); */
12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12708 (eval $ac_link) 2>&5
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12712 (./conftest; exit; ) >&5 2>/dev/null
12714 case x$lt_status in
12715 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12716 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12717 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12720 # compilation failed
12721 lt_cv_dlopen_self=no
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12729 $as_echo "$lt_cv_dlopen_self" >&6; }
12731 if test "x$lt_cv_dlopen_self" = xyes; then
12732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12734 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12735 if ${lt_cv_dlopen_self_static+:} false; then :
12736 $as_echo_n "(cached) " >&6
12738 if test "$cross_compiling" = yes; then :
12739 lt_cv_dlopen_self_static=cross
12741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12742 lt_status=$lt_dlunknown
12743 cat > conftest.$ac_ext <<_LT_EOF
12744 #line $LINENO "configure"
12745 #include "confdefs.h"
12754 # define LT_DLGLOBAL RTLD_GLOBAL
12757 # define LT_DLGLOBAL DL_GLOBAL
12759 # define LT_DLGLOBAL 0
12763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12764 find out it does not work in some platform. */
12765 #ifndef LT_DLLAZY_OR_NOW
12767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12770 # define LT_DLLAZY_OR_NOW DL_LAZY
12773 # define LT_DLLAZY_OR_NOW RTLD_NOW
12776 # define LT_DLLAZY_OR_NOW DL_NOW
12778 # define LT_DLLAZY_OR_NOW 0
12785 /* When -fvisbility=hidden is used, assume the code has been annotated
12786 correspondingly for the symbols needed. */
12787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12788 int fnord () __attribute__((visibility("default")));
12791 int fnord () { return 42; }
12794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12795 int status = $lt_dlunknown;
12799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12803 else puts (dlerror ());
12805 /* dlclose (self); */
12813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12814 (eval $ac_link) 2>&5
12816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12817 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12818 (./conftest; exit; ) >&5 2>/dev/null
12820 case x$lt_status in
12821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12823 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12826 # compilation failed
12827 lt_cv_dlopen_self_static=no
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12838 CPPFLAGS="$save_CPPFLAGS"
12839 LDFLAGS="$save_LDFLAGS"
12844 case $lt_cv_dlopen_self in
12845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12846 *) enable_dlopen_self=unknown ;;
12849 case $lt_cv_dlopen_self_static in
12850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12851 *) enable_dlopen_self_static=unknown ;;
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12874 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12875 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12877 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879 $as_echo "yes" >&6; }
12881 # FIXME - insert some real tests, host_os isn't really good enough
12884 if test -n "$STRIP" ; then
12885 striplib="$STRIP -x"
12886 old_striplib="$STRIP -S"
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12888 $as_echo "yes" >&6; }
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12912 # Report which library types will actually be built
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12914 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12916 $as_echo "$can_build_shared" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12919 $as_echo_n "checking whether to build shared libraries... " >&6; }
12920 test "$can_build_shared" = "no" && enable_shared=no
12922 # On AIX, shared libraries and static libraries use the same namespace, and
12923 # are all built from PIC.
12926 test "$enable_shared" = yes && enable_static=no
12927 if test -n "$RANLIB"; then
12928 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12929 postinstall_cmds='$RANLIB $lib'
12934 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12935 test "$enable_shared" = yes && enable_static=no
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12940 $as_echo "$enable_shared" >&6; }
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12943 $as_echo_n "checking whether to build static libraries... " >&6; }
12944 # Make sure either enable_shared or enable_static is yes.
12945 test "$enable_shared" = yes || enable_static=yes
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12947 $as_echo "$enable_static" >&6; }
12954 ac_cpp='$CPP $CPPFLAGS'
12955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12961 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12962 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12963 (test "X$CXX" != "Xg++"))) ; then
12965 ac_cpp='$CXXCPP $CPPFLAGS'
12966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12970 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12971 if test -z "$CXXCPP"; then
12972 if ${ac_cv_prog_CXXCPP+:} false; then :
12973 $as_echo_n "(cached) " >&6
12975 # Double quotes because CXXCPP needs to be expanded
12976 for CXXCPP in "$CXX -E" "/lib/cpp"
12978 ac_preproc_ok=false
12979 for ac_cxx_preproc_warn_flag in '' yes
12981 # Use a header file that comes with gcc, so configuring glibc
12982 # with a fresh cross-compiler works.
12983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12984 # <limits.h> exists even on freestanding compilers.
12985 # On the NeXT, cc -E runs the code through the compiler's parser,
12986 # not just through cpp. "Syntax error" is here to catch this case.
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 # include <limits.h>
12992 # include <assert.h>
12996 if ac_fn_cxx_try_cpp "$LINENO"; then :
12999 # Broken: fails on valid input.
13002 rm -f conftest.err conftest.i conftest.$ac_ext
13004 # OK, works on sane cases. Now check whether nonexistent headers
13005 # can be detected and how.
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #include <ac_nonexistent.h>
13010 if ac_fn_cxx_try_cpp "$LINENO"; then :
13011 # Broken: success on invalid input.
13014 # Passes both tests.
13018 rm -f conftest.err conftest.i conftest.$ac_ext
13021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13022 rm -f conftest.i conftest.err conftest.$ac_ext
13023 if $ac_preproc_ok; then :
13028 ac_cv_prog_CXXCPP=$CXXCPP
13031 CXXCPP=$ac_cv_prog_CXXCPP
13033 ac_cv_prog_CXXCPP=$CXXCPP
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13036 $as_echo "$CXXCPP" >&6; }
13037 ac_preproc_ok=false
13038 for ac_cxx_preproc_warn_flag in '' yes
13040 # Use a header file that comes with gcc, so configuring glibc
13041 # with a fresh cross-compiler works.
13042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13043 # <limits.h> exists even on freestanding compilers.
13044 # On the NeXT, cc -E runs the code through the compiler's parser,
13045 # not just through cpp. "Syntax error" is here to catch this case.
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13049 # include <limits.h>
13051 # include <assert.h>
13055 if ac_fn_cxx_try_cpp "$LINENO"; then :
13058 # Broken: fails on valid input.
13061 rm -f conftest.err conftest.i conftest.$ac_ext
13063 # OK, works on sane cases. Now check whether nonexistent headers
13064 # can be detected and how.
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067 #include <ac_nonexistent.h>
13069 if ac_fn_cxx_try_cpp "$LINENO"; then :
13070 # Broken: success on invalid input.
13073 # Passes both tests.
13077 rm -f conftest.err conftest.i conftest.$ac_ext
13080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13081 rm -f conftest.i conftest.err conftest.$ac_ext
13082 if $ac_preproc_ok; then :
13085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13087 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13088 See \`config.log' for more details" "$LINENO" 5; }
13092 ac_cpp='$CPP $CPPFLAGS'
13093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13098 _lt_caught_CXX_error=yes
13102 ac_cpp='$CXXCPP $CPPFLAGS'
13103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13107 archive_cmds_need_lc_CXX=no
13108 allow_undefined_flag_CXX=
13109 always_export_symbols_CXX=no
13110 archive_expsym_cmds_CXX=
13111 compiler_needs_object_CXX=no
13112 export_dynamic_flag_spec_CXX=
13113 hardcode_direct_CXX=no
13114 hardcode_direct_absolute_CXX=no
13115 hardcode_libdir_flag_spec_CXX=
13116 hardcode_libdir_separator_CXX=
13117 hardcode_minus_L_CXX=no
13118 hardcode_shlibpath_var_CXX=unsupported
13119 hardcode_automatic_CXX=no
13120 inherit_rpath_CXX=no
13122 module_expsym_cmds_CXX=
13123 link_all_deplibs_CXX=unknown
13124 old_archive_cmds_CXX=$old_archive_cmds
13125 reload_flag_CXX=$reload_flag
13126 reload_cmds_CXX=$reload_cmds
13127 no_undefined_flag_CXX=
13128 whole_archive_flag_spec_CXX=
13129 enable_shared_with_static_runtimes_CXX=no
13131 # Source file extension for C++ test sources.
13134 # Object file extension for compiled C++ test sources.
13138 # No sense in running all these tests if we already determined that
13139 # the CXX compiler isn't working. Some variables (like enable_shared)
13140 # are currently assumed to apply to all compilers on this platform,
13141 # and will be corrupted by setting them based on a non-working compiler.
13142 if test "$_lt_caught_CXX_error" != yes; then
13143 # Code to be used in simple compile tests
13144 lt_simple_compile_test_code="int some_variable = 0;"
13146 # Code to be used in simple link tests
13147 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13156 # If no C compiler was specified, use CC.
13159 # If no C compiler flags were specified, use CFLAGS.
13160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13162 # Allow CC to be a program name with arguments.
13166 # save warnings/boilerplate of simple test code
13167 ac_outfile=conftest.$ac_objext
13168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13170 _lt_compiler_boilerplate=`cat conftest.err`
13173 ac_outfile=conftest.$ac_objext
13174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13176 _lt_linker_boilerplate=`cat conftest.err`
13180 # Allow CC to be a program name with arguments.
13182 lt_save_CFLAGS=$CFLAGS
13186 lt_save_with_gnu_ld=$with_gnu_ld
13187 lt_save_path_LD=$lt_cv_path_LD
13188 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13189 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13191 $as_unset lt_cv_prog_gnu_ld
13193 if test -n "${lt_cv_path_LDCXX+set}"; then
13194 lt_cv_path_LD=$lt_cv_path_LDCXX
13196 $as_unset lt_cv_path_LD
13198 test -z "${LDCXX+set}" || LD=$LDCXX
13203 for cc_temp in $compiler""; do
13205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13211 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13214 if test -n "$compiler"; then
13215 # We don't want -fno-exception when compiling C++ code, so set the
13216 # no_builtin_flag separately
13217 if test "$GXX" = yes; then
13218 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13220 lt_prog_compiler_no_builtin_flag_CXX=
13223 if test "$GXX" = yes; then
13224 # Set up default GNU C++ configuration
13228 # Check whether --with-gnu-ld was given.
13229 if test "${with_gnu_ld+set}" = set; then :
13230 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13236 if test "$GCC" = yes; then
13237 # Check if gcc -print-prog-name=ld gives a path.
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13239 $as_echo_n "checking for ld used by $CC... " >&6; }
13242 # gcc leaves a trailing carriage return which upsets mingw
13243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13248 # Accept absolute paths.
13250 re_direlt='/[^/][^/]*/\.\./'
13251 # Canonicalize the pathname of ld
13252 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13253 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13254 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13256 test -z "$LD" && LD="$ac_prog"
13259 # If it fails, then pretend we aren't using GCC.
13263 # If it is relative, then search for the first ld in PATH.
13264 with_gnu_ld=unknown
13267 elif test "$with_gnu_ld" = yes; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13269 $as_echo_n "checking for GNU ld... " >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13272 $as_echo_n "checking for non-GNU ld... " >&6; }
13274 if ${lt_cv_path_LD+:} false; then :
13275 $as_echo_n "(cached) " >&6
13277 if test -z "$LD"; then
13278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13279 for ac_dir in $PATH; do
13281 test -z "$ac_dir" && ac_dir=.
13282 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13283 lt_cv_path_LD="$ac_dir/$ac_prog"
13284 # Check to see if the program is GNU ld. I'd rather use --version,
13285 # but apparently some variants of GNU ld only accept -v.
13286 # Break only if it was the GNU/non-GNU ld that we prefer.
13287 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13288 *GNU* | *'with BFD'*)
13289 test "$with_gnu_ld" != no && break
13292 test "$with_gnu_ld" != yes && break
13299 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13303 LD="$lt_cv_path_LD"
13304 if test -n "$LD"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13306 $as_echo "$LD" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13311 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13313 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13314 if ${lt_cv_prog_gnu_ld+:} false; then :
13315 $as_echo_n "(cached) " >&6
13317 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13318 case `$LD -v 2>&1 </dev/null` in
13319 *GNU* | *'with BFD'*)
13320 lt_cv_prog_gnu_ld=yes
13323 lt_cv_prog_gnu_ld=no
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13328 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13329 with_gnu_ld=$lt_cv_prog_gnu_ld
13337 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13338 # archiving commands below assume that GNU ld is being used.
13339 if test "$with_gnu_ld" = yes; then
13340 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 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'
13343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13346 # If archive_cmds runs LD, not CC, wlarc should be empty
13347 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13348 # investigate it a little bit more. (MM)
13351 # ancient GNU ld didn't support --whole-archive et. al.
13352 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13353 $GREP 'no-whole-archive' > /dev/null; then
13354 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13356 whole_archive_flag_spec_CXX=
13362 # A generic and very simple default shared library creation
13363 # command for GNU C++ for the case where it uses the native
13364 # linker, instead of GNU ld. If possible, this setting should
13365 # overridden to take advantage of the native linker features on
13366 # the platform it is being used on.
13367 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13381 # PORTME: fill in a description of your system's C++ link characteristics
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13387 # FIXME: insert proper C++ library support
13391 if test "$host_cpu" = ia64; then
13392 # On IA64, the linker does run time linking by default, so we don't
13393 # have to do anything special.
13394 aix_use_runtimelinking=no
13395 exp_sym_flag='-Bexport'
13398 aix_use_runtimelinking=no
13400 # Test if we are trying to use run time linking or normal
13401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13402 # need to do runtime linking.
13403 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13404 for ld_flag in $LDFLAGS; do
13407 aix_use_runtimelinking=yes
13415 exp_sym_flag='-bexport'
13416 no_entry_flag='-bnoentry'
13419 # When large executables or shared objects are built, AIX ld can
13420 # have problems creating the table of contents. If linking a library
13421 # or program results in "error TOC overflow" add -mminimal-toc to
13422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13425 archive_cmds_CXX=''
13426 hardcode_direct_CXX=yes
13427 hardcode_direct_absolute_CXX=yes
13428 hardcode_libdir_separator_CXX=':'
13429 link_all_deplibs_CXX=yes
13430 file_list_spec_CXX='${wl}-f,'
13432 if test "$GXX" = yes; then
13433 case $host_os in aix4.[012]|aix4.[012].*)
13434 # We only want to do this on AIX 4.2 and lower, the check
13435 # below for broken collect2 doesn't work under 4.3+
13436 collect2name=`${CC} -print-prog-name=collect2`
13437 if test -f "$collect2name" &&
13438 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13440 # We have reworked collect2
13443 # We have old collect2
13444 hardcode_direct_CXX=unsupported
13445 # It fails to find uninstalled libraries when the uninstalled
13446 # path is not listed in the libpath. Setting hardcode_minus_L
13447 # to unsupported forces relinking
13448 hardcode_minus_L_CXX=yes
13449 hardcode_libdir_flag_spec_CXX='-L$libdir'
13450 hardcode_libdir_separator_CXX=
13453 shared_flag='-shared'
13454 if test "$aix_use_runtimelinking" = yes; then
13455 shared_flag="$shared_flag "'${wl}-G'
13459 if test "$host_cpu" = ia64; then
13460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13461 # chokes on -Wl,-G. The following line is correct:
13464 if test "$aix_use_runtimelinking" = yes; then
13465 shared_flag='${wl}-G'
13467 shared_flag='${wl}-bM:SRE'
13472 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13473 # It seems that -bexpall does not export symbols beginning with
13474 # underscore (_), so it is better to generate a list of symbols to
13476 always_export_symbols_CXX=yes
13477 if test "$aix_use_runtimelinking" = yes; then
13478 # Warning - without using the other runtime loading flags (-brtl),
13479 # -berok will link without error, but may produce a broken library.
13480 allow_undefined_flag_CXX='-berok'
13481 # Determine the default libpath from the value encoded in an empty
13483 if test "${lt_cv_aix_libpath+set}" = set; then
13484 aix_libpath=$lt_cv_aix_libpath
13486 if ${lt_cv_aix_libpath__CXX+:} false; then :
13487 $as_echo_n "(cached) " >&6
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13500 if ac_fn_cxx_try_link "$LINENO"; then :
13502 lt_aix_libpath_sed='
13503 /Import File Strings/,/^$/ {
13505 s/^0 *\([^ ]*\) *$/\1/
13509 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13510 # Check for a 64-bit object if we didn't find anything.
13511 if test -z "$lt_cv_aix_libpath__CXX"; then
13512 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13515 rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517 if test -z "$lt_cv_aix_libpath__CXX"; then
13518 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13523 aix_libpath=$lt_cv_aix_libpath__CXX
13526 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13528 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"
13530 if test "$host_cpu" = ia64; then
13531 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13532 allow_undefined_flag_CXX="-z nodefs"
13533 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"
13535 # Determine the default libpath from the value encoded in an
13536 # empty executable.
13537 if test "${lt_cv_aix_libpath+set}" = set; then
13538 aix_libpath=$lt_cv_aix_libpath
13540 if ${lt_cv_aix_libpath__CXX+:} false; then :
13541 $as_echo_n "(cached) " >&6
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13554 if ac_fn_cxx_try_link "$LINENO"; then :
13556 lt_aix_libpath_sed='
13557 /Import File Strings/,/^$/ {
13559 s/^0 *\([^ ]*\) *$/\1/
13563 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13564 # Check for a 64-bit object if we didn't find anything.
13565 if test -z "$lt_cv_aix_libpath__CXX"; then
13566 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13569 rm -f core conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13571 if test -z "$lt_cv_aix_libpath__CXX"; then
13572 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13577 aix_libpath=$lt_cv_aix_libpath__CXX
13580 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13581 # Warning - without using the other run time loading flags,
13582 # -berok will link without error, but may produce a broken library.
13583 no_undefined_flag_CXX=' ${wl}-bernotok'
13584 allow_undefined_flag_CXX=' ${wl}-berok'
13585 if test "$with_gnu_ld" = yes; then
13586 # We only use this code for GNU lds that support --whole-archive.
13587 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13589 # Exported symbols can be pulled into shared objects from archives
13590 whole_archive_flag_spec_CXX='$convenience'
13592 archive_cmds_need_lc_CXX=yes
13593 # This is similar to how AIX traditionally builds its shared
13595 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'
13601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13602 allow_undefined_flag_CXX=unsupported
13603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13604 # support --undefined. This deserves some investigation. FIXME
13605 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 case $cc_basename in
13614 # FIXME: insert proper C++ library support
13620 cygwin* | mingw* | pw32* | cegcc*)
13621 case $GXX,$cc_basename in
13624 # hardcode_libdir_flag_spec is actually meaningless, as there is
13625 # no search path for DLLs.
13626 hardcode_libdir_flag_spec_CXX=' '
13627 allow_undefined_flag_CXX=unsupported
13628 always_export_symbols_CXX=yes
13629 file_list_spec_CXX='@'
13630 # Tell ltmain to make .lib files, not .a files.
13632 # Tell ltmain to make .dll files, not .so files.
13634 # FIXME: Setting linknames here is a bad hack.
13635 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13636 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13637 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13639 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13641 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13643 # The linker will not automatically build a static lib if we build a DLL.
13644 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13645 enable_shared_with_static_runtimes_CXX=yes
13647 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13648 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13649 lt_tool_outputfile="@TOOL_OUTPUT@"~
13650 case $lt_outputfile in
13653 lt_outputfile="$lt_outputfile.exe"
13654 lt_tool_outputfile="$lt_tool_outputfile.exe"
13657 func_to_tool_file "$lt_outputfile"~
13658 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13659 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13660 $RM "$lt_outputfile.manifest";
13665 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13666 # as there is no search path for DLLs.
13667 hardcode_libdir_flag_spec_CXX='-L$libdir'
13668 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13669 allow_undefined_flag_CXX=unsupported
13670 always_export_symbols_CXX=no
13671 enable_shared_with_static_runtimes_CXX=yes
13673 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13674 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'
13675 # If the export-symbols file already is a .def file (1st line
13676 # is EXPORTS), use it as is; otherwise, prepend...
13677 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13678 cp $export_symbols $output_objdir/$soname.def;
13680 echo EXPORTS > $output_objdir/$soname.def;
13681 cat $export_symbols >> $output_objdir/$soname.def;
13683 $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'
13690 darwin* | rhapsody*)
13693 archive_cmds_need_lc_CXX=no
13694 hardcode_direct_CXX=no
13695 hardcode_automatic_CXX=yes
13696 hardcode_shlibpath_var_CXX=unsupported
13697 if test "$lt_cv_ld_force_load" = "yes"; then
13698 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\"`'
13701 whole_archive_flag_spec_CXX=''
13703 link_all_deplibs_CXX=yes
13704 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13705 case $cc_basename in
13706 ifort*) _lt_dar_can_shared=yes ;;
13707 *) _lt_dar_can_shared=$GCC ;;
13709 if test "$_lt_dar_can_shared" = "yes"; then
13710 output_verbose_link_cmd=func_echo_all
13711 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}"
13712 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13713 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}"
13714 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}"
13715 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13716 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}"
13717 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}"
13727 case $cc_basename in
13729 # FIXME: insert proper C++ library support
13733 # Green Hills C++ Compiler
13734 # FIXME: insert proper C++ library support
13738 # FIXME: insert proper C++ library support
13745 # C++ shared libraries reported to be fairly broken before
13751 archive_cmds_need_lc_CXX=no
13754 freebsd* | dragonfly*)
13755 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13764 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765 link_all_deplibs_CXX=yes
13769 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13770 hardcode_libdir_separator_CXX=:
13771 export_dynamic_flag_spec_CXX='${wl}-E'
13772 hardcode_direct_CXX=yes
13773 hardcode_minus_L_CXX=yes # Not in the search PATH,
13774 # but as the default
13775 # location of the library.
13777 case $cc_basename in
13779 # FIXME: insert proper C++ library support
13783 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'
13784 # Commands to make compiler produce verbose output that lists
13785 # what "hidden" libraries, object files and flags are used when
13786 # linking a shared library.
13788 # There doesn't appear to be a way to prevent this compiler from
13789 # explicitly linking system object files so we need to strip them
13790 # from the output so that they don't get included in the library
13792 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"'
13795 if test "$GXX" = yes; then
13796 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'
13798 # FIXME: insert proper C++ library support
13806 if test $with_gnu_ld = no; then
13807 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13808 hardcode_libdir_separator_CXX=:
13814 export_dynamic_flag_spec_CXX='${wl}-E'
13820 hardcode_direct_CXX=no
13821 hardcode_shlibpath_var_CXX=no
13824 hardcode_direct_CXX=yes
13825 hardcode_direct_absolute_CXX=yes
13826 hardcode_minus_L_CXX=yes # Not in the search PATH,
13827 # but as the default
13828 # location of the library.
13832 case $cc_basename in
13834 # FIXME: insert proper C++ library support
13840 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 # Commands to make compiler produce verbose output that lists
13850 # what "hidden" libraries, object files and flags are used when
13851 # linking a shared library.
13853 # There doesn't appear to be a way to prevent this compiler from
13854 # explicitly linking system object files so we need to strip them
13855 # from the output so that they don't get included in the library
13857 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"'
13860 if test "$GXX" = yes; then
13861 if test $with_gnu_ld = no; then
13864 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13867 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13870 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'
13875 # FIXME: insert proper C++ library support
13883 hardcode_direct_CXX=no
13884 hardcode_shlibpath_var_CXX=no
13885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13886 export_dynamic_flag_spec_CXX='${wl}-E'
13887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13888 # Instead, shared libraries are loaded at an image base (0x10000000 by
13889 # default) and relocated if they conflict, which is a slow very memory
13890 # consuming and fragmenting process. To avoid this, we pick a random,
13891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13893 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'
13894 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'
13897 case $cc_basename in
13900 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'
13902 # Archives containing C++ object files must be created using
13903 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13904 # necessary to make sure instantiated templates are included
13906 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13909 if test "$GXX" = yes; then
13910 if test "$with_gnu_ld" = no; then
13911 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'
13913 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'
13916 link_all_deplibs_CXX=yes
13919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13920 hardcode_libdir_separator_CXX=:
13921 inherit_rpath_CXX=yes
13924 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13925 case $cc_basename in
13927 # Kuck and Associates, Inc. (KAI) C++ Compiler
13929 # KCC will only create a shared library if the output file
13930 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13931 # to its proper name (with version) after linking.
13932 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'
13933 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'
13934 # Commands to make compiler produce verbose output that lists
13935 # what "hidden" libraries, object files and flags are used when
13936 # linking a shared library.
13938 # There doesn't appear to be a way to prevent this compiler from
13939 # explicitly linking system object files so we need to strip them
13940 # from the output so that they don't get included in the library
13942 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"'
13944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13947 # Archives containing C++ object files must be created using
13948 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13949 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13954 # version 8.0 and above of icpc choke on multiply defined symbols
13955 # if we add $predep_objects and $postdep_objects, however 7.1 and
13956 # earlier do not add the objects themselves.
13957 case `$CC -V 2>&1` in
13959 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13960 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'
13962 *) # Version 8.0 or newer
13965 ia64*) tmp_idyn=' -i_dynamic';;
13967 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968 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'
13971 archive_cmds_need_lc_CXX=no
13972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13973 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13974 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13977 # Portland Group C++ compiler
13979 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13980 prelink_cmds_CXX='tpldir=Template.dir~
13982 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13983 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13984 old_archive_cmds_CXX='tpldir=Template.dir~
13986 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13987 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13989 archive_cmds_CXX='tpldir=Template.dir~
13991 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13992 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13993 archive_expsym_cmds_CXX='tpldir=Template.dir~
13995 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13996 $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'
13998 *) # Version 6 and above use weak symbols
13999 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14000 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'
14004 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14006 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'
14010 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011 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'
14013 runpath_var=LD_RUN_PATH
14014 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14015 hardcode_libdir_separator_CXX=:
14017 # Commands to make compiler produce verbose output that lists
14018 # what "hidden" libraries, object files and flags are used when
14019 # linking a shared library.
14021 # There doesn't appear to be a way to prevent this compiler from
14022 # explicitly linking system object files so we need to strip them
14023 # from the output so that they don't get included in the library
14025 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'
14027 xl* | mpixl* | bgxl*)
14028 # IBM XL 8.0 on PPC, with GNU ld
14029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14030 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14031 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14032 if test "x$supports_anon_versioning" = xyes; then
14033 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14034 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14035 echo "local: *; };" >> $output_objdir/$libname.ver~
14036 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14040 case `$CC -V 2>&1 | sed 5q` in
14043 no_undefined_flag_CXX=' -zdefs'
14044 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045 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'
14046 hardcode_libdir_flag_spec_CXX='-R$libdir'
14047 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'
14048 compiler_needs_object_CXX=yes
14050 # Not sure whether something based on
14051 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14053 output_verbose_link_cmd='func_echo_all'
14055 # Archives containing C++ object files must be created using
14056 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14057 # necessary to make sure instantiated templates are included
14059 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14067 # FIXME: insert proper C++ library support
14072 # FIXME: insert proper C++ library support
14077 case $cc_basename in
14079 # FIXME: insert proper C++ library support
14083 # FIXME: insert proper C++ library support
14090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14091 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14093 hardcode_libdir_flag_spec_CXX='-R$libdir'
14094 hardcode_direct_CXX=yes
14095 hardcode_shlibpath_var_CXX=no
14097 # Workaround some broken pre-1.5 toolchains
14098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14106 # C++ shared libraries are fairly broken
14111 if test -f /usr/libexec/ld.so; then
14112 hardcode_direct_CXX=yes
14113 hardcode_shlibpath_var_CXX=no
14114 hardcode_direct_absolute_CXX=yes
14115 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14118 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14119 export_dynamic_flag_spec_CXX='${wl}-E'
14120 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14122 output_verbose_link_cmd=func_echo_all
14128 osf3* | osf4* | osf5*)
14129 case $cc_basename in
14131 # Kuck and Associates, Inc. (KAI) C++ Compiler
14133 # KCC will only create a shared library if the output file
14134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14135 # to its proper name (with version) after linking.
14136 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'
14138 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14139 hardcode_libdir_separator_CXX=:
14141 # Archives containing C++ object files must be created using
14142 # the KAI C++ compiler.
14144 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14145 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14149 # Rational C++ 2.4.1
14150 # FIXME: insert proper C++ library support
14156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14157 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'
14158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14161 allow_undefined_flag_CXX=' -expect_unresolved \*'
14162 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'
14163 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14164 echo "-hidden">> $lib.exp~
14165 $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~
14167 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14171 hardcode_libdir_separator_CXX=:
14173 # Commands to make compiler produce verbose output that lists
14174 # what "hidden" libraries, object files and flags are used when
14175 # linking a shared library.
14177 # There doesn't appear to be a way to prevent this compiler from
14178 # explicitly linking system object files so we need to strip them
14179 # from the output so that they don't get included in the library
14181 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"'
14184 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14188 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'
14191 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'
14195 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14196 hardcode_libdir_separator_CXX=:
14198 # Commands to make compiler produce verbose output that lists
14199 # what "hidden" libraries, object files and flags are used when
14200 # linking a shared library.
14201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14204 # FIXME: insert proper C++ library support
14212 # FIXME: insert proper C++ library support
14217 case $cc_basename in
14220 # FIXME: insert proper C++ library support
14225 # FIXME: insert proper C++ library support
14229 # FIXME: insert proper C++ library support
14236 case $cc_basename in
14238 # Sun C++ 4.2, 5.x and Centerline C++
14239 archive_cmds_need_lc_CXX=yes
14240 no_undefined_flag_CXX=' -zdefs'
14241 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14242 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14243 $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'
14245 hardcode_libdir_flag_spec_CXX='-R$libdir'
14246 hardcode_shlibpath_var_CXX=no
14248 solaris2.[0-5] | solaris2.[0-5].*) ;;
14250 # The compiler driver will combine and reorder linker options,
14251 # but understands `-z linker_flag'.
14252 # Supported since Solaris 2.6 (maybe 2.5.1?)
14253 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14256 link_all_deplibs_CXX=yes
14258 output_verbose_link_cmd='func_echo_all'
14260 # Archives containing C++ object files must be created using
14261 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14262 # necessary to make sure instantiated templates are included
14264 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14267 # Green Hills C++ Compiler
14268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14270 # The C++ compiler must be used to create the archive.
14271 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14274 # GNU C++ compiler with Solaris linker
14275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14276 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14277 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14278 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14279 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14280 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14282 # Commands to make compiler produce verbose output that lists
14283 # what "hidden" libraries, object files and flags are used when
14284 # linking a shared library.
14285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14287 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14289 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14290 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14291 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14293 # Commands to make compiler produce verbose output that lists
14294 # what "hidden" libraries, object files and flags are used when
14295 # linking a shared library.
14296 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14299 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14301 solaris2.[0-5] | solaris2.[0-5].*) ;;
14303 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14312 no_undefined_flag_CXX='${wl}-z,text'
14313 archive_cmds_need_lc_CXX=no
14314 hardcode_shlibpath_var_CXX=no
14315 runpath_var='LD_RUN_PATH'
14317 case $cc_basename in
14319 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14329 sysv5* | sco3.2v5* | sco5v6*)
14330 # Note: We can NOT use -z defs as we might desire, because we do not
14331 # link with -lc, and that would cause any symbols used from libc to
14332 # always be unresolved, which means just about no library would
14333 # ever link correctly. If we're not using GNU ld we use -z text
14334 # though, which does catch some bad symbols but isn't as heavy-handed
14336 no_undefined_flag_CXX='${wl}-z,text'
14337 allow_undefined_flag_CXX='${wl}-z,nodefs'
14338 archive_cmds_need_lc_CXX=no
14339 hardcode_shlibpath_var_CXX=no
14340 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14341 hardcode_libdir_separator_CXX=':'
14342 link_all_deplibs_CXX=yes
14343 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14344 runpath_var='LD_RUN_PATH'
14346 case $cc_basename in
14348 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14349 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14351 '"$old_archive_cmds_CXX"
14352 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14353 '"$reload_cmds_CXX"
14356 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14357 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14363 case $cc_basename in
14365 # NonStop-UX NCC 3.20
14366 # FIXME: insert proper C++ library support
14370 # FIXME: insert proper C++ library support
14377 # FIXME: insert proper C++ library support
14382 # FIXME: insert proper C++ library support
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14388 $as_echo "$ld_shlibs_CXX" >&6; }
14389 test "$ld_shlibs_CXX" = no && can_build_shared=no
14395 ## There is no encapsulation within the following macros, do not change
14396 ## the running order or otherwise move them around unless you know exactly
14397 ## what you are doing...
14398 # Dependencies to place before and after the object being linked:
14399 predep_objects_CXX=
14400 postdep_objects_CXX=
14403 compiler_lib_search_path_CXX=
14405 cat > conftest.$ac_ext <<_LT_EOF
14409 Foo (void) { a = 0; }
14416 _lt_libdeps_save_CFLAGS=$CFLAGS
14417 case "$CC $CFLAGS " in #(
14418 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14419 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14420 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14424 (eval $ac_compile) 2>&5
14426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427 test $ac_status = 0; }; then
14428 # Parse the compiler output and extract the necessary
14429 # objects, libraries and library flags.
14431 # Sentinel used to keep track of whether or not we are before
14432 # the conftest object file.
14433 pre_test_object_deps_done=no
14435 for p in `eval "$output_verbose_link_cmd"`; do
14436 case ${prev}${p} in
14439 # Some compilers place space between "-{L,R}" and the path.
14440 # Remove the space.
14441 if test $p = "-L" ||
14442 test $p = "-R"; then
14447 # Expand the sysroot to ease extracting the directories later.
14448 if test -z "$prev"; then
14450 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14451 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14452 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14456 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14458 if test "$pre_test_object_deps_done" = no; then
14461 # Internal compiler library paths should come after those
14462 # provided the user. The postdeps already come after the
14463 # user supplied libs so there is no need to process them.
14464 if test -z "$compiler_lib_search_path_CXX"; then
14465 compiler_lib_search_path_CXX="${prev}${p}"
14467 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14470 # The "-l" case would never come before the object being
14471 # linked, so don't bother handling this case.
14474 if test -z "$postdeps_CXX"; then
14475 postdeps_CXX="${prev}${p}"
14477 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14483 *.lto.$objext) ;; # Ignore GCC LTO objects
14485 # This assumes that the test object file only shows up
14486 # once in the compiler output.
14487 if test "$p" = "conftest.$objext"; then
14488 pre_test_object_deps_done=yes
14492 if test "$pre_test_object_deps_done" = no; then
14493 if test -z "$predep_objects_CXX"; then
14494 predep_objects_CXX="$p"
14496 predep_objects_CXX="$predep_objects_CXX $p"
14499 if test -z "$postdep_objects_CXX"; then
14500 postdep_objects_CXX="$p"
14502 postdep_objects_CXX="$postdep_objects_CXX $p"
14507 *) ;; # Ignore the rest.
14515 echo "libtool.m4: error: problem compiling CXX test program"
14518 $RM -f confest.$objext
14519 CFLAGS=$_lt_libdeps_save_CFLAGS
14521 # PORTME: override above test on systems where it is broken
14524 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14525 # hack all around it, let's just trust "g++" to DTRT.
14526 predep_objects_CXX=
14527 postdep_objects_CXX=
14532 case `$CC -V 2>&1 | sed 5q` in
14536 # The more standards-conforming stlport4 library is
14537 # incompatible with the Cstd library. Avoid specifying
14538 # it if it's in CXXFLAGS. Ignore libCrun as
14539 # -library=stlport4 depends on it.
14540 case " $CXX $CXXFLAGS " in
14541 *" -library=stlport4 "*)
14542 solaris_use_stlport4=yes
14546 if test "$solaris_use_stlport4" != yes; then
14547 postdeps_CXX='-library=Cstd -library=Crun'
14554 case $cc_basename in
14556 # The more standards-conforming stlport4 library is
14557 # incompatible with the Cstd library. Avoid specifying
14558 # it if it's in CXXFLAGS. Ignore libCrun as
14559 # -library=stlport4 depends on it.
14560 case " $CXX $CXXFLAGS " in
14561 *" -library=stlport4 "*)
14562 solaris_use_stlport4=yes
14566 # Adding this requires a known-good setup of shared libraries for
14567 # Sun compiler versions before 5.6, else PIC objects from an old
14568 # archive will be linked into the output, leading to subtle bugs.
14569 if test "$solaris_use_stlport4" != yes; then
14570 postdeps_CXX='-library=Cstd -library=Crun'
14578 case " $postdeps_CXX " in
14579 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14581 compiler_lib_search_dirs_CXX=
14582 if test -n "${compiler_lib_search_path_CXX}"; then
14583 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14616 lt_prog_compiler_wl_CXX=
14617 lt_prog_compiler_pic_CXX=
14618 lt_prog_compiler_static_CXX=
14621 # C++ specific cases for pic, static, wl, etc.
14622 if test "$GXX" = yes; then
14623 lt_prog_compiler_wl_CXX='-Wl,'
14624 lt_prog_compiler_static_CXX='-static'
14628 # All AIX code is PIC.
14629 if test "$host_cpu" = ia64; then
14630 # AIX 5 now supports IA64 processor
14631 lt_prog_compiler_static_CXX='-Bstatic'
14638 # see comment about AmigaOS4 .so support
14639 lt_prog_compiler_pic_CXX='-fPIC'
14642 # FIXME: we need at least 68020 code to build shared libraries, but
14643 # adding the `-m68020' flag to GCC prevents building anything better,
14645 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14650 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14651 # PIC is the default for these OSes.
14653 mingw* | cygwin* | os2* | pw32* | cegcc*)
14654 # This hack is so that the source file can tell whether it is being
14655 # built for inclusion in a dll (and should export symbols for example).
14656 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14657 # (--disable-auto-import) libraries
14658 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14660 darwin* | rhapsody*)
14661 # PIC is the default on this platform
14662 # Common symbols not allowed in MH_DYLIB files
14663 lt_prog_compiler_pic_CXX='-fno-common'
14666 # DJGPP does not support shared libraries at all
14667 lt_prog_compiler_pic_CXX=
14670 # PIC is the default for Haiku.
14671 # The "-static" flag exists, but is broken.
14672 lt_prog_compiler_static_CXX=
14675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14676 # Instead, we relocate shared libraries at runtime.
14679 if test -d /usr/nec; then
14680 lt_prog_compiler_pic_CXX=-Kconform_pic
14684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14686 # sets the default TLS model and affects inlining.
14691 lt_prog_compiler_pic_CXX='-fPIC'
14696 # QNX uses GNU C++, but need to define -shared option too, otherwise
14697 # it will coredump.
14698 lt_prog_compiler_pic_CXX='-fPIC -shared'
14701 lt_prog_compiler_pic_CXX='-fPIC'
14707 # All AIX code is PIC.
14708 if test "$host_cpu" = ia64; then
14709 # AIX 5 now supports IA64 processor
14710 lt_prog_compiler_static_CXX='-Bstatic'
14712 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14716 case $cc_basename in
14718 # Green Hills C++ Compiler
14719 # _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"
14723 mingw* | cygwin* | os2* | pw32* | cegcc*)
14724 # This hack is so that the source file can tell whether it is being
14725 # built for inclusion in a dll (and should export symbols for example).
14726 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14729 case $cc_basename in
14731 lt_prog_compiler_pic_CXX='-KPIC'
14734 # Green Hills C++ Compiler
14735 lt_prog_compiler_pic_CXX='-pic'
14741 freebsd* | dragonfly*)
14742 # FreeBSD uses GNU C++
14744 hpux9* | hpux10* | hpux11*)
14745 case $cc_basename in
14747 lt_prog_compiler_wl_CXX='-Wl,'
14748 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14749 if test "$host_cpu" != ia64; then
14750 lt_prog_compiler_pic_CXX='+Z'
14754 lt_prog_compiler_wl_CXX='-Wl,'
14755 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14761 lt_prog_compiler_pic_CXX='+Z'
14770 # This is c89, which is MS Visual C++ (no shared libs)
14771 # Anyone wants to do a port?
14773 irix5* | irix6* | nonstopux*)
14774 case $cc_basename in
14776 lt_prog_compiler_wl_CXX='-Wl,'
14777 lt_prog_compiler_static_CXX='-non_shared'
14778 # CC pic flag -KPIC is the default.
14784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14785 case $cc_basename in
14788 lt_prog_compiler_wl_CXX='--backend -Wl,'
14789 lt_prog_compiler_pic_CXX='-fPIC'
14792 # old Intel C++ for x86_64 which still supported -KPIC.
14793 lt_prog_compiler_wl_CXX='-Wl,'
14794 lt_prog_compiler_pic_CXX='-KPIC'
14795 lt_prog_compiler_static_CXX='-static'
14798 # Intel C++, used to be incompatible with GCC.
14799 # ICC 10 doesn't accept -KPIC any more.
14800 lt_prog_compiler_wl_CXX='-Wl,'
14801 lt_prog_compiler_pic_CXX='-fPIC'
14802 lt_prog_compiler_static_CXX='-static'
14805 # Portland Group C++ compiler
14806 lt_prog_compiler_wl_CXX='-Wl,'
14807 lt_prog_compiler_pic_CXX='-fpic'
14808 lt_prog_compiler_static_CXX='-Bstatic'
14812 # Make sure the PIC flag is empty. It appears that all Alpha
14813 # Linux and Compaq Tru64 Unix objects are PIC.
14814 lt_prog_compiler_pic_CXX=
14815 lt_prog_compiler_static_CXX='-non_shared'
14817 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14818 # IBM XL 8.0, 9.0 on PPC and BlueGene
14819 lt_prog_compiler_wl_CXX='-Wl,'
14820 lt_prog_compiler_pic_CXX='-qpic'
14821 lt_prog_compiler_static_CXX='-qstaticlink'
14824 case `$CC -V 2>&1 | sed 5q` in
14827 lt_prog_compiler_pic_CXX='-KPIC'
14828 lt_prog_compiler_static_CXX='-Bstatic'
14829 lt_prog_compiler_wl_CXX='-Qoption ld '
14840 case $cc_basename in
14842 lt_prog_compiler_pic_CXX='-W c,exportall'
14851 # QNX uses GNU C++, but need to define -shared option too, otherwise
14852 # it will coredump.
14853 lt_prog_compiler_pic_CXX='-fPIC -shared'
14855 osf3* | osf4* | osf5*)
14856 case $cc_basename in
14858 lt_prog_compiler_wl_CXX='--backend -Wl,'
14861 # Rational C++ 2.4.1
14862 lt_prog_compiler_pic_CXX='-pic'
14865 # Digital/Compaq C++
14866 lt_prog_compiler_wl_CXX='-Wl,'
14867 # Make sure the PIC flag is empty. It appears that all Alpha
14868 # Linux and Compaq Tru64 Unix objects are PIC.
14869 lt_prog_compiler_pic_CXX=
14870 lt_prog_compiler_static_CXX='-non_shared'
14879 case $cc_basename in
14881 # Sun C++ 4.2, 5.x and Centerline C++
14882 lt_prog_compiler_pic_CXX='-KPIC'
14883 lt_prog_compiler_static_CXX='-Bstatic'
14884 lt_prog_compiler_wl_CXX='-Qoption ld '
14887 # Green Hills C++ Compiler
14888 lt_prog_compiler_pic_CXX='-PIC'
14895 case $cc_basename in
14898 lt_prog_compiler_pic_CXX='-pic'
14899 lt_prog_compiler_static_CXX='-Bstatic'
14903 lt_prog_compiler_pic_CXX='-pic'
14909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14910 case $cc_basename in
14912 lt_prog_compiler_wl_CXX='-Wl,'
14913 lt_prog_compiler_pic_CXX='-KPIC'
14914 lt_prog_compiler_static_CXX='-Bstatic'
14919 case $cc_basename in
14921 # NonStop-UX NCC 3.20
14922 lt_prog_compiler_pic_CXX='-KPIC'
14931 lt_prog_compiler_can_build_shared_CXX=no
14937 # For platforms which do not support PIC, -DPIC is meaningless:
14939 lt_prog_compiler_pic_CXX=
14942 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14947 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14948 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14949 $as_echo_n "(cached) " >&6
14951 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14954 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14955 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14958 # Check to make sure the PIC flag actually works.
14960 if test -n "$lt_prog_compiler_pic_CXX"; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14962 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14963 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14964 $as_echo_n "(cached) " >&6
14966 lt_cv_prog_compiler_pic_works_CXX=no
14967 ac_outfile=conftest.$ac_objext
14968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14969 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 # The option is referenced via a variable to avoid confusing sed.
14975 lt_compile=`echo "$ac_compile" | $SED \
14976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978 -e 's:$: $lt_compiler_flag:'`
14979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14980 (eval "$lt_compile" 2>conftest.err)
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 if (exit $ac_status) && test -s "$ac_outfile"; then
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings other than the usual output.
14987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14990 lt_cv_prog_compiler_pic_works_CXX=yes
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14997 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14999 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15000 case $lt_prog_compiler_pic_CXX in
15002 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15005 lt_prog_compiler_pic_CXX=
15006 lt_prog_compiler_can_build_shared_CXX=no
15016 # Check to make sure the static flag actually works.
15018 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15020 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15021 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15022 $as_echo_n "(cached) " >&6
15024 lt_cv_prog_compiler_static_works_CXX=no
15025 save_LDFLAGS="$LDFLAGS"
15026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15029 # The linker can only warn and ignore the option if not recognized
15030 # So say no if there are warnings
15031 if test -s conftest.err; then
15032 # Append any errors to the config.log.
15033 cat conftest.err 1>&5
15034 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15036 if diff conftest.exp conftest.er2 >/dev/null; then
15037 lt_cv_prog_compiler_static_works_CXX=yes
15040 lt_cv_prog_compiler_static_works_CXX=yes
15044 LDFLAGS="$save_LDFLAGS"
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15048 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15050 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15053 lt_prog_compiler_static_CXX=
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15061 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15062 $as_echo_n "(cached) " >&6
15064 lt_cv_prog_compiler_c_o_CXX=no
15065 $RM -r conftest 2>/dev/null
15069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15071 lt_compiler_flag="-o out/conftest2.$ac_objext"
15072 # Insert the option either (1) after the last *FLAGS variable, or
15073 # (2) before a word containing "conftest.", or (3) at the end.
15074 # Note that $ac_compile itself does not contain backslashes and begins
15075 # with a dollar sign (not a hyphen), so the echo should work correctly.
15076 lt_compile=`echo "$ac_compile" | $SED \
15077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15079 -e 's:$: $lt_compiler_flag:'`
15080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15081 (eval "$lt_compile" 2>out/conftest.err)
15083 cat out/conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15087 # The compiler can only warn and ignore the option if not recognized
15088 # So say no if there are warnings
15089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15092 lt_cv_prog_compiler_c_o_CXX=yes
15097 # SGI C++ compiler will create directory out/ii_files/ for
15098 # template instantiation
15099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15100 $RM out/* && rmdir out
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15107 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15112 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15113 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15114 $as_echo_n "(cached) " >&6
15116 lt_cv_prog_compiler_c_o_CXX=no
15117 $RM -r conftest 2>/dev/null
15121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15123 lt_compiler_flag="-o out/conftest2.$ac_objext"
15124 # Insert the option either (1) after the last *FLAGS variable, or
15125 # (2) before a word containing "conftest.", or (3) at the end.
15126 # Note that $ac_compile itself does not contain backslashes and begins
15127 # with a dollar sign (not a hyphen), so the echo should work correctly.
15128 lt_compile=`echo "$ac_compile" | $SED \
15129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15131 -e 's:$: $lt_compiler_flag:'`
15132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15133 (eval "$lt_compile" 2>out/conftest.err)
15135 cat out/conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15139 # The compiler can only warn and ignore the option if not recognized
15140 # So say no if there are warnings
15141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15142 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15143 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15144 lt_cv_prog_compiler_c_o_CXX=yes
15149 # SGI C++ compiler will create directory out/ii_files/ for
15150 # template instantiation
15151 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15152 $RM out/* && rmdir out
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15159 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15164 hard_links="nottested"
15165 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15166 # do not overwrite the value of need_locks provided by the user
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15168 $as_echo_n "checking if we can lock with hard links... " >&6; }
15171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15173 ln conftest.a conftest.b 2>&5 || hard_links=no
15174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15176 $as_echo "$hard_links" >&6; }
15177 if test "$hard_links" = no; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15179 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15192 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15195 # If we're using GNU nm, then we don't want the "-C" option.
15196 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15197 # Also, AIX nm treats weak defined symbols like other global defined
15198 # symbols, whereas GNU nm marks them as "W".
15199 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15200 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'
15202 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'
15206 export_symbols_cmds_CXX="$ltdll_cmds"
15208 cygwin* | mingw* | cegcc*)
15209 case $cc_basename in
15211 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15214 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'
15215 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15220 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15225 $as_echo "$ld_shlibs_CXX" >&6; }
15226 test "$ld_shlibs_CXX" = no && can_build_shared=no
15228 with_gnu_ld_CXX=$with_gnu_ld
15236 # Do we need to explicitly link libc?
15238 case "x$archive_cmds_need_lc_CXX" in
15240 # Assume -lc should be added
15241 archive_cmds_need_lc_CXX=yes
15243 if test "$enable_shared" = yes && test "$GCC" = yes; then
15244 case $archive_cmds_CXX in
15246 # FIXME: we may have to deal with multi-command sequences.
15249 # Test whether the compiler implicitly links with -lc since on some
15250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15251 # to ld, don't add -lc before -lgcc.
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15253 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15254 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15255 $as_echo_n "(cached) " >&6
15258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15261 (eval $ac_compile) 2>&5
15263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15264 test $ac_status = 0; } 2>conftest.err; then
15267 libobjs=conftest.$ac_objext
15269 wl=$lt_prog_compiler_wl_CXX
15270 pic_flag=$lt_prog_compiler_pic_CXX
15276 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15277 allow_undefined_flag_CXX=
15278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15279 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15282 test $ac_status = 0; }
15284 lt_cv_archive_cmds_need_lc_CXX=no
15286 lt_cv_archive_cmds_need_lc_CXX=yes
15288 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15290 cat conftest.err 1>&5
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15296 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15297 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15366 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15368 library_names_spec=
15369 libname_spec='lib$name'
15373 postuninstall_cmds=
15377 shlibpath_overrides_runpath=unknown
15379 dynamic_linker="$host_os ld.so"
15380 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15381 need_lib_prefix=unknown
15382 hardcode_into_libs=no
15384 # when you set need_version to no, make sure it does not cause -set_version
15385 # flags to be left without arguments
15386 need_version=unknown
15390 version_type=linux # correct to gnu/linux during the next big refactor
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15392 shlibpath_var=LIBPATH
15394 # AIX 3 has no versioning support, so we append a major version to the name.
15395 soname_spec='${libname}${release}${shared_ext}$major'
15399 version_type=linux # correct to gnu/linux during the next big refactor
15402 hardcode_into_libs=yes
15403 if test "$host_cpu" = ia64; then
15404 # AIX 5 supports IA64
15405 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15406 shlibpath_var=LD_LIBRARY_PATH
15408 # With GCC up to 2.95.x, collect2 would create an import file
15409 # for dependence libraries. The import file would start with
15410 # the line `#! .'. This would cause the generated library to
15411 # depend on `.', always an invalid library. This was fixed in
15412 # development snapshots of GCC prior to 3.0.
15414 aix4 | aix4.[01] | aix4.[01].*)
15415 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15417 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15420 can_build_shared=no
15424 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15425 # soname into executable. Probably we can add versioning support to
15426 # collect2, so additional links can be useful in future.
15427 if test "$aix_use_runtimelinking" = yes; then
15428 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15429 # instead of lib<name>.a to let people know that these are not
15430 # typical AIX shared libraries.
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 # We preserve .a as extension for shared libraries through AIX4.2
15434 # and later when we are not doing run time linking.
15435 library_names_spec='${libname}${release}.a $libname.a'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15438 shlibpath_var=LIBPATH
15445 # Since July 2007 AmigaOS4 officially supports .so libraries.
15446 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 library_names_spec='$libname.ixlibrary $libname.a'
15451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15452 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'
15458 library_names_spec='${libname}${shared_ext}'
15459 dynamic_linker="$host_os ld.so"
15460 shlibpath_var=LIBRARY_PATH
15464 version_type=linux # correct to gnu/linux during the next big refactor
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15469 shlibpath_var=LD_LIBRARY_PATH
15470 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15471 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15472 # the default ld.so.conf also contains /usr/contrib/lib and
15473 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15474 # libtool to hard-code these into programs
15477 cygwin* | mingw* | pw32* | cegcc*)
15478 version_type=windows
15483 case $GCC,$cc_basename in
15486 library_names_spec='$libname.dll.a'
15487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15488 postinstall_cmds='base_file=`basename \${file}`~
15489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15490 dldir=$destdir/`dirname \$dlpath`~
15491 test -d \$dldir || mkdir -p \$dldir~
15492 $install_prog $dir/$dlname \$dldir/$dlname~
15493 chmod a+x \$dldir/$dlname~
15494 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15495 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15498 dlpath=$dir/\$dldll~
15500 shlibpath_overrides_runpath=yes
15504 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15505 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15509 # MinGW DLLs use traditional 'lib' prefix
15510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15513 # pw32 DLLs use 'pw' prefix rather than 'lib'
15514 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15517 dynamic_linker='Win32 ld.exe'
15522 libname_spec='$name'
15523 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15524 library_names_spec='${libname}.dll.lib'
15528 sys_lib_search_path_spec=
15531 for lt_path in $LIB
15534 # Let DOS variable expansion print the short 8.3 style file name.
15535 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15536 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15539 # Convert to MSYS style.
15540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15543 # Convert to unix form, then to dos form, then back to unix form
15544 # but this time dos style (no spaces!) so that the unix form looks
15545 # like /cygdrive/c/PROGRA~1:/cygdr...
15546 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15547 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15548 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15551 sys_lib_search_path_spec="$LIB"
15552 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15553 # It is most probably a Windows format PATH.
15554 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15558 # FIXME: find the short name or the path components, as spaces are
15559 # common. (e.g. "Program Files" -> "PROGRA~1")
15563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15564 postinstall_cmds='base_file=`basename \${file}`~
15565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15566 dldir=$destdir/`dirname \$dlpath`~
15567 test -d \$dldir || mkdir -p \$dldir~
15568 $install_prog $dir/$dlname \$dldir/$dlname'
15569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15570 dlpath=$dir/\$dldll~
15572 shlibpath_overrides_runpath=yes
15573 dynamic_linker='Win32 link.exe'
15577 # Assume MSVC wrapper
15578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15579 dynamic_linker='Win32 ld.exe'
15582 # FIXME: first we should search . and the directory the executable is in
15586 darwin* | rhapsody*)
15587 dynamic_linker="$host_os dyld"
15588 version_type=darwin
15591 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15592 soname_spec='${libname}${release}${major}$shared_ext'
15593 shlibpath_overrides_runpath=yes
15594 shlibpath_var=DYLD_LIBRARY_PATH
15595 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15597 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15601 version_type=linux # correct to gnu/linux during the next big refactor
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 shlibpath_var=LD_LIBRARY_PATH
15609 freebsd* | dragonfly*)
15610 # DragonFly does not have aout. When/if they implement a new
15611 # versioning mechanism, adjust this.
15612 if test -x /usr/bin/objformat; then
15613 objformat=`/usr/bin/objformat`
15616 freebsd[23].*) objformat=aout ;;
15617 *) objformat=elf ;;
15620 version_type=freebsd-$objformat
15621 case $version_type in
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15632 shlibpath_var=LD_LIBRARY_PATH
15635 shlibpath_overrides_runpath=yes
15637 freebsd3.[01]* | freebsdelf3.[01]*)
15638 shlibpath_overrides_runpath=yes
15639 hardcode_into_libs=yes
15641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15643 shlibpath_overrides_runpath=no
15644 hardcode_into_libs=yes
15646 *) # from 4.6 on, and DragonFly
15647 shlibpath_overrides_runpath=yes
15648 hardcode_into_libs=yes
15654 version_type=linux # correct to gnu/linux during the next big refactor
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 hardcode_into_libs=yes
15665 version_type=linux # correct to gnu/linux during the next big refactor
15668 dynamic_linker="$host_os runtime_loader"
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15670 soname_spec='${libname}${release}${shared_ext}$major'
15671 shlibpath_var=LIBRARY_PATH
15672 shlibpath_overrides_runpath=yes
15673 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15674 hardcode_into_libs=yes
15677 hpux9* | hpux10* | hpux11*)
15678 # Give a soname corresponding to the major version so that dld.sl refuses to
15679 # link against other versions.
15686 hardcode_into_libs=yes
15687 dynamic_linker="$host_os dld.so"
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 if test "X$HPUX_IA64_MODE" = X32; then
15693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15701 hardcode_into_libs=yes
15702 dynamic_linker="$host_os dld.sl"
15703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15712 dynamic_linker="$host_os dld.sl"
15713 shlibpath_var=SHLIB_PATH
15714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15719 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15720 postinstall_cmds='chmod 555 $lib'
15721 # or fails outright, so override atomically:
15722 install_override_mode=555
15726 version_type=linux # correct to gnu/linux during the next big refactor
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
15731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 shlibpath_overrides_runpath=no
15734 hardcode_into_libs=yes
15737 irix5* | irix6* | nonstopux*)
15739 nonstopux*) version_type=nonstopux ;;
15741 if test "$lt_cv_prog_gnu_ld" = yes; then
15742 version_type=linux # correct to gnu/linux during the next big refactor
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15752 irix5* | nonstopux*)
15753 libsuff= shlibsuff=
15756 case $LD in # libtool.m4 will add one of these switches to LD
15757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15758 libsuff= shlibsuff= libmagic=32-bit;;
15759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15760 libsuff=32 shlibsuff=N32 libmagic=N32;;
15761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15763 *) libsuff= shlibsuff= libmagic=never-match;;
15767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15768 shlibpath_overrides_runpath=no
15769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15771 hardcode_into_libs=yes
15774 # No shared lib support for Linux oldld, aout, or coff.
15775 linux*oldld* | linux*aout* | linux*coff*)
15779 # This must be glibc/ELF.
15780 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15781 version_type=linux # correct to gnu/linux during the next big refactor
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 shlibpath_overrides_runpath=no
15790 # Some binutils ld are patched to set DT_RUNPATH
15791 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15792 $as_echo_n "(cached) " >&6
15794 lt_cv_shlibpath_overrides_runpath=no
15795 save_LDFLAGS=$LDFLAGS
15796 save_libdir=$libdir
15797 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15798 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15810 if ac_fn_cxx_try_link "$LINENO"; then :
15811 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15812 lt_cv_shlibpath_overrides_runpath=yes
15815 rm -f core conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15817 LDFLAGS=$save_LDFLAGS
15818 libdir=$save_libdir
15822 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15824 # This implies no fast_install, which is unacceptable.
15825 # Some rework will be needed to allow for fast_install
15826 # before this can be enabled.
15827 hardcode_into_libs=yes
15829 # Add ABI-specific directories to the system library path.
15830 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15832 # Append ld.so.conf contents to the search path
15833 if test -f /etc/ld.so.conf; then
15834 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' ' '`
15835 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15839 # We used to test for /lib/ld.so.1 and disable shared libraries on
15840 # powerpc, because MkLinux only supported shared libraries with the
15841 # GNU dynamic linker. Since this was broken with cross compilers,
15842 # most powerpc-linux boxes support dynamic linking these days and
15843 # people can always --disable-shared, the test was removed, and we
15844 # assume the GNU/Linux dynamic linker is in use.
15845 dynamic_linker='GNU/Linux ld.so'
15852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15855 dynamic_linker='NetBSD (a.out) ld.so'
15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15858 soname_spec='${libname}${release}${shared_ext}$major'
15859 dynamic_linker='NetBSD ld.elf_so'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=yes
15863 hardcode_into_libs=yes
15867 version_type=linux # correct to gnu/linux during the next big refactor
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869 shlibpath_var=LD_LIBRARY_PATH
15870 shlibpath_overrides_runpath=yes
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 shlibpath_overrides_runpath=no
15881 hardcode_into_libs=yes
15882 dynamic_linker='ldqnx.so'
15887 sys_lib_dlsearch_path_spec="/usr/lib"
15889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15891 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15892 *) need_version=no ;;
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15896 shlibpath_var=LD_LIBRARY_PATH
15897 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15899 openbsd2.[89] | openbsd2.[89].*)
15900 shlibpath_overrides_runpath=no
15903 shlibpath_overrides_runpath=yes
15907 shlibpath_overrides_runpath=yes
15912 libname_spec='$name'
15915 library_names_spec='$libname${shared_ext} $libname.a'
15916 dynamic_linker='OS/2 ld.exe'
15917 shlibpath_var=LIBPATH
15920 osf3* | osf4* | osf5*)
15924 soname_spec='${libname}${release}${shared_ext}$major'
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15936 version_type=linux # correct to gnu/linux during the next big refactor
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940 soname_spec='${libname}${release}${shared_ext}$major'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 shlibpath_overrides_runpath=yes
15943 hardcode_into_libs=yes
15944 # ldd complains unless libraries are executable
15945 postinstall_cmds='chmod +x $lib'
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15952 shlibpath_var=LD_LIBRARY_PATH
15953 shlibpath_overrides_runpath=yes
15954 if test "$with_gnu_ld" = yes; then
15961 version_type=linux # correct to gnu/linux during the next big refactor
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 case $host_vendor in
15967 shlibpath_overrides_runpath=no
15969 runpath_var=LD_RUN_PATH
15977 shlibpath_overrides_runpath=no
15978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15984 if test -d /usr/nec ;then
15985 version_type=linux # correct to gnu/linux during the next big refactor
15986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15987 soname_spec='$libname${shared_ext}.$major'
15988 shlibpath_var=LD_LIBRARY_PATH
15992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15993 version_type=freebsd-elf
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 shlibpath_overrides_runpath=yes
16000 hardcode_into_libs=yes
16001 if test "$with_gnu_ld" = yes; then
16002 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16011 sys_lib_dlsearch_path_spec='/usr/lib'
16015 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16016 version_type=linux # correct to gnu/linux during the next big refactor
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=no
16022 hardcode_into_libs=yes
16026 version_type=linux # correct to gnu/linux during the next big refactor
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 shlibpath_var=LD_LIBRARY_PATH
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16037 $as_echo "$dynamic_linker" >&6; }
16038 test "$dynamic_linker" = no && can_build_shared=no
16040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16041 if test "$GCC" = yes; then
16042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16045 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16046 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16048 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16049 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16090 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16091 hardcode_action_CXX=
16092 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16093 test -n "$runpath_var_CXX" ||
16094 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16096 # We can hardcode non-existent directories.
16097 if test "$hardcode_direct_CXX" != no &&
16098 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16099 # have to relink, otherwise we might link with an installed library
16100 # when we should be linking with a yet-to-be-installed one
16101 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16102 test "$hardcode_minus_L_CXX" != no; then
16103 # Linking always hardcodes the temporary library directory.
16104 hardcode_action_CXX=relink
16106 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16107 hardcode_action_CXX=immediate
16110 # We cannot hardcode anything, or else we can only hardcode existing
16112 hardcode_action_CXX=unsupported
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16115 $as_echo "$hardcode_action_CXX" >&6; }
16117 if test "$hardcode_action_CXX" = relink ||
16118 test "$inherit_rpath_CXX" = yes; then
16119 # Fast installation is not supported
16120 enable_fast_install=no
16121 elif test "$shlibpath_overrides_runpath" = yes ||
16122 test "$enable_shared" = no; then
16123 # Fast installation is not necessary
16124 enable_fast_install=needless
16133 fi # test -n "$compiler"
16136 CFLAGS=$lt_save_CFLAGS
16140 with_gnu_ld=$lt_save_with_gnu_ld
16141 lt_cv_path_LDCXX=$lt_cv_path_LD
16142 lt_cv_path_LD=$lt_save_path_LD
16143 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16144 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16145 fi # test "$_lt_caught_CXX_error" != yes
16148 ac_cpp='$CPP $CPPFLAGS'
16149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16167 ac_config_commands="$ac_config_commands libtool"
16172 # Only expand once:
16175 if test "x$CC" != xcc; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16177 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16180 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16182 set dummy $CC; ac_cc=`$as_echo "$2" |
16183 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16184 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16185 $as_echo_n "(cached) " >&6
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16198 # Make sure it works both with $CC and with simple cc.
16199 # We do the test twice because some compilers refuse to overwrite an
16200 # existing .o file with -o, though they will create one.
16201 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16203 if { { case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16208 $as_echo "$ac_try_echo"; } >&5
16209 (eval "$ac_try") 2>&5
16211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16212 test $ac_status = 0; } &&
16213 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16218 $as_echo "$ac_try_echo"; } >&5
16219 (eval "$ac_try") 2>&5
16221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16222 test $ac_status = 0; };
16224 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16225 if test "x$CC" != xcc; then
16226 # Test first that cc exists at all.
16227 if { ac_try='cc -c conftest.$ac_ext >&5'
16228 { { case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16233 $as_echo "$ac_try_echo"; } >&5
16234 (eval "$ac_try") 2>&5
16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237 test $ac_status = 0; }; }; then
16238 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16240 if { { case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16245 $as_echo "$ac_try_echo"; } >&5
16246 (eval "$ac_try") 2>&5
16248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16249 test $ac_status = 0; } &&
16250 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16255 $as_echo "$ac_try_echo"; } >&5
16256 (eval "$ac_try") 2>&5
16258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16259 test $ac_status = 0; };
16264 # cc exists but doesn't like -o.
16265 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16270 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16272 rm -f core conftest*
16275 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16277 $as_echo "yes" >&6; }
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 $as_echo "no" >&6; }
16282 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16286 # FIXME: we rely on the cache variable name because
16287 # there is no other way.
16289 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16290 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16291 if test "$am_t" != yes; then
16292 # Losing compiler, so override with the script.
16293 # FIXME: It is wrong to rewrite CC.
16294 # But if we don't then we get into trouble of one sort or another.
16295 # A longer-term fix would be to have automake use am__CC in this case,
16296 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16297 CC="$am_aux_dir/compile $CC"
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16302 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16303 if ${ac_cv_c_bigendian+:} false; then :
16304 $as_echo_n "(cached) " >&6
16306 ac_cv_c_bigendian=unknown
16307 # See if we're dealing with a universal compiler.
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 #ifndef __APPLE_CC__
16311 not a universal capable compiler
16316 if ac_fn_c_try_compile "$LINENO"; then :
16318 # Check for potential -arch flags. It is not universal unless
16319 # there are at least two -arch flags with different values.
16322 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16323 if test -n "$ac_prev"; then
16325 i?86 | x86_64 | ppc | ppc64)
16326 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16329 ac_cv_c_bigendian=universal
16335 elif test "x$ac_word" = "x-arch"; then
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 if test $ac_cv_c_bigendian = unknown; then
16342 # See if sys/param.h defines the BYTE_ORDER macro.
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 #include <sys/types.h>
16346 #include <sys/param.h>
16351 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16352 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16354 bogus endian macros
16361 if ac_fn_c_try_compile "$LINENO"; then :
16362 # It does; now see whether it defined to BIG_ENDIAN or not.
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16365 #include <sys/types.h>
16366 #include <sys/param.h>
16371 #if BYTE_ORDER != BIG_ENDIAN
16379 if ac_fn_c_try_compile "$LINENO"; then :
16380 ac_cv_c_bigendian=yes
16382 ac_cv_c_bigendian=no
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 if test $ac_cv_c_bigendian = unknown; then
16389 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <limits.h>
16397 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16398 bogus endian macros
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 # It does; now see whether it defined to _BIG_ENDIAN or not.
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 #include <limits.h>
16414 #ifndef _BIG_ENDIAN
16422 if ac_fn_c_try_compile "$LINENO"; then :
16423 ac_cv_c_bigendian=yes
16425 ac_cv_c_bigendian=no
16427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431 if test $ac_cv_c_bigendian = unknown; then
16432 # Compile a test program.
16433 if test "$cross_compiling" = yes; then :
16434 # Try to guess by grepping values from an object file.
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437 short int ascii_mm[] =
16438 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16439 short int ascii_ii[] =
16440 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16441 int use_ascii (int i) {
16442 return ascii_mm[i] + ascii_ii[i];
16444 short int ebcdic_ii[] =
16445 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16446 short int ebcdic_mm[] =
16447 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16448 int use_ebcdic (int i) {
16449 return ebcdic_mm[i] + ebcdic_ii[i];
16456 return use_ascii (foo) == use_ebcdic (foo);
16461 if ac_fn_c_try_compile "$LINENO"; then :
16462 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16463 ac_cv_c_bigendian=yes
16465 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16466 if test "$ac_cv_c_bigendian" = unknown; then
16467 ac_cv_c_bigendian=no
16469 # finding both strings is unlikely to happen, but who knows?
16470 ac_cv_c_bigendian=unknown
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16478 $ac_includes_default
16483 /* Are we little or big endian? From Harbison&Steele. */
16487 char c[sizeof (long int)];
16490 return u.c[sizeof (long int) - 1] == 1;
16496 if ac_fn_c_try_run "$LINENO"; then :
16497 ac_cv_c_bigendian=no
16499 ac_cv_c_bigendian=yes
16501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16502 conftest.$ac_objext conftest.beam conftest.$ac_ext
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16508 $as_echo "$ac_cv_c_bigendian" >&6; }
16509 case $ac_cv_c_bigendian in #(
16511 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16517 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16521 as_fn_error $? "unknown endianness
16522 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16525 for ac_prog in python2 python
16527 # Extract the first word of "$ac_prog", so it can be a program name with args.
16528 set dummy $ac_prog; ac_word=$2
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16530 $as_echo_n "checking for $ac_word... " >&6; }
16531 if ${ac_cv_path_PYTHON+:} false; then :
16532 $as_echo_n "(cached) " >&6
16536 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16540 for as_dir in $PATH
16543 test -z "$as_dir" && as_dir=.
16544 for ac_exec_ext in '' $ac_executable_extensions; do
16545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16546 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16557 PYTHON=$ac_cv_path_PYTHON
16558 if test -n "$PYTHON"; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16560 $as_echo "$PYTHON" >&6; }
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 $as_echo "no" >&6; }
16567 test -n "$PYTHON" && break
16577 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16578 if test -n "$ac_tool_prefix"; then
16579 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16580 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16584 $as_echo_n "(cached) " >&6
16586 case $PKG_CONFIG in
16588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16610 if test -n "$PKG_CONFIG"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16612 $as_echo "$PKG_CONFIG" >&6; }
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16620 if test -z "$ac_cv_path_PKG_CONFIG"; then
16621 ac_pt_PKG_CONFIG=$PKG_CONFIG
16622 # Extract the first word of "pkg-config", so it can be a program name with args.
16623 set dummy pkg-config; ac_word=$2
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16625 $as_echo_n "checking for $ac_word... " >&6; }
16626 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16627 $as_echo_n "(cached) " >&6
16629 case $ac_pt_PKG_CONFIG in
16631 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16635 for as_dir in $PATH
16638 test -z "$as_dir" && as_dir=.
16639 for ac_exec_ext in '' $ac_executable_extensions; do
16640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16641 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16652 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16653 if test -n "$ac_pt_PKG_CONFIG"; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16655 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16658 $as_echo "no" >&6; }
16661 if test "x$ac_pt_PKG_CONFIG" = x; then
16664 case $cross_compiling:$ac_tool_warned in
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16668 ac_tool_warned=yes ;;
16670 PKG_CONFIG=$ac_pt_PKG_CONFIG
16673 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16677 if test -n "$PKG_CONFIG"; then
16678 _pkg_min_version=0.9.0
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16680 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16681 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16683 $as_echo "yes" >&6; }
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686 $as_echo "no" >&6; }
16691 for ac_header in sys/time.h
16693 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16694 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16695 cat >>confdefs.h <<_ACEOF
16696 #define HAVE_SYS_TIME_H 1
16703 for ac_header in execinfo.h
16705 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
16706 if test "x$ac_cv_header_execinfo_h" = xyes; then :
16707 cat >>confdefs.h <<_ACEOF
16708 #define HAVE_EXECINFO_H 1
16715 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16716 if test "x$ac_cv_type_size_t" = xyes; then :
16720 cat >>confdefs.h <<_ACEOF
16721 #define size_t unsigned int
16726 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16727 # for constant arguments. Useless!
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16729 $as_echo_n "checking for working alloca.h... " >&6; }
16730 if ${ac_cv_working_alloca_h+:} false; then :
16731 $as_echo_n "(cached) " >&6
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 #include <alloca.h>
16739 char *p = (char *) alloca (2 * sizeof (int));
16745 if ac_fn_c_try_link "$LINENO"; then :
16746 ac_cv_working_alloca_h=yes
16748 ac_cv_working_alloca_h=no
16750 rm -f core conftest.err conftest.$ac_objext \
16751 conftest$ac_exeext conftest.$ac_ext
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16754 $as_echo "$ac_cv_working_alloca_h" >&6; }
16755 if test $ac_cv_working_alloca_h = yes; then
16757 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16762 $as_echo_n "checking for alloca... " >&6; }
16763 if ${ac_cv_func_alloca_works+:} false; then :
16764 $as_echo_n "(cached) " >&6
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16769 # define alloca __builtin_alloca
16772 # include <malloc.h>
16773 # define alloca _alloca
16775 # ifdef HAVE_ALLOCA_H
16776 # include <alloca.h>
16781 # ifndef alloca /* predefined by HP cc +Olibcalls */
16782 void *alloca (size_t);
16792 char *p = (char *) alloca (1);
16798 if ac_fn_c_try_link "$LINENO"; then :
16799 ac_cv_func_alloca_works=yes
16801 ac_cv_func_alloca_works=no
16803 rm -f core conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16807 $as_echo "$ac_cv_func_alloca_works" >&6; }
16809 if test $ac_cv_func_alloca_works = yes; then
16811 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16814 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16815 # that cause trouble. Some versions do not even contain alloca or
16816 # contain a buggy version. If you still want to use their alloca,
16817 # use ar to extract alloca.o from them instead of compiling alloca.c.
16819 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16821 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16825 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16826 if ${ac_cv_os_cray+:} false; then :
16827 $as_echo_n "(cached) " >&6
16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h. */
16831 #if defined CRAY && ! defined CRAY2
16838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16839 $EGREP "webecray" >/dev/null 2>&1; then :
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16848 $as_echo "$ac_cv_os_cray" >&6; }
16849 if test $ac_cv_os_cray = yes; then
16850 for ac_func in _getb67 GETB67 getb67; do
16851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16855 cat >>confdefs.h <<_ACEOF
16856 #define CRAY_STACKSEG_END $ac_func
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16866 $as_echo_n "checking stack direction for C alloca... " >&6; }
16867 if ${ac_cv_c_stack_direction+:} false; then :
16868 $as_echo_n "(cached) " >&6
16870 if test "$cross_compiling" = yes; then :
16871 ac_cv_c_stack_direction=0
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 $ac_includes_default
16877 find_stack_direction (int *addr, int depth)
16879 int dir, dummy = 0;
16882 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16883 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16884 return dir + dummy;
16888 main (int argc, char **argv)
16890 return find_stack_direction (0, argc + !argv + 20) < 0;
16893 if ac_fn_c_try_run "$LINENO"; then :
16894 ac_cv_c_stack_direction=1
16896 ac_cv_c_stack_direction=-1
16898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16899 conftest.$ac_objext conftest.beam conftest.$ac_ext
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16904 $as_echo "$ac_cv_c_stack_direction" >&6; }
16905 cat >>confdefs.h <<_ACEOF
16906 #define STACK_DIRECTION $ac_cv_c_stack_direction
16914 $as_echo "#define __STDC_FORMAT_MACROS /**/" >>confdefs.h
16917 SPICE_LT_VERSION="9:0:8"
16920 # Check for the CPU we are using
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86" >&5
16923 $as_echo_n "checking for x86... " >&6; }
16925 i386|i486|i586|i686|i786|k6|k7|armv6|armv6l|armv6hl|armv7|armv7l|armv7hl)
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933 $as_echo "no" >&6; }
16934 echo Only x86 and x86-64 are supported
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $variant bit" >&5
16938 $as_echo "$variant bit" >&6; }
16939 if test "$variant" = 64; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
16949 $as_echo_n "checking for native Win32... " >&6; }
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
16959 $as_echo "$os_win32" >&6; }
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
16969 $as_echo_n "checking for some Win32 platform... " >&6; }
16971 *-*-mingw*|*-*-cygwin*)
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
16979 $as_echo "$platform_win32" >&6; }
16980 if test "$platform_win32" = yes; then
16986 if test "$os_win32" = "yes"; then
16994 if test "$os_win32" != "yes"; then
17002 if test "$os_linux" = "yes"; then
17011 # Check whether --enable-tunnel was given.
17012 if test "${enable_tunnel+set}" = set; then :
17013 enableval=$enable_tunnel;
17018 if test x"$enable_tunnel" != "xno"; then :
17019 enable_tunnel="yes"
17021 if test "x$enable_tunnel" != "xno"; then
17022 SUPPORT_TUNNEL_TRUE=
17023 SUPPORT_TUNNEL_FALSE='#'
17025 SUPPORT_TUNNEL_TRUE='#'
17026 SUPPORT_TUNNEL_FALSE=
17029 if test "x$enable_tunnel" != "xno"; then
17031 $as_echo "#define USE_TUNNEL 1" >>confdefs.h
17035 # Check whether --enable-gui was given.
17036 if test "${enable_gui+set}" = set; then :
17037 enableval=$enable_gui;
17042 if test x"$enable_gui" != "xno"; then :
17045 if test "x$enable_gui" != "xno"; then
17047 SUPPORT_GUI_FALSE='#'
17049 SUPPORT_GUI_TRUE='#'
17054 # Check whether --enable-opengl was given.
17055 if test "${enable_opengl+set}" = set; then :
17056 enableval=$enable_opengl;
17061 if test x"$enable_opengl" != "xno"; then :
17062 enable_opengl="yes"
17064 if test "x$enable_opengl" = "xyes"; then
17066 SUPPORT_GL_FALSE='#'
17068 SUPPORT_GL_TRUE='#'
17073 # Check whether --enable-smartcard was given.
17074 if test "${enable_smartcard+set}" = set; then :
17075 enableval=$enable_smartcard;
17077 enable_smartcard="no"
17080 if test x"$enable_smartcard" != "xno"; then :
17081 enable_smartcard="yes"
17083 if test "x$enable_smartcard" != "xno"; then
17084 SUPPORT_SMARTCARD_TRUE=
17085 SUPPORT_SMARTCARD_FALSE='#'
17087 SUPPORT_SMARTCARD_TRUE='#'
17088 SUPPORT_SMARTCARD_FALSE=
17091 if test "x$enable_smartcard" = "xyes"; then
17093 $as_echo "#define USE_SMARTCARD 1" >>confdefs.h
17097 # Check whether --enable-client was given.
17098 if test "${enable_client+set}" = set; then :
17099 enableval=$enable_client;
17104 if test x"$enable_client" != "xno"; then :
17105 enable_client="yes"
17107 if test "x$enable_client" = "xyes"; then
17108 SUPPORT_CLIENT_TRUE=
17109 SUPPORT_CLIENT_FALSE='#'
17111 SUPPORT_CLIENT_TRUE='#'
17112 SUPPORT_CLIENT_FALSE=
17116 # Check whether --enable-automated_tests was given.
17117 if test "${enable_automated_tests+set}" = set; then :
17118 enableval=$enable_automated_tests;
17120 enable_automated_tests="no"
17123 if test x"$enable_automated_tests" != "xno"; then :
17124 enable_automated_tests="yes"
17126 if test "x$enable_automated_tests" != "xno"; then
17127 SUPPORT_AUTOMATED_TESTS_TRUE=
17128 SUPPORT_AUTOMATED_TESTS_FALSE='#'
17130 SUPPORT_AUTOMATED_TESTS_TRUE='#'
17131 SUPPORT_AUTOMATED_TESTS_FALSE=
17139 subdirs="$subdirs spice-common"
17141 COMMON_CFLAGS='-I ${top_srcdir}/spice-common/ -I ${top_srcdir}/spice-common/spice-protocol/'
17146 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
17147 # These system don't have libm, or don't need it
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
17151 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
17152 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
17153 $as_echo_n "(cached) " >&6
17155 ac_check_lib_save_LIBS=$LIBS
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17166 char _mwvalidcheckl ();
17170 return _mwvalidcheckl ();
17175 if ac_fn_c_try_link "$LINENO"; then :
17176 ac_cv_lib_mw__mwvalidcheckl=yes
17178 ac_cv_lib_mw__mwvalidcheckl=no
17180 rm -f core conftest.err conftest.$ac_objext \
17181 conftest$ac_exeext conftest.$ac_ext
17182 LIBS=$ac_check_lib_save_LIBS
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
17185 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
17186 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17191 $as_echo_n "checking for cos in -lm... " >&6; }
17192 if ${ac_cv_lib_m_cos+:} false; then :
17193 $as_echo_n "(cached) " >&6
17195 ac_check_lib_save_LIBS=$LIBS
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17200 /* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply. */
17215 if ac_fn_c_try_link "$LINENO"; then :
17216 ac_cv_lib_m_cos=yes
17220 rm -f core conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17225 $as_echo "$ac_cv_lib_m_cos" >&6; }
17226 if test "x$ac_cv_lib_m_cos" = xyes; then :
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17233 $as_echo_n "checking for cos in -lm... " >&6; }
17234 if ${ac_cv_lib_m_cos+:} false; then :
17235 $as_echo_n "(cached) " >&6
17237 ac_check_lib_save_LIBS=$LIBS
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17242 /* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply. */
17257 if ac_fn_c_try_link "$LINENO"; then :
17258 ac_cv_lib_m_cos=yes
17262 rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17267 $as_echo "$ac_cv_lib_m_cos" >&6; }
17268 if test "x$ac_cv_lib_m_cos" = xyes; then :
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17279 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17280 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17281 $as_echo_n "(cached) " >&6
17283 ac_check_lib_save_LIBS=$LIBS
17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h. */
17288 /* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17294 char clock_gettime ();
17298 return clock_gettime ();
17303 if ac_fn_c_try_link "$LINENO"; then :
17304 ac_cv_lib_rt_clock_gettime=yes
17306 ac_cv_lib_rt_clock_gettime=no
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17310 LIBS=$ac_check_lib_save_LIBS
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17313 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17314 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17316 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17324 if test "$red_target" = "windows"; then
17325 SPICE_NONPKGCONFIG_LIBS+=" -lpthreadGC2 -lversion -lmsimg32 $LIBM"
17327 SPICE_NONPKGCONFIG_LIBS+=" -pthread $LIBM $LIBRT"
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix yield function" >&5
17331 $as_echo_n "checking for posix yield function... " >&6; }
17332 for yield_func in pthread_yield pthread_yield_np sched_yield \
17334 spice_save_CPPFLAGS="$CPPFLAGS"
17335 CPPFLAGS="$CPPFLAGS $SPICE_NONPKGCONFIG_LIBS"
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 #include <pthread.h>
17347 if ac_fn_c_try_link "$LINENO"; then :
17348 posix_yield_func="$yield_func"
17351 rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17353 CPPFLAGS="$spice_save_CPPFLAGS"
17355 if test x"$posix_yield_func" = xnone; then
17356 as_fn_error $? "No posix yield function found" "$LINENO" 5
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $posix_yield_func" >&5
17359 $as_echo "$posix_yield_func" >&6; }
17360 posix_yield_func="$posix_yield_func()"
17363 cat >>confdefs.h <<_ACEOF
17364 #define POSIX_YIELD_FUNC $posix_yield_func
17370 if test "x$enable_gui" = "xyes" && test "x$enable_client" = "xyes" ; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CEGUI06" >&5
17374 $as_echo_n "checking for CEGUI06... " >&6; }
17376 if test -n "$CEGUI06_CFLAGS"; then
17377 pkg_cv_CEGUI06_CFLAGS="$CEGUI06_CFLAGS"
17378 elif test -n "$PKG_CONFIG"; then
17379 if test -n "$PKG_CONFIG" && \
17380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0\""; } >&5
17381 ($PKG_CONFIG --exists --print-errors "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0") 2>&5
17383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17384 test $ac_status = 0; }; then
17385 pkg_cv_CEGUI06_CFLAGS=`$PKG_CONFIG --cflags "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>/dev/null`
17386 test "x$?" != "x0" && pkg_failed=yes
17393 if test -n "$CEGUI06_LIBS"; then
17394 pkg_cv_CEGUI06_LIBS="$CEGUI06_LIBS"
17395 elif test -n "$PKG_CONFIG"; then
17396 if test -n "$PKG_CONFIG" && \
17397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0\""; } >&5
17398 ($PKG_CONFIG --exists --print-errors "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0") 2>&5
17400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17401 test $ac_status = 0; }; then
17402 pkg_cv_CEGUI06_LIBS=`$PKG_CONFIG --libs "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>/dev/null`
17403 test "x$?" != "x0" && pkg_failed=yes
17413 if test $pkg_failed = yes; then
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415 $as_echo "no" >&6; }
17417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17418 _pkg_short_errors_supported=yes
17420 _pkg_short_errors_supported=no
17422 if test $_pkg_short_errors_supported = yes; then
17423 CEGUI06_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>&1`
17425 CEGUI06_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>&1`
17427 # Put the nasty error message in config.log where it belongs
17428 echo "$CEGUI06_PKG_ERRORS" >&5
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CEGUI" >&5
17434 $as_echo_n "checking for CEGUI... " >&6; }
17436 if test -n "$CEGUI_CFLAGS"; then
17437 pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS"
17438 elif test -n "$PKG_CONFIG"; then
17439 if test -n "$PKG_CONFIG" && \
17440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17441 ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17444 test $ac_status = 0; }; then
17445 pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17446 test "x$?" != "x0" && pkg_failed=yes
17453 if test -n "$CEGUI_LIBS"; then
17454 pkg_cv_CEGUI_LIBS="$CEGUI_LIBS"
17455 elif test -n "$PKG_CONFIG"; then
17456 if test -n "$PKG_CONFIG" && \
17457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17458 ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17461 test $ac_status = 0; }; then
17462 pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17463 test "x$?" != "x0" && pkg_failed=yes
17473 if test $pkg_failed = yes; then
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17475 $as_echo "no" >&6; }
17477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17478 _pkg_short_errors_supported=yes
17480 _pkg_short_errors_supported=no
17482 if test $_pkg_short_errors_supported = yes; then
17483 CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17485 CEGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17487 # Put the nasty error message in config.log where it belongs
17488 echo "$CEGUI_PKG_ERRORS" >&5
17490 as_fn_error $? "Package requirements (CEGUI >= 0.6.0 CEGUI < 0.7.0) were not met:
17494 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17495 installed software in a non-standard prefix.
17497 Alternatively, you may set the environment variables CEGUI_CFLAGS
17498 and CEGUI_LIBS to avoid the need to call pkg-config.
17499 See the pkg-config man page for more details." "$LINENO" 5
17500 elif test $pkg_failed = untried; then
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17502 $as_echo "no" >&6; }
17503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17505 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17506 is in your PATH or set the PKG_CONFIG environment variable to the full
17507 path to pkg-config.
17509 Alternatively, you may set the environment variables CEGUI_CFLAGS
17510 and CEGUI_LIBS to avoid the need to call pkg-config.
17511 See the pkg-config man page for more details.
17513 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17514 See \`config.log' for more details" "$LINENO" 5; }
17516 CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS
17517 CEGUI_LIBS=$pkg_cv_CEGUI_LIBS
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17519 $as_echo "yes" >&6; }
17525 $as_echo "#define USE_GUI 1" >>confdefs.h
17528 elif test $pkg_failed = untried; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17530 $as_echo "no" >&6; }
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CEGUI" >&5
17535 $as_echo_n "checking for CEGUI... " >&6; }
17537 if test -n "$CEGUI_CFLAGS"; then
17538 pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS"
17539 elif test -n "$PKG_CONFIG"; then
17540 if test -n "$PKG_CONFIG" && \
17541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17542 ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17545 test $ac_status = 0; }; then
17546 pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17547 test "x$?" != "x0" && pkg_failed=yes
17554 if test -n "$CEGUI_LIBS"; then
17555 pkg_cv_CEGUI_LIBS="$CEGUI_LIBS"
17556 elif test -n "$PKG_CONFIG"; then
17557 if test -n "$PKG_CONFIG" && \
17558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17559 ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17562 test $ac_status = 0; }; then
17563 pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17564 test "x$?" != "x0" && pkg_failed=yes
17574 if test $pkg_failed = yes; then
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17576 $as_echo "no" >&6; }
17578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17579 _pkg_short_errors_supported=yes
17581 _pkg_short_errors_supported=no
17583 if test $_pkg_short_errors_supported = yes; then
17584 CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17586 CEGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17588 # Put the nasty error message in config.log where it belongs
17589 echo "$CEGUI_PKG_ERRORS" >&5
17591 as_fn_error $? "Package requirements (CEGUI >= 0.6.0 CEGUI < 0.7.0) were not met:
17595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17596 installed software in a non-standard prefix.
17598 Alternatively, you may set the environment variables CEGUI_CFLAGS
17599 and CEGUI_LIBS to avoid the need to call pkg-config.
17600 See the pkg-config man page for more details." "$LINENO" 5
17601 elif test $pkg_failed = untried; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17603 $as_echo "no" >&6; }
17604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17606 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17607 is in your PATH or set the PKG_CONFIG environment variable to the full
17608 path to pkg-config.
17610 Alternatively, you may set the environment variables CEGUI_CFLAGS
17611 and CEGUI_LIBS to avoid the need to call pkg-config.
17612 See the pkg-config man page for more details.
17614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17615 See \`config.log' for more details" "$LINENO" 5; }
17617 CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS
17618 CEGUI_LIBS=$pkg_cv_CEGUI_LIBS
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17620 $as_echo "yes" >&6; }
17626 $as_echo "#define USE_GUI 1" >>confdefs.h
17630 CEGUI06_CFLAGS=$pkg_cv_CEGUI06_CFLAGS
17631 CEGUI06_LIBS=$pkg_cv_CEGUI06_LIBS
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633 $as_echo "yes" >&6; }
17638 $as_echo "#define USE_GUI 1" >>confdefs.h
17644 if test "x$enable_tunnel" = "xyes"; then
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLIRP" >&5
17648 $as_echo_n "checking for SLIRP... " >&6; }
17650 if test -n "$SLIRP_CFLAGS"; then
17651 pkg_cv_SLIRP_CFLAGS="$SLIRP_CFLAGS"
17652 elif test -n "$PKG_CONFIG"; then
17653 if test -n "$PKG_CONFIG" && \
17654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"slirp\""; } >&5
17655 ($PKG_CONFIG --exists --print-errors "slirp") 2>&5
17657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658 test $ac_status = 0; }; then
17659 pkg_cv_SLIRP_CFLAGS=`$PKG_CONFIG --cflags "slirp" 2>/dev/null`
17660 test "x$?" != "x0" && pkg_failed=yes
17667 if test -n "$SLIRP_LIBS"; then
17668 pkg_cv_SLIRP_LIBS="$SLIRP_LIBS"
17669 elif test -n "$PKG_CONFIG"; then
17670 if test -n "$PKG_CONFIG" && \
17671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"slirp\""; } >&5
17672 ($PKG_CONFIG --exists --print-errors "slirp") 2>&5
17674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675 test $ac_status = 0; }; then
17676 pkg_cv_SLIRP_LIBS=`$PKG_CONFIG --libs "slirp" 2>/dev/null`
17677 test "x$?" != "x0" && pkg_failed=yes
17687 if test $pkg_failed = yes; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689 $as_echo "no" >&6; }
17691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17692 _pkg_short_errors_supported=yes
17694 _pkg_short_errors_supported=no
17696 if test $_pkg_short_errors_supported = yes; then
17697 SLIRP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "slirp" 2>&1`
17699 SLIRP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "slirp" 2>&1`
17701 # Put the nasty error message in config.log where it belongs
17702 echo "$SLIRP_PKG_ERRORS" >&5
17704 as_fn_error $? "Package requirements (slirp) were not met:
17708 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17709 installed software in a non-standard prefix.
17711 Alternatively, you may set the environment variables SLIRP_CFLAGS
17712 and SLIRP_LIBS to avoid the need to call pkg-config.
17713 See the pkg-config man page for more details." "$LINENO" 5
17714 elif test $pkg_failed = untried; then
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17716 $as_echo "no" >&6; }
17717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17719 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17720 is in your PATH or set the PKG_CONFIG environment variable to the full
17721 path to pkg-config.
17723 Alternatively, you may set the environment variables SLIRP_CFLAGS
17724 and SLIRP_LIBS to avoid the need to call pkg-config.
17725 See the pkg-config man page for more details.
17727 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17728 See \`config.log' for more details" "$LINENO" 5; }
17730 SLIRP_CFLAGS=$pkg_cv_SLIRP_CFLAGS
17731 SLIRP_LIBS=$pkg_cv_SLIRP_LIBS
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17733 $as_echo "yes" >&6; }
17738 SPICE_REQUIRES+=" slirp"
17740 $as_echo "#define HAVE_SLIRP /**/" >>confdefs.h
17744 if test "x$enable_smartcard" = "xyes"; then
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAC_CARD" >&5
17748 $as_echo_n "checking for CAC_CARD... " >&6; }
17750 if test -n "$CAC_CARD_CFLAGS"; then
17751 pkg_cv_CAC_CARD_CFLAGS="$CAC_CARD_CFLAGS"
17752 elif test -n "$PKG_CONFIG"; then
17753 if test -n "$PKG_CONFIG" && \
17754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard >= 0.1.2\""; } >&5
17755 ($PKG_CONFIG --exists --print-errors "libcacard >= 0.1.2") 2>&5
17757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17758 test $ac_status = 0; }; then
17759 pkg_cv_CAC_CARD_CFLAGS=`$PKG_CONFIG --cflags "libcacard >= 0.1.2" 2>/dev/null`
17760 test "x$?" != "x0" && pkg_failed=yes
17767 if test -n "$CAC_CARD_LIBS"; then
17768 pkg_cv_CAC_CARD_LIBS="$CAC_CARD_LIBS"
17769 elif test -n "$PKG_CONFIG"; then
17770 if test -n "$PKG_CONFIG" && \
17771 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard >= 0.1.2\""; } >&5
17772 ($PKG_CONFIG --exists --print-errors "libcacard >= 0.1.2") 2>&5
17774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17775 test $ac_status = 0; }; then
17776 pkg_cv_CAC_CARD_LIBS=`$PKG_CONFIG --libs "libcacard >= 0.1.2" 2>/dev/null`
17777 test "x$?" != "x0" && pkg_failed=yes
17787 if test $pkg_failed = yes; then
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17792 _pkg_short_errors_supported=yes
17794 _pkg_short_errors_supported=no
17796 if test $_pkg_short_errors_supported = yes; then
17797 CAC_CARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcacard >= 0.1.2" 2>&1`
17799 CAC_CARD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcacard >= 0.1.2" 2>&1`
17801 # Put the nasty error message in config.log where it belongs
17802 echo "$CAC_CARD_PKG_ERRORS" >&5
17804 as_fn_error $? "Package requirements (libcacard >= 0.1.2) were not met:
17806 $CAC_CARD_PKG_ERRORS
17808 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17809 installed software in a non-standard prefix.
17811 Alternatively, you may set the environment variables CAC_CARD_CFLAGS
17812 and CAC_CARD_LIBS to avoid the need to call pkg-config.
17813 See the pkg-config man page for more details." "$LINENO" 5
17814 elif test $pkg_failed = untried; then
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17819 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17820 is in your PATH or set the PKG_CONFIG environment variable to the full
17821 path to pkg-config.
17823 Alternatively, you may set the environment variables CAC_CARD_CFLAGS
17824 and CAC_CARD_LIBS to avoid the need to call pkg-config.
17825 See the pkg-config man page for more details.
17827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17828 See \`config.log' for more details" "$LINENO" 5; }
17830 CAC_CARD_CFLAGS=$pkg_cv_CAC_CARD_CFLAGS
17831 CAC_CARD_LIBS=$pkg_cv_CAC_CARD_LIBS
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17833 $as_echo "yes" >&6; }
17836 SMARTCARD_LIBS="$CAC_CARD_LIBS"
17837 SMARTCARD_CFLAGS="$CAC_CARD_CFLAGS"
17840 SPICE_REQUIRES+=" libcacard >= 0.1.2"
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
17847 $as_echo_n "checking for GLIB2... " >&6; }
17849 if test -n "$GLIB2_CFLAGS"; then
17850 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
17851 elif test -n "$PKG_CONFIG"; then
17852 if test -n "$PKG_CONFIG" && \
17853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\""; } >&5
17854 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
17856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17857 test $ac_status = 0; }; then
17858 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.22" 2>/dev/null`
17859 test "x$?" != "x0" && pkg_failed=yes
17866 if test -n "$GLIB2_LIBS"; then
17867 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
17868 elif test -n "$PKG_CONFIG"; then
17869 if test -n "$PKG_CONFIG" && \
17870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\""; } >&5
17871 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
17873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17874 test $ac_status = 0; }; then
17875 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.22" 2>/dev/null`
17876 test "x$?" != "x0" && pkg_failed=yes
17886 if test $pkg_failed = yes; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17888 $as_echo "no" >&6; }
17890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17891 _pkg_short_errors_supported=yes
17893 _pkg_short_errors_supported=no
17895 if test $_pkg_short_errors_supported = yes; then
17896 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.22" 2>&1`
17898 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.22" 2>&1`
17900 # Put the nasty error message in config.log where it belongs
17901 echo "$GLIB2_PKG_ERRORS" >&5
17903 as_fn_error $? "Package requirements (glib-2.0 >= 2.22) were not met:
17907 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17908 installed software in a non-standard prefix.
17910 Alternatively, you may set the environment variables GLIB2_CFLAGS
17911 and GLIB2_LIBS to avoid the need to call pkg-config.
17912 See the pkg-config man page for more details." "$LINENO" 5
17913 elif test $pkg_failed = untried; then
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17918 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17919 is in your PATH or set the PKG_CONFIG environment variable to the full
17920 path to pkg-config.
17922 Alternatively, you may set the environment variables GLIB2_CFLAGS
17923 and GLIB2_LIBS to avoid the need to call pkg-config.
17924 See the pkg-config man page for more details.
17926 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17927 See \`config.log' for more details" "$LINENO" 5; }
17929 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
17930 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17932 $as_echo "yes" >&6; }
17935 SPICE_REQUIRES+=" glib-2.0 >= 2.22"
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
17940 $as_echo_n "checking for PIXMAN... " >&6; }
17942 if test -n "$PIXMAN_CFLAGS"; then
17943 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
17944 elif test -n "$PKG_CONFIG"; then
17945 if test -n "$PKG_CONFIG" && \
17946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.17.7\""; } >&5
17947 ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.17.7") 2>&5
17949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17950 test $ac_status = 0; }; then
17951 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1 >= 0.17.7" 2>/dev/null`
17952 test "x$?" != "x0" && pkg_failed=yes
17959 if test -n "$PIXMAN_LIBS"; then
17960 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
17961 elif test -n "$PKG_CONFIG"; then
17962 if test -n "$PKG_CONFIG" && \
17963 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.17.7\""; } >&5
17964 ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.17.7") 2>&5
17966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17967 test $ac_status = 0; }; then
17968 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1 >= 0.17.7" 2>/dev/null`
17969 test "x$?" != "x0" && pkg_failed=yes
17979 if test $pkg_failed = yes; then
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981 $as_echo "no" >&6; }
17983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17984 _pkg_short_errors_supported=yes
17986 _pkg_short_errors_supported=no
17988 if test $_pkg_short_errors_supported = yes; then
17989 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pixman-1 >= 0.17.7" 2>&1`
17991 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pixman-1 >= 0.17.7" 2>&1`
17993 # Put the nasty error message in config.log where it belongs
17994 echo "$PIXMAN_PKG_ERRORS" >&5
17996 as_fn_error $? "Package requirements (pixman-1 >= 0.17.7) were not met:
18000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18001 installed software in a non-standard prefix.
18003 Alternatively, you may set the environment variables PIXMAN_CFLAGS
18004 and PIXMAN_LIBS to avoid the need to call pkg-config.
18005 See the pkg-config man page for more details." "$LINENO" 5
18006 elif test $pkg_failed = untried; then
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18011 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18012 is in your PATH or set the PKG_CONFIG environment variable to the full
18013 path to pkg-config.
18015 Alternatively, you may set the environment variables PIXMAN_CFLAGS
18016 and PIXMAN_LIBS to avoid the need to call pkg-config.
18017 See the pkg-config man page for more details.
18019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18020 See \`config.log' for more details" "$LINENO" 5; }
18022 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
18023 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18025 $as_echo "yes" >&6; }
18030 SPICE_REQUIRES+=" pixman-1 >= 0.17.7"
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT051" >&5
18035 $as_echo_n "checking for CELT051... " >&6; }
18037 if test -n "$CELT051_CFLAGS"; then
18038 pkg_cv_CELT051_CFLAGS="$CELT051_CFLAGS"
18039 elif test -n "$PKG_CONFIG"; then
18040 if test -n "$PKG_CONFIG" && \
18041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt051 >= 0.5.1.1\""; } >&5
18042 ($PKG_CONFIG --exists --print-errors "celt051 >= 0.5.1.1") 2>&5
18044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18045 test $ac_status = 0; }; then
18046 pkg_cv_CELT051_CFLAGS=`$PKG_CONFIG --cflags "celt051 >= 0.5.1.1" 2>/dev/null`
18047 test "x$?" != "x0" && pkg_failed=yes
18054 if test -n "$CELT051_LIBS"; then
18055 pkg_cv_CELT051_LIBS="$CELT051_LIBS"
18056 elif test -n "$PKG_CONFIG"; then
18057 if test -n "$PKG_CONFIG" && \
18058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt051 >= 0.5.1.1\""; } >&5
18059 ($PKG_CONFIG --exists --print-errors "celt051 >= 0.5.1.1") 2>&5
18061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18062 test $ac_status = 0; }; then
18063 pkg_cv_CELT051_LIBS=`$PKG_CONFIG --libs "celt051 >= 0.5.1.1" 2>/dev/null`
18064 test "x$?" != "x0" && pkg_failed=yes
18074 if test $pkg_failed = yes; then
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076 $as_echo "no" >&6; }
18078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18079 _pkg_short_errors_supported=yes
18081 _pkg_short_errors_supported=no
18083 if test $_pkg_short_errors_supported = yes; then
18084 CELT051_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "celt051 >= 0.5.1.1" 2>&1`
18086 CELT051_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "celt051 >= 0.5.1.1" 2>&1`
18088 # Put the nasty error message in config.log where it belongs
18089 echo "$CELT051_PKG_ERRORS" >&5
18091 as_fn_error $? "Package requirements (celt051 >= 0.5.1.1) were not met:
18093 $CELT051_PKG_ERRORS
18095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18096 installed software in a non-standard prefix.
18098 Alternatively, you may set the environment variables CELT051_CFLAGS
18099 and CELT051_LIBS to avoid the need to call pkg-config.
18100 See the pkg-config man page for more details." "$LINENO" 5
18101 elif test $pkg_failed = untried; then
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18106 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18107 is in your PATH or set the PKG_CONFIG environment variable to the full
18108 path to pkg-config.
18110 Alternatively, you may set the environment variables CELT051_CFLAGS
18111 and CELT051_LIBS to avoid the need to call pkg-config.
18112 See the pkg-config man page for more details.
18114 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18115 See \`config.log' for more details" "$LINENO" 5; }
18117 CELT051_CFLAGS=$pkg_cv_CELT051_CFLAGS
18118 CELT051_LIBS=$pkg_cv_CELT051_LIBS
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18120 $as_echo "yes" >&6; }
18126 SPICE_REQUIRES+=" celt051 >= 0.5.1.1"
18128 if test ! -e client/generated_marshallers.cpp; then
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pyparsing python module" >&5
18130 $as_echo_n "checking for pyparsing python module... " >&6; }
18131 echo "import pyparsing" | ${PYTHON} - >/dev/null 2>&1
18132 if test $? -ne 0 ; then
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18134 $as_echo "not found" >&6; }
18135 as_fn_error $? "pyparsing python module is required to compile this package" "$LINENO" 5
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
18138 $as_echo "found" >&6; }
18141 if test "$os_linux" = yes; then
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
18145 $as_echo_n "checking for ALSA... " >&6; }
18147 if test -n "$ALSA_CFLAGS"; then
18148 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
18149 elif test -n "$PKG_CONFIG"; then
18150 if test -n "$PKG_CONFIG" && \
18151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
18152 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
18154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18155 test $ac_status = 0; }; then
18156 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
18157 test "x$?" != "x0" && pkg_failed=yes
18164 if test -n "$ALSA_LIBS"; then
18165 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
18166 elif test -n "$PKG_CONFIG"; then
18167 if test -n "$PKG_CONFIG" && \
18168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
18169 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
18171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172 test $ac_status = 0; }; then
18173 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
18174 test "x$?" != "x0" && pkg_failed=yes
18184 if test $pkg_failed = yes; then
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18186 $as_echo "no" >&6; }
18188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18189 _pkg_short_errors_supported=yes
18191 _pkg_short_errors_supported=no
18193 if test $_pkg_short_errors_supported = yes; then
18194 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
18196 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
18198 # Put the nasty error message in config.log where it belongs
18199 echo "$ALSA_PKG_ERRORS" >&5
18201 as_fn_error $? "Package requirements (alsa) were not met:
18205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18206 installed software in a non-standard prefix.
18208 Alternatively, you may set the environment variables ALSA_CFLAGS
18209 and ALSA_LIBS to avoid the need to call pkg-config.
18210 See the pkg-config man page for more details." "$LINENO" 5
18211 elif test $pkg_failed = untried; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18213 $as_echo "no" >&6; }
18214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18216 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18217 is in your PATH or set the PKG_CONFIG environment variable to the full
18218 path to pkg-config.
18220 Alternatively, you may set the environment variables ALSA_CFLAGS
18221 and ALSA_LIBS to avoid the need to call pkg-config.
18222 See the pkg-config man page for more details.
18224 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18225 See \`config.log' for more details" "$LINENO" 5; }
18227 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
18228 ALSA_LIBS=$pkg_cv_ALSA_LIBS
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
18240 $as_echo_n "checking for SSL... " >&6; }
18242 if test -n "$SSL_CFLAGS"; then
18243 pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
18244 elif test -n "$PKG_CONFIG"; then
18245 if test -n "$PKG_CONFIG" && \
18246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18247 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18250 test $ac_status = 0; }; then
18251 pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
18252 test "x$?" != "x0" && pkg_failed=yes
18259 if test -n "$SSL_LIBS"; then
18260 pkg_cv_SSL_LIBS="$SSL_LIBS"
18261 elif test -n "$PKG_CONFIG"; then
18262 if test -n "$PKG_CONFIG" && \
18263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18264 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267 test $ac_status = 0; }; then
18268 pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
18269 test "x$?" != "x0" && pkg_failed=yes
18279 if test $pkg_failed = yes; then
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18281 $as_echo "no" >&6; }
18283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18284 _pkg_short_errors_supported=yes
18286 _pkg_short_errors_supported=no
18288 if test $_pkg_short_errors_supported = yes; then
18289 SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18291 SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18293 # Put the nasty error message in config.log where it belongs
18294 echo "$SSL_PKG_ERRORS" >&5
18296 as_fn_error $? "Package requirements (openssl) were not met:
18300 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18301 installed software in a non-standard prefix.
18303 Alternatively, you may set the environment variables SSL_CFLAGS
18304 and SSL_LIBS to avoid the need to call pkg-config.
18305 See the pkg-config man page for more details." "$LINENO" 5
18306 elif test $pkg_failed = untried; then
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 $as_echo "no" >&6; }
18309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18311 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18312 is in your PATH or set the PKG_CONFIG environment variable to the full
18313 path to pkg-config.
18315 Alternatively, you may set the environment variables SSL_CFLAGS
18316 and SSL_LIBS to avoid the need to call pkg-config.
18317 See the pkg-config man page for more details.
18319 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18320 See \`config.log' for more details" "$LINENO" 5; }
18322 SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
18323 SSL_LIBS=$pkg_cv_SSL_LIBS
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18325 $as_echo "yes" >&6; }
18330 SPICE_REQUIRES+=" openssl >= 1.0.1"
18332 # These are commented out because the gl libraries on RHEL 5 do not have pkgconfig files
18334 # PKG_CHECK_MODULES(GL, gl glu)
18335 # AC_SUBST(GL_CFLAGS)
18336 # AC_SUBST(GL_LIBS)
18337 # SPICE_REQUIRES+=" gl glu"
18339 if test "x$enable_opengl" = "xyes"; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBlendFunc in -lGL" >&5
18341 $as_echo_n "checking for glBlendFunc in -lGL... " >&6; }
18342 if ${ac_cv_lib_GL_glBlendFunc+:} false; then :
18343 $as_echo_n "(cached) " >&6
18345 ac_check_lib_save_LIBS=$LIBS
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18350 /* Override any GCC internal prototype to avoid an error.
18351 Use char because int might match the return type of a GCC
18352 builtin and then its argument prototype would still apply. */
18356 char glBlendFunc ();
18360 return glBlendFunc ();
18365 if ac_fn_c_try_link "$LINENO"; then :
18366 ac_cv_lib_GL_glBlendFunc=yes
18368 ac_cv_lib_GL_glBlendFunc=no
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBlendFunc" >&5
18375 $as_echo "$ac_cv_lib_GL_glBlendFunc" >&6; }
18376 if test "x$ac_cv_lib_GL_glBlendFunc" = xyes; then :
18377 GL_LIBS="$GL_LIBS -lGL"
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluSphere in -lGLU" >&5
18383 $as_echo_n "checking for gluSphere in -lGLU... " >&6; }
18384 if ${ac_cv_lib_GLU_gluSphere+:} false; then :
18385 $as_echo_n "(cached) " >&6
18387 ac_check_lib_save_LIBS=$LIBS
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18392 /* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18402 return gluSphere ();
18407 if ac_fn_c_try_link "$LINENO"; then :
18408 ac_cv_lib_GLU_gluSphere=yes
18410 ac_cv_lib_GLU_gluSphere=no
18412 rm -f core conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
18414 LIBS=$ac_check_lib_save_LIBS
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluSphere" >&5
18417 $as_echo "$ac_cv_lib_GLU_gluSphere" >&6; }
18418 if test "x$ac_cv_lib_GLU_gluSphere" = xyes; then :
18419 GL_LIBS="$GL_LIBS -lGLU"
18425 $as_echo "#define USE_OPENGL 1" >>confdefs.h
18428 $as_echo "#define GL_GLEXT_PROTOTYPES /**/" >>confdefs.h
18431 if test "x$enable_opengl" = "xno"; then
18432 as_fn_error $? "GL libraries not available" "$LINENO" 5
18438 SPICE_NONPKGCONFIG_LIBS+=" $GL_LIBS"
18440 if test "x$red_target" = "xx11" && test "x$enable_client" = "xyes" ; then
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
18444 $as_echo_n "checking for XRANDR... " >&6; }
18446 if test -n "$XRANDR_CFLAGS"; then
18447 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
18448 elif test -n "$PKG_CONFIG"; then
18449 if test -n "$PKG_CONFIG" && \
18450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
18451 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
18453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18454 test $ac_status = 0; }; then
18455 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
18456 test "x$?" != "x0" && pkg_failed=yes
18463 if test -n "$XRANDR_LIBS"; then
18464 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
18465 elif test -n "$PKG_CONFIG"; then
18466 if test -n "$PKG_CONFIG" && \
18467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
18468 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
18470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18471 test $ac_status = 0; }; then
18472 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
18473 test "x$?" != "x0" && pkg_failed=yes
18483 if test $pkg_failed = yes; then
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18485 $as_echo "no" >&6; }
18487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18488 _pkg_short_errors_supported=yes
18490 _pkg_short_errors_supported=no
18492 if test $_pkg_short_errors_supported = yes; then
18493 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
18495 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
18497 # Put the nasty error message in config.log where it belongs
18498 echo "$XRANDR_PKG_ERRORS" >&5
18500 as_fn_error $? "Package requirements (xrandr) were not met:
18504 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18505 installed software in a non-standard prefix.
18507 Alternatively, you may set the environment variables XRANDR_CFLAGS
18508 and XRANDR_LIBS to avoid the need to call pkg-config.
18509 See the pkg-config man page for more details." "$LINENO" 5
18510 elif test $pkg_failed = untried; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18515 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18516 is in your PATH or set the PKG_CONFIG environment variable to the full
18517 path to pkg-config.
18519 Alternatively, you may set the environment variables XRANDR_CFLAGS
18520 and XRANDR_LIBS to avoid the need to call pkg-config.
18521 See the pkg-config man page for more details.
18523 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18524 See \`config.log' for more details" "$LINENO" 5; }
18526 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
18527 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18529 $as_echo "yes" >&6; }
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
18535 $as_echo_n "checking for XFIXES... " >&6; }
18537 if test -n "$XFIXES_CFLAGS"; then
18538 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
18539 elif test -n "$PKG_CONFIG"; then
18540 if test -n "$PKG_CONFIG" && \
18541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18542 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18545 test $ac_status = 0; }; then
18546 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
18547 test "x$?" != "x0" && pkg_failed=yes
18554 if test -n "$XFIXES_LIBS"; then
18555 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
18556 elif test -n "$PKG_CONFIG"; then
18557 if test -n "$PKG_CONFIG" && \
18558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18559 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18562 test $ac_status = 0; }; then
18563 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
18564 test "x$?" != "x0" && pkg_failed=yes
18574 if test $pkg_failed = yes; then
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18576 $as_echo "no" >&6; }
18578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18579 _pkg_short_errors_supported=yes
18581 _pkg_short_errors_supported=no
18583 if test $_pkg_short_errors_supported = yes; then
18584 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
18586 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
18588 # Put the nasty error message in config.log where it belongs
18589 echo "$XFIXES_PKG_ERRORS" >&5
18591 as_fn_error $? "Package requirements (xfixes) were not met:
18595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18596 installed software in a non-standard prefix.
18598 Alternatively, you may set the environment variables XFIXES_CFLAGS
18599 and XFIXES_LIBS to avoid the need to call pkg-config.
18600 See the pkg-config man page for more details." "$LINENO" 5
18601 elif test $pkg_failed = untried; then
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18603 $as_echo "no" >&6; }
18604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18606 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18607 is in your PATH or set the PKG_CONFIG environment variable to the full
18608 path to pkg-config.
18610 Alternatively, you may set the environment variables XFIXES_CFLAGS
18611 and XFIXES_LIBS to avoid the need to call pkg-config.
18612 See the pkg-config man page for more details.
18614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18615 See \`config.log' for more details" "$LINENO" 5; }
18617 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
18618 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18620 $as_echo "yes" >&6; }
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MISC_X" >&5
18626 $as_echo_n "checking for MISC_X... " >&6; }
18628 if test -n "$MISC_X_CFLAGS"; then
18629 pkg_cv_MISC_X_CFLAGS="$MISC_X_CFLAGS"
18630 elif test -n "$PKG_CONFIG"; then
18631 if test -n "$PKG_CONFIG" && \
18632 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xrender\""; } >&5
18633 ($PKG_CONFIG --exists --print-errors "x11 xext xrender") 2>&5
18635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18636 test $ac_status = 0; }; then
18637 pkg_cv_MISC_X_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xrender" 2>/dev/null`
18638 test "x$?" != "x0" && pkg_failed=yes
18645 if test -n "$MISC_X_LIBS"; then
18646 pkg_cv_MISC_X_LIBS="$MISC_X_LIBS"
18647 elif test -n "$PKG_CONFIG"; then
18648 if test -n "$PKG_CONFIG" && \
18649 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xrender\""; } >&5
18650 ($PKG_CONFIG --exists --print-errors "x11 xext xrender") 2>&5
18652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18653 test $ac_status = 0; }; then
18654 pkg_cv_MISC_X_LIBS=`$PKG_CONFIG --libs "x11 xext xrender" 2>/dev/null`
18655 test "x$?" != "x0" && pkg_failed=yes
18665 if test $pkg_failed = yes; then
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667 $as_echo "no" >&6; }
18669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18670 _pkg_short_errors_supported=yes
18672 _pkg_short_errors_supported=no
18674 if test $_pkg_short_errors_supported = yes; then
18675 MISC_X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xrender" 2>&1`
18677 MISC_X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xrender" 2>&1`
18679 # Put the nasty error message in config.log where it belongs
18680 echo "$MISC_X_PKG_ERRORS" >&5
18682 as_fn_error $? "Package requirements (x11 xext xrender) were not met:
18686 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18687 installed software in a non-standard prefix.
18689 Alternatively, you may set the environment variables MISC_X_CFLAGS
18690 and MISC_X_LIBS to avoid the need to call pkg-config.
18691 See the pkg-config man page for more details." "$LINENO" 5
18692 elif test $pkg_failed = untried; then
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694 $as_echo "no" >&6; }
18695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18697 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18698 is in your PATH or set the PKG_CONFIG environment variable to the full
18699 path to pkg-config.
18701 Alternatively, you may set the environment variables MISC_X_CFLAGS
18702 and MISC_X_LIBS to avoid the need to call pkg-config.
18703 See the pkg-config man page for more details.
18705 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18706 See \`config.log' for more details" "$LINENO" 5; }
18708 MISC_X_CFLAGS=$pkg_cv_MISC_X_CFLAGS
18709 MISC_X_LIBS=$pkg_cv_MISC_X_LIBS
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18711 $as_echo "yes" >&6; }
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR12" >&5
18722 $as_echo_n "checking for XRANDR12... " >&6; }
18724 if test -n "$XRANDR12_CFLAGS"; then
18725 pkg_cv_XRANDR12_CFLAGS="$XRANDR12_CFLAGS"
18726 elif test -n "$PKG_CONFIG"; then
18727 if test -n "$PKG_CONFIG" && \
18728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
18729 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
18731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18732 test $ac_status = 0; }; then
18733 pkg_cv_XRANDR12_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2" 2>/dev/null`
18734 test "x$?" != "x0" && pkg_failed=yes
18741 if test -n "$XRANDR12_LIBS"; then
18742 pkg_cv_XRANDR12_LIBS="$XRANDR12_LIBS"
18743 elif test -n "$PKG_CONFIG"; then
18744 if test -n "$PKG_CONFIG" && \
18745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
18746 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
18748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18749 test $ac_status = 0; }; then
18750 pkg_cv_XRANDR12_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2" 2>/dev/null`
18751 test "x$?" != "x0" && pkg_failed=yes
18761 if test $pkg_failed = yes; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763 $as_echo "no" >&6; }
18765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18766 _pkg_short_errors_supported=yes
18768 _pkg_short_errors_supported=no
18770 if test $_pkg_short_errors_supported = yes; then
18771 XRANDR12_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2" 2>&1`
18773 XRANDR12_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2" 2>&1`
18775 # Put the nasty error message in config.log where it belongs
18776 echo "$XRANDR12_PKG_ERRORS" >&5
18779 elif test $pkg_failed = untried; then
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18781 $as_echo "no" >&6; }
18784 XRANDR12_CFLAGS=$pkg_cv_XRANDR12_CFLAGS
18785 XRANDR12_LIBS=$pkg_cv_XRANDR12_LIBS
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18787 $as_echo "yes" >&6; }
18794 if test "x$have_xrandr12" = "xyes"; then
18795 HAVE_XRANDR12_TRUE=
18796 HAVE_XRANDR12_FALSE='#'
18798 HAVE_XRANDR12_TRUE='#'
18799 HAVE_XRANDR12_FALSE=
18802 if test "x$have_xrandr12" = "xyes" ; then
18804 $as_echo "#define HAVE_XRANDR12 /**/" >>confdefs.h
18808 # Add parameter for libXinerama
18809 # Check whether --enable-xinerama was given.
18810 if test "${enable_xinerama+set}" = set; then :
18811 enableval=$enable_xinerama;
18815 if test "x$enable_xinerama" != "xno"; then
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
18819 $as_echo_n "checking for XINERAMA... " >&6; }
18821 if test -n "$XINERAMA_CFLAGS"; then
18822 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
18823 elif test -n "$PKG_CONFIG"; then
18824 if test -n "$PKG_CONFIG" && \
18825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama >= 1.0\""; } >&5
18826 ($PKG_CONFIG --exists --print-errors "xinerama >= 1.0") 2>&5
18828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18829 test $ac_status = 0; }; then
18830 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama >= 1.0" 2>/dev/null`
18831 test "x$?" != "x0" && pkg_failed=yes
18838 if test -n "$XINERAMA_LIBS"; then
18839 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
18840 elif test -n "$PKG_CONFIG"; then
18841 if test -n "$PKG_CONFIG" && \
18842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama >= 1.0\""; } >&5
18843 ($PKG_CONFIG --exists --print-errors "xinerama >= 1.0") 2>&5
18845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846 test $ac_status = 0; }; then
18847 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama >= 1.0" 2>/dev/null`
18848 test "x$?" != "x0" && pkg_failed=yes
18858 if test $pkg_failed = yes; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860 $as_echo "no" >&6; }
18862 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18863 _pkg_short_errors_supported=yes
18865 _pkg_short_errors_supported=no
18867 if test $_pkg_short_errors_supported = yes; then
18868 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama >= 1.0" 2>&1`
18870 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama >= 1.0" 2>&1`
18872 # Put the nasty error message in config.log where it belongs
18873 echo "$XINERAMA_PKG_ERRORS" >&5
18876 elif test $pkg_failed = untried; then
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18878 $as_echo "no" >&6; }
18881 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
18882 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18884 $as_echo "yes" >&6; }
18891 if test "x$enable_xinerama" = "xyes" && test "x$have_xinerama" = "xno"; then
18892 as_fn_error $? "Requested Xinerama library was not found" "$LINENO" 5
18895 if test "x$have_xinerama" = "xyes"; then
18896 HAVE_XINERAMA_TRUE=
18897 HAVE_XINERAMA_FALSE='#'
18899 HAVE_XINERAMA_TRUE='#'
18900 HAVE_XINERAMA_FALSE=
18903 if test "x$have_xinerama" = "xyes" ; then
18905 $as_echo "#define HAVE_XINERAMA /**/" >>confdefs.h
18909 SPICE_REQUIRES+=" xinerama"
18912 # Add parameter for (partial) static linkage of spice client.
18913 # this is used to achive single binary package for all (?) distros.
18914 # Check whether --enable-static-linkage was given.
18915 if test "${enable_static_linkage+set}" = set; then :
18916 enableval=$enable_static_linkage;
18918 enable_static_linkage="no"
18921 if test x"$enable_static_linkage" != "xno"; then :
18922 SPICEC_STATIC_LINKAGE_BSTATIC="-Wl,-Bstatic"
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
18926 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
18927 if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
18928 $as_echo_n "(cached) " >&6
18930 ac_check_lib_save_LIBS=$LIBS
18931 LIBS="-ljpeg $LIBS"
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18941 char jpeg_destroy_decompress ();
18945 return jpeg_destroy_decompress ();
18950 if ac_fn_c_try_link "$LINENO"; then :
18951 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
18953 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
18955 rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
18960 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
18961 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h" >&5
18963 $as_echo_n "checking for jpeglib.h... " >&6; }
18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18969 #undef HAVE_STDLIB_H
18970 #include <jpeglib.h>
18972 if ac_fn_c_try_cpp "$LINENO"; then :
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpeg_ok" >&5
18975 $as_echo "$jpeg_ok" >&6; }
18977 as_fn_error $? "jpeglib.h not found" "$LINENO" 5
18979 rm -f conftest.err conftest.i conftest.$ac_ext
18981 as_fn_error $? "libjpeg not found" "$LINENO" 5
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
18987 $as_echo_n "checking for deflate in -lz... " >&6; }
18988 if ${ac_cv_lib_z_deflate+:} false; then :
18989 $as_echo_n "(cached) " >&6
18991 ac_check_lib_save_LIBS=$LIBS
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
18996 /* Override any GCC internal prototype to avoid an error.
18997 Use char because int might match the return type of a GCC
18998 builtin and then its argument prototype would still apply. */
19011 if ac_fn_c_try_link "$LINENO"; then :
19012 ac_cv_lib_z_deflate=yes
19014 ac_cv_lib_z_deflate=no
19016 rm -f core conftest.err conftest.$ac_objext \
19017 conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
19021 $as_echo "$ac_cv_lib_z_deflate" >&6; }
19022 if test "x$ac_cv_lib_z_deflate" = xyes; then :
19025 as_fn_error $? "zlib not found" "$LINENO" 5
19031 # Check whether --with-sasl was given.
19032 if test "${with_sasl+set}" = set; then :
19033 withval=$with_sasl;
19042 if test "x$with_sasl" != "xno"; then
19043 if test "x$with_sasl" != "xyes" && test "x$with_sasl" != "xcheck"; then
19044 SASL_CFLAGS="-I$with_sasl"
19045 SASL_LIBS="-L$with_sasl"
19048 old_cflags="$CFLAGS"
19050 CFLAGS="$CFLAGS $SASL_CFLAGS"
19051 LIBS="$LIBS $SASL_LIBS"
19052 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19053 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19057 if test "x$with_sasl" != "xcheck" ; then
19065 if test "x$with_sasl" != "xno" ; then
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
19067 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
19068 if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
19069 $as_echo_n "(cached) " >&6
19071 ac_check_lib_save_LIBS=$LIBS
19072 LIBS="-lsasl2 $LIBS"
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h. */
19076 /* Override any GCC internal prototype to avoid an error.
19077 Use char because int might match the return type of a GCC
19078 builtin and then its argument prototype would still apply. */
19082 char sasl_client_init ();
19086 return sasl_client_init ();
19091 if ac_fn_c_try_link "$LINENO"; then :
19092 ac_cv_lib_sasl2_sasl_client_init=yes
19094 ac_cv_lib_sasl2_sasl_client_init=no
19096 rm -f core conftest.err conftest.$ac_objext \
19097 conftest$ac_exeext conftest.$ac_ext
19098 LIBS=$ac_check_lib_save_LIBS
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
19101 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
19102 if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
19109 if test "x$with_sasl2" = "xno" && test "x$with_sasl" != "xno" ; then
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
19111 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
19112 if ${ac_cv_lib_sasl_sasl_client_init+:} false; then :
19113 $as_echo_n "(cached) " >&6
19115 ac_check_lib_save_LIBS=$LIBS
19116 LIBS="-lsasl $LIBS"
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19120 /* Override any GCC internal prototype to avoid an error.
19121 Use char because int might match the return type of a GCC
19122 builtin and then its argument prototype would still apply. */
19126 char sasl_client_init ();
19130 return sasl_client_init ();
19135 if ac_fn_c_try_link "$LINENO"; then :
19136 ac_cv_lib_sasl_sasl_client_init=yes
19138 ac_cv_lib_sasl_sasl_client_init=no
19140 rm -f core conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
19142 LIBS=$ac_check_lib_save_LIBS
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
19145 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
19146 if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes; then :
19153 if test "x$with_sasl2" = "xyes"; then
19154 SASL_LIBS="$SASL_LIBS -lsasl2"
19155 elif test "x$with_sasl" = "xyes"; then
19156 SASL_LIBS="$SASL_LIBS -lsasl"
19158 as_fn_error $? "Missing required Cyrus SASL development package" "$LINENO" 5
19160 CFLAGS="$old_cflags"
19162 if test "x$with_sasl2" = "xyes" || test "x$with_sasl" = "xyes" ; then
19164 cat >>confdefs.h <<_ACEOF
19165 #define HAVE_SASL 1
19171 if test "x$with_sasl2" = "xyes" || test "x$with_sasl" = "xyes"; then
19173 HAVE_SASL_FALSE='#'
19182 if test "x$enable_automated_tests" = "xyes"; then
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snappy" >&5
19184 $as_echo_n "checking for snappy... " >&6; }
19185 snappy --help >/dev/null 2>&1
19186 if test $? -ne 0 ; then
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19188 $as_echo "not found" >&6; }
19189 as_fn_error $? "snappy was not found, this module is part of spice-gtk andis required to compile this package" "$LINENO" 5
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
19192 $as_echo "found" >&6; }
19198 # Check whether --enable-werror was given.
19199 if test "${enable_werror+set}" = set; then :
19200 enableval=$enable_werror; set_werror="$enableval"
19202 if test -d $srcdir/.git; then
19203 is_git_version=true
19211 # List of warnings that are not relevant / wanted
19213 # Don't care about C++ compiler compat
19214 dontwarn="$dontwarn -Wc++-compat"
19215 dontwarn="$dontwarn -Wabi"
19216 dontwarn="$dontwarn -Wdeprecated"
19217 # Don't care about ancient C standard compat
19218 dontwarn="$dontwarn -Wtraditional"
19219 # Don't care about ancient C standard compat
19220 dontwarn="$dontwarn -Wtraditional-conversion"
19221 # Ignore warnings in /usr/include
19222 dontwarn="$dontwarn -Wsystem-headers"
19223 # Happy for compiler to add struct padding
19224 dontwarn="$dontwarn -Wpadded"
19225 # GCC very confused with -O2
19226 dontwarn="$dontwarn -Wunreachable-code"
19229 dontwarn="$dontwarn -Wconversion"
19230 dontwarn="$dontwarn -Wsign-conversion"
19231 dontwarn="$dontwarn -Wvla"
19232 dontwarn="$dontwarn -Wundef"
19233 dontwarn="$dontwarn -Wcast-qual"
19234 dontwarn="$dontwarn -Wlong-long"
19235 dontwarn="$dontwarn -Wswitch-default"
19236 dontwarn="$dontwarn -Wswitch-enum"
19237 dontwarn="$dontwarn -Wstrict-overflow"
19238 dontwarn="$dontwarn -Wunsafe-loop-optimizations"
19239 dontwarn="$dontwarn -Wformat-nonliteral"
19240 dontwarn="$dontwarn -Wfloat-equal"
19241 dontwarn="$dontwarn -Wdeclaration-after-statement"
19242 dontwarn="$dontwarn -Wcast-qual"
19243 dontwarn="$dontwarn -Wconversion"
19244 dontwarn="$dontwarn -Wsign-conversion"
19245 dontwarn="$dontwarn -Wpacked"
19246 dontwarn="$dontwarn -Wunused-macros"
19247 dontwarn="$dontwarn -Woverlength-strings"
19248 dontwarn="$dontwarn -Wstack-protector"
19249 dontwarn="$dontwarn -Winline"
19250 dontwarn="$dontwarn -Wbad-function-cast"
19251 dontwarn="$dontwarn -Wshadow"
19253 # We want to enable thse, but need to sort out the
19254 # decl mess with gtk/generated_*.c
19255 dontwarn="$dontwarn -Wmissing-prototypes"
19256 dontwarn="$dontwarn -Wmissing-declarations"
19258 # Stuff that C++ won't allow. Turn them back on later
19259 dontwarn="$dontwarn -Waggregate-return"
19260 dontwarn="$dontwarn -Wstrict-prototypes"
19261 dontwarn="$dontwarn -Wold-style-definition"
19262 dontwarn="$dontwarn -Wnested-externs"
19263 dontwarn="$dontwarn -Wformat-zero-length"
19264 dontwarn="$dontwarn -Wpointer-to-int-cast"
19265 dontwarn="$dontwarn -Wjump-misses-init"
19267 # Issues in x11/platform_utils.cpp prevent us turning this on
19268 dontwarn="$dontwarn -Wmissing-format-attribute"
19270 # Get all possible GCC warnings
19273 if test -n "$GCC"; then
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
19276 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
19277 if ${gl_cv_cc_nomfi_supported+:} false; then :
19278 $as_echo_n "(cached) " >&6
19281 gl_save_CFLAGS="$CFLAGS"
19282 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19294 if ac_fn_c_try_compile "$LINENO"; then :
19295 gl_cv_cc_nomfi_supported=yes
19297 gl_cv_cc_nomfi_supported=no
19299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19300 CFLAGS="$gl_save_CFLAGS"
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
19304 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
19306 if test "$gl_cv_cc_nomfi_supported" = yes; then
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
19308 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
19309 if ${gl_cv_cc_nomfi_needed+:} false; then :
19310 $as_echo_n "(cached) " >&6
19313 gl_save_CFLAGS="$CFLAGS"
19314 CFLAGS="$CFLAGS -W -Werror"
19315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h. */
19319 typedef struct { int a; int b; } s_t;
19331 if ac_fn_c_try_compile "$LINENO"; then :
19332 gl_cv_cc_nomfi_needed=no
19334 gl_cv_cc_nomfi_needed=yes
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 CFLAGS="$gl_save_CFLAGS"
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
19342 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
19347 for gl_manywarn_item in \
19351 -Wformat-nonliteral \
19352 -Wformat-security \
19354 -Wmissing-include-dirs \
19358 -Wunknown-pragmas \
19359 -Wstrict-aliasing \
19360 -Wstrict-overflow \
19364 -Wtraditional-conversion \
19365 -Wdeclaration-after-statement \
19368 -Wunsafe-loop-optimizations \
19370 -Wbad-function-cast \
19376 -Wsign-conversion \
19378 -Waggregate-return \
19379 -Wstrict-prototypes \
19380 -Wold-style-definition \
19381 -Wmissing-prototypes \
19382 -Wmissing-declarations \
19383 -Wmissing-noreturn \
19384 -Wmissing-format-attribute \
19387 -Wredundant-decls \
19389 -Wunreachable-code \
19394 -Wvolatile-register-var \
19395 -Wdisabled-optimization \
19396 -Wstack-protector \
19397 -Woverlength-strings \
19398 -Wbuiltin-macro-redefined \
19400 -Wpacked-bitfield-compat \
19403 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
19405 # The following are not documented in the manual but are included in
19406 # output from gcc --help=warnings.
19407 for gl_manywarn_item in \
19409 -Wcoverage-mismatch \
19413 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
19415 # More warnings from gcc 4.6.2 --help=warnings.
19416 for gl_manywarn_item in \
19420 -Wdeprecated-declarations \
19422 -Wdouble-promotion \
19425 -Wformat-contains-nul \
19426 -Wformat-extra-args \
19427 -Wformat-zero-length \
19432 -Wpointer-to-int-cast \
19434 -Wsuggest-attribute=const \
19435 -Wsuggest-attribute=noreturn \
19436 -Wsuggest-attribute=pure \
19439 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
19442 # Disable the missing-field-initializers warning if needed
19443 if test "$gl_cv_cc_nomfi_needed" = yes; then
19444 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
19447 maybewarn=$gl_manywarn_set
19450 # Remove the ones we don't want, blacklisted earlier
19453 set x $maybewarn; shift
19456 case " $dontwarn " in
19457 *" $gl_warn_item "*)
19460 gl_warn_set="$gl_warn_set $gl_warn_item"
19464 wantwarn=$gl_warn_set
19467 # Check for $CC support of each warning
19468 for w in $wantwarn; do
19469 as_gl_Warn=`$as_echo "gl_cv_warn_$w" | $as_tr_sh`
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles $w" >&5
19471 $as_echo_n "checking whether compiler handles $w... " >&6; }
19472 if eval \${$as_gl_Warn+:} false; then :
19473 $as_echo_n "(cached) " >&6
19476 gl_save_CPPFLAGS="$CPPFLAGS"
19477 CPPFLAGS="${CPPFLAGS} $w"
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19489 if ac_fn_c_try_cpp "$LINENO"; then :
19490 eval "$as_gl_Warn=yes"
19492 eval "$as_gl_Warn=no"
19494 rm -f conftest.err conftest.i conftest.$ac_ext
19495 CPPFLAGS="$gl_save_CPPFLAGS"
19498 eval ac_res=\$$as_gl_Warn
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19500 $as_echo "$ac_res" >&6; }
19501 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
19502 as_fn_append WARN_CFLAGS " $w"
19507 # GNULIB uses '-W' (aka -Wextra) which includes a bunch of stuff.
19508 # Unfortunately, this means you can't simply use '-Wsign-compare'
19509 # with gl_MANYWARN_COMPLEMENT
19510 # So we have -W enabled, and then have to explicitly turn off...
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-sign-compare" >&5
19512 $as_echo_n "checking whether compiler handles -Wno-sign-compare... " >&6; }
19513 if ${gl_cv_warn__Wno_sign_compare+:} false; then :
19514 $as_echo_n "(cached) " >&6
19517 gl_save_CPPFLAGS="$CPPFLAGS"
19518 CPPFLAGS="${CPPFLAGS} -Wno-sign-compare"
19519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520 /* end confdefs.h. */
19530 if ac_fn_c_try_cpp "$LINENO"; then :
19531 gl_cv_warn__Wno_sign_compare=yes
19533 gl_cv_warn__Wno_sign_compare=no
19535 rm -f conftest.err conftest.i conftest.$ac_ext
19536 CPPFLAGS="$gl_save_CPPFLAGS"
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_sign_compare" >&5
19540 $as_echo "$gl_cv_warn__Wno_sign_compare" >&6; }
19541 if test "x$gl_cv_warn__Wno_sign_compare" = xyes; then :
19542 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-unused-parameter" >&5
19546 $as_echo_n "checking whether compiler handles -Wno-unused-parameter... " >&6; }
19547 if ${gl_cv_warn__Wno_unused_parameter+:} false; then :
19548 $as_echo_n "(cached) " >&6
19551 gl_save_CPPFLAGS="$CPPFLAGS"
19552 CPPFLAGS="${CPPFLAGS} -Wno-unused-parameter"
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19564 if ac_fn_c_try_cpp "$LINENO"; then :
19565 gl_cv_warn__Wno_unused_parameter=yes
19567 gl_cv_warn__Wno_unused_parameter=no
19569 rm -f conftest.err conftest.i conftest.$ac_ext
19570 CPPFLAGS="$gl_save_CPPFLAGS"
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_unused_parameter" >&5
19574 $as_echo "$gl_cv_warn__Wno_unused_parameter" >&6; }
19575 if test "x$gl_cv_warn__Wno_unused_parameter" = xyes; then :
19576 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
19579 # We can't enable this due to horrible spice_usb_device_get_description
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-format-nonliteral" >&5
19582 $as_echo_n "checking whether compiler handles -Wno-format-nonliteral... " >&6; }
19583 if ${gl_cv_warn__Wno_format_nonliteral+:} false; then :
19584 $as_echo_n "(cached) " >&6
19587 gl_save_CPPFLAGS="$CPPFLAGS"
19588 CPPFLAGS="${CPPFLAGS} -Wno-format-nonliteral"
19589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19590 /* end confdefs.h. */
19600 if ac_fn_c_try_cpp "$LINENO"; then :
19601 gl_cv_warn__Wno_format_nonliteral=yes
19603 gl_cv_warn__Wno_format_nonliteral=no
19605 rm -f conftest.err conftest.i conftest.$ac_ext
19606 CPPFLAGS="$gl_save_CPPFLAGS"
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_format_nonliteral" >&5
19610 $as_echo "$gl_cv_warn__Wno_format_nonliteral" >&6; }
19611 if test "x$gl_cv_warn__Wno_format_nonliteral" = xyes; then :
19612 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
19615 # CEGui headers cause violation of this
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-ignored-qualifiers" >&5
19617 $as_echo_n "checking whether compiler handles -Wno-ignored-qualifiers... " >&6; }
19618 if ${gl_cv_warn__Wno_ignored_qualifiers+:} false; then :
19619 $as_echo_n "(cached) " >&6
19622 gl_save_CPPFLAGS="$CPPFLAGS"
19623 CPPFLAGS="${CPPFLAGS} -Wno-ignored-qualifiers"
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19635 if ac_fn_c_try_cpp "$LINENO"; then :
19636 gl_cv_warn__Wno_ignored_qualifiers=yes
19638 gl_cv_warn__Wno_ignored_qualifiers=no
19640 rm -f conftest.err conftest.i conftest.$ac_ext
19641 CPPFLAGS="$gl_save_CPPFLAGS"
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_ignored_qualifiers" >&5
19645 $as_echo "$gl_cv_warn__Wno_ignored_qualifiers" >&6; }
19646 if test "x$gl_cv_warn__Wno_ignored_qualifiers" = xyes; then :
19647 as_fn_append WARN_CFLAGS " -Wno-ignored-qualifiers"
19654 # GNULIB turns on -Wformat=2 which implies -Wformat-nonliteral,
19655 # so we need to manually re-exclude it.
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-format-nonliteral" >&5
19657 $as_echo_n "checking whether compiler handles -Wno-format-nonliteral... " >&6; }
19658 if ${gl_cv_warn__Wno_format_nonliteral+:} false; then :
19659 $as_echo_n "(cached) " >&6
19662 gl_save_CPPFLAGS="$CPPFLAGS"
19663 CPPFLAGS="${CPPFLAGS} -Wno-format-nonliteral"
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19675 if ac_fn_c_try_cpp "$LINENO"; then :
19676 gl_cv_warn__Wno_format_nonliteral=yes
19678 gl_cv_warn__Wno_format_nonliteral=no
19680 rm -f conftest.err conftest.i conftest.$ac_ext
19681 CPPFLAGS="$gl_save_CPPFLAGS"
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_format_nonliteral" >&5
19685 $as_echo "$gl_cv_warn__Wno_format_nonliteral" >&6; }
19686 if test "x$gl_cv_warn__Wno_format_nonliteral" = xyes; then :
19687 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
19691 # This should be < 1024 really. pixman_utils is the blackspot
19692 # preventing lower usage
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wframe-larger-than=20460" >&5
19694 $as_echo_n "checking whether compiler handles -Wframe-larger-than=20460... " >&6; }
19695 if ${gl_cv_warn__Wframe_larger_than_20460+:} false; then :
19696 $as_echo_n "(cached) " >&6
19699 gl_save_CPPFLAGS="$CPPFLAGS"
19700 CPPFLAGS="${CPPFLAGS} -Wframe-larger-than=20460"
19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702 /* end confdefs.h. */
19712 if ac_fn_c_try_cpp "$LINENO"; then :
19713 gl_cv_warn__Wframe_larger_than_20460=yes
19715 gl_cv_warn__Wframe_larger_than_20460=no
19717 rm -f conftest.err conftest.i conftest.$ac_ext
19718 CPPFLAGS="$gl_save_CPPFLAGS"
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wframe_larger_than_20460" >&5
19722 $as_echo "$gl_cv_warn__Wframe_larger_than_20460" >&6; }
19723 if test "x$gl_cv_warn__Wframe_larger_than_20460" = xyes; then :
19724 as_fn_append WARN_CFLAGS " -Wframe-larger-than=20460"
19728 # Use improved glibc headers
19731 # Extra special flags
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fstack-protector-all" >&5
19735 $as_echo_n "checking whether compiler handles -fstack-protector-all... " >&6; }
19736 if ${gl_cv_warn__fstack_protector_all+:} false; then :
19737 $as_echo_n "(cached) " >&6
19740 gl_save_CPPFLAGS="$CPPFLAGS"
19741 CPPFLAGS="${CPPFLAGS} -fstack-protector-all"
19742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h. */
19753 if ac_fn_c_try_cpp "$LINENO"; then :
19754 gl_cv_warn__fstack_protector_all=yes
19756 gl_cv_warn__fstack_protector_all=no
19758 rm -f conftest.err conftest.i conftest.$ac_ext
19759 CPPFLAGS="$gl_save_CPPFLAGS"
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fstack_protector_all" >&5
19763 $as_echo "$gl_cv_warn__fstack_protector_all" >&6; }
19764 if test "x$gl_cv_warn__fstack_protector_all" = xyes; then :
19765 as_fn_append WARN_CFLAGS " -fstack-protector-all"
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles --param=ssp-buffer-size=4" >&5
19769 $as_echo_n "checking whether compiler handles --param=ssp-buffer-size=4... " >&6; }
19770 if ${gl_cv_warn___param_ssp_buffer_size_4+:} false; then :
19771 $as_echo_n "(cached) " >&6
19774 gl_save_CPPFLAGS="$CPPFLAGS"
19775 CPPFLAGS="${CPPFLAGS} --param=ssp-buffer-size=4"
19776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19787 if ac_fn_c_try_cpp "$LINENO"; then :
19788 gl_cv_warn___param_ssp_buffer_size_4=yes
19790 gl_cv_warn___param_ssp_buffer_size_4=no
19792 rm -f conftest.err conftest.i conftest.$ac_ext
19793 CPPFLAGS="$gl_save_CPPFLAGS"
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn___param_ssp_buffer_size_4" >&5
19797 $as_echo "$gl_cv_warn___param_ssp_buffer_size_4" >&6; }
19798 if test "x$gl_cv_warn___param_ssp_buffer_size_4" = xyes; then :
19799 as_fn_append WARN_CFLAGS " --param=ssp-buffer-size=4"
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fexceptions" >&5
19805 $as_echo_n "checking whether compiler handles -fexceptions... " >&6; }
19806 if ${gl_cv_warn__fexceptions+:} false; then :
19807 $as_echo_n "(cached) " >&6
19810 gl_save_CPPFLAGS="$CPPFLAGS"
19811 CPPFLAGS="${CPPFLAGS} -fexceptions"
19812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813 /* end confdefs.h. */
19823 if ac_fn_c_try_cpp "$LINENO"; then :
19824 gl_cv_warn__fexceptions=yes
19826 gl_cv_warn__fexceptions=no
19828 rm -f conftest.err conftest.i conftest.$ac_ext
19829 CPPFLAGS="$gl_save_CPPFLAGS"
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fexceptions" >&5
19833 $as_echo "$gl_cv_warn__fexceptions" >&6; }
19834 if test "x$gl_cv_warn__fexceptions" = xyes; then :
19835 as_fn_append WARN_CFLAGS " -fexceptions"
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fasynchronous-unwind-tables" >&5
19839 $as_echo_n "checking whether compiler handles -fasynchronous-unwind-tables... " >&6; }
19840 if ${gl_cv_warn__fasynchronous_unwind_tables+:} false; then :
19841 $as_echo_n "(cached) " >&6
19844 gl_save_CPPFLAGS="$CPPFLAGS"
19845 CPPFLAGS="${CPPFLAGS} -fasynchronous-unwind-tables"
19846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19857 if ac_fn_c_try_cpp "$LINENO"; then :
19858 gl_cv_warn__fasynchronous_unwind_tables=yes
19860 gl_cv_warn__fasynchronous_unwind_tables=no
19862 rm -f conftest.err conftest.i conftest.$ac_ext
19863 CPPFLAGS="$gl_save_CPPFLAGS"
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fasynchronous_unwind_tables" >&5
19867 $as_echo "$gl_cv_warn__fasynchronous_unwind_tables" >&6; }
19868 if test "x$gl_cv_warn__fasynchronous_unwind_tables" = xyes; then :
19869 as_fn_append WARN_CFLAGS " -fasynchronous-unwind-tables"
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fdiagnostics-show-option" >&5
19873 $as_echo_n "checking whether compiler handles -fdiagnostics-show-option... " >&6; }
19874 if ${gl_cv_warn__fdiagnostics_show_option+:} false; then :
19875 $as_echo_n "(cached) " >&6
19878 gl_save_CPPFLAGS="$CPPFLAGS"
19879 CPPFLAGS="${CPPFLAGS} -fdiagnostics-show-option"
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19891 if ac_fn_c_try_cpp "$LINENO"; then :
19892 gl_cv_warn__fdiagnostics_show_option=yes
19894 gl_cv_warn__fdiagnostics_show_option=no
19896 rm -f conftest.err conftest.i conftest.$ac_ext
19897 CPPFLAGS="$gl_save_CPPFLAGS"
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fdiagnostics_show_option" >&5
19901 $as_echo "$gl_cv_warn__fdiagnostics_show_option" >&6; }
19902 if test "x$gl_cv_warn__fdiagnostics_show_option" = xyes; then :
19903 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -funit-at-a-time" >&5
19907 $as_echo_n "checking whether compiler handles -funit-at-a-time... " >&6; }
19908 if ${gl_cv_warn__funit_at_a_time+:} false; then :
19909 $as_echo_n "(cached) " >&6
19912 gl_save_CPPFLAGS="$CPPFLAGS"
19913 CPPFLAGS="${CPPFLAGS} -funit-at-a-time"
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h. */
19925 if ac_fn_c_try_cpp "$LINENO"; then :
19926 gl_cv_warn__funit_at_a_time=yes
19928 gl_cv_warn__funit_at_a_time=no
19930 rm -f conftest.err conftest.i conftest.$ac_ext
19931 CPPFLAGS="$gl_save_CPPFLAGS"
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__funit_at_a_time" >&5
19935 $as_echo "$gl_cv_warn__funit_at_a_time" >&6; }
19936 if test "x$gl_cv_warn__funit_at_a_time" = xyes; then :
19937 as_fn_append WARN_CFLAGS " -funit-at-a-time"
19941 # Need -fipa-pure-const in order to make -Wsuggest-attribute=pure
19942 # fire even without -O.
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fipa-pure-const" >&5
19944 $as_echo_n "checking whether compiler handles -fipa-pure-const... " >&6; }
19945 if ${gl_cv_warn__fipa_pure_const+:} false; then :
19946 $as_echo_n "(cached) " >&6
19949 gl_save_CPPFLAGS="$CPPFLAGS"
19950 CPPFLAGS="${CPPFLAGS} -fipa-pure-const"
19951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952 /* end confdefs.h. */
19962 if ac_fn_c_try_cpp "$LINENO"; then :
19963 gl_cv_warn__fipa_pure_const=yes
19965 gl_cv_warn__fipa_pure_const=no
19967 rm -f conftest.err conftest.i conftest.$ac_ext
19968 CPPFLAGS="$gl_save_CPPFLAGS"
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fipa_pure_const" >&5
19972 $as_echo "$gl_cv_warn__fipa_pure_const" >&6; }
19973 if test "x$gl_cv_warn__fipa_pure_const" = xyes; then :
19974 as_fn_append WARN_CFLAGS " -fipa-pure-const"
19978 # We should eventually enable this, but right now there are at
19979 # least 75 functions triggering warnings.
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-suggest-attribute=pure" >&5
19981 $as_echo_n "checking whether compiler handles -Wno-suggest-attribute=pure... " >&6; }
19982 if ${gl_cv_warn__Wno_suggest_attribute_pure+:} false; then :
19983 $as_echo_n "(cached) " >&6
19986 gl_save_CPPFLAGS="$CPPFLAGS"
19987 CPPFLAGS="${CPPFLAGS} -Wno-suggest-attribute=pure"
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h. */
19999 if ac_fn_c_try_cpp "$LINENO"; then :
20000 gl_cv_warn__Wno_suggest_attribute_pure=yes
20002 gl_cv_warn__Wno_suggest_attribute_pure=no
20004 rm -f conftest.err conftest.i conftest.$ac_ext
20005 CPPFLAGS="$gl_save_CPPFLAGS"
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_suggest_attribute_pure" >&5
20009 $as_echo "$gl_cv_warn__Wno_suggest_attribute_pure" >&6; }
20010 if test "x$gl_cv_warn__Wno_suggest_attribute_pure" = xyes; then :
20011 as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=pure"
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-suggest-attribute=const" >&5
20015 $as_echo_n "checking whether compiler handles -Wno-suggest-attribute=const... " >&6; }
20016 if ${gl_cv_warn__Wno_suggest_attribute_const+:} false; then :
20017 $as_echo_n "(cached) " >&6
20020 gl_save_CPPFLAGS="$CPPFLAGS"
20021 CPPFLAGS="${CPPFLAGS} -Wno-suggest-attribute=const"
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20033 if ac_fn_c_try_cpp "$LINENO"; then :
20034 gl_cv_warn__Wno_suggest_attribute_const=yes
20036 gl_cv_warn__Wno_suggest_attribute_const=no
20038 rm -f conftest.err conftest.i conftest.$ac_ext
20039 CPPFLAGS="$gl_save_CPPFLAGS"
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_suggest_attribute_const" >&5
20043 $as_echo "$gl_cv_warn__Wno_suggest_attribute_const" >&6; }
20044 if test "x$gl_cv_warn__Wno_suggest_attribute_const" = xyes; then :
20045 as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=const"
20049 if test "$set_werror" = "yes"
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror" >&5
20052 $as_echo_n "checking whether compiler handles -Werror... " >&6; }
20053 if ${gl_cv_warn__Werror+:} false; then :
20054 $as_echo_n "(cached) " >&6
20057 gl_save_CPPFLAGS="$CPPFLAGS"
20058 CPPFLAGS="${CPPFLAGS} -Werror"
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20070 if ac_fn_c_try_cpp "$LINENO"; then :
20071 gl_cv_warn__Werror=yes
20073 gl_cv_warn__Werror=no
20075 rm -f conftest.err conftest.i conftest.$ac_ext
20076 CPPFLAGS="$gl_save_CPPFLAGS"
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Werror" >&5
20080 $as_echo "$gl_cv_warn__Werror" >&6; }
20081 if test "x$gl_cv_warn__Werror" = xyes; then :
20082 as_fn_append WARN_CFLAGS " -Werror"
20086 WARN_CXXFLAGS=$WARN_CFLAGS
20089 # These are C-only warnings
20090 if test "x$enable_tunnel" != "xyes"; then
20091 # Slirp causes pain :-(
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Waggregate-return" >&5
20093 $as_echo_n "checking whether compiler handles -Waggregate-return... " >&6; }
20094 if ${gl_cv_warn__Waggregate_return+:} false; then :
20095 $as_echo_n "(cached) " >&6
20098 gl_save_CPPFLAGS="$CPPFLAGS"
20099 CPPFLAGS="${CPPFLAGS} -Waggregate-return"
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20111 if ac_fn_c_try_cpp "$LINENO"; then :
20112 gl_cv_warn__Waggregate_return=yes
20114 gl_cv_warn__Waggregate_return=no
20116 rm -f conftest.err conftest.i conftest.$ac_ext
20117 CPPFLAGS="$gl_save_CPPFLAGS"
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Waggregate_return" >&5
20121 $as_echo "$gl_cv_warn__Waggregate_return" >&6; }
20122 if test "x$gl_cv_warn__Waggregate_return" = xyes; then :
20123 as_fn_append WARN_CFLAGS " -Waggregate-return"
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wstrict-prototypes" >&5
20128 $as_echo_n "checking whether compiler handles -Wstrict-prototypes... " >&6; }
20129 if ${gl_cv_warn__Wstrict_prototypes+:} false; then :
20130 $as_echo_n "(cached) " >&6
20133 gl_save_CPPFLAGS="$CPPFLAGS"
20134 CPPFLAGS="${CPPFLAGS} -Wstrict-prototypes"
20135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136 /* end confdefs.h. */
20146 if ac_fn_c_try_cpp "$LINENO"; then :
20147 gl_cv_warn__Wstrict_prototypes=yes
20149 gl_cv_warn__Wstrict_prototypes=no
20151 rm -f conftest.err conftest.i conftest.$ac_ext
20152 CPPFLAGS="$gl_save_CPPFLAGS"
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wstrict_prototypes" >&5
20156 $as_echo "$gl_cv_warn__Wstrict_prototypes" >&6; }
20157 if test "x$gl_cv_warn__Wstrict_prototypes" = xyes; then :
20158 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wold-style-definition" >&5
20162 $as_echo_n "checking whether compiler handles -Wold-style-definition... " >&6; }
20163 if ${gl_cv_warn__Wold_style_definition+:} false; then :
20164 $as_echo_n "(cached) " >&6
20167 gl_save_CPPFLAGS="$CPPFLAGS"
20168 CPPFLAGS="${CPPFLAGS} -Wold-style-definition"
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h. */
20180 if ac_fn_c_try_cpp "$LINENO"; then :
20181 gl_cv_warn__Wold_style_definition=yes
20183 gl_cv_warn__Wold_style_definition=no
20185 rm -f conftest.err conftest.i conftest.$ac_ext
20186 CPPFLAGS="$gl_save_CPPFLAGS"
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wold_style_definition" >&5
20190 $as_echo "$gl_cv_warn__Wold_style_definition" >&6; }
20191 if test "x$gl_cv_warn__Wold_style_definition" = xyes; then :
20192 as_fn_append WARN_CFLAGS " -Wold-style-definition"
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wnested-externs" >&5
20196 $as_echo_n "checking whether compiler handles -Wnested-externs... " >&6; }
20197 if ${gl_cv_warn__Wnested_externs+:} false; then :
20198 $as_echo_n "(cached) " >&6
20201 gl_save_CPPFLAGS="$CPPFLAGS"
20202 CPPFLAGS="${CPPFLAGS} -Wnested-externs"
20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20214 if ac_fn_c_try_cpp "$LINENO"; then :
20215 gl_cv_warn__Wnested_externs=yes
20217 gl_cv_warn__Wnested_externs=no
20219 rm -f conftest.err conftest.i conftest.$ac_ext
20220 CPPFLAGS="$gl_save_CPPFLAGS"
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wnested_externs" >&5
20224 $as_echo "$gl_cv_warn__Wnested_externs" >&6; }
20225 if test "x$gl_cv_warn__Wnested_externs" = xyes; then :
20226 as_fn_append WARN_CFLAGS " -Wnested-externs"
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wformat-zero-length" >&5
20230 $as_echo_n "checking whether compiler handles -Wformat-zero-length... " >&6; }
20231 if ${gl_cv_warn__Wformat_zero_length+:} false; then :
20232 $as_echo_n "(cached) " >&6
20235 gl_save_CPPFLAGS="$CPPFLAGS"
20236 CPPFLAGS="${CPPFLAGS} -Wformat-zero-length"
20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238 /* end confdefs.h. */
20248 if ac_fn_c_try_cpp "$LINENO"; then :
20249 gl_cv_warn__Wformat_zero_length=yes
20251 gl_cv_warn__Wformat_zero_length=no
20253 rm -f conftest.err conftest.i conftest.$ac_ext
20254 CPPFLAGS="$gl_save_CPPFLAGS"
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wformat_zero_length" >&5
20258 $as_echo "$gl_cv_warn__Wformat_zero_length" >&6; }
20259 if test "x$gl_cv_warn__Wformat_zero_length" = xyes; then :
20260 as_fn_append WARN_CFLAGS " -Wformat-zero-length"
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wpointer-to-int-cast" >&5
20264 $as_echo_n "checking whether compiler handles -Wpointer-to-int-cast... " >&6; }
20265 if ${gl_cv_warn__Wpointer_to_int_cast+:} false; then :
20266 $as_echo_n "(cached) " >&6
20269 gl_save_CPPFLAGS="$CPPFLAGS"
20270 CPPFLAGS="${CPPFLAGS} -Wpointer-to-int-cast"
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20282 if ac_fn_c_try_cpp "$LINENO"; then :
20283 gl_cv_warn__Wpointer_to_int_cast=yes
20285 gl_cv_warn__Wpointer_to_int_cast=no
20287 rm -f conftest.err conftest.i conftest.$ac_ext
20288 CPPFLAGS="$gl_save_CPPFLAGS"
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wpointer_to_int_cast" >&5
20292 $as_echo "$gl_cv_warn__Wpointer_to_int_cast" >&6; }
20293 if test "x$gl_cv_warn__Wpointer_to_int_cast" = xyes; then :
20294 as_fn_append WARN_CFLAGS " -Wpointer-to-int-cast"
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wjump-misses-init" >&5
20298 $as_echo_n "checking whether compiler handles -Wjump-misses-init... " >&6; }
20299 if ${gl_cv_warn__Wjump_misses_init+:} false; then :
20300 $as_echo_n "(cached) " >&6
20303 gl_save_CPPFLAGS="$CPPFLAGS"
20304 CPPFLAGS="${CPPFLAGS} -Wjump-misses-init"
20305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h. */
20316 if ac_fn_c_try_cpp "$LINENO"; then :
20317 gl_cv_warn__Wjump_misses_init=yes
20319 gl_cv_warn__Wjump_misses_init=no
20321 rm -f conftest.err conftest.i conftest.$ac_ext
20322 CPPFLAGS="$gl_save_CPPFLAGS"
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wjump_misses_init" >&5
20326 $as_echo "$gl_cv_warn__Wjump_misses_init" >&6; }
20327 if test "x$gl_cv_warn__Wjump_misses_init" = xyes; then :
20328 as_fn_append WARN_CFLAGS " -Wjump-misses-init"
20332 WARN_LDFLAGS=$WARN_CFLAGS
20337 # use ximage.h for win32 build if it is found (no package for mingw32 atm)
20338 if test $os_win32 == "yes" ; then
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cximage" >&5
20340 $as_echo_n "checking for cximage... " >&6; }
20341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342 /* end confdefs.h. */
20343 #include <ximage.h>
20346 return CXIMAGE_FORMAT_RAW;
20350 if ac_fn_c_try_cpp "$LINENO"; then :
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20353 $as_echo "found" >&6; }
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
20359 $as_echo "missing" >&6; }
20360 CXIMAGE_CFLAGS='-DDISABLE_CXIMAGE'
20365 rm -f conftest.err conftest.i conftest.$ac_ext
20369 # check for windres for mingw32 builds
20370 if test $os_win32 == "yes" ; then
20371 for ac_prog in i686-pc-mingw32-windres mingw-windres mingw32-windres
20373 # Extract the first word of "$ac_prog", so it can be a program name with args.
20374 set dummy $ac_prog; ac_word=$2
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20376 $as_echo_n "checking for $ac_word... " >&6; }
20377 if ${ac_cv_prog_WINDRES+:} false; then :
20378 $as_echo_n "(cached) " >&6
20380 if test -n "$WINDRES"; then
20381 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20384 for as_dir in $PATH
20387 test -z "$as_dir" && as_dir=.
20388 for ac_exec_ext in '' $ac_executable_extensions; do
20389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20390 ac_cv_prog_WINDRES="$ac_prog"
20391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20400 WINDRES=$ac_cv_prog_WINDRES
20401 if test -n "$WINDRES"; then
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20403 $as_echo "$WINDRES" >&6; }
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20406 $as_echo "no" >&6; }
20410 test -n "$WINDRES" && break
20412 test -n "$WINDRES" || WINDRES="false"
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility" >&5
20423 $as_echo_n "checking for -fvisibility... " >&6; }
20424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h. */
20427 #if defined(__GNUC__) && (__GNUC__ >= 4)
20429 error Need GCC 4.0 for visibility
20431 int main () { return 0; }
20434 if ac_fn_c_try_compile "$LINENO"; then :
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 if test "x$have_gcc4" = "xyes" && test ! "$os_win32" = "yes" ; then
20440 VISIBILITY_HIDDEN_CFLAGS="-fvisibility=hidden"
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc4" >&5
20443 $as_echo "$have_gcc4" >&6; }
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wl,--version-script works" >&5
20447 $as_echo_n "checking if -Wl,--version-script works... " >&6; }
20448 if ${spice_cv_ld_version_script+:} false; then :
20449 $as_echo_n "(cached) " >&6
20451 save_LDFLAGS="$LDFLAGS"
20452 LDFLAGS="$LDFLAGS -Wl,--version-script=$srcdir/server/spice-server.syms"
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h. */
20464 if ac_fn_c_try_link "$LINENO"; then :
20465 spice_cv_ld_version_script=yes
20467 spice_cv_ld_version_script=no
20469 rm -f core conftest.err conftest.$ac_objext \
20470 conftest$ac_exeext conftest.$ac_ext
20471 LDFLAGS="$save_LDFLAGS"
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $spice_cv_ld_version_script" >&5
20474 $as_echo "$spice_cv_ld_version_script" >&6; }
20475 if test x"$spice_cv_ld_version_script" = xyes; then
20476 HAVE_LD_VERSION_SCRIPT_TRUE=
20477 HAVE_LD_VERSION_SCRIPT_FALSE='#'
20479 HAVE_LD_VERSION_SCRIPT_TRUE='#'
20480 HAVE_LD_VERSION_SCRIPT_FALSE=
20490 # Check whether --enable-silent-rules was given.
20491 if test "${enable_silent_rules+set}" = set; then :
20492 enableval=$enable_silent_rules;
20495 case $enable_silent_rules in # (((
20496 yes) AM_DEFAULT_VERBOSITY=0;;
20497 no) AM_DEFAULT_VERBOSITY=1;;
20498 *) AM_DEFAULT_VERBOSITY=0;;
20500 am_make=${MAKE-make}
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
20502 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
20503 if ${am_cv_make_support_nested_variables+:} false; then :
20504 $as_echo_n "(cached) " >&6
20506 if $as_echo 'TRUE=$(BAR$(V))
20512 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
20513 am_cv_make_support_nested_variables=yes
20515 am_cv_make_support_nested_variables=no
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
20519 $as_echo "$am_cv_make_support_nested_variables" >&6; }
20520 if test $am_cv_make_support_nested_variables = yes; then
20522 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20524 AM_V=$AM_DEFAULT_VERBOSITY
20525 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20530 ac_config_files="$ac_config_files Makefile spice-server.pc server/Makefile server/tests/Makefile client/Makefile"
20532 cat >confcache <<\_ACEOF
20533 # This file is a shell script that caches the results of configure
20534 # tests run on this system so they can be shared between configure
20535 # scripts and configure runs, see configure's option --config-cache.
20536 # It is not useful on other systems. If it contains results you don't
20537 # want to keep, you may remove or edit it.
20539 # config.status only pays attention to the cache file if you give it
20540 # the --recheck option to rerun configure.
20542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20544 # following values.
20548 # The following way of writing the cache mishandles newlines in values,
20549 # but we know of no workaround that is simple, portable, and efficient.
20550 # So, we kill variables containing newlines.
20551 # Ultrix sh set writes to stderr and can't be redirected directly,
20552 # and sets the high bit in the cache file unless we assign to the vars.
20554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20555 eval ac_val=\$$ac_var
20559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20563 _ | IFS | as_nl) ;; #(
20564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20565 *) { eval $ac_var=; unset $ac_var;} ;;
20571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20572 *${as_nl}ac_space=\ *)
20573 # `set' does not quote correctly, so add quotes: double-quote
20574 # substitution turns \\\\ into \\, and sed turns \\ into \.
20577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20580 # `set' quotes correctly as required by POSIX, so do not add quotes.
20581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20595 if test -w "$cache_file"; then
20596 if test "x$cache_file" != "x/dev/null"; then
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20598 $as_echo "$as_me: updating cache $cache_file" >&6;}
20599 if test ! -f "$cache_file" || test -h "$cache_file"; then
20600 cat confcache >"$cache_file"
20602 case $cache_file in #(
20604 mv -f confcache "$cache_file"$$ &&
20605 mv -f "$cache_file"$$ "$cache_file" ;; #(
20607 mv -f confcache "$cache_file" ;;
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20613 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20619 # Let make expand exec_prefix.
20620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20622 #DEFS=-DHAVE_CONFIG_H
20623 DEFS="-DHAVE_CONFIG_H -DCONFIG_MARU"
20628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20629 # 1. Remove the extension, and $U if already installed.
20630 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20631 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20632 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20633 # will be set to the directory where LIBOBJS objects are built.
20634 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20635 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20637 LIBOBJS=$ac_libobjs
20639 LTLIBOBJS=$ac_ltlibobjs
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20643 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20644 if test -n "$am_sleep_pid"; then
20645 # Hide warnings about reused PIDs.
20646 wait $am_sleep_pid 2>/dev/null
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20649 $as_echo "done" >&6; }
20650 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20651 as_fn_error $? "conditional \"AMDEP\" was never defined.
20652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20655 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20658 if test -n "$EXEEXT"; then
20660 am__EXEEXT_FALSE='#'
20662 am__EXEEXT_TRUE='#'
20666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20667 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20670 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20671 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20675 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
20676 as_fn_error $? "conditional \"X86_64\" was never defined.
20677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20679 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20680 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20683 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
20684 as_fn_error $? "conditional \"OS_UNIX\" was never defined.
20685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20687 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20688 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
20689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20691 if test -z "${SUPPORT_TUNNEL_TRUE}" && test -z "${SUPPORT_TUNNEL_FALSE}"; then
20692 as_fn_error $? "conditional \"SUPPORT_TUNNEL\" was never defined.
20693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20695 if test -z "${SUPPORT_GUI_TRUE}" && test -z "${SUPPORT_GUI_FALSE}"; then
20696 as_fn_error $? "conditional \"SUPPORT_GUI\" was never defined.
20697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20699 if test -z "${SUPPORT_GL_TRUE}" && test -z "${SUPPORT_GL_FALSE}"; then
20700 as_fn_error $? "conditional \"SUPPORT_GL\" was never defined.
20701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20703 if test -z "${SUPPORT_SMARTCARD_TRUE}" && test -z "${SUPPORT_SMARTCARD_FALSE}"; then
20704 as_fn_error $? "conditional \"SUPPORT_SMARTCARD\" was never defined.
20705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20707 if test -z "${SUPPORT_CLIENT_TRUE}" && test -z "${SUPPORT_CLIENT_FALSE}"; then
20708 as_fn_error $? "conditional \"SUPPORT_CLIENT\" was never defined.
20709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20711 if test -z "${SUPPORT_AUTOMATED_TESTS_TRUE}" && test -z "${SUPPORT_AUTOMATED_TESTS_FALSE}"; then
20712 as_fn_error $? "conditional \"SUPPORT_AUTOMATED_TESTS\" was never defined.
20713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20715 if test -z "${HAVE_XRANDR12_TRUE}" && test -z "${HAVE_XRANDR12_FALSE}"; then
20716 as_fn_error $? "conditional \"HAVE_XRANDR12\" was never defined.
20717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20719 if test -z "${HAVE_XINERAMA_TRUE}" && test -z "${HAVE_XINERAMA_FALSE}"; then
20720 as_fn_error $? "conditional \"HAVE_XINERAMA\" was never defined.
20721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20723 if test -z "${HAVE_SASL_TRUE}" && test -z "${HAVE_SASL_FALSE}"; then
20724 as_fn_error $? "conditional \"HAVE_SASL\" was never defined.
20725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20727 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20728 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20732 : "${CONFIG_STATUS=./config.status}"
20734 ac_clean_files_save=$ac_clean_files
20735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20737 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20739 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20741 # Generated by $as_me.
20742 # Run this file to recreate the current configuration.
20743 # Compiler output produced by configure, useful for debugging
20744 # configure, is in config.log if it exists.
20747 ac_cs_recheck=false
20750 SHELL=\${CONFIG_SHELL-$SHELL}
20753 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20754 ## -------------------- ##
20755 ## M4sh Initialization. ##
20756 ## -------------------- ##
20758 # Be more Bourne compatible
20759 DUALCASE=1; export DUALCASE # for MKS sh
20760 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20763 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20764 # is contrary to our usage. Disable this feature.
20765 alias -g '${1+"$@"}'='"$@"'
20766 setopt NO_GLOB_SUBST
20768 case `(set -o) 2>/dev/null` in #(
20780 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20781 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20782 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20784 # Prefer a ksh shell builtin over an external printf program on Solaris,
20785 # but without wasting forks for bash or zsh.
20786 if test -z "$BASH_VERSION$ZSH_VERSION" \
20787 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20788 as_echo='print -r --'
20789 as_echo_n='print -rn --'
20790 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20791 as_echo='printf %s\n'
20792 as_echo_n='printf %s'
20794 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20795 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20796 as_echo_n='/usr/ucb/echo -n'
20798 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20799 as_echo_n_body='eval
20803 expr "X$arg" : "X\\(.*\\)$as_nl";
20804 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20806 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20808 export as_echo_n_body
20809 as_echo_n='sh -c $as_echo_n_body as_echo'
20811 export as_echo_body
20812 as_echo='sh -c $as_echo_body as_echo'
20815 # The user is always right.
20816 if test "${PATH_SEPARATOR+set}" != set; then
20818 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20819 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20826 # We need space, tab and new line, in precisely that order. Quoting is
20827 # there to prevent editors from complaining about space-tab.
20828 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20829 # splitting by setting IFS to empty value.)
20832 # Find who we are. Look in the path if we contain no directory separator.
20835 *[\\/]* ) as_myself=$0 ;;
20836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837 for as_dir in $PATH
20840 test -z "$as_dir" && as_dir=.
20841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20847 # We did not find ourselves, most probably we were run as `sh COMMAND'
20848 # in which case we are not to be found in the path.
20849 if test "x$as_myself" = x; then
20852 if test ! -f "$as_myself"; then
20853 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20857 # Unset variables that we do not need and which cause bugs (e.g. in
20858 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20859 # suppresses any "Segmentation fault" message there. '((' could
20860 # trigger a bug in pdksh 5.2.14.
20861 for as_var in BASH_ENV ENV MAIL MAILPATH
20862 do eval test x\${$as_var+set} = xset \
20863 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20879 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20880 # ----------------------------------------
20881 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20882 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20883 # script with STATUS, using 1 if that was 0.
20886 as_status=$1; test $as_status -eq 0 && as_status=1
20888 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20889 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20891 $as_echo "$as_me: error: $2" >&2
20892 as_fn_exit $as_status
20896 # as_fn_set_status STATUS
20897 # -----------------------
20898 # Set $? to STATUS, without forking.
20899 as_fn_set_status ()
20902 } # as_fn_set_status
20904 # as_fn_exit STATUS
20905 # -----------------
20906 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20910 as_fn_set_status $1
20916 # Portably unset VAR.
20919 { eval $1=; unset $1;}
20921 as_unset=as_fn_unset
20922 # as_fn_append VAR VALUE
20923 # ----------------------
20924 # Append the text in VALUE to the end of the definition contained in VAR. Take
20925 # advantage of any shell optimizations that allow amortized linear growth over
20926 # repeated appends, instead of the typical quadratic growth present in naive
20928 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20929 eval 'as_fn_append ()
20940 # as_fn_arith ARG...
20941 # ------------------
20942 # Perform arithmetic evaluation on the ARGs, and store the result in the
20943 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20944 # must be portable across $(()) and expr.
20945 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20946 eval 'as_fn_arith ()
20953 as_val=`expr "$@" || test $? -eq 1`
20958 if expr a : '\(a\)' >/dev/null 2>&1 &&
20959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20965 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20966 as_basename=basename
20971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20977 as_me=`$as_basename -- "$0" ||
20978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20979 X"$0" : 'X\(//\)$' \| \
20980 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20982 sed '/^.*\/\([^/][^/]*\)\/*$/{
20996 # Avoid depending upon Character Ranges.
20997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21000 as_cr_digits='0123456789'
21001 as_cr_alnum=$as_cr_Letters$as_cr_digits
21003 ECHO_C= ECHO_N= ECHO_T=
21004 case `echo -n x` in #(((((
21006 case `echo 'xy\c'` in
21007 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21009 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21016 rm -f conf$$ conf$$.exe conf$$.file
21017 if test -d conf$$.dir; then
21018 rm -f conf$$.dir/conf$$.file
21021 mkdir conf$$.dir 2>/dev/null
21023 if (echo >conf$$.file) 2>/dev/null; then
21024 if ln -s conf$$.file conf$$ 2>/dev/null; then
21026 # ... but there are two gotchas:
21027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21029 # In both cases, we have to default to `cp -pR'.
21030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21032 elif ln conf$$.file conf$$ 2>/dev/null; then
21040 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21041 rmdir conf$$.dir 2>/dev/null
21046 # Create "$as_dir" as a directory, including parents if necessary.
21051 -*) as_dir=./$as_dir;;
21053 test -d "$as_dir" || eval $as_mkdir_p || {
21057 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21058 *) as_qdir=$as_dir;;
21060 as_dirs="'$as_qdir' $as_dirs"
21061 as_dir=`$as_dirname -- "$as_dir" ||
21062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063 X"$as_dir" : 'X\(//\)[^/]' \| \
21064 X"$as_dir" : 'X\(//\)$' \| \
21065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21066 $as_echo X"$as_dir" |
21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21071 /^X\(\/\/\)[^/].*/{
21084 test -d "$as_dir" && break
21086 test -z "$as_dirs" || eval "mkdir $as_dirs"
21087 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21091 if mkdir -p . 2>/dev/null; then
21092 as_mkdir_p='mkdir -p "$as_dir"'
21094 test -d ./-p && rmdir ./-p
21099 # as_fn_executable_p FILE
21100 # -----------------------
21101 # Test if FILE is an executable regular file.
21102 as_fn_executable_p ()
21104 test -f "$1" && test -x "$1"
21105 } # as_fn_executable_p
21106 as_test_x='test -x'
21107 as_executable_p=as_fn_executable_p
21109 # Sed expression to map a string onto a valid CPP name.
21110 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21112 # Sed expression to map a string onto a valid variable name.
21113 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21117 ## ----------------------------------- ##
21118 ## Main body of $CONFIG_STATUS script. ##
21119 ## ----------------------------------- ##
21121 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21124 # Save the log message, to keep $0 and so on meaningful, and to
21125 # report actual input values of CONFIG_FILES etc. instead of their
21126 # values after options handling.
21128 This file was extended by spice $as_me 0.12.4, which was
21129 generated by GNU Autoconf 2.69. Invocation command line was
21131 CONFIG_FILES = $CONFIG_FILES
21132 CONFIG_HEADERS = $CONFIG_HEADERS
21133 CONFIG_LINKS = $CONFIG_LINKS
21134 CONFIG_COMMANDS = $CONFIG_COMMANDS
21137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21142 case $ac_config_files in *"
21143 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21146 case $ac_config_headers in *"
21147 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21152 # Files that config.status was made for.
21153 config_files="$ac_config_files"
21154 config_headers="$ac_config_headers"
21155 config_commands="$ac_config_commands"
21159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21161 \`$as_me' instantiates files and other configuration actions
21162 from templates according to the current configuration. Unless the files
21163 and actions are specified as TAGs, all are instantiated by default.
21165 Usage: $0 [OPTION]... [TAG]...
21167 -h, --help print this help, then exit
21168 -V, --version print version number and configuration settings, then exit
21169 --config print configuration, then exit
21170 -q, --quiet, --silent
21171 do not print progress messages
21172 -d, --debug don't remove temporary files
21173 --recheck update $as_me by reconfiguring in the same conditions
21174 --file=FILE[:TEMPLATE]
21175 instantiate the configuration file FILE
21176 --header=FILE[:TEMPLATE]
21177 instantiate the configuration header FILE
21179 Configuration files:
21182 Configuration headers:
21185 Configuration commands:
21188 Report bugs to <spice-devel@lists.freedesktop.org>."
21191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21192 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21194 spice config.status 0.12.4
21195 configured by $0, generated by GNU Autoconf 2.69,
21196 with options \\"\$ac_cs_config\\"
21198 Copyright (C) 2012 Free Software Foundation, Inc.
21199 This config.status script is free software; the Free Software Foundation
21200 gives unlimited permission to copy, distribute and modify it."
21207 test -n "\$AWK" || AWK=awk
21210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21211 # The default lists apply if the user does not specify any file.
21217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21222 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21234 # Handling of the options.
21235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21237 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21238 $as_echo "$ac_cs_version"; exit ;;
21239 --config | --confi | --conf | --con | --co | --c )
21240 $as_echo "$ac_cs_config"; exit ;;
21241 --debug | --debu | --deb | --de | --d | -d )
21243 --file | --fil | --fi | --f )
21246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21247 '') as_fn_error $? "missing file argument" ;;
21249 as_fn_append CONFIG_FILES " '$ac_optarg'"
21250 ac_need_defaults=false;;
21251 --header | --heade | --head | --hea )
21254 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21256 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21257 ac_need_defaults=false;;
21259 # Conflict between --help and --header
21260 as_fn_error $? "ambiguous option: \`$1'
21261 Try \`$0 --help' for more information.";;
21262 --help | --hel | -h )
21263 $as_echo "$ac_cs_usage"; exit ;;
21264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21265 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21268 # This is an error.
21269 -*) as_fn_error $? "unrecognized option: \`$1'
21270 Try \`$0 --help' for more information." ;;
21272 *) as_fn_append ac_config_targets " $1"
21273 ac_need_defaults=false ;;
21279 ac_configure_extra_args=
21281 if $ac_cs_silent; then
21283 ac_configure_extra_args="$ac_configure_extra_args --silent"
21287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21288 if \$ac_cs_recheck; then
21289 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21291 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21292 CONFIG_SHELL='$SHELL'
21293 export CONFIG_SHELL
21298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21302 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21303 ## Running $as_me. ##
21309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21313 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21316 # The HP-UX ksh and POSIX shell print the target directory to stdout
21317 # if CDPATH is set.
21318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21320 sed_quote_subst='$sed_quote_subst'
21321 double_quote_subst='$double_quote_subst'
21322 delay_variable_subst='$delay_variable_subst'
21323 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21324 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21325 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21326 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21327 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21328 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21329 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21330 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21331 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21332 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21333 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21334 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21335 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21336 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21337 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21338 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21339 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21340 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21341 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21342 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21343 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21344 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21345 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21346 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21347 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21348 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21349 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21350 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21351 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21352 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21353 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21354 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21355 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21356 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21361 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21362 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21363 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21364 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21365 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21366 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21367 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21368 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21369 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21370 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21371 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21372 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21373 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21374 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21375 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21376 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21377 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21378 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21379 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"`'
21380 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21381 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21382 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21383 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21384 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21385 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21387 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21388 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21389 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21390 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21414 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21415 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21416 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21417 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21418 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21419 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21420 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21421 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21422 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21423 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21424 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21425 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21426 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21427 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21428 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21429 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21430 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21431 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21432 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21433 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21434 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21435 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21436 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21437 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21438 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21439 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21440 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21441 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21442 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21443 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21444 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21445 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21446 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21447 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21448 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21449 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21450 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21451 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21452 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21453 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21454 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21455 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21456 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21457 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21458 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21459 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21460 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21461 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21462 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21463 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21464 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21465 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21466 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21467 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21468 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21469 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21470 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21471 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21472 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21473 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21474 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21475 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21476 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21477 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21478 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21479 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21480 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21481 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21482 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21483 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21484 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21485 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21486 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21487 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21488 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21489 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21490 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21491 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21492 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21493 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21494 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21495 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21496 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21497 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21498 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21499 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21500 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21501 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21502 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21503 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21504 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21505 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21506 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21509 LTCFLAGS='$LTCFLAGS'
21510 compiler='$compiler_DEFAULT'
21512 # A function that is used when there is no print builtin or printf.
21513 func_fallback_echo ()
21515 eval 'cat <<_LTECHO_EOF
21520 # Quote evaled strings.
21535 deplibs_check_method \
21540 sharedlib_from_linklib_cmd \
21543 archiver_list_spec \
21549 lt_cv_sys_global_symbol_pipe \
21550 lt_cv_sys_global_symbol_to_cdecl \
21551 lt_cv_sys_global_symbol_to_c_name_address \
21552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21553 nm_file_list_spec \
21554 lt_prog_compiler_no_builtin_flag \
21555 lt_prog_compiler_pic \
21556 lt_prog_compiler_wl \
21557 lt_prog_compiler_static \
21558 lt_cv_prog_compiler_c_o \
21567 export_dynamic_flag_spec \
21568 whole_archive_flag_spec \
21569 compiler_needs_object \
21571 allow_undefined_flag \
21572 no_undefined_flag \
21573 hardcode_libdir_flag_spec \
21574 hardcode_libdir_separator \
21578 variables_saved_for_relink \
21580 library_names_spec \
21582 install_override_mode \
21586 compiler_lib_search_dirs \
21591 compiler_lib_search_path \
21595 lt_prog_compiler_no_builtin_flag_CXX \
21596 lt_prog_compiler_pic_CXX \
21597 lt_prog_compiler_wl_CXX \
21598 lt_prog_compiler_static_CXX \
21599 lt_cv_prog_compiler_c_o_CXX \
21600 export_dynamic_flag_spec_CXX \
21601 whole_archive_flag_spec_CXX \
21602 compiler_needs_object_CXX \
21604 allow_undefined_flag_CXX \
21605 no_undefined_flag_CXX \
21606 hardcode_libdir_flag_spec_CXX \
21607 hardcode_libdir_separator_CXX \
21608 exclude_expsyms_CXX \
21609 include_expsyms_CXX \
21610 file_list_spec_CXX \
21611 compiler_lib_search_dirs_CXX \
21612 predep_objects_CXX \
21613 postdep_objects_CXX \
21616 compiler_lib_search_path_CXX; do
21617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21618 *[\\\\\\\`\\"\\\$]*)
21619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21627 # Double-quote double-evaled strings.
21628 for var in reload_cmds \
21629 old_postinstall_cmds \
21630 old_postuninstall_cmds \
21632 extract_expsyms_cmds \
21633 old_archive_from_new_cmds \
21634 old_archive_from_expsyms_cmds \
21636 archive_expsym_cmds \
21638 module_expsym_cmds \
21639 export_symbols_cmds \
21643 postuninstall_cmds \
21645 sys_lib_search_path_spec \
21646 sys_lib_dlsearch_path_spec \
21648 old_archive_cmds_CXX \
21649 old_archive_from_new_cmds_CXX \
21650 old_archive_from_expsyms_cmds_CXX \
21652 archive_expsym_cmds_CXX \
21654 module_expsym_cmds_CXX \
21655 export_symbols_cmds_CXX \
21657 postlink_cmds_CXX; do
21658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21659 *[\\\\\\\`\\"\\\$]*)
21660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21668 ac_aux_dir='$ac_aux_dir'
21669 xsi_shell='$xsi_shell'
21670 lt_shell_append='$lt_shell_append'
21672 # See if we are running on zsh, and set the options which allow our
21673 # commands through without removal of \ escapes INIT.
21674 if test -n "\${ZSH_VERSION+set}" ; then
21675 setopt NO_GLOB_SUBST
21681 TIMESTAMP='$TIMESTAMP'
21692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21694 # Handling of arguments.
21695 for ac_config_target in $ac_config_targets
21697 case $ac_config_target in
21698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21699 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21700 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21702 "spice-server.pc") CONFIG_FILES="$CONFIG_FILES spice-server.pc" ;;
21703 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21704 "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;;
21705 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
21707 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21712 # If the user did not use the arguments to specify the items to instantiate,
21713 # then the envvar interface is used. Set only those that are not.
21714 # We use the long form for the default assignment because of an extremely
21715 # bizarre bug on SunOS 4.1.3.
21716 if $ac_need_defaults; then
21717 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21718 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21719 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21722 # Have a temporary directory for convenience. Make it in the build tree
21723 # simply because there is no reason against having it here, and in addition,
21724 # creating and moving files from /tmp can sometimes cause problems.
21725 # Hook for its removal unless debugging.
21726 # Note that there is a small window in which the directory will not be cleaned:
21727 # after its creation but before its name has been assigned to `$tmp'.
21731 trap 'exit_status=$?
21732 : "${ac_tmp:=$tmp}"
21733 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21735 trap 'as_fn_exit 1' 1 2 13 15
21737 # Create a (secure) tmp directory for tmp files.
21740 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21744 tmp=./conf$$-$RANDOM
21745 (umask 077 && mkdir "$tmp")
21746 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21749 # Set up the scripts for CONFIG_FILES section.
21750 # No need to generate them if there are no CONFIG_FILES.
21751 # This happens for instance with `./config.status config.h'.
21752 if test -n "$CONFIG_FILES"; then
21755 ac_cr=`echo X | tr X '\015'`
21756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21757 # But we know of no other shell where ac_cr would be empty at this
21758 # point, so we can use a bashism as a fallback.
21759 if test "x$ac_cr" = x; then
21760 eval ac_cr=\$\'\\r\'
21762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21766 ac_cs_awk_cr=$ac_cr
21769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21774 echo "cat >conf$$subs.awk <<_ACEOF" &&
21775 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21777 } >conf$$subs.sh ||
21778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21781 for ac_last_try in false false false false false :; do
21782 . ./conf$$subs.sh ||
21783 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21785 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21786 if test $ac_delim_n = $ac_delim_num; then
21788 elif $ac_last_try; then
21789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21794 rm -f conf$$subs.sh
21796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21797 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21801 s/^/S["/; s/!.*/"]=/
21811 s/\(.\{148\}\)..*/\1/
21813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21825 s/\(.\{148\}\)..*/\1/
21827 s/["\\]/\\&/g; s/^/"/; s/$/"/
21831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21836 ' <conf$$subs.awk | sed '
21841 ' >>$CONFIG_STATUS || ac_write_fail=1
21842 rm -f conf$$subs.awk
21843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21845 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21846 for (key in S) S_is_set[key] = 1
21852 nfields = split(line, field, "@")
21854 len = length(field[1])
21855 for (i = 2; i < nfields; i++) {
21857 keylen = length(key)
21858 if (S_is_set[key]) {
21860 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21861 len += length(value) + length(field[++i])
21872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21874 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21877 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21878 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21881 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21882 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21883 # trailing colons and then remove the whole line if VPATH becomes empty
21884 # (actually we leave an empty line to preserve line numbers).
21885 if test "x$srcdir" = x.; then
21886 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21905 fi # test -n "$CONFIG_FILES"
21907 # Set up the scripts for CONFIG_HEADERS section.
21908 # No need to generate them if there are no CONFIG_HEADERS.
21909 # This happens for instance with `./config.status Makefile'.
21910 if test -n "$CONFIG_HEADERS"; then
21911 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21915 # Transform confdefs.h into an awk script `defines.awk', embedded as
21916 # here-document in config.status, that substitutes the proper values into
21917 # config.h.in to produce config.h.
21919 # Create a delimiter string that does not exist in confdefs.h, to ease
21920 # handling of long lines.
21922 for ac_last_try in false false :; do
21923 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21924 if test -z "$ac_tt"; then
21926 elif $ac_last_try; then
21927 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21933 # For the awk script, D is an array of macro values keyed by name,
21934 # likewise P contains macro parameters if any. Preserve backslash
21935 # newline sequences.
21937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21939 s/.\{148\}/&'"$ac_delim"'/g
21942 s/^[ ]*#[ ]*define[ ][ ]*/ /
21949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21956 D["\1"]=" \3\\\\\\n"\\/p
21958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21963 s/.\{148\}/&'"$ac_delim"'/g
21968 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21973 ' <confdefs.h | sed '
21974 s/'"$ac_delim"'/"\\\
21975 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21978 for (key in D) D_is_set[key] = 1
21981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21983 split(line, arg, " ")
21984 if (arg[1] == "#") {
21988 defundef = substr(arg[1], 2)
21991 split(mac1, mac2, "(") #)
21993 prefix = substr(line, 1, index(line, defundef) - 1)
21994 if (D_is_set[macro]) {
21995 # Preserve the white space surrounding the "#".
21996 print prefix "define", macro P[macro] D[macro]
21999 # Replace #undef with comments. This is necessary, for example,
22000 # in the case of _POSIX_SOURCE, which is predefined and required
22001 # on some systems where configure will not decide to define it.
22002 if (defundef == "undef") {
22003 print "/*", prefix defundef, macro, "*/"
22011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22012 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22013 fi # test -n "$CONFIG_HEADERS"
22016 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22021 :[FHLC]) ac_mode=$ac_tag; continue;;
22023 case $ac_mode$ac_tag in
22025 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22026 :[FH]-) ac_tag=-:-;;
22027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22044 -) ac_f="$ac_tmp/stdin";;
22045 *) # Look for the file first in the build tree, then in the source tree
22046 # (if the path is not absolute). The absolute path cannot be DOS-style,
22047 # because $ac_f cannot contain `:'.
22051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22053 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22055 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22056 as_fn_append ac_file_inputs " '$ac_f'"
22059 # Let's still pretend it is `configure' which instantiates (i.e., don't
22060 # use $as_me), people would be surprised to read:
22061 # /* config.h. Generated by config.status. */
22062 configure_input='Generated from '`
22063 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22065 if test x"$ac_file" != x-; then
22066 configure_input="$ac_file. $configure_input"
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22068 $as_echo "$as_me: creating $ac_file" >&6;}
22070 # Neutralize special characters interpreted by sed in replacement strings.
22071 case $configure_input in #(
22072 *\&* | *\|* | *\\* )
22073 ac_sed_conf_input=`$as_echo "$configure_input" |
22074 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22075 *) ac_sed_conf_input=$configure_input;;
22079 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22085 ac_dir=`$as_dirname -- "$ac_file" ||
22086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22087 X"$ac_file" : 'X\(//\)[^/]' \| \
22088 X"$ac_file" : 'X\(//\)$' \| \
22089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22090 $as_echo X"$ac_file" |
22091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22095 /^X\(\/\/\)[^/].*/{
22108 as_dir="$ac_dir"; as_fn_mkdir_p
22112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22115 # A ".." for each directory in $ac_dir_suffix.
22116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22117 case $ac_top_builddir_sub in
22118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22122 ac_abs_top_builddir=$ac_pwd
22123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22124 # for backward compatibility:
22125 ac_top_builddir=$ac_top_build_prefix
22128 .) # We are building in place.
22130 ac_top_srcdir=$ac_top_builddir_sub
22131 ac_abs_top_srcdir=$ac_pwd ;;
22132 [\\/]* | ?:[\\/]* ) # Absolute name.
22133 ac_srcdir=$srcdir$ac_dir_suffix;
22134 ac_top_srcdir=$srcdir
22135 ac_abs_top_srcdir=$srcdir ;;
22136 *) # Relative name.
22137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22138 ac_top_srcdir=$ac_top_build_prefix$srcdir
22139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22151 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22152 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22154 ac_MKDIR_P=$MKDIR_P
22156 [\\/$]* | ?:[\\/]* ) ;;
22157 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22162 # If the template does not know about datarootdir, expand it.
22163 # FIXME: This hack should be removed a few years after 2.60.
22164 ac_datarootdir_hack=; ac_datarootdir_seen=
22175 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22176 *datarootdir*) ac_datarootdir_seen=yes;;
22177 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22179 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22182 ac_datarootdir_hack='
22183 s&@datadir@&$datadir&g
22184 s&@docdir@&$docdir&g
22185 s&@infodir@&$infodir&g
22186 s&@localedir@&$localedir&g
22187 s&@mandir@&$mandir&g
22188 s&\\\${datarootdir}&$datarootdir&g' ;;
22192 # Neutralize VPATH when `$srcdir' = `.'.
22193 # Shell code in configure.ac might set extrasub.
22194 # FIXME: do we really want to maintain this feature?
22195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22196 ac_sed_extra="$ac_vpsub
22199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22202 s|@configure_input@|$ac_sed_conf_input|;t t
22203 s&@top_builddir@&$ac_top_builddir_sub&;t t
22204 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22205 s&@srcdir@&$ac_srcdir&;t t
22206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22207 s&@top_srcdir@&$ac_top_srcdir&;t t
22208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22209 s&@builddir@&$ac_builddir&;t t
22210 s&@abs_builddir@&$ac_abs_builddir&;t t
22211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22212 s&@INSTALL@&$ac_INSTALL&;t t
22213 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22214 $ac_datarootdir_hack
22216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22217 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22220 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22222 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22224 which seems to be undefined. Please make sure it is defined" >&5
22225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22226 which seems to be undefined. Please make sure it is defined" >&2;}
22228 rm -f "$ac_tmp/stdin"
22230 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22231 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22239 if test x"$ac_file" != x-; then
22241 $as_echo "/* $configure_input */" \
22242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22243 } >"$ac_tmp/config.h" \
22244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22245 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22250 mv "$ac_tmp/config.h" "$ac_file" \
22251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22254 $as_echo "/* $configure_input */" \
22255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22256 || as_fn_error $? "could not create -" "$LINENO" 5
22258 # Compute "$ac_file"'s index in $config_headers.
22261 for _am_header in $config_headers :; do
22262 case $_am_header in
22263 $_am_arg | $_am_arg:* )
22266 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22269 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22270 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22271 X"$_am_arg" : 'X\(//\)[^/]' \| \
22272 X"$_am_arg" : 'X\(//\)$' \| \
22273 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22274 $as_echo X"$_am_arg" |
22275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22279 /^X\(\/\/\)[^/].*/{
22291 s/.*/./; q'`/stamp-h$_am_stamp_count
22294 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22295 $as_echo "$as_me: executing $ac_file commands" >&6;}
22300 case $ac_file$ac_mode in
22301 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22302 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22303 # are listed without --file. Let's play safe and only enable the eval
22304 # if we detect the quoting.
22305 case $CONFIG_FILES in
22306 *\'*) eval set x "$CONFIG_FILES" ;;
22307 *) set x $CONFIG_FILES ;;
22312 # Strip MF so we end up with the name of the file.
22313 mf=`echo "$mf" | sed -e 's/:.*$//'`
22314 # Check whether this is an Automake generated Makefile or not.
22315 # We used to match only the files named 'Makefile.in', but
22316 # some people rename them; so instead we look at the file content.
22317 # Grep'ing the first line is not enough: some people post-process
22318 # each Makefile.in and add a new line on top of each file to say so.
22319 # Grep'ing the whole file is not good either: AIX grep has a line
22320 # limit of 2048, but all sed's we know have understand at least 4000.
22321 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22322 dirpart=`$as_dirname -- "$mf" ||
22323 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22324 X"$mf" : 'X\(//\)[^/]' \| \
22325 X"$mf" : 'X\(//\)$' \| \
22326 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22332 /^X\(\/\/\)[^/].*/{
22348 # Extract the definition of DEPDIR, am__include, and am__quote
22349 # from the Makefile without running 'make'.
22350 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22351 test -z "$DEPDIR" && continue
22352 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22353 test -z "am__include" && continue
22354 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22355 # Find all dependency output files, they are included files with
22356 # $(DEPDIR) in their names. We invoke sed twice because it is the
22357 # simplest approach to changing $(DEPDIR) to its actual value in the
22359 for file in `sed -n "
22360 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22361 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22362 # Make sure the directory exists.
22363 test -f "$dirpart/$file" && continue
22364 fdir=`$as_dirname -- "$file" ||
22365 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22366 X"$file" : 'X\(//\)[^/]' \| \
22367 X"$file" : 'X\(//\)$' \| \
22368 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22369 $as_echo X"$file" |
22370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22374 /^X\(\/\/\)[^/].*/{
22387 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22388 # echo "creating $dirpart/$file"
22389 echo '# dummy' > "$dirpart/$file"
22396 # See if we are running on zsh, and set the options which allow our
22397 # commands through without removal of \ escapes.
22398 if test -n "${ZSH_VERSION+set}" ; then
22399 setopt NO_GLOB_SUBST
22402 cfgfile="${ofile}T"
22403 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22406 cat <<_LT_EOF >> "$cfgfile"
22409 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22410 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22415 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22417 # Written by Gordon Matzigkeit, 1996
22419 # This file is part of GNU Libtool.
22421 # GNU Libtool is free software; you can redistribute it and/or
22422 # modify it under the terms of the GNU General Public License as
22423 # published by the Free Software Foundation; either version 2 of
22424 # the License, or (at your option) any later version.
22426 # As a special exception to the GNU General Public License,
22427 # if you distribute this file as part of a program or library that
22428 # is built using GNU Libtool, you may include this file under the
22429 # same distribution terms that you use for the rest of that program.
22431 # GNU Libtool is distributed in the hope that it will be useful,
22432 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22433 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22434 # GNU General Public License for more details.
22436 # You should have received a copy of the GNU General Public License
22437 # along with GNU Libtool; see the file COPYING. If not, a copy
22438 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22439 # obtained by writing to the Free Software Foundation, Inc.,
22440 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22443 # The names of the tagged configurations supported by this script.
22444 available_tags="CXX "
22446 # ### BEGIN LIBTOOL CONFIG
22448 # Which release of libtool.m4 was used?
22449 macro_version=$macro_version
22450 macro_revision=$macro_revision
22452 # Whether or not to build shared libraries.
22453 build_libtool_libs=$enable_shared
22455 # Whether or not to build static libraries.
22456 build_old_libs=$enable_static
22458 # What type of objects to build.
22461 # Whether or not to optimize for fast installation.
22462 fast_install=$enable_fast_install
22464 # Shell to use when invoking shell scripts.
22467 # An echo program that protects backslashes.
22470 # The PATH separator for the build system.
22471 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22474 host_alias=$host_alias
22478 # The build system.
22479 build_alias=$build_alias
22483 # A sed program that does not truncate output.
22486 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22487 Xsed="\$SED -e 1s/^X//"
22489 # A grep program that handles long lines.
22495 # A literal string matcher.
22498 # A BSD- or MS-compatible name lister.
22501 # Whether we need soft or hard links.
22504 # What is the maximum length of a command?
22505 max_cmd_len=$max_cmd_len
22507 # Object file suffix (normally "o").
22510 # Executable file suffix (normally "").
22513 # whether the shell understands "unset".
22516 # turn spaces into newlines.
22519 # turn newlines into spaces.
22522 # convert \$build file names to \$host format.
22523 to_host_file_cmd=$lt_cv_to_host_file_cmd
22525 # convert \$build files to toolchain format.
22526 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22528 # An object symbol dumper.
22529 OBJDUMP=$lt_OBJDUMP
22531 # Method to check whether dependent libraries are shared objects.
22532 deplibs_check_method=$lt_deplibs_check_method
22534 # Command to use when deplibs_check_method = "file_magic".
22535 file_magic_cmd=$lt_file_magic_cmd
22537 # How to find potential files when deplibs_check_method = "file_magic".
22538 file_magic_glob=$lt_file_magic_glob
22540 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22541 want_nocaseglob=$lt_want_nocaseglob
22543 # DLL creation program.
22544 DLLTOOL=$lt_DLLTOOL
22546 # Command to associate shared and link libraries.
22547 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22552 # Flags to create an archive.
22553 AR_FLAGS=$lt_AR_FLAGS
22555 # How to feed a file listing to the archiver.
22556 archiver_list_spec=$lt_archiver_list_spec
22558 # A symbol stripping program.
22561 # Commands used to install an old-style archive.
22563 old_postinstall_cmds=$lt_old_postinstall_cmds
22564 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22566 # Whether to use a lock for old archive extraction.
22567 lock_old_archive_extraction=$lock_old_archive_extraction
22572 # LTCC compiler flags.
22573 LTCFLAGS=$lt_CFLAGS
22575 # Take the output of nm and produce a listing of raw symbols and C names.
22576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22578 # Transform the output of nm in a proper C declaration.
22579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22581 # Transform the output of nm in a C name address pair.
22582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22584 # Transform the output of nm in a C name address pair when lib prefix is needed.
22585 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22587 # Specify filename containing input files for \$NM.
22588 nm_file_list_spec=$lt_nm_file_list_spec
22590 # The root where to search for dependent libraries,and in which our libraries should be installed.
22591 lt_sysroot=$lt_sysroot
22593 # The name of the directory that contains temporary libtool files.
22596 # Used to examine libraries when file_magic_cmd begins with "file".
22597 MAGIC_CMD=$MAGIC_CMD
22599 # Must we lock files when doing compilation?
22600 need_locks=$lt_need_locks
22603 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22605 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22606 DSYMUTIL=$lt_DSYMUTIL
22608 # Tool to change global to local symbols on Mac OS X.
22611 # Tool to manipulate fat objects and archives on Mac OS X.
22614 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22617 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22618 OTOOL64=$lt_OTOOL64
22620 # Old archive suffix (normally "a").
22623 # Shared library suffix (normally ".so").
22624 shrext_cmds=$lt_shrext_cmds
22626 # The commands to extract the exported symbol list from a shared archive.
22627 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22629 # Variables whose values should be saved in libtool wrapper scripts and
22630 # restored at link time.
22631 variables_saved_for_relink=$lt_variables_saved_for_relink
22633 # Do we need the "lib" prefix for modules?
22634 need_lib_prefix=$need_lib_prefix
22636 # Do we need a version for libraries?
22637 need_version=$need_version
22639 # Library versioning type.
22640 version_type=$version_type
22642 # Shared library runtime path variable.
22643 runpath_var=$runpath_var
22645 # Shared library path variable.
22646 shlibpath_var=$shlibpath_var
22648 # Is shlibpath searched before the hard-coded library search path?
22649 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22651 # Format of library name prefix.
22652 libname_spec=$lt_libname_spec
22654 # List of archive names. First name is the real one, the rest are links.
22655 # The last name is the one that the linker finds with -lNAME
22656 library_names_spec=$lt_library_names_spec
22658 # The coded name of the library, if different from the real name.
22659 soname_spec=$lt_soname_spec
22661 # Permission mode override for installation of shared libraries.
22662 install_override_mode=$lt_install_override_mode
22664 # Command to use after installation of a shared archive.
22665 postinstall_cmds=$lt_postinstall_cmds
22667 # Command to use after uninstallation of a shared archive.
22668 postuninstall_cmds=$lt_postuninstall_cmds
22670 # Commands used to finish a libtool library installation in a directory.
22671 finish_cmds=$lt_finish_cmds
22673 # As "finish_cmds", except a single script fragment to be evaled but
22675 finish_eval=$lt_finish_eval
22677 # Whether we should hardcode library paths into libraries.
22678 hardcode_into_libs=$hardcode_into_libs
22680 # Compile-time system search path for libraries.
22681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22683 # Run-time system search path for libraries.
22684 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22686 # Whether dlopen is supported.
22687 dlopen_support=$enable_dlopen
22689 # Whether dlopen of programs is supported.
22690 dlopen_self=$enable_dlopen_self
22692 # Whether dlopen of statically linked programs is supported.
22693 dlopen_self_static=$enable_dlopen_self_static
22695 # Commands to strip libraries.
22696 old_striplib=$lt_old_striplib
22697 striplib=$lt_striplib
22700 # The linker used to build libraries.
22703 # How to create reloadable object files.
22704 reload_flag=$lt_reload_flag
22705 reload_cmds=$lt_reload_cmds
22707 # Commands used to build an old-style archive.
22708 old_archive_cmds=$lt_old_archive_cmds
22710 # A language specific compiler.
22713 # Is the compiler the GNU compiler?
22716 # Compiler flag to turn off builtin functions.
22717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22719 # Additional compiler flags for building library objects.
22720 pic_flag=$lt_lt_prog_compiler_pic
22722 # How to pass a linker flag through the compiler.
22723 wl=$lt_lt_prog_compiler_wl
22725 # Compiler flag to prevent dynamic linking.
22726 link_static_flag=$lt_lt_prog_compiler_static
22728 # Does compiler simultaneously support -c and -o options?
22729 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22731 # Whether or not to add -lc for building shared libraries.
22732 build_libtool_need_lc=$archive_cmds_need_lc
22734 # Whether or not to disallow shared libs when runtime libs are static.
22735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22737 # Compiler flag to allow reflexive dlopens.
22738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22740 # Compiler flag to generate shared objects directly from archives.
22741 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22743 # Whether the compiler copes with passing no objects directly.
22744 compiler_needs_object=$lt_compiler_needs_object
22746 # Create an old-style archive from a shared archive.
22747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22749 # Create a temporary old-style archive to link instead of a shared archive.
22750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22752 # Commands used to build a shared archive.
22753 archive_cmds=$lt_archive_cmds
22754 archive_expsym_cmds=$lt_archive_expsym_cmds
22756 # Commands used to build a loadable module if different from building
22757 # a shared archive.
22758 module_cmds=$lt_module_cmds
22759 module_expsym_cmds=$lt_module_expsym_cmds
22761 # Whether we are building with GNU ld or not.
22762 with_gnu_ld=$lt_with_gnu_ld
22764 # Flag that allows shared libraries with undefined symbols to be built.
22765 allow_undefined_flag=$lt_allow_undefined_flag
22767 # Flag that enforces no undefined symbols.
22768 no_undefined_flag=$lt_no_undefined_flag
22770 # Flag to hardcode \$libdir into a binary during linking.
22771 # This must work even if \$libdir does not exist
22772 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22774 # Whether we need a single "-rpath" flag with a separated argument.
22775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22778 # DIR into the resulting binary.
22779 hardcode_direct=$hardcode_direct
22781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22782 # DIR into the resulting binary and the resulting library dependency is
22783 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22784 # library is relocated.
22785 hardcode_direct_absolute=$hardcode_direct_absolute
22787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22788 # into the resulting binary.
22789 hardcode_minus_L=$hardcode_minus_L
22791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22792 # into the resulting binary.
22793 hardcode_shlibpath_var=$hardcode_shlibpath_var
22795 # Set to "yes" if building a shared library automatically hardcodes DIR
22796 # into the library and all subsequent libraries and executables linked
22798 hardcode_automatic=$hardcode_automatic
22800 # Set to yes if linker adds runtime paths of dependent libraries
22801 # to runtime path list.
22802 inherit_rpath=$inherit_rpath
22804 # Whether libtool must link a program against all its dependency libraries.
22805 link_all_deplibs=$link_all_deplibs
22807 # Set to "yes" if exported symbols are required.
22808 always_export_symbols=$always_export_symbols
22810 # The commands to list exported symbols.
22811 export_symbols_cmds=$lt_export_symbols_cmds
22813 # Symbols that should not be listed in the preloaded symbols.
22814 exclude_expsyms=$lt_exclude_expsyms
22816 # Symbols that must always be exported.
22817 include_expsyms=$lt_include_expsyms
22819 # Commands necessary for linking programs (against libraries) with templates.
22820 prelink_cmds=$lt_prelink_cmds
22822 # Commands necessary for finishing linking programs.
22823 postlink_cmds=$lt_postlink_cmds
22825 # Specify filename containing input files.
22826 file_list_spec=$lt_file_list_spec
22828 # How to hardcode a shared library path into an executable.
22829 hardcode_action=$hardcode_action
22831 # The directories searched by this compiler when creating a shared library.
22832 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22834 # Dependencies to place before and after the objects being linked to
22835 # create a shared library.
22836 predep_objects=$lt_predep_objects
22837 postdep_objects=$lt_postdep_objects
22838 predeps=$lt_predeps
22839 postdeps=$lt_postdeps
22841 # The library search path used internally by the compiler when linking
22842 # a shared library.
22843 compiler_lib_search_path=$lt_compiler_lib_search_path
22845 # ### END LIBTOOL CONFIG
22851 cat <<\_LT_EOF >> "$cfgfile"
22852 # AIX sometimes has problems with the GCC collect2 program. For some
22853 # reason, if we set the COLLECT_NAMES environment variable, the problems
22854 # vanish in a puff of smoke.
22855 if test "X${COLLECT_NAMES+set}" != Xset; then
22857 export COLLECT_NAMES
22864 ltmain="$ac_aux_dir/ltmain.sh"
22867 # We use sed instead of cat because bash on DJGPP gets confused if
22868 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22869 # text mode, it properly converts lines to CR/LF. This bash problem
22870 # is reportedly fixed, but why not run on old versions too?
22871 sed '$q' "$ltmain" >> "$cfgfile" \
22872 || (rm -f "$cfgfile"; exit 1)
22874 if test x"$xsi_shell" = xyes; then
22875 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22879 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22880 \ * ) func_dirname_result="${3}" ;;\
22882 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22883 && mv -f "$cfgfile.tmp" "$cfgfile" \
22884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22885 test 0 -eq $? || _lt_function_replace_fail=:
22888 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22891 \ func_basename_result="${1##*/}"\
22892 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22893 && mv -f "$cfgfile.tmp" "$cfgfile" \
22894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22895 test 0 -eq $? || _lt_function_replace_fail=:
22898 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22899 func_dirname_and_basename ()\
22902 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22903 \ * ) func_dirname_result="${3}" ;;\
22905 \ func_basename_result="${1##*/}"\
22906 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22907 && mv -f "$cfgfile.tmp" "$cfgfile" \
22908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22909 test 0 -eq $? || _lt_function_replace_fail=:
22912 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22915 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22916 \ # positional parameters, so assign one to ordinary parameter first.\
22917 \ func_stripname_result=${3}\
22918 \ func_stripname_result=${func_stripname_result#"${1}"}\
22919 \ func_stripname_result=${func_stripname_result%"${2}"}\
22920 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22921 && mv -f "$cfgfile.tmp" "$cfgfile" \
22922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22923 test 0 -eq $? || _lt_function_replace_fail=:
22926 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22927 func_split_long_opt ()\
22929 \ func_split_long_opt_name=${1%%=*}\
22930 \ func_split_long_opt_arg=${1#*=}\
22931 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22932 && mv -f "$cfgfile.tmp" "$cfgfile" \
22933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22934 test 0 -eq $? || _lt_function_replace_fail=:
22937 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22938 func_split_short_opt ()\
22940 \ func_split_short_opt_arg=${1#??}\
22941 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22942 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22943 && mv -f "$cfgfile.tmp" "$cfgfile" \
22944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22945 test 0 -eq $? || _lt_function_replace_fail=:
22948 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22952 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22953 \ *) func_lo2o_result=${1} ;;\
22955 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22956 && mv -f "$cfgfile.tmp" "$cfgfile" \
22957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22958 test 0 -eq $? || _lt_function_replace_fail=:
22961 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22964 func_xform_result=${1%.*}.lo\
22965 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22966 && mv -f "$cfgfile.tmp" "$cfgfile" \
22967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22968 test 0 -eq $? || _lt_function_replace_fail=:
22971 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22974 func_arith_result=$(( $* ))\
22975 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22976 && mv -f "$cfgfile.tmp" "$cfgfile" \
22977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22978 test 0 -eq $? || _lt_function_replace_fail=:
22981 sed -e '/^func_len ()$/,/^} # func_len /c\
22984 func_len_result=${#1}\
22985 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22986 && mv -f "$cfgfile.tmp" "$cfgfile" \
22987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22988 test 0 -eq $? || _lt_function_replace_fail=:
22992 if test x"$lt_shell_append" = xyes; then
22993 sed -e '/^func_append ()$/,/^} # func_append /c\
22996 eval "${1}+=\\${2}"\
22997 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22998 && mv -f "$cfgfile.tmp" "$cfgfile" \
22999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23000 test 0 -eq $? || _lt_function_replace_fail=:
23003 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23004 func_append_quoted ()\
23006 \ func_quote_for_eval "${2}"\
23007 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23008 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23009 && mv -f "$cfgfile.tmp" "$cfgfile" \
23010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23011 test 0 -eq $? || _lt_function_replace_fail=:
23014 # Save a `func_append' function call where possible by direct use of '+='
23015 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23016 && mv -f "$cfgfile.tmp" "$cfgfile" \
23017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23018 test 0 -eq $? || _lt_function_replace_fail=:
23020 # Save a `func_append' function call even when '+=' is not available
23021 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23022 && mv -f "$cfgfile.tmp" "$cfgfile" \
23023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23024 test 0 -eq $? || _lt_function_replace_fail=:
23027 if test x"$_lt_function_replace_fail" = x":"; then
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23029 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23033 mv -f "$cfgfile" "$ofile" ||
23034 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23038 cat <<_LT_EOF >> "$ofile"
23040 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23042 # The linker used to build libraries.
23045 # How to create reloadable object files.
23046 reload_flag=$lt_reload_flag_CXX
23047 reload_cmds=$lt_reload_cmds_CXX
23049 # Commands used to build an old-style archive.
23050 old_archive_cmds=$lt_old_archive_cmds_CXX
23052 # A language specific compiler.
23053 CC=$lt_compiler_CXX
23055 # Is the compiler the GNU compiler?
23058 # Compiler flag to turn off builtin functions.
23059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23061 # Additional compiler flags for building library objects.
23062 pic_flag=$lt_lt_prog_compiler_pic_CXX
23064 # How to pass a linker flag through the compiler.
23065 wl=$lt_lt_prog_compiler_wl_CXX
23067 # Compiler flag to prevent dynamic linking.
23068 link_static_flag=$lt_lt_prog_compiler_static_CXX
23070 # Does compiler simultaneously support -c and -o options?
23071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23073 # Whether or not to add -lc for building shared libraries.
23074 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23076 # Whether or not to disallow shared libs when runtime libs are static.
23077 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23079 # Compiler flag to allow reflexive dlopens.
23080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23082 # Compiler flag to generate shared objects directly from archives.
23083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23085 # Whether the compiler copes with passing no objects directly.
23086 compiler_needs_object=$lt_compiler_needs_object_CXX
23088 # Create an old-style archive from a shared archive.
23089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23091 # Create a temporary old-style archive to link instead of a shared archive.
23092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23094 # Commands used to build a shared archive.
23095 archive_cmds=$lt_archive_cmds_CXX
23096 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23098 # Commands used to build a loadable module if different from building
23099 # a shared archive.
23100 module_cmds=$lt_module_cmds_CXX
23101 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23103 # Whether we are building with GNU ld or not.
23104 with_gnu_ld=$lt_with_gnu_ld_CXX
23106 # Flag that allows shared libraries with undefined symbols to be built.
23107 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23109 # Flag that enforces no undefined symbols.
23110 no_undefined_flag=$lt_no_undefined_flag_CXX
23112 # Flag to hardcode \$libdir into a binary during linking.
23113 # This must work even if \$libdir does not exist
23114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23116 # Whether we need a single "-rpath" flag with a separated argument.
23117 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23120 # DIR into the resulting binary.
23121 hardcode_direct=$hardcode_direct_CXX
23123 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23124 # DIR into the resulting binary and the resulting library dependency is
23125 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23126 # library is relocated.
23127 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23129 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23130 # into the resulting binary.
23131 hardcode_minus_L=$hardcode_minus_L_CXX
23133 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23134 # into the resulting binary.
23135 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23137 # Set to "yes" if building a shared library automatically hardcodes DIR
23138 # into the library and all subsequent libraries and executables linked
23140 hardcode_automatic=$hardcode_automatic_CXX
23142 # Set to yes if linker adds runtime paths of dependent libraries
23143 # to runtime path list.
23144 inherit_rpath=$inherit_rpath_CXX
23146 # Whether libtool must link a program against all its dependency libraries.
23147 link_all_deplibs=$link_all_deplibs_CXX
23149 # Set to "yes" if exported symbols are required.
23150 always_export_symbols=$always_export_symbols_CXX
23152 # The commands to list exported symbols.
23153 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23155 # Symbols that should not be listed in the preloaded symbols.
23156 exclude_expsyms=$lt_exclude_expsyms_CXX
23158 # Symbols that must always be exported.
23159 include_expsyms=$lt_include_expsyms_CXX
23161 # Commands necessary for linking programs (against libraries) with templates.
23162 prelink_cmds=$lt_prelink_cmds_CXX
23164 # Commands necessary for finishing linking programs.
23165 postlink_cmds=$lt_postlink_cmds_CXX
23167 # Specify filename containing input files.
23168 file_list_spec=$lt_file_list_spec_CXX
23170 # How to hardcode a shared library path into an executable.
23171 hardcode_action=$hardcode_action_CXX
23173 # The directories searched by this compiler when creating a shared library.
23174 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23176 # Dependencies to place before and after the objects being linked to
23177 # create a shared library.
23178 predep_objects=$lt_predep_objects_CXX
23179 postdep_objects=$lt_postdep_objects_CXX
23180 predeps=$lt_predeps_CXX
23181 postdeps=$lt_postdeps_CXX
23183 # The library search path used internally by the compiler when linking
23184 # a shared library.
23185 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23187 # ### END LIBTOOL TAG CONFIG: CXX
23198 ac_clean_files=$ac_clean_files_save
23200 test $ac_write_fail = 0 ||
23201 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23204 # configure is writing to config.log, and then calls config.status.
23205 # config.status does its own redirection, appending to config.log.
23206 # Unfortunately, on DOS this fails, as config.log is still kept open
23207 # by configure, so config.status won't be able to write to it; its
23208 # output is simply discarded. So we exec the FD to /dev/null,
23209 # effectively closing config.log, so it can be properly (re)opened and
23210 # appended to by config.status. When coming back to configure, we
23211 # need to make the FD available again.
23212 if test "$no_create" != yes; then
23214 ac_config_status_args=
23215 test "$silent" = yes &&
23216 ac_config_status_args="$ac_config_status_args --quiet"
23218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23221 # would make configure fail if this is the last instruction.
23222 $ac_cs_success || as_fn_exit 1
23226 # CONFIG_SUBDIRS section.
23228 if test "$no_recursion" != yes; then
23230 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23231 # so they do not pile up.
23232 ac_sub_configure_args=
23234 eval "set x $ac_configure_args"
23238 if test -n "$ac_prev"; then
23243 -cache-file | --cache-file | --cache-fil | --cache-fi \
23244 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23245 ac_prev=cache_file ;;
23246 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23247 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23250 --config-cache | -C)
23252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23260 --disable-option-checking)
23264 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23266 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23270 # Always prepend --prefix to ensure using the same prefix
23271 # in subdir configurations.
23272 ac_arg="--prefix=$prefix"
23274 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23276 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23279 if test "$silent" = yes; then
23280 ac_sub_configure_args="--silent $ac_sub_configure_args"
23283 # Always prepend --disable-option-checking to silence warnings, since
23284 # different subdirs can have different --enable and --with options.
23285 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23288 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23290 # Do not complain, so a configure script can configure whichever
23291 # parts of a large source tree are present.
23292 test -d "$srcdir/$ac_dir" || continue
23294 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23295 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23296 $as_echo "$ac_msg" >&6
23297 as_dir="$ac_dir"; as_fn_mkdir_p
23301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23303 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23304 # A ".." for each directory in $ac_dir_suffix.
23305 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23306 case $ac_top_builddir_sub in
23307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23311 ac_abs_top_builddir=$ac_pwd
23312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23313 # for backward compatibility:
23314 ac_top_builddir=$ac_top_build_prefix
23317 .) # We are building in place.
23319 ac_top_srcdir=$ac_top_builddir_sub
23320 ac_abs_top_srcdir=$ac_pwd ;;
23321 [\\/]* | ?:[\\/]* ) # Absolute name.
23322 ac_srcdir=$srcdir$ac_dir_suffix;
23323 ac_top_srcdir=$srcdir
23324 ac_abs_top_srcdir=$srcdir ;;
23325 *) # Relative name.
23326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23327 ac_top_srcdir=$ac_top_build_prefix$srcdir
23328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23335 # Check for guested configure; otherwise get Cygnus style configure.
23336 if test -f "$ac_srcdir/configure.gnu"; then
23337 ac_sub_configure=$ac_srcdir/configure.gnu
23338 elif test -f "$ac_srcdir/configure"; then
23339 ac_sub_configure=$ac_srcdir/configure
23340 elif test -f "$ac_srcdir/configure.in"; then
23341 # This should be Cygnus configure.
23342 ac_sub_configure=$ac_aux_dir/configure
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
23345 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23349 # The recursion is here.
23350 if test -n "$ac_sub_configure"; then
23351 # Make the cache file name correct relative to the subdirectory.
23352 case $cache_file in
23353 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23354 *) # Relative name.
23355 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23359 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23360 # The eval makes quoting arguments work.
23361 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23362 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23363 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
23369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23371 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23382 c++ compiler: ${CXX}
23385 Build Spice client: ${enable_client}
23386 " ; if test "x$enable_client" == "xyes"; then echo "\
23387 Have XRANDR 1.2: ${have_xrandr12}
23389 Have Xinerama: ${have_xinerama}
23391 Red target: ${red_target}
23393 OpenGL: ${enable_opengl}
23397 Support tunneling: ${enable_tunnel}
23399 Smartcard: ${enable_smartcard}
23401 SASL support: ${enable_sasl}
23403 Automated tests: ${enable_automated_tests}
23406 if test $os_win32 == "yes" ; then
23408 " Copy & Paste Images: ${have_cximage}
23413 " Now type 'make' to build $PACKAGE