2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.4.1.
5 # Report bugs to <http://bugs.gnupg.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
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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='gpgme'
593 PACKAGE_VERSION='1.4.1'
594 PACKAGE_STRING='gpgme 1.4.1'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
598 ac_unique_file="src/gpgme.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
639 emacs_local_vars_read_only
640 emacs_local_vars_begin
645 GPGME_CONFIG_API_VERSION
648 USE_DESCRIPTOR_PASSING_FALSE
649 USE_DESCRIPTOR_PASSING_TRUE
655 RUN_GPGCONF_TESTS_FALSE
656 RUN_GPGCONF_TESTS_TRUE
660 RUN_GPGSM_TESTS_FALSE
679 INSERT__TYPEDEFS_FOR_GPGME_H
680 NEED__FILE_OFFSET_BITS
690 HAVE_ANDROID_SYSTEM_FALSE
691 HAVE_ANDROID_SYSTEM_TRUE
692 HAVE_W32CE_SYSTEM_FALSE
693 HAVE_W32CE_SYSTEM_TRUE
694 HAVE_W64_SYSTEM_FALSE
696 HAVE_W32_SYSTEM_FALSE
698 HAVE_DOSISH_SYSTEM_FALSE
699 HAVE_DOSISH_SYSTEM_TRUE
708 HAVE_LD_VERSION_SCRIPT_FALSE
709 HAVE_LD_VERSION_SCRIPT_TRUE
772 MAINTAINER_MODE_FALSE
782 INSTALL_STRIP_PROGRAM
824 program_transform_name
837 enable_option_checking
838 enable_maintainer_mode
839 enable_dependency_tracking
851 with_libgpg_error_prefix
852 with_gpg_error_prefix
853 with_libassuan_prefix
868 ac_precious_vars='build_alias
883 # Initialize some variables set by options.
885 ac_init_version=false
886 ac_unrecognized_opts=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
897 program_transform_name=s,x,x,
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
1000 eval enable_$ac_useropt=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 htmldir=$ac_optarg ;;
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1071 -libdir | --libdir | --libdi | --libd)
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1162 -psdir | --psdir | --psdi | --psd | --ps)
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1190 -site=* | --site=* | --sit=*)
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1246 eval with_$ac_useropt=no ;;
1249 # Obsolete; use --with-x.
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1317 # Be sure to have absolute directory names.
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 elif test "x$build_alias" != "x$host_alias"; then
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error $? "pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1421 \`configure' configures gpgme 1.4.1 to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking ...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/gpgme]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 if test -n "$ac_init_help"; then
1490 case $ac_init_help in
1491 short | recursive ) echo "Configuration of gpgme 1.4.1:";;
1496 --disable-option-checking ignore unrecognized --enable/--with options
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-maintainer-mode enable make rules and dependencies not useful
1500 (and sometimes confusing) to the casual installer
1501 --disable-dependency-tracking speeds up one-time build
1502 --enable-dependency-tracking do not reject slow dependency extractors
1503 --enable-static[=PKGS] build static libraries [default=no]
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --disable-glibtest do not try to compile and run a test GLIB program
1509 --enable-w32-glib build GPGME Glib for W32
1510 --enable-w32-qt build GPGME Qt for W32
1511 --disable-largefile omit support for large files
1512 --disable-gpg-test disable GPG run test
1513 --disable-gpgsm-test disable GPGSM run test
1514 --disable-gpgconf-test disable GPGCONF run test
1515 --disable-g13-test disable G13 run test
1516 --disable-fd-passing do not use FD passing
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot=DIR Search for dependent libraries within DIR
1525 (or the compiler's sysroot if not specified).
1526 --with-libgpg-error-prefix=PFX
1527 prefix where GPG Error is installed (optional)
1529 --with-libassuan-prefix=PFX
1530 prefix where LIBASSUAN is installed (optional)
1531 --with-gpg-version=VER require GnuPG version VER
1532 --with-gpgsm-version=VER
1533 require GPGSM version VER
1534 --with-gpgconf-version=VER
1535 require GPGCONF version VER
1536 --with-g13-version=VER require G13 version VER
1537 --with-gpg=PATH use GnuPG binary at PATH
1538 --with-gpgsm=PATH use GpgSM binary at PATH
1539 --with-gpgconf=PATH use gpgconf binary at PATH
1540 --with-g13=PATH use g13 binary at PATH
1542 Some influential environment variables:
1543 CC C compiler command
1544 CFLAGS C compiler flags
1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1546 nonstandard directory <lib dir>
1547 LIBS libraries to pass to the linker, e.g. -l<library>
1548 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1549 you have headers in a nonstandard directory <include dir>
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
1553 CXXCPP C++ preprocessor
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1558 Report bugs to <http://bugs.gnupg.org>.
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1588 .) # We are building in place.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1610 $SHELL "$ac_srcdir/configure" --help=recursive
1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 cd "$ac_pwd" || { ac_status=$?; break; }
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1621 gpgme configure 1.4.1
1622 generated by GNU Autoconf 2.69
1624 Copyright (C) 2012 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_c_try_compile
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1713 # the include files in INCLUDES and setting the cache variable VAR
1715 ac_fn_c_check_header_mongrel ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if eval \${$3+:} false; then :
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1728 # Is the header compilable?
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1730 $as_echo_n "checking $2 usability... " >&6; }
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737 ac_header_compiler=yes
1739 ac_header_compiler=no
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1743 $as_echo "$ac_header_compiler" >&6; }
1745 # Is the header present?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1747 $as_echo_n "checking $2 presence... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1752 if ac_fn_c_try_cpp "$LINENO"; then :
1753 ac_header_preproc=yes
1755 ac_header_preproc=no
1757 rm -f conftest.err conftest.i conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1759 $as_echo "$ac_header_preproc" >&6; }
1761 # So? What about this header?
1762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1765 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1771 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1773 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1775 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1777 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ( $as_echo "## ------------------------------------ ##
1781 ## Report this to http://bugs.gnupg.org ##
1782 ## ------------------------------------ ##"
1783 ) | sed "s/^/$as_me: WARNING: /" >&2
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1791 eval "$3=\$ac_header_compiler"
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_header_mongrel
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 ac_retval=$ac_status
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1860 if ac_fn_c_try_compile "$LINENO"; then :
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_header_compile
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1910 } # ac_fn_cxx_try_compile
1912 # ac_fn_c_try_link LINENO
1913 # -----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded.
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 rm -f conftest.$ac_objext conftest$ac_exeext
1919 if { { ac_try="$ac_link"
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>conftest.err
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && {
1935 test -z "$ac_c_werror_flag" ||
1936 test ! -s conftest.err
1937 } && test -s conftest$ac_exeext && {
1938 test "$cross_compiling" = yes ||
1939 test -x conftest$ac_exeext
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1949 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1950 # interfere with the next link command; also delete a directory that is
1951 # left behind by Apple's compiler. We do this before executing the actions.
1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_try_link
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (); below.
1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978 <limits.h> exists even on freestanding compilers. */
1981 # include <limits.h>
1983 # include <assert.h>
1988 /* Override any GCC internal prototype to avoid an error.
1989 Use char because int might match the return type of a GCC
1990 builtin and then its argument prototype would still apply. */
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined __stub_$2 || defined __stub___$2
2010 if ac_fn_c_try_link "$LINENO"; then :
2015 rm -f core conftest.err conftest.$ac_objext \
2016 conftest$ac_exeext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_func
2025 # ac_fn_cxx_try_cpp LINENO
2026 # ------------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_cpp ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } > conftest.i && {
2047 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2048 test ! -s conftest.err
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2060 } # ac_fn_cxx_try_cpp
2062 # ac_fn_cxx_try_link LINENO
2063 # -------------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
2065 ac_fn_cxx_try_link ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 rm -f conftest.$ac_objext conftest$ac_exeext
2069 if { { ac_try="$ac_link"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>conftest.err
2078 if test -s conftest.err; then
2079 grep -v '^ *+' conftest.err >conftest.er1
2080 cat conftest.er1 >&5
2081 mv -f conftest.er1 conftest.err
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; } && {
2085 test -z "$ac_cxx_werror_flag" ||
2086 test ! -s conftest.err
2087 } && test -s conftest$ac_exeext && {
2088 test "$cross_compiling" = yes ||
2089 test -x conftest$ac_exeext
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100 # interfere with the next link command; also delete a directory that is
2101 # left behind by Apple's compiler. We do this before executing the actions.
2102 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2106 } # ac_fn_cxx_try_link
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2113 ac_fn_c_compute_int ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153 if test $ac_lo -le $ac_mid; then
2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) < 0)];
2170 return test_array [0];
2176 if ac_fn_c_try_compile "$LINENO"; then :
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197 if test $ac_mid -le $ac_hi; then
2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile "$LINENO"; then :
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2251 FILE *f = fopen ("conftest.val", "w");
2256 long int i = longval ();
2259 fprintf (f, "%ld", i);
2263 unsigned long int i = ulongval ();
2266 fprintf (f, "%lu", i);
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2289 } # ac_fn_c_compute_int
2291 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2292 # -------------------------------------------
2293 # Tests whether TYPE exists after having included INCLUDES, setting cache
2294 # variable VAR accordingly.
2295 ac_fn_c_check_type ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2329 if ac_fn_c_try_compile "$LINENO"; then :
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 } # ac_fn_c_check_type
2345 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2346 # ---------------------------------------------
2347 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2349 ac_fn_c_check_decl ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 as_decl_name=`echo $2|sed 's/ *(.*//'`
2353 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2355 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2356 if eval \${$3+:} false; then :
2357 $as_echo_n "(cached) " >&6
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2365 #ifndef $as_decl_name
2367 (void) $as_decl_use;
2369 (void) $as_decl_name;
2377 if ac_fn_c_try_compile "$LINENO"; then :
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389 } # ac_fn_c_check_decl
2391 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2392 # ----------------------------------------------------
2393 # Tries to find if the field MEMBER exists in type AGGR, after including
2394 # INCLUDES, setting cache variable VAR accordingly.
2395 ac_fn_c_check_member ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2399 $as_echo_n "checking for $2.$3... " >&6; }
2400 if eval \${$4+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2416 if ac_fn_c_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2426 if (sizeof ac_aggr.$3)
2432 if ac_fn_c_try_compile "$LINENO"; then :
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446 } # ac_fn_c_check_member
2447 cat >config.log <<_ACEOF
2448 This file contains any messages produced by compilers while
2449 running configure, to aid debugging if configure makes a mistake.
2451 It was created by gpgme $as_me 1.4.1, which was
2452 generated by GNU Autoconf 2.69. Invocation command line was
2464 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2465 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2466 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2467 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2468 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2470 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2471 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2473 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2474 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2475 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2476 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2477 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2478 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2479 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 $as_echo "PATH: $as_dir"
2504 # Keep a trace of the command line.
2505 # Strip out --no-create and --no-recursion so they do not pile up.
2506 # Strip out --silent because we don't want to record it for future runs.
2507 # Also quote any args containing shell meta-characters.
2508 # Make two passes to allow for proper duplicate-argument suppression.
2512 ac_must_keep_next=false
2518 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2520 | -silent | --silent | --silen | --sile | --sil)
2523 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2528 as_fn_append ac_configure_args1 " '$ac_arg'"
2529 if test $ac_must_keep_next = true; then
2530 ac_must_keep_next=false # Got value, back to normal.
2533 *=* | --config-cache | -C | -disable-* | --disable-* \
2534 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2535 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2536 | -with-* | --with-* | -without-* | --without-* | --x)
2537 case "$ac_configure_args0 " in
2538 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2541 -* ) ac_must_keep_next=true ;;
2544 as_fn_append ac_configure_args " '$ac_arg'"
2549 { ac_configure_args0=; unset ac_configure_args0;}
2550 { ac_configure_args1=; unset ac_configure_args1;}
2552 # When interrupted or exit'd, cleanup temporary files, and complete
2553 # config.log. We remove comments because anyway the quotes in there
2554 # would cause problems or look ugly.
2555 # WARNING: Use '\'' to represent an apostrophe within the trap.
2556 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2557 trap 'exit_status=$?
2558 # Save into config.log some information that might help in debugging.
2562 $as_echo "## ---------------- ##
2563 ## Cache variables. ##
2564 ## ---------------- ##"
2566 # The following way of writing the cache mishandles newlines in values,
2568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2569 eval ac_val=\$$ac_var
2573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2577 _ | IFS | as_nl) ;; #(
2578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2579 *) { eval $ac_var=; unset $ac_var;} ;;
2584 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2585 *${as_nl}ac_space=\ *)
2587 "s/'\''/'\''\\\\'\'''\''/g;
2588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2598 $as_echo "## ----------------- ##
2599 ## Output variables. ##
2600 ## ----------------- ##"
2602 for ac_var in $ac_subst_vars
2604 eval ac_val=\$$ac_var
2606 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2608 $as_echo "$ac_var='\''$ac_val'\''"
2612 if test -n "$ac_subst_files"; then
2613 $as_echo "## ------------------- ##
2614 ## File substitutions. ##
2615 ## ------------------- ##"
2617 for ac_var in $ac_subst_files
2619 eval ac_val=\$$ac_var
2621 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2623 $as_echo "$ac_var='\''$ac_val'\''"
2628 if test -s confdefs.h; then
2629 $as_echo "## ----------- ##
2636 test "$ac_signal" != 0 &&
2637 $as_echo "$as_me: caught signal $ac_signal"
2638 $as_echo "$as_me: exit $exit_status"
2640 rm -f core *.core core.conftest.* &&
2641 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2644 for ac_signal in 1 2 13 15; do
2645 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2649 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2650 rm -f -r conftest* confdefs.h
2652 $as_echo "/* confdefs.h */" > confdefs.h
2654 # Predefined preprocessor variables.
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_NAME "$PACKAGE_NAME"
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_STRING "$PACKAGE_STRING"
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE_URL "$PACKAGE_URL"
2681 # Let the site file select an alternate cache file if it wants to.
2682 # Prefer an explicitly selected file to automatically selected ones.
2685 if test -n "$CONFIG_SITE"; then
2686 # We do not want a PATH search for config.site.
2687 case $CONFIG_SITE in #((
2688 -*) ac_site_file1=./$CONFIG_SITE;;
2689 */*) ac_site_file1=$CONFIG_SITE;;
2690 *) ac_site_file1=./$CONFIG_SITE;;
2692 elif test "x$prefix" != xNONE; then
2693 ac_site_file1=$prefix/share/config.site
2694 ac_site_file2=$prefix/etc/config.site
2696 ac_site_file1=$ac_default_prefix/share/config.site
2697 ac_site_file2=$ac_default_prefix/etc/config.site
2699 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2701 test "x$ac_site_file" = xNONE && continue
2702 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2704 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2705 sed 's/^/| /' "$ac_site_file" >&5
2707 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 as_fn_error $? "failed to load site script $ac_site_file
2710 See \`config.log' for more details" "$LINENO" 5; }
2714 if test -r "$cache_file"; then
2715 # Some versions of bash will fail to source /dev/null (special files
2716 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2717 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2719 $as_echo "$as_me: loading cache $cache_file" >&6;}
2721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2722 *) . "./$cache_file";;
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2727 $as_echo "$as_me: creating cache $cache_file" >&6;}
2731 as_fn_append ac_header_list " locale.h"
2732 as_fn_append ac_header_list " sys/select.h"
2733 as_fn_append ac_header_list " sys/uio.h"
2734 as_fn_append ac_header_list " argp.h"
2735 as_fn_append ac_header_list " unistd.h"
2736 as_fn_append ac_header_list " sys/time.h"
2737 as_fn_append ac_header_list " sys/types.h"
2738 as_fn_append ac_header_list " sys/stat.h"
2739 # Check that the precious variables saved in the cache have kept the same
2741 ac_cache_corrupted=false
2742 for ac_var in $ac_precious_vars; do
2743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2744 eval ac_new_set=\$ac_env_${ac_var}_set
2745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2746 eval ac_new_val=\$ac_env_${ac_var}_value
2747 case $ac_old_set,$ac_new_set in
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2751 ac_cache_corrupted=: ;;
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2755 ac_cache_corrupted=: ;;
2758 if test "x$ac_old_val" != "x$ac_new_val"; then
2759 # differences in whitespace do not lead to failure.
2760 ac_old_val_w=`echo x $ac_old_val`
2761 ac_new_val_w=`echo x $ac_new_val`
2762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2765 ac_cache_corrupted=:
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2769 eval $ac_var=\$ac_old_val
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2777 # Pass precious variables to config.status.
2778 if test "$ac_new_set" = set; then
2780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2781 *) ac_arg=$ac_var=$ac_new_val ;;
2783 case " $ac_configure_args " in
2784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2789 if $ac_cache_corrupted; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2794 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2796 ## -------------------- ##
2797 ## Main body of script. ##
2798 ## -------------------- ##
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 # LT Version numbers, remember to change them just *before* a release.
2809 # (Code changed: REVISION++)
2810 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2811 # (Interfaces added: AGE++)
2812 # (Interfaces removed/changed: AGE=0)
2814 LIBGPGME_LT_CURRENT=20
2815 # Subtract 2 from this value if you want to make the LFS transition an
2816 # ABI break. [Note to self: Remove this comment with the next regular break.]
2818 LIBGPGME_LT_REVISION=1
2820 # If the API is changed in an incompatible way: increment the next counter.
2821 GPGME_CONFIG_API_VERSION=1
2822 ##############################################
2824 NEED_GPG_ERROR_VERSION=1.8
2825 NEED_LIBASSUAN_API=2
2826 NEED_LIBASSUAN_VERSION=2.0.2
2829 PACKAGE=$PACKAGE_NAME
2830 VERSION=$PACKAGE_VERSION
2833 for ac_dir in build-aux "$srcdir"/build-aux; do
2834 if test -f "$ac_dir/install-sh"; then
2836 ac_install_sh="$ac_aux_dir/install-sh -c"
2838 elif test -f "$ac_dir/install.sh"; then
2840 ac_install_sh="$ac_aux_dir/install.sh -c"
2842 elif test -f "$ac_dir/shtool"; then
2844 ac_install_sh="$ac_aux_dir/shtool install -c"
2848 if test -z "$ac_aux_dir"; then
2849 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2852 # These three variables are undocumented and unsupported,
2853 # and are intended to be withdrawn in a future Autoconf release.
2854 # They can cause serious problems if a builder's source tree is in a directory
2855 # whose full name contains unusual characters.
2856 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2857 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2858 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2863 ac_config_headers="$ac_config_headers config.h"
2865 am__api_version='1.11'
2867 # Find a good install program. We prefer a C program (faster),
2868 # so one script is as good as another. But avoid the broken or
2869 # incompatible versions:
2870 # SysV /etc/install, /usr/sbin/install
2871 # SunOS /usr/etc/install
2872 # IRIX /sbin/install
2874 # AmigaOS /C/install, which installs bootblocks on floppy discs
2875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2878 # OS/2's system install, which has a completely different semantic
2879 # ./install, which can be erroneously created by make from ./install.sh.
2880 # Reject install programs that cannot install multiple files.
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2882 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2883 if test -z "$INSTALL"; then
2884 if ${ac_cv_path_install+:} false; then :
2885 $as_echo_n "(cached) " >&6
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 # Account for people who put trailing slashes in PATH elements.
2893 case $as_dir/ in #((
2894 ./ | .// | /[cC]/* | \
2895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2896 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2899 # OSF1 and SCO ODT 3.0 have their own names for install.
2900 # Don't use installbsd from OSF since it installs stuff as root
2902 for ac_prog in ginstall scoinst install; do
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2905 if test $ac_prog = install &&
2906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # AIX install. It has an incompatible calling convention.
2909 elif test $ac_prog = install &&
2910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911 # program-specific install script used by HP pwplus--don't use.
2914 rm -rf conftest.one conftest.two conftest.dir
2915 echo one > conftest.one
2916 echo two > conftest.two
2918 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2919 test -s conftest.one && test -s conftest.two &&
2920 test -s conftest.dir/conftest.one &&
2921 test -s conftest.dir/conftest.two
2923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2936 rm -rf conftest.one conftest.two conftest.dir
2939 if test "${ac_cv_path_install+set}" = set; then
2940 INSTALL=$ac_cv_path_install
2942 # As a last resort, use the slow shell script. Don't cache a
2943 # value for INSTALL within a source directory, because that will
2944 # break other packages using the cache if that directory is
2945 # removed, or if the value is a relative name.
2946 INSTALL=$ac_install_sh
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2950 $as_echo "$INSTALL" >&6; }
2952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2953 # It thinks the first close brace ends the variable substitution.
2954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2961 $as_echo_n "checking whether build environment is sane... " >&6; }
2964 echo timestamp > conftest.file
2965 # Reject unsafe characters in $srcdir or the absolute working directory
2966 # name. Accept space and tab only in the latter.
2970 *[\\\"\#\$\&\'\`$am_lf]*)
2971 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2974 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2975 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2978 # Do `set' in a subshell so we don't clobber the current shell's
2979 # arguments. Must try -L first in case configure is actually a
2980 # symlink; some systems play weird games with the mod time of symlinks
2981 # (eg FreeBSD returns the mod time of the symlink's containing
2984 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2985 if test "$*" = "X"; then
2987 set X `ls -t "$srcdir/configure" conftest.file`
2990 if test "$*" != "X $srcdir/configure conftest.file" \
2991 && test "$*" != "X conftest.file $srcdir/configure"; then
2993 # If neither matched, then we have a broken ls. This can happen
2994 # if, for instance, CONFIG_SHELL is bash and it inherits a
2995 # broken ls alias from the environment. This has actually
2996 # happened. Such a system could not be considered "sane".
2997 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2998 alias in your environment" "$LINENO" 5
3001 test "$2" = conftest.file
3007 as_fn_error $? "newly created file is older than distributed files!
3008 Check your system clock" "$LINENO" 5
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3012 test "$program_prefix" != NONE &&
3013 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3014 # Use a double $ so make ignores it.
3015 test "$program_suffix" != NONE &&
3016 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3017 # Double any \ or $.
3018 # By default was `s,x,x', remove it if useless.
3019 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3020 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3022 # expand $ac_aux_dir to an absolute path
3023 am_aux_dir=`cd $ac_aux_dir && pwd`
3025 if test x"${MISSING+set}" != xset; then
3028 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3030 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3033 # Use eval to expand $SHELL
3034 if eval "$MISSING --run true"; then
3035 am_missing_run="$MISSING --run "
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3039 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3042 if test x"${install_sh}" != xset; then
3045 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3047 install_sh="\${SHELL} $am_aux_dir/install-sh"
3051 # Installed binaries are usually stripped using `strip' when the user
3052 # run `make install-strip'. However `strip' might not be the right
3053 # tool to use in cross-compilation environments, therefore Automake
3054 # will honor the `STRIP' environment variable to overrule this program.
3055 if test "$cross_compiling" != no; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}strip; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_STRIP+:} false; then :
3062 $as_echo_n "(cached) " >&6
3064 if test -n "$STRIP"; then
3065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 STRIP=$ac_cv_prog_STRIP
3085 if test -n "$STRIP"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3087 $as_echo "$STRIP" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3095 if test -z "$ac_cv_prog_STRIP"; then
3097 # Extract the first word of "strip", so it can be a program name with args.
3098 set dummy strip; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$ac_ct_STRIP"; then
3105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_STRIP="strip"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3125 if test -n "$ac_ct_STRIP"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3127 $as_echo "$ac_ct_STRIP" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3133 if test "x$ac_ct_STRIP" = x; then
3136 case $cross_compiling:$ac_tool_warned in
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3145 STRIP="$ac_cv_prog_STRIP"
3149 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3152 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3153 if test -z "$MKDIR_P"; then
3154 if ${ac_cv_path_mkdir+:} false; then :
3155 $as_echo_n "(cached) " >&6
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3161 test -z "$as_dir" && as_dir=.
3162 for ac_prog in mkdir gmkdir; do
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3165 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3166 'mkdir (GNU coreutils) '* | \
3167 'mkdir (coreutils) '* | \
3168 'mkdir (fileutils) '4.1*)
3169 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3179 test -d ./--version && rmdir ./--version
3180 if test "${ac_cv_path_mkdir+set}" = set; then
3181 MKDIR_P="$ac_cv_path_mkdir -p"
3183 # As a last resort, use the slow shell script. Don't cache a
3184 # value for MKDIR_P within a source directory, because that will
3185 # break other packages using the cache if that directory is
3186 # removed, or if the value is a relative name.
3187 MKDIR_P="$ac_install_sh -d"
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3191 $as_echo "$MKDIR_P" >&6; }
3195 [\\/$]* | ?:[\\/]*) ;;
3196 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3199 for ac_prog in gawk mawk nawk awk
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_AWK+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$AWK"; then
3209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_AWK="$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$AWK"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3231 $as_echo "$AWK" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$AWK" && break
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3242 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3244 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3245 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3246 $as_echo_n "(cached) " >&6
3248 cat >conftest.make <<\_ACEOF
3251 @echo '@@@%%%=$(MAKE)=@@@%%%'
3253 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3254 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256 eval ac_cv_prog_make_${ac_make}_set=yes;;
3258 eval ac_cv_prog_make_${ac_make}_set=no;;
3262 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 SET_MAKE="MAKE=${MAKE-make}"
3272 rm -rf .tst 2>/dev/null
3273 mkdir .tst 2>/dev/null
3274 if test -d .tst; then
3279 rmdir .tst 2>/dev/null
3281 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3282 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3283 # is not polluted with repeated "-I."
3284 am__isrc=' -I$(srcdir)'
3285 # test to see if srcdir already configured
3286 if test -f $srcdir/config.status; then
3287 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3291 # test whether we have cygpath
3292 if test -z "$CYGPATH_W"; then
3293 if (cygpath --version) >/dev/null 2>/dev/null; then
3294 CYGPATH_W='cygpath -w'
3301 # Define the identity of the package.
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE "$PACKAGE"
3311 cat >>confdefs.h <<_ACEOF
3312 #define VERSION "$VERSION"
3315 # Some tools Automake needs.
3317 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3320 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3323 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3326 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3329 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3331 # We need awk for the "check" target. The system "awk" is bad on
3333 # Always define AMTAR for backward compatibility. Yes, it's still used
3334 # in the wild :-( We should find a proper way to deprecate it ...
3337 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3345 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3346 # Check whether --enable-maintainer-mode was given.
3347 if test "${enable_maintainer_mode+set}" = set; then :
3348 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3350 USE_MAINTAINER_MODE=no
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3354 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3355 if test $USE_MAINTAINER_MODE = yes; then
3356 MAINTAINER_MODE_TRUE=
3357 MAINTAINER_MODE_FALSE='#'
3359 MAINTAINER_MODE_TRUE='#'
3360 MAINTAINER_MODE_FALSE=
3363 MAINT=$MAINTAINER_MODE_TRUE
3366 # Make sure we can run config.sub.
3367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3368 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3371 $as_echo_n "checking build system type... " >&6; }
3372 if ${ac_cv_build+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 ac_build_alias=$build_alias
3376 test "x$ac_build_alias" = x &&
3377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378 test "x$ac_build_alias" = x &&
3379 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3385 $as_echo "$ac_cv_build" >&6; }
3386 case $ac_cv_build in
3388 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3391 ac_save_IFS=$IFS; IFS='-'
3397 # Remember, the first character of IFS is used to create $*,
3398 # except with old shells:
3401 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3405 $as_echo_n "checking host system type... " >&6; }
3406 if ${ac_cv_host+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test "x$host_alias" = x; then
3410 ac_cv_host=$ac_cv_build
3412 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3418 $as_echo "$ac_cv_host" >&6; }
3421 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3424 ac_save_IFS=$IFS; IFS='-'
3430 # Remember, the first character of IFS is used to create $*,
3431 # except with old shells:
3434 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3438 # Enable GNU extensions on systems that have them.
3439 DEPDIR="${am__leading_dot}deps"
3441 ac_config_commands="$ac_config_commands depfiles"
3444 am_make=${MAKE-make}
3445 cat > confinc << 'END'
3447 @echo this is the am__doit target
3450 # If we don't find an include directive, just comment out the code.
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3452 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3456 # First try GNU make style include.
3457 echo "include confinc" > confmf
3458 # Ignore all kinds of additional output from `make'.
3459 case `$am_make -s -f confmf 2> /dev/null` in #(
3460 *the\ am__doit\ target*)
3466 # Now try BSD make style include.
3467 if test "$am__include" = "#"; then
3468 echo '.include "confinc"' > confmf
3469 case `$am_make -s -f confmf 2> /dev/null` in #(
3470 *the\ am__doit\ target*)
3471 am__include=.include
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3480 $as_echo "$_am_result" >&6; }
3481 rm -f confinc confmf
3483 # Check whether --enable-dependency-tracking was given.
3484 if test "${enable_dependency_tracking+set}" = set; then :
3485 enableval=$enable_dependency_tracking;
3488 if test "x$enable_dependency_tracking" != xno; then
3489 am_depcomp="$ac_aux_dir/depcomp"
3493 if test "x$enable_dependency_tracking" != xno; then
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$ac_cv_prog_CC"; then
3548 # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$ac_ct_CC"; then
3556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_ac_ct_CC="gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576 if test -n "$ac_ct_CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578 $as_echo "$ac_ct_CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3584 if test "x$ac_ct_CC" = x; then
3587 case $cross_compiling:$ac_tool_warned in
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_CC="${ac_tool_prefix}cc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 # Extract the first word of "cc", so it can be a program name with args.
3642 set dummy cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660 ac_prog_rejected=yes
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 if test $ac_prog_rejected = yes; then
3672 # We found a bogon in the path, so make sure we never use it.
3673 set dummy $ac_cv_prog_CC
3675 if test $# != 0; then
3676 # We chose a different compiler from the bogus one.
3677 # However, it has the same basename, so the bogon will be chosen
3678 # first if we set CC to just the basename; use the full file name.
3680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 for ac_prog in cl.exe
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3737 test -n "$CC" && break
3740 if test -z "$CC"; then
3742 for ac_prog in cl.exe
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_ac_ct_CC="$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774 $as_echo "$ac_ct_CC" >&6; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3781 test -n "$ac_ct_CC" && break
3784 if test "x$ac_ct_CC" = x; then
3787 case $cross_compiling:$ac_tool_warned in
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "no acceptable C compiler found in \$PATH
3803 See \`config.log' for more details" "$LINENO" 5; }
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 if test -s conftest.err; then
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3825 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 ac_clean_files_save=$ac_clean_files
3842 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3843 # Try to create an executable without -o first, disregard a.out.
3844 # It will help us diagnose broken compilers, and finding out an intuition
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3847 $as_echo_n "checking whether the C compiler works... " >&6; }
3848 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3850 # The possible output files:
3851 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3854 for ac_file in $ac_files
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3863 if { { ac_try="$ac_link_default"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_link_default") 2>&5
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; then :
3874 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3876 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3877 # so that the user can short-circuit this test for compilers unknown to
3879 for ac_file in $ac_files ''
3881 test -f "$ac_file" || continue
3883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3886 # We found the default executable, but exeext='' is most
3890 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3892 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 # We set ac_cv_exeext here because the later test for it is not
3895 # safe: cross compilers may not add the suffix if given an `-o'
3896 # argument, so we may need to know it at that point already.
3897 # Even if this section looks crufty: it has the advantage of
3904 test "$ac_cv_exeext" = no && ac_cv_exeext=
3909 if test -z "$ac_file"; then :
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error 77 "C compiler cannot create executables
3918 See \`config.log' for more details" "$LINENO" 5; }
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921 $as_echo "yes" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924 $as_echo_n "checking for C compiler default output file name... " >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3926 $as_echo "$ac_file" >&6; }
3927 ac_exeext=$ac_cv_exeext
3929 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3930 ac_clean_files=$ac_clean_files_save
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3932 $as_echo_n "checking for suffix of executables... " >&6; }
3933 if { { ac_try="$ac_link"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_link") 2>&5
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; then :
3944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3946 # work properly (i.e., refer to `conftest.exe'), while it won't with
3948 for ac_file in conftest.exe conftest conftest.*; do
3949 test -f "$ac_file" || continue
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3961 See \`config.log' for more details" "$LINENO" 5; }
3963 rm -f conftest conftest$ac_cv_exeext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3965 $as_echo "$ac_cv_exeext" >&6; }
3967 rm -f conftest.$ac_ext
3968 EXEEXT=$ac_cv_exeext
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3976 FILE *f = fopen ("conftest.out", "w");
3977 return ferror (f) || fclose (f) != 0;
3983 ac_clean_files="$ac_clean_files conftest.out"
3984 # Check that the compiler produces executables we can run. If not, either
3985 # the compiler is broken, or we cross compile.
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3987 $as_echo_n "checking whether we are cross compiling... " >&6; }
3988 if test "$cross_compiling" != yes; then
3989 { { ac_try="$ac_link"
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 $as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_link") 2>&5
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }
4000 if { ac_try='./conftest$ac_cv_exeext'
4001 { { case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_try") 2>&5
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; }; then
4013 if test "$cross_compiling" = maybe; then
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error $? "cannot run C compiled programs.
4019 If you meant to cross compile, use \`--host'.
4020 See \`config.log' for more details" "$LINENO" 5; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4025 $as_echo "$cross_compiling" >&6; }
4027 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4028 ac_clean_files=$ac_clean_files_save
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030 $as_echo_n "checking for suffix of object files... " >&6; }
4031 if ${ac_cv_objext+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; then :
4057 for ac_file in conftest.o conftest.obj conftest.*; do
4058 test -f "$ac_file" || continue;
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot compute suffix of object files: cannot compile
4072 See \`config.log' for more details" "$LINENO" 5; }
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 $as_echo "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082 if ${ac_cv_c_compiler_gnu+:} false; then :
4083 $as_echo_n "(cached) " >&6
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110 if test $ac_compiler_gnu = yes; then
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4119 if ${ac_cv_prog_cc_g+:} false; then :
4120 $as_echo_n "(cached) " >&6
4122 ac_save_c_werror_flag=$ac_c_werror_flag
4123 ac_c_werror_flag=yes
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4152 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4168 if ac_fn_c_try_compile "$LINENO"; then :
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 $as_echo "$ac_cv_prog_cc_g" >&6; }
4180 if test "$ac_test_CFLAGS" = set; then
4181 CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4189 if test "$GCC" = yes; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197 if ${ac_cv_prog_cc_c89+:} false; then :
4198 $as_echo_n "(cached) " >&6
4200 ac_cv_prog_cc_c89=no
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4208 struct buf { int x; };
4209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4210 static char *e (p, i)
4216 static char *f (char * (*g) (char **, int), char **p, ...)
4221 s = g (p, va_arg (v,int));
4226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4227 function prototypes and stuff, but not '\xHH' hex character constants.
4228 These don't provoke an error unfortunately, instead are silently treated
4229 as 'x'. The following induces an error, until -std is added to get
4230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4231 array size at least. It's necessary to write '\x00'==0 to get something
4232 that's true only with -std. */
4233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4236 inside strings and character constants. */
4238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4240 int test (int i, double x);
4241 struct s1 {int (*f) (int a);};
4242 struct s2 {int (*f) (double a);};
4243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4257 CC="$ac_save_CC $ac_arg"
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_prog_cc_c89=$ac_arg
4261 rm -f core conftest.err conftest.$ac_objext
4262 test "x$ac_cv_prog_cc_c89" != "xno" && break
4264 rm -f conftest.$ac_ext
4269 case "x$ac_cv_prog_cc_c89" in
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 $as_echo "none needed" >&6; } ;;
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275 $as_echo "unsupported" >&6; } ;;
4277 CC="$CC $ac_cv_prog_cc_c89"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4279 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281 if test "x$ac_cv_prog_cc_c89" != xno; then :
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 depcc="$CC" am_compiler_list=
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4294 $as_echo_n "checking dependency style of $depcc... " >&6; }
4295 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4299 # We make a subdir and do the tests there. Otherwise we can end up
4300 # making bogus files that we don't know about and never remove. For
4301 # instance it was reported that on HP-UX the gcc test will end up
4302 # making a dummy file named `D' -- because `-MD' means `put the output
4306 # Copy depcomp to subdir because otherwise we won't find it if we're
4307 # using a relative directory.
4308 cp "$am_depcomp" conftest.dir
4310 # We will build objects and dependencies in a subdirectory because
4311 # it helps to detect inapplicable dependency modes. For instance
4312 # both Tru64's cc and ICC support -MD to output dependencies as a
4313 # side effect of compilation, but ICC will put the dependencies in
4314 # the current directory while Tru64 will put them in the object
4318 am_cv_CC_dependencies_compiler_type=none
4319 if test "$am_compiler_list" = ""; then
4320 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4323 case " $depcc " in #(
4324 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4327 for depmode in $am_compiler_list; do
4328 # Setup a source with many dependencies, because some compilers
4329 # like to wrap large dependency lists on column 80 (with \), and
4330 # we should not choose a depcomp mode which is confused by this.
4332 # We need to recreate these files for each test, as the compiler may
4333 # overwrite some of them when testing with obscure command lines.
4334 # This happens at least with the AIX C compiler.
4336 for i in 1 2 3 4 5 6; do
4337 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4338 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4339 # Solaris 8's {/usr,}/bin/sh.
4340 touch sub/conftst$i.h
4342 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4344 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4345 # mode. It turns out that the SunPro C++ compiler does not properly
4346 # handle `-M -o', and we need to detect this. Also, some Intel
4347 # versions had trouble with output in subdirs
4348 am__obj=sub/conftest.${OBJEXT-o}
4349 am__minus_obj="-o $am__obj"
4352 # This depmode causes a compiler race in universal mode.
4353 test "$am__universal" = false || continue
4356 # after this tag, mechanisms are not by side-effect, so they'll
4357 # only be used when explicitly requested
4358 if test "x$enable_dependency_tracking" = xyes; then
4364 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4365 # This compiler won't grok `-c -o', but also, the minuso test has
4366 # not run yet. These depmodes are late enough in the game, and
4367 # so weak that their functioning should not be impacted.
4368 am__obj=conftest.${OBJEXT-o}
4373 if depmode=$depmode \
4374 source=sub/conftest.c object=$am__obj \
4375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4376 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4377 >/dev/null 2>conftest.err &&
4378 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4380 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4382 # icc doesn't choke on unknown options, it will just issue warnings
4383 # or remarks (even with -Werror). So we grep stderr for any message
4384 # that says an option was ignored or not supported.
4385 # When given -MP, icc 7.0 and 7.1 complain thusly:
4386 # icc: Command line warning: ignoring option '-M'; no argument required
4387 # The diagnosis changed in icc 8.0:
4388 # icc: Command line remark: option '-MP' not supported
4389 if (grep 'ignoring option' conftest.err ||
4390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4391 am_cv_CC_dependencies_compiler_type=$depmode
4400 am_cv_CC_dependencies_compiler_type=none
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4405 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4409 test "x$enable_dependency_tracking" != xno \
4410 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4412 am__fastdepCC_FALSE='#'
4414 am__fastdepCC_TRUE='#'
4415 am__fastdepCC_FALSE=
4421 ac_cpp='$CPP $CPPFLAGS'
4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4426 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4427 # On Suns, sometimes $CPP names a directory.
4428 if test -n "$CPP" && test -d "$CPP"; then
4431 if test -z "$CPP"; then
4432 if ${ac_cv_prog_CPP+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 # Double quotes because CPP needs to be expanded
4436 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4439 for ac_c_preproc_warn_flag in '' yes
4441 # Use a header file that comes with gcc, so configuring glibc
4442 # with a fresh cross-compiler works.
4443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444 # <limits.h> exists even on freestanding compilers.
4445 # On the NeXT, cc -E runs the code through the compiler's parser,
4446 # not just through cpp. "Syntax error" is here to catch this case.
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4450 # include <limits.h>
4452 # include <assert.h>
4456 if ac_fn_c_try_cpp "$LINENO"; then :
4459 # Broken: fails on valid input.
4462 rm -f conftest.err conftest.i conftest.$ac_ext
4464 # OK, works on sane cases. Now check whether nonexistent headers
4465 # can be detected and how.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <ac_nonexistent.h>
4470 if ac_fn_c_try_cpp "$LINENO"; then :
4471 # Broken: success on invalid input.
4474 # Passes both tests.
4478 rm -f conftest.err conftest.i conftest.$ac_ext
4481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4482 rm -f conftest.i conftest.err conftest.$ac_ext
4483 if $ac_preproc_ok; then :
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4496 $as_echo "$CPP" >&6; }
4498 for ac_c_preproc_warn_flag in '' yes
4500 # Use a header file that comes with gcc, so configuring glibc
4501 # with a fresh cross-compiler works.
4502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4503 # <limits.h> exists even on freestanding compilers.
4504 # On the NeXT, cc -E runs the code through the compiler's parser,
4505 # not just through cpp. "Syntax error" is here to catch this case.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4509 # include <limits.h>
4511 # include <assert.h>
4515 if ac_fn_c_try_cpp "$LINENO"; then :
4518 # Broken: fails on valid input.
4521 rm -f conftest.err conftest.i conftest.$ac_ext
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #include <ac_nonexistent.h>
4529 if ac_fn_c_try_cpp "$LINENO"; then :
4530 # Broken: success on invalid input.
4533 # Passes both tests.
4537 rm -f conftest.err conftest.i conftest.$ac_ext
4540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4541 rm -f conftest.i conftest.err conftest.$ac_ext
4542 if $ac_preproc_ok; then :
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4548 See \`config.log' for more details" "$LINENO" 5; }
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4559 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4560 if ${ac_cv_path_GREP+:} false; then :
4561 $as_echo_n "(cached) " >&6
4563 if test -z "$GREP"; then
4564 ac_path_GREP_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 test -z "$as_dir" && as_dir=.
4571 for ac_prog in grep ggrep; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4574 as_fn_executable_p "$ac_path_GREP" || continue
4575 # Check for GNU ac_path_GREP and select it if it is found.
4576 # Check for GNU $ac_path_GREP
4577 case `"$ac_path_GREP" --version 2>&1` in
4579 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4582 $as_echo_n 0123456789 >"conftest.in"
4585 cat "conftest.in" "conftest.in" >"conftest.tmp"
4586 mv "conftest.tmp" "conftest.in"
4587 cp "conftest.in" "conftest.nl"
4588 $as_echo 'GREP' >> "conftest.nl"
4589 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591 as_fn_arith $ac_count + 1 && ac_count=$as_val
4592 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4593 # Best one so far, save it but keep looking for a better one
4594 ac_cv_path_GREP="$ac_path_GREP"
4595 ac_path_GREP_max=$ac_count
4597 # 10*(2^10) chars as input seems more than enough
4598 test $ac_count -gt 10 && break
4600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 $ac_path_GREP_found && break 3
4608 if test -z "$ac_cv_path_GREP"; then
4609 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4612 ac_cv_path_GREP=$GREP
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4617 $as_echo "$ac_cv_path_GREP" >&6; }
4618 GREP="$ac_cv_path_GREP"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4622 $as_echo_n "checking for egrep... " >&6; }
4623 if ${ac_cv_path_EGREP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4627 then ac_cv_path_EGREP="$GREP -E"
4629 if test -z "$EGREP"; then
4630 ac_path_EGREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in egrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_EGREP" || continue
4641 # Check for GNU ac_path_EGREP and select it if it is found.
4642 # Check for GNU $ac_path_EGREP
4643 case `"$ac_path_EGREP" --version 2>&1` in
4645 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4648 $as_echo_n 0123456789 >"conftest.in"
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo 'EGREP' >> "conftest.nl"
4655 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_EGREP="$ac_path_EGREP"
4661 ac_path_EGREP_max=$ac_count
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 $ac_path_EGREP_found && break 3
4674 if test -z "$ac_cv_path_EGREP"; then
4675 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678 ac_cv_path_EGREP=$EGREP
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4684 $as_echo "$ac_cv_path_EGREP" >&6; }
4685 EGREP="$ac_cv_path_EGREP"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4689 $as_echo_n "checking for ANSI C header files... " >&6; }
4690 if ${ac_cv_header_stdc+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4708 if ac_fn_c_try_compile "$LINENO"; then :
4709 ac_cv_header_stdc=yes
4711 ac_cv_header_stdc=no
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 if test $ac_cv_header_stdc = yes; then
4716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4723 $EGREP "memchr" >/dev/null 2>&1; then :
4726 ac_cv_header_stdc=no
4732 if test $ac_cv_header_stdc = yes; then
4733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4740 $EGREP "free" >/dev/null 2>&1; then :
4743 ac_cv_header_stdc=no
4749 if test $ac_cv_header_stdc = yes; then
4750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4751 if test "$cross_compiling" = yes; then :
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4758 #if ((' ' & 0x0FF) == 0x020)
4759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4762 # define ISLOWER(c) \
4763 (('a' <= (c) && (c) <= 'i') \
4764 || ('j' <= (c) && (c) <= 'r') \
4765 || ('s' <= (c) && (c) <= 'z'))
4766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4774 for (i = 0; i < 256; i++)
4775 if (XOR (islower (i), ISLOWER (i))
4776 || toupper (i) != TOUPPER (i))
4781 if ac_fn_c_try_run "$LINENO"; then :
4784 ac_cv_header_stdc=no
4786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4787 conftest.$ac_objext conftest.beam conftest.$ac_ext
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4793 $as_echo "$ac_cv_header_stdc" >&6; }
4794 if test $ac_cv_header_stdc = yes; then
4796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4802 inttypes.h stdint.h unistd.h
4804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4808 cat >>confdefs.h <<_ACEOF
4809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4818 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4819 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4826 if test "$MINIX" = yes; then
4828 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4831 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4834 $as_echo "#define _MINIX 1" >>confdefs.h
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4840 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4841 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4847 # define __EXTENSIONS__ 1
4848 $ac_includes_default
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 ac_cv_safe_to_define___extensions__=yes
4860 ac_cv_safe_to_define___extensions__=no
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4865 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4866 test $ac_cv_safe_to_define___extensions__ = yes &&
4867 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4869 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4871 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4873 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4875 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_CC+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$CC"; then
4896 ac_cv_prog_CC="$CC" # Let the user override the test.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 if test -n "$CC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 $as_echo "$CC" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4926 if test -z "$ac_cv_prog_CC"; then
4928 # Extract the first word of "gcc", so it can be a program name with args.
4929 set dummy gcc; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4933 $as_echo_n "(cached) " >&6
4935 if test -n "$ac_ct_CC"; then
4936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_ac_ct_CC="gcc"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4956 if test -n "$ac_ct_CC"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4958 $as_echo "$ac_ct_CC" >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4964 if test "x$ac_ct_CC" = x; then
4967 case $cross_compiling:$ac_tool_warned in
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4979 if test -z "$CC"; then
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}cc; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_CC+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -n "$CC"; then
4989 ac_cv_prog_CC="$CC" # Let the user override the test.
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_CC="${ac_tool_prefix}cc"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 if test -n "$CC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011 $as_echo "$CC" >&6; }
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5020 if test -z "$CC"; then
5021 # Extract the first word of "cc", so it can be a program name with args.
5022 set dummy cc; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_CC+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 if test -n "$CC"; then
5029 ac_cv_prog_CC="$CC" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5040 ac_prog_rejected=yes
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 if test $ac_prog_rejected = yes; then
5052 # We found a bogon in the path, so make sure we never use it.
5053 set dummy $ac_cv_prog_CC
5055 if test $# != 0; then
5056 # We chose a different compiler from the bogus one.
5057 # However, it has the same basename, so the bogon will be chosen
5058 # first if we set CC to just the basename; use the full file name.
5060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5066 if test -n "$CC"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5068 $as_echo "$CC" >&6; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 if test -z "$CC"; then
5077 if test -n "$ac_tool_prefix"; then
5078 for ac_prog in cl.exe
5080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_CC+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 if test -n "$CC"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110 $as_echo "$CC" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5117 test -n "$CC" && break
5120 if test -z "$CC"; then
5122 for ac_prog in cl.exe
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 if test -n "$ac_ct_CC"; then
5132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_ac_ct_CC="$ac_prog"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5152 if test -n "$ac_ct_CC"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5154 $as_echo "$ac_ct_CC" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 test -n "$ac_ct_CC" && break
5164 if test "x$ac_ct_CC" = x; then
5167 case $cross_compiling:$ac_tool_warned in
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error $? "no acceptable C compiler found in \$PATH
5183 See \`config.log' for more details" "$LINENO" 5; }
5185 # Provide some information about the compiler.
5186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5189 for ac_option in --version -v -V -qversion; do
5190 { { ac_try="$ac_compiler $ac_option >&5"
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5196 $as_echo "$ac_try_echo"; } >&5
5197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5199 if test -s conftest.err; then
5201 ... rest of stderr output deleted ...
5202 10q' conftest.err >conftest.er1
5203 cat conftest.er1 >&5
5205 rm -f conftest.er1 conftest.err
5206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5207 test $ac_status = 0; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5212 if ${ac_cv_c_compiler_gnu+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5229 if ac_fn_c_try_compile "$LINENO"; then :
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5240 if test $ac_compiler_gnu = yes; then
5245 ac_test_CFLAGS=${CFLAGS+set}
5246 ac_save_CFLAGS=$CFLAGS
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5249 if ${ac_cv_prog_cc_g+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 ac_save_c_werror_flag=$ac_c_werror_flag
5253 ac_c_werror_flag=yes
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5267 if ac_fn_c_try_compile "$LINENO"; then :
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5282 if ac_fn_c_try_compile "$LINENO"; then :
5285 ac_c_werror_flag=$ac_save_c_werror_flag
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5298 if ac_fn_c_try_compile "$LINENO"; then :
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_c_werror_flag=$ac_save_c_werror_flag
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5309 $as_echo "$ac_cv_prog_cc_g" >&6; }
5310 if test "$ac_test_CFLAGS" = set; then
5311 CFLAGS=$ac_save_CFLAGS
5312 elif test $ac_cv_prog_cc_g = yes; then
5313 if test "$GCC" = yes; then
5319 if test "$GCC" = yes; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5327 if ${ac_cv_prog_cc_c89+:} false; then :
5328 $as_echo_n "(cached) " >&6
5330 ac_cv_prog_cc_c89=no
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338 struct buf { int x; };
5339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340 static char *e (p, i)
5346 static char *f (char * (*g) (char **, int), char **p, ...)
5351 s = g (p, va_arg (v,int));
5356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5370 int test (int i, double x);
5371 struct s1 {int (*f) (int a);};
5372 struct s2 {int (*f) (double a);};
5373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5387 CC="$ac_save_CC $ac_arg"
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_prog_cc_c89=$ac_arg
5391 rm -f core conftest.err conftest.$ac_objext
5392 test "x$ac_cv_prog_cc_c89" != "xno" && break
5394 rm -f conftest.$ac_ext
5399 case "x$ac_cv_prog_cc_c89" in
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402 $as_echo "none needed" >&6; } ;;
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5405 $as_echo "unsupported" >&6; } ;;
5407 CC="$CC $ac_cv_prog_cc_c89"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5411 if test "x$ac_cv_prog_cc_c89" != xno; then :
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421 depcc="$CC" am_compiler_list=
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5424 $as_echo_n "checking dependency style of $depcc... " >&6; }
5425 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5429 # We make a subdir and do the tests there. Otherwise we can end up
5430 # making bogus files that we don't know about and never remove. For
5431 # instance it was reported that on HP-UX the gcc test will end up
5432 # making a dummy file named `D' -- because `-MD' means `put the output
5436 # Copy depcomp to subdir because otherwise we won't find it if we're
5437 # using a relative directory.
5438 cp "$am_depcomp" conftest.dir
5440 # We will build objects and dependencies in a subdirectory because
5441 # it helps to detect inapplicable dependency modes. For instance
5442 # both Tru64's cc and ICC support -MD to output dependencies as a
5443 # side effect of compilation, but ICC will put the dependencies in
5444 # the current directory while Tru64 will put them in the object
5448 am_cv_CC_dependencies_compiler_type=none
5449 if test "$am_compiler_list" = ""; then
5450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5453 case " $depcc " in #(
5454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5457 for depmode in $am_compiler_list; do
5458 # Setup a source with many dependencies, because some compilers
5459 # like to wrap large dependency lists on column 80 (with \), and
5460 # we should not choose a depcomp mode which is confused by this.
5462 # We need to recreate these files for each test, as the compiler may
5463 # overwrite some of them when testing with obscure command lines.
5464 # This happens at least with the AIX C compiler.
5466 for i in 1 2 3 4 5 6; do
5467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5469 # Solaris 8's {/usr,}/bin/sh.
5470 touch sub/conftst$i.h
5472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5475 # mode. It turns out that the SunPro C++ compiler does not properly
5476 # handle `-M -o', and we need to detect this. Also, some Intel
5477 # versions had trouble with output in subdirs
5478 am__obj=sub/conftest.${OBJEXT-o}
5479 am__minus_obj="-o $am__obj"
5482 # This depmode causes a compiler race in universal mode.
5483 test "$am__universal" = false || continue
5486 # after this tag, mechanisms are not by side-effect, so they'll
5487 # only be used when explicitly requested
5488 if test "x$enable_dependency_tracking" = xyes; then
5494 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5495 # This compiler won't grok `-c -o', but also, the minuso test has
5496 # not run yet. These depmodes are late enough in the game, and
5497 # so weak that their functioning should not be impacted.
5498 am__obj=conftest.${OBJEXT-o}
5503 if depmode=$depmode \
5504 source=sub/conftest.c object=$am__obj \
5505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5507 >/dev/null 2>conftest.err &&
5508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5512 # icc doesn't choke on unknown options, it will just issue warnings
5513 # or remarks (even with -Werror). So we grep stderr for any message
5514 # that says an option was ignored or not supported.
5515 # When given -MP, icc 7.0 and 7.1 complain thusly:
5516 # icc: Command line warning: ignoring option '-M'; no argument required
5517 # The diagnosis changed in icc 8.0:
5518 # icc: Command line remark: option '-MP' not supported
5519 if (grep 'ignoring option' conftest.err ||
5520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5521 am_cv_CC_dependencies_compiler_type=$depmode
5530 am_cv_CC_dependencies_compiler_type=none
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5535 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5536 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5539 test "x$enable_dependency_tracking" != xno \
5540 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5542 am__fastdepCC_FALSE='#'
5544 am__fastdepCC_TRUE='#'
5545 am__fastdepCC_FALSE=
5550 ac_cpp='$CXXCPP $CPPFLAGS'
5551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5554 if test -z "$CXX"; then
5555 if test -n "$CCC"; then
5558 if test -n "$ac_tool_prefix"; then
5559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_CXX+:} false; then :
5566 $as_echo_n "(cached) " >&6
5568 if test -n "$CXX"; then
5569 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 if test -n "$CXX"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5591 $as_echo "$CXX" >&6; }
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5598 test -n "$CXX" && break
5601 if test -z "$CXX"; then
5603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5605 # Extract the first word of "$ac_prog", so it can be a program name with args.
5606 set dummy $ac_prog; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5610 $as_echo_n "(cached) " >&6
5612 if test -n "$ac_ct_CXX"; then
5613 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_ac_ct_CXX="$ac_prog"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5633 if test -n "$ac_ct_CXX"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5635 $as_echo "$ac_ct_CXX" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5642 test -n "$ac_ct_CXX" && break
5645 if test "x$ac_ct_CXX" = x; then
5648 case $cross_compiling:$ac_tool_warned in
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5660 # Provide some information about the compiler.
5661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5664 for ac_option in --version -v -V -qversion; do
5665 { { ac_try="$ac_compiler $ac_option >&5"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5674 if test -s conftest.err; then
5676 ... rest of stderr output deleted ...
5677 10q' conftest.err >conftest.er1
5678 cat conftest.er1 >&5
5680 rm -f conftest.er1 conftest.err
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5687 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5688 $as_echo_n "(cached) " >&6
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5704 if ac_fn_cxx_try_compile "$LINENO"; then :
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5715 if test $ac_compiler_gnu = yes; then
5720 ac_test_CXXFLAGS=${CXXFLAGS+set}
5721 ac_save_CXXFLAGS=$CXXFLAGS
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5724 if ${ac_cv_prog_cxx_g+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5728 ac_cxx_werror_flag=yes
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5742 if ac_fn_cxx_try_compile "$LINENO"; then :
5743 ac_cv_prog_cxx_g=yes
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5757 if ac_fn_cxx_try_compile "$LINENO"; then :
5760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5773 if ac_fn_cxx_try_compile "$LINENO"; then :
5774 ac_cv_prog_cxx_g=yes
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5785 if test "$ac_test_CXXFLAGS" = set; then
5786 CXXFLAGS=$ac_save_CXXFLAGS
5787 elif test $ac_cv_prog_cxx_g = yes; then
5788 if test "$GXX" = yes; then
5794 if test "$GXX" = yes; then
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806 depcc="$CXX" am_compiler_list=
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5809 $as_echo_n "checking dependency style of $depcc... " >&6; }
5810 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5811 $as_echo_n "(cached) " >&6
5813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5814 # We make a subdir and do the tests there. Otherwise we can end up
5815 # making bogus files that we don't know about and never remove. For
5816 # instance it was reported that on HP-UX the gcc test will end up
5817 # making a dummy file named `D' -- because `-MD' means `put the output
5821 # Copy depcomp to subdir because otherwise we won't find it if we're
5822 # using a relative directory.
5823 cp "$am_depcomp" conftest.dir
5825 # We will build objects and dependencies in a subdirectory because
5826 # it helps to detect inapplicable dependency modes. For instance
5827 # both Tru64's cc and ICC support -MD to output dependencies as a
5828 # side effect of compilation, but ICC will put the dependencies in
5829 # the current directory while Tru64 will put them in the object
5833 am_cv_CXX_dependencies_compiler_type=none
5834 if test "$am_compiler_list" = ""; then
5835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5838 case " $depcc " in #(
5839 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5842 for depmode in $am_compiler_list; do
5843 # Setup a source with many dependencies, because some compilers
5844 # like to wrap large dependency lists on column 80 (with \), and
5845 # we should not choose a depcomp mode which is confused by this.
5847 # We need to recreate these files for each test, as the compiler may
5848 # overwrite some of them when testing with obscure command lines.
5849 # This happens at least with the AIX C compiler.
5851 for i in 1 2 3 4 5 6; do
5852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5854 # Solaris 8's {/usr,}/bin/sh.
5855 touch sub/conftst$i.h
5857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5859 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5860 # mode. It turns out that the SunPro C++ compiler does not properly
5861 # handle `-M -o', and we need to detect this. Also, some Intel
5862 # versions had trouble with output in subdirs
5863 am__obj=sub/conftest.${OBJEXT-o}
5864 am__minus_obj="-o $am__obj"
5867 # This depmode causes a compiler race in universal mode.
5868 test "$am__universal" = false || continue
5871 # after this tag, mechanisms are not by side-effect, so they'll
5872 # only be used when explicitly requested
5873 if test "x$enable_dependency_tracking" = xyes; then
5879 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5880 # This compiler won't grok `-c -o', but also, the minuso test has
5881 # not run yet. These depmodes are late enough in the game, and
5882 # so weak that their functioning should not be impacted.
5883 am__obj=conftest.${OBJEXT-o}
5888 if depmode=$depmode \
5889 source=sub/conftest.c object=$am__obj \
5890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5892 >/dev/null 2>conftest.err &&
5893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5897 # icc doesn't choke on unknown options, it will just issue warnings
5898 # or remarks (even with -Werror). So we grep stderr for any message
5899 # that says an option was ignored or not supported.
5900 # When given -MP, icc 7.0 and 7.1 complain thusly:
5901 # icc: Command line warning: ignoring option '-M'; no argument required
5902 # The diagnosis changed in icc 8.0:
5903 # icc: Command line remark: option '-MP' not supported
5904 if (grep 'ignoring option' conftest.err ||
5905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5906 am_cv_CXX_dependencies_compiler_type=$depmode
5915 am_cv_CXX_dependencies_compiler_type=none
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5920 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5921 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5924 test "x$enable_dependency_tracking" != xno \
5925 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5926 am__fastdepCXX_TRUE=
5927 am__fastdepCXX_FALSE='#'
5929 am__fastdepCXX_TRUE='#'
5930 am__fastdepCXX_FALSE=
5935 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
5936 for ac_prog in gitlog-to-changelog
5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
5943 $as_echo_n "(cached) " >&6
5945 if test -n "$GITLOG_TO_CHANGELOG"; then
5946 ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
5966 if test -n "$GITLOG_TO_CHANGELOG"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
5968 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5975 test -n "$GITLOG_TO_CHANGELOG" && break
5977 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
5987 cat >>confdefs.h <<_ACEOF
5988 #define PACKAGE "$PACKAGE"
5992 cat >>confdefs.h <<_ACEOF
5993 #define VERSION "$VERSION"
5996 VERSION_NUMBER=0x010401
5999 # Don't default to build static libs.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6009 macro_version='2.4.2'
6010 macro_revision='1.3337'
6024 ltmain="$ac_aux_dir/ltmain.sh"
6026 # Backslashify metacharacters that are still active within
6027 # double-quoted strings.
6028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6030 # Same as above, but do not quote variable references.
6031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6033 # Sed substitution to delay expansion of an escaped shell variable in a
6034 # double_quote_subst'ed string.
6035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6037 # Sed substitution to delay expansion of an escaped single quote.
6038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6040 # Sed substitution to avoid accidental globbing in evaled expressions
6041 no_glob_subst='s/\*/\\\*/g'
6043 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6048 $as_echo_n "checking how to print strings... " >&6; }
6049 # Test print first, because it will be a builtin if present.
6050 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6051 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6053 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6056 # Use this function as a fallback that always works.
6057 func_fallback_echo ()
6059 eval 'cat <<_LTECHO_EOF
6063 ECHO='func_fallback_echo'
6066 # func_echo_all arg...
6067 # Invoke $ECHO with all args, space-separated.
6074 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6075 $as_echo "printf" >&6; } ;;
6076 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6077 $as_echo "print -r" >&6; } ;;
6078 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6079 $as_echo "cat" >&6; } ;;
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6096 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6097 if ${ac_cv_path_SED+:} false; then :
6098 $as_echo_n "(cached) " >&6
6100 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6101 for ac_i in 1 2 3 4 5 6 7; do
6102 ac_script="$ac_script$as_nl$ac_script"
6104 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6105 { ac_script=; unset ac_script;}
6106 if test -z "$SED"; then
6107 ac_path_SED_found=false
6108 # Loop through the user's path and test for each of PROGNAME-LIST
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_prog in sed gsed; do
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6117 as_fn_executable_p "$ac_path_SED" || continue
6118 # Check for GNU ac_path_SED and select it if it is found.
6119 # Check for GNU $ac_path_SED
6120 case `"$ac_path_SED" --version 2>&1` in
6122 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6125 $as_echo_n 0123456789 >"conftest.in"
6128 cat "conftest.in" "conftest.in" >"conftest.tmp"
6129 mv "conftest.tmp" "conftest.in"
6130 cp "conftest.in" "conftest.nl"
6131 $as_echo '' >> "conftest.nl"
6132 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134 as_fn_arith $ac_count + 1 && ac_count=$as_val
6135 if test $ac_count -gt ${ac_path_SED_max-0}; then
6136 # Best one so far, save it but keep looking for a better one
6137 ac_cv_path_SED="$ac_path_SED"
6138 ac_path_SED_max=$ac_count
6140 # 10*(2^10) chars as input seems more than enough
6141 test $ac_count -gt 10 && break
6143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146 $ac_path_SED_found && break 3
6151 if test -z "$ac_cv_path_SED"; then
6152 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6160 $as_echo "$ac_cv_path_SED" >&6; }
6161 SED="$ac_cv_path_SED"
6164 test -z "$SED" && SED=sed
6165 Xsed="$SED -e 1s/^X//"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6178 $as_echo_n "checking for fgrep... " >&6; }
6179 if ${ac_cv_path_FGREP+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6183 then ac_cv_path_FGREP="$GREP -F"
6185 if test -z "$FGREP"; then
6186 ac_path_FGREP_found=false
6187 # Loop through the user's path and test for each of PROGNAME-LIST
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6192 test -z "$as_dir" && as_dir=.
6193 for ac_prog in fgrep; do
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6196 as_fn_executable_p "$ac_path_FGREP" || continue
6197 # Check for GNU ac_path_FGREP and select it if it is found.
6198 # Check for GNU $ac_path_FGREP
6199 case `"$ac_path_FGREP" --version 2>&1` in
6201 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6204 $as_echo_n 0123456789 >"conftest.in"
6207 cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 mv "conftest.tmp" "conftest.in"
6209 cp "conftest.in" "conftest.nl"
6210 $as_echo 'FGREP' >> "conftest.nl"
6211 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6215 # Best one so far, save it but keep looking for a better one
6216 ac_cv_path_FGREP="$ac_path_FGREP"
6217 ac_path_FGREP_max=$ac_count
6219 # 10*(2^10) chars as input seems more than enough
6220 test $ac_count -gt 10 && break
6222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6225 $ac_path_FGREP_found && break 3
6230 if test -z "$ac_cv_path_FGREP"; then
6231 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6234 ac_cv_path_FGREP=$FGREP
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6240 $as_echo "$ac_cv_path_FGREP" >&6; }
6241 FGREP="$ac_cv_path_FGREP"
6244 test -z "$GREP" && GREP=grep
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6272 if test "$GCC" = yes; then
6273 # Check if gcc -print-prog-name=ld gives a path.
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6275 $as_echo_n "checking for ld used by $CC... " >&6; }
6278 # gcc leaves a trailing carriage return which upsets mingw
6279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6284 # Accept absolute paths.
6286 re_direlt='/[^/][^/]*/\.\./'
6287 # Canonicalize the pathname of ld
6288 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6289 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6290 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6292 test -z "$LD" && LD="$ac_prog"
6295 # If it fails, then pretend we aren't using GCC.
6299 # If it is relative, then search for the first ld in PATH.
6303 elif test "$with_gnu_ld" = yes; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6310 if ${lt_cv_path_LD+:} false; then :
6311 $as_echo_n "(cached) " >&6
6313 if test -z "$LD"; then
6314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6315 for ac_dir in $PATH; do
6317 test -z "$ac_dir" && ac_dir=.
6318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6319 lt_cv_path_LD="$ac_dir/$ac_prog"
6320 # Check to see if the program is GNU ld. I'd rather use --version,
6321 # but apparently some variants of GNU ld only accept -v.
6322 # Break only if it was the GNU/non-GNU ld that we prefer.
6323 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6324 *GNU* | *'with BFD'*)
6325 test "$with_gnu_ld" != no && break
6328 test "$with_gnu_ld" != yes && break
6335 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6340 if test -n "$LD"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6342 $as_echo "$LD" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6350 if ${lt_cv_prog_gnu_ld+:} false; then :
6351 $as_echo_n "(cached) " >&6
6353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6354 case `$LD -v 2>&1 </dev/null` in
6355 *GNU* | *'with BFD'*)
6356 lt_cv_prog_gnu_ld=yes
6359 lt_cv_prog_gnu_ld=no
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6365 with_gnu_ld=$lt_cv_prog_gnu_ld
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6377 if ${lt_cv_path_NM+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -n "$NM"; then
6381 # Let the user override the test.
6384 lt_nm_to_check="${ac_tool_prefix}nm"
6385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6386 lt_nm_to_check="$lt_nm_to_check nm"
6388 for lt_tmp_nm in $lt_nm_to_check; do
6389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6392 test -z "$ac_dir" && ac_dir=.
6393 tmp_nm="$ac_dir/$lt_tmp_nm"
6394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6395 # Check to see if the nm accepts a BSD-compat flag.
6396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6397 # nm: unknown option "B" ignored
6398 # Tru64's nm complains that /dev/null is an invalid object file
6399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6400 */dev/null* | *'Invalid file or object type'*)
6401 lt_cv_path_NM="$tmp_nm -B"
6405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6407 lt_cv_path_NM="$tmp_nm -p"
6411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6412 continue # so that we can try to find one that supports BSD flags
6421 : ${lt_cv_path_NM=no}
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6425 $as_echo "$lt_cv_path_NM" >&6; }
6426 if test "$lt_cv_path_NM" != "no"; then
6429 # Didn't find any BSD compatible name lister, look for dumpbin.
6430 if test -n "$DUMPBIN"; then :
6431 # Let the user override the test.
6433 if test -n "$ac_tool_prefix"; then
6434 for ac_prog in dumpbin "link -dump"
6436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_DUMPBIN+:} false; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$DUMPBIN"; then
6444 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 DUMPBIN=$ac_cv_prog_DUMPBIN
6464 if test -n "$DUMPBIN"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6466 $as_echo "$DUMPBIN" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6473 test -n "$DUMPBIN" && break
6476 if test -z "$DUMPBIN"; then
6477 ac_ct_DUMPBIN=$DUMPBIN
6478 for ac_prog in dumpbin "link -dump"
6480 # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$ac_ct_DUMPBIN"; then
6488 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6508 if test -n "$ac_ct_DUMPBIN"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6510 $as_echo "$ac_ct_DUMPBIN" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6517 test -n "$ac_ct_DUMPBIN" && break
6520 if test "x$ac_ct_DUMPBIN" = x; then
6523 case $cross_compiling:$ac_tool_warned in
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6529 DUMPBIN=$ac_ct_DUMPBIN
6533 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6535 DUMPBIN="$DUMPBIN -symbols"
6543 if test "$DUMPBIN" != ":"; then
6547 test -z "$NM" && NM=nm
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6555 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6556 if ${lt_cv_nm_interface+:} false; then :
6557 $as_echo_n "(cached) " >&6
6559 lt_cv_nm_interface="BSD nm"
6560 echo "int some_variable = 0;" > conftest.$ac_ext
6561 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6562 (eval "$ac_compile" 2>conftest.err)
6563 cat conftest.err >&5
6564 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6565 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6566 cat conftest.err >&5
6567 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6568 cat conftest.out >&5
6569 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6570 lt_cv_nm_interface="MS dumpbin"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6575 $as_echo "$lt_cv_nm_interface" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6578 $as_echo_n "checking whether ln -s works... " >&6; }
6580 if test "$LN_S" = "ln -s"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6585 $as_echo "no, using $LN_S" >&6; }
6588 # find the maximum length of command line arguments
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6590 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6591 if ${lt_cv_sys_max_cmd_len+:} false; then :
6592 $as_echo_n "(cached) " >&6
6599 # On DJGPP, this test can blow up pretty badly due to problems in libc
6600 # (any single argument exceeding 2000 bytes causes a buffer overrun
6601 # during glob expansion). Even if it were fixed, the result of this
6602 # check would be larger than it should be.
6603 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6607 # Under GNU Hurd, this test is not required because there is
6608 # no limit to the length of command line arguments.
6609 # Libtool will interpret -1 as no limit whatsoever
6610 lt_cv_sys_max_cmd_len=-1;
6613 cygwin* | mingw* | cegcc*)
6614 # On Win9x/ME, this test blows up -- it succeeds, but takes
6615 # about 5 minutes as the teststring grows exponentially.
6616 # Worse, since 9x/ME are not pre-emptively multitasking,
6617 # you end up with a "frozen" computer, even though with patience
6618 # the test eventually succeeds (with a max line length of 256k).
6619 # Instead, let's just punt: use the minimum linelength reported by
6620 # all of the supported platforms: 8192 (on NT/2K/XP).
6621 lt_cv_sys_max_cmd_len=8192;
6625 # On MiNT this can take a long time and run out of memory.
6626 lt_cv_sys_max_cmd_len=8192;
6630 # On AmigaOS with pdksh, this test takes hours, literally.
6631 # So we just punt and use a minimum line length of 8192.
6632 lt_cv_sys_max_cmd_len=8192;
6635 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6636 # This has been around since 386BSD, at least. Likely further.
6637 if test -x /sbin/sysctl; then
6638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6639 elif test -x /usr/sbin/sysctl; then
6640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6644 # And add a safety zone
6645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6650 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6651 lt_cv_sys_max_cmd_len=196608
6655 # The test takes a long time on OS/2.
6656 lt_cv_sys_max_cmd_len=8192
6660 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6661 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6662 # nice to cause kernel panics so lets avoid the loop below.
6663 # First set a reasonable default.
6664 lt_cv_sys_max_cmd_len=16384
6666 if test -x /sbin/sysconfig; then
6667 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6668 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6673 lt_cv_sys_max_cmd_len=102400
6675 sysv5* | sco5v6* | sysv4.2uw2*)
6676 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6677 if test -n "$kargmax"; then
6678 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6680 lt_cv_sys_max_cmd_len=32768
6684 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6685 if test -n "$lt_cv_sys_max_cmd_len"; then
6686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6689 # Make teststring a little bigger before we do anything with it.
6690 # a 1K string should be a reasonable start.
6691 for i in 1 2 3 4 5 6 7 8 ; do
6692 teststring=$teststring$teststring
6694 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6695 # If test is not a shell built-in, we'll probably end up computing a
6696 # maximum length that is only half of the actual maximum length, but
6698 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6699 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6700 test $i != 17 # 1/2 MB should be enough
6703 teststring=$teststring$teststring
6705 # Only check the string length outside the loop.
6706 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6708 # Add a significant safety factor because C++ compilers can tack on
6709 # massive amounts of additional arguments before passing them to the
6710 # linker. It appears as though 1/2 is a usable value.
6711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6718 if test -n $lt_cv_sys_max_cmd_len ; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6720 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6723 $as_echo "none" >&6; }
6725 max_cmd_len=$lt_cv_sys_max_cmd_len
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6737 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6738 # Try some XSI features
6741 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6743 && eval 'test $(( 1 + 1 )) -eq 2 \
6744 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6747 $as_echo "$xsi_shell" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6751 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6753 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6755 && lt_shell_append=yes
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6757 $as_echo "$lt_shell_append" >&6; }
6760 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6770 # test EBCDIC or ASCII
6771 case `echo X|tr X '\101'` in
6772 A) # ASCII based system
6773 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6774 lt_SP2NL='tr \040 \012'
6775 lt_NL2SP='tr \015\012 \040\040'
6777 *) # EBCDIC based system
6778 lt_SP2NL='tr \100 \n'
6779 lt_NL2SP='tr \r\n \100\100'
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6792 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6793 if ${lt_cv_to_host_file_cmd+:} false; then :
6794 $as_echo_n "(cached) " >&6
6799 *-*-mingw* ) # actually msys
6800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6803 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6805 * ) # otherwise, assume *nix
6806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6812 *-*-mingw* ) # actually msys
6813 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6816 lt_cv_to_host_file_cmd=func_convert_file_noop
6818 * ) # otherwise, assume *nix
6819 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6823 * ) # unhandled hosts (and "normal" native builds)
6824 lt_cv_to_host_file_cmd=func_convert_file_noop
6830 to_host_file_cmd=$lt_cv_to_host_file_cmd
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6832 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6839 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6840 if ${lt_cv_to_tool_file_cmd+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 #assume ordinary cross tools, or native build.
6844 lt_cv_to_tool_file_cmd=func_convert_file_noop
6848 *-*-mingw* ) # actually msys
6849 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6857 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6859 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6866 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6867 if ${lt_cv_ld_reload_flag+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 lt_cv_ld_reload_flag='-r'
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6873 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6874 reload_flag=$lt_cv_ld_reload_flag
6875 case $reload_flag in
6877 *) reload_flag=" $reload_flag" ;;
6879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6881 cygwin* | mingw* | pw32* | cegcc*)
6882 if test "$GCC" != yes; then
6887 if test "$GCC" = yes; then
6888 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_OBJDUMP+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 if test -n "$OBJDUMP"; then
6912 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 OBJDUMP=$ac_cv_prog_OBJDUMP
6932 if test -n "$OBJDUMP"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6934 $as_echo "$OBJDUMP" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6942 if test -z "$ac_cv_prog_OBJDUMP"; then
6943 ac_ct_OBJDUMP=$OBJDUMP
6944 # Extract the first word of "objdump", so it can be a program name with args.
6945 set dummy objdump; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 if test -n "$ac_ct_OBJDUMP"; then
6952 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6972 if test -n "$ac_ct_OBJDUMP"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6974 $as_echo "$ac_ct_OBJDUMP" >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6980 if test "x$ac_ct_OBJDUMP" = x; then
6983 case $cross_compiling:$ac_tool_warned in
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6989 OBJDUMP=$ac_ct_OBJDUMP
6992 OBJDUMP="$ac_cv_prog_OBJDUMP"
6995 test -z "$OBJDUMP" && OBJDUMP=objdump
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7004 if ${lt_cv_deplibs_check_method+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 lt_cv_file_magic_cmd='$MAGIC_CMD'
7008 lt_cv_file_magic_test_file=
7009 lt_cv_deplibs_check_method='unknown'
7010 # Need to set the preceding variable on all platforms that support
7011 # interlibrary dependencies.
7012 # 'none' -- dependencies not supported.
7013 # `unknown' -- same as none, but documents that we really don't know.
7014 # 'pass_all' -- all dependencies passed with no checks.
7015 # 'test_compile' -- check by making test program.
7016 # 'file_magic [[regex]]' -- check by looking for files in library path
7017 # which responds to the $file_magic_cmd with a given extended regex.
7018 # If you have `file' or equivalent on your system and you're not sure
7019 # whether `pass_all' will *always* work, you probably want this one.
7023 lt_cv_deplibs_check_method=pass_all
7027 lt_cv_deplibs_check_method=pass_all
7031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7032 lt_cv_file_magic_cmd='/usr/bin/file -L'
7033 lt_cv_file_magic_test_file=/shlib/libc.so
7037 # func_win32_libid is a shell function defined in ltmain.sh
7038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039 lt_cv_file_magic_cmd='func_win32_libid'
7043 # Base MSYS/MinGW do not provide the 'file' command needed by
7044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7045 # unless we find 'file', for example because we are cross-compiling.
7046 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7047 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049 lt_cv_file_magic_cmd='func_win32_libid'
7051 # Keep this pattern in sync with the one in func_win32_libid.
7052 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7053 lt_cv_file_magic_cmd='$OBJDUMP -f'
7058 # use the weaker test based on 'objdump'. See mingw*.
7059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7060 lt_cv_file_magic_cmd='$OBJDUMP -f'
7063 darwin* | rhapsody*)
7064 lt_cv_deplibs_check_method=pass_all
7067 freebsd* | dragonfly*)
7068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7071 # Not sure whether the presence of OpenBSD here was a mistake.
7072 # Let's accept both of them until this is cleared up.
7073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7074 lt_cv_file_magic_cmd=/usr/bin/file
7075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7079 lt_cv_deplibs_check_method=pass_all
7084 lt_cv_deplibs_check_method=pass_all
7088 lt_cv_deplibs_check_method=pass_all
7091 hpux10.20* | hpux11*)
7092 lt_cv_file_magic_cmd=/usr/bin/file
7095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7099 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]'
7100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7103 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7114 irix5* | irix6* | nonstopux*)
7116 *-32|*"-32 ") libmagic=32-bit;;
7117 *-n32|*"-n32 ") libmagic=N32;;
7118 *-64|*"-64 ") libmagic=64-bit;;
7119 *) libmagic=never-match;;
7121 lt_cv_deplibs_check_method=pass_all
7124 # This must be glibc/ELF.
7125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7126 lt_cv_deplibs_check_method=pass_all
7129 netbsd* | netbsdelf*-gnu)
7130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7139 lt_cv_file_magic_cmd=/usr/bin/file
7140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7144 lt_cv_deplibs_check_method=pass_all
7148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7155 osf3* | osf4* | osf5*)
7156 lt_cv_deplibs_check_method=pass_all
7160 lt_cv_deplibs_check_method=pass_all
7164 lt_cv_deplibs_check_method=pass_all
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7168 lt_cv_deplibs_check_method=pass_all
7172 case $host_vendor in
7174 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]'
7175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7178 lt_cv_deplibs_check_method=pass_all
7181 lt_cv_file_magic_cmd='/bin/file'
7182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7185 lt_cv_file_magic_cmd='/bin/file'
7186 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7187 lt_cv_file_magic_test_file=/lib/libc.so
7190 lt_cv_deplibs_check_method=pass_all
7193 lt_cv_deplibs_check_method=pass_all
7199 lt_cv_deplibs_check_method=pass_all
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7205 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7209 if test "$build" = "$host"; then
7212 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7215 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7221 file_magic_cmd=$lt_cv_file_magic_cmd
7222 deplibs_check_method=$lt_cv_deplibs_check_method
7223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_DLLTOOL+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$DLLTOOL"; then
7255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 DLLTOOL=$ac_cv_prog_DLLTOOL
7275 if test -n "$DLLTOOL"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7277 $as_echo "$DLLTOOL" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7285 if test -z "$ac_cv_prog_DLLTOOL"; then
7286 ac_ct_DLLTOOL=$DLLTOOL
7287 # Extract the first word of "dlltool", so it can be a program name with args.
7288 set dummy dlltool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$ac_ct_DLLTOOL"; then
7295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7315 if test -n "$ac_ct_DLLTOOL"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7317 $as_echo "$ac_ct_DLLTOOL" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7323 if test "x$ac_ct_DLLTOOL" = x; then
7326 case $cross_compiling:$ac_tool_warned in
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7332 DLLTOOL=$ac_ct_DLLTOOL
7335 DLLTOOL="$ac_cv_prog_DLLTOOL"
7338 test -z "$DLLTOOL" && DLLTOOL=dlltool
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7347 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7348 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7349 $as_echo_n "(cached) " >&6
7351 lt_cv_sharedlib_from_linklib_cmd='unknown'
7354 cygwin* | mingw* | pw32* | cegcc*)
7355 # two different shell functions defined in ltmain.sh
7356 # decide which to use based on capabilities of $DLLTOOL
7357 case `$DLLTOOL --help 2>&1` in
7358 *--identify-strict*)
7359 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7362 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7367 # fallback: assume linklib IS sharedlib
7368 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7374 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7375 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7376 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7384 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_AR+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$AR"; then
7395 ac_cv_prog_AR="$AR" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 if test -n "$AR"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7417 $as_echo "$AR" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7424 test -n "$AR" && break
7427 if test -z "$AR"; then
7431 # Extract the first word of "$ac_prog", so it can be a program name with args.
7432 set dummy $ac_prog; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7436 $as_echo_n "(cached) " >&6
7438 if test -n "$ac_ct_AR"; then
7439 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_ac_ct_AR="$ac_prog"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7459 if test -n "$ac_ct_AR"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7461 $as_echo "$ac_ct_AR" >&6; }
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7468 test -n "$ac_ct_AR" && break
7471 if test "x$ac_ct_AR" = x; then
7474 case $cross_compiling:$ac_tool_warned in
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7498 $as_echo_n "checking for archiver @FILE support... " >&6; }
7499 if ${lt_cv_ar_at_file+:} false; then :
7500 $as_echo_n "(cached) " >&6
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 echo conftest.$ac_objext > conftest.lst
7516 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7518 (eval $lt_ar_try) 2>&5
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521 test $ac_status = 0; }
7522 if test "$ac_status" -eq 0; then
7523 # Ensure the archiver fails upon bogus file names.
7524 rm -f conftest.$ac_objext libconftest.a
7525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7526 (eval $lt_ar_try) 2>&5
7528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529 test $ac_status = 0; }
7530 if test "$ac_status" -ne 0; then
7534 rm -f conftest.* libconftest.a
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7541 $as_echo "$lt_cv_ar_at_file" >&6; }
7543 if test "x$lt_cv_ar_at_file" = xno; then
7546 archiver_list_spec=$lt_cv_ar_at_file
7555 if test -n "$ac_tool_prefix"; then
7556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}strip; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_STRIP+:} false; then :
7561 $as_echo_n "(cached) " >&6
7563 if test -n "$STRIP"; then
7564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 STRIP=$ac_cv_prog_STRIP
7584 if test -n "$STRIP"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7586 $as_echo "$STRIP" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7594 if test -z "$ac_cv_prog_STRIP"; then
7596 # Extract the first word of "strip", so it can be a program name with args.
7597 set dummy strip; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$ac_ct_STRIP"; then
7604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_ac_ct_STRIP="strip"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7624 if test -n "$ac_ct_STRIP"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7626 $as_echo "$ac_ct_STRIP" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 if test "x$ac_ct_STRIP" = x; then
7635 case $cross_compiling:$ac_tool_warned in
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7644 STRIP="$ac_cv_prog_STRIP"
7647 test -z "$STRIP" && STRIP=:
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_RANLIB+:} false; then :
7660 $as_echo_n "(cached) " >&6
7662 if test -n "$RANLIB"; then
7663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 RANLIB=$ac_cv_prog_RANLIB
7683 if test -n "$RANLIB"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7685 $as_echo "$RANLIB" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7693 if test -z "$ac_cv_prog_RANLIB"; then
7694 ac_ct_RANLIB=$RANLIB
7695 # Extract the first word of "ranlib", so it can be a program name with args.
7696 set dummy ranlib; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$ac_ct_RANLIB"; then
7703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_ac_ct_RANLIB="ranlib"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7723 if test -n "$ac_ct_RANLIB"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7725 $as_echo "$ac_ct_RANLIB" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7731 if test "x$ac_ct_RANLIB" = x; then
7734 case $cross_compiling:$ac_tool_warned in
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7740 RANLIB=$ac_ct_RANLIB
7743 RANLIB="$ac_cv_prog_RANLIB"
7746 test -z "$RANLIB" && RANLIB=:
7753 # Determine commands to create old-style static archives.
7754 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7755 old_postinstall_cmds='chmod 644 $oldlib'
7756 old_postuninstall_cmds=
7758 if test -n "$RANLIB"; then
7761 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7767 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7772 lock_old_archive_extraction=yes ;;
7774 lock_old_archive_extraction=no ;;
7815 # If no C compiler was specified, use CC.
7818 # If no C compiler flags were specified, use CFLAGS.
7819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7821 # Allow CC to be a program name with arguments.
7825 # Check for command to grab the raw symbol name followed by C symbol from nm.
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7827 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7828 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7829 $as_echo_n "(cached) " >&6
7832 # These are sane defaults that work on at least a few old systems.
7833 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7835 # Character class describing NM global symbol codes.
7836 symcode='[BCDEGRST]'
7838 # Regexp to match symbols that can be accessed directly from C.
7839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7841 # Define system-specific variables.
7846 cygwin* | mingw* | pw32* | cegcc*)
7847 symcode='[ABCDGISTW]'
7850 if test "$host_cpu" = ia64; then
7851 symcode='[ABCDEGRST]'
7855 symcode='[BCDEGRST]'
7858 symcode='[BCDEGQRST]'
7869 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7877 # If we're using GNU nm, then use its standard symbol codes.
7878 case `$NM -V 2>&1` in
7879 *GNU* | *'with BFD'*)
7880 symcode='[ABCDGIRSTW]' ;;
7883 # Transform an extracted symbol line into a proper C declaration.
7884 # Some systems (esp. on ia64) link data and code symbols differently,
7885 # so use this general approach.
7886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7888 # Transform an extracted symbol line into symbol name and symbol address
7889 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7890 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'"
7892 # Handle CRLF in mingw tool chain
7896 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7900 # Try without a prefix underscore, then with it.
7901 for ac_symprfx in "" "_"; do
7903 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7904 symxfrm="\\1 $ac_symprfx\\2 \\2"
7906 # Write the raw and C identifiers.
7907 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7908 # Fake it for dumpbin and say T for any non-static function
7909 # and D for any global variable.
7910 # Also find C++ and __fastcall symbols from MSVC++,
7911 # which start with @ or ?.
7912 lt_cv_sys_global_symbol_pipe="$AWK '"\
7913 " {last_section=section; section=\$ 3};"\
7914 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7915 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7916 " \$ 0!~/External *\|/{next};"\
7917 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7918 " {if(hide[section]) next};"\
7919 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7920 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7921 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7922 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7923 " ' prfx=^$ac_symprfx"
7925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7927 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7929 # Check to see that the pipe works correctly.
7933 cat > conftest.$ac_ext <<_LT_EOF
7938 void nm_test_func(void);
7939 void nm_test_func(void){}
7943 int main(){nm_test_var='a';nm_test_func();return(0);}
7946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7947 (eval $ac_compile) 2>&5
7949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950 test $ac_status = 0; }; then
7951 # Now try to grab the symbols.
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7954 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; } && test -s "$nlist"; then
7958 # Try sorting and uniquifying the output.
7959 if sort "$nlist" | uniq > "$nlist"T; then
7960 mv -f "$nlist"T "$nlist"
7965 # Make sure that we snagged all the symbols we need.
7966 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7967 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7968 cat <<_LT_EOF > conftest.$ac_ext
7969 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7970 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7971 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7972 relocations are performed -- see ld's documentation on pseudo-relocs. */
7973 # define LT_DLSYM_CONST
7974 #elif defined(__osf__)
7975 /* This system does not cope well with relocations in const data. */
7976 # define LT_DLSYM_CONST
7978 # define LT_DLSYM_CONST const
7986 # Now generate the symbol file.
7987 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7989 cat <<_LT_EOF >> conftest.$ac_ext
7991 /* The mapping between symbol names and symbols. */
7992 LT_DLSYM_CONST struct {
7996 lt__PROGRAM__LTX_preloaded_symbols[] =
7998 { "@PROGRAM@", (void *) 0 },
8000 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8001 cat <<\_LT_EOF >> conftest.$ac_ext
8005 /* This works around a problem in FreeBSD linker */
8006 #ifdef FREEBSD_WORKAROUND
8007 static const void *lt_preloaded_setup() {
8008 return lt__PROGRAM__LTX_preloaded_symbols;
8016 # Now try linking the two files.
8017 mv conftest.$ac_objext conftstm.$ac_objext
8018 lt_globsym_save_LIBS=$LIBS
8019 lt_globsym_save_CFLAGS=$CFLAGS
8020 LIBS="conftstm.$ac_objext"
8021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8023 (eval $ac_link) 2>&5
8025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8029 LIBS=$lt_globsym_save_LIBS
8030 CFLAGS=$lt_globsym_save_CFLAGS
8032 echo "cannot find nm_test_func in $nlist" >&5
8035 echo "cannot find nm_test_var in $nlist" >&5
8038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8041 echo "$progname: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 rm -rf conftest* conftst*
8046 # Do not use the global_symbol_pipe unless it works.
8047 if test "$pipe_works" = yes; then
8050 lt_cv_sys_global_symbol_pipe=
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057 lt_cv_sys_global_symbol_to_cdecl=
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8061 $as_echo "failed" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8064 $as_echo "ok" >&6; }
8067 # Response file support.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8069 nm_file_list_spec='@'
8070 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8071 nm_file_list_spec='@'
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8101 $as_echo_n "checking for sysroot... " >&6; }
8103 # Check whether --with-sysroot was given.
8104 if test "${with_sysroot+set}" = set; then :
8105 withval=$with_sysroot;
8112 case ${with_sysroot} in #(
8114 if test "$GCC" = yes; then
8115 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8119 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8125 $as_echo "${with_sysroot}" >&6; }
8126 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8131 $as_echo "${lt_sysroot:-no}" >&6; }
8137 # Check whether --enable-libtool-lock was given.
8138 if test "${enable_libtool_lock+set}" = set; then :
8139 enableval=$enable_libtool_lock;
8142 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8144 # Some flags need to be propagated to the compiler or linker for good
8148 # Find out which ABI we are using.
8149 echo 'int i;' > conftest.$ac_ext
8150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151 (eval $ac_compile) 2>&5
8153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154 test $ac_status = 0; }; then
8155 case `/usr/bin/file conftest.$ac_objext` in
8167 # Find out which ABI we are using.
8168 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8170 (eval $ac_compile) 2>&5
8172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8173 test $ac_status = 0; }; then
8174 if test "$lt_cv_prog_gnu_ld" = yes; then
8175 case `/usr/bin/file conftest.$ac_objext` in
8177 LD="${LD-ld} -melf32bsmip"
8180 LD="${LD-ld} -melf32bmipn32"
8183 LD="${LD-ld} -melf64bmip"
8187 case `/usr/bin/file conftest.$ac_objext` in
8203 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8204 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8205 # Find out which ABI we are using.
8206 echo 'int i;' > conftest.$ac_ext
8207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208 (eval $ac_compile) 2>&5
8210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211 test $ac_status = 0; }; then
8212 case `/usr/bin/file conftest.o` in
8215 x86_64-*kfreebsd*-gnu)
8216 LD="${LD-ld} -m elf_i386_fbsd"
8219 LD="${LD-ld} -m elf_i386"
8221 ppc64-*linux*|powerpc64-*linux*)
8222 LD="${LD-ld} -m elf32ppclinux"
8225 LD="${LD-ld} -m elf_s390"
8228 LD="${LD-ld} -m elf32_sparc"
8234 x86_64-*kfreebsd*-gnu)
8235 LD="${LD-ld} -m elf_x86_64_fbsd"
8238 LD="${LD-ld} -m elf_x86_64"
8240 ppc*-*linux*|powerpc*-*linux*)
8241 LD="${LD-ld} -m elf64ppc"
8243 s390*-*linux*|s390*-*tpf*)
8244 LD="${LD-ld} -m elf64_s390"
8247 LD="${LD-ld} -m elf64_sparc"
8257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258 SAVE_CFLAGS="$CFLAGS"
8259 CFLAGS="$CFLAGS -belf"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8262 if ${lt_cv_cc_needs_belf+:} false; then :
8263 $as_echo_n "(cached) " >&6
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 lt_cv_cc_needs_belf=yes
8285 lt_cv_cc_needs_belf=no
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8290 ac_cpp='$CPP $CPPFLAGS'
8291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8298 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300 CFLAGS="$SAVE_CFLAGS"
8304 # Find out which ABI we are using.
8305 echo 'int i;' > conftest.$ac_ext
8306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307 (eval $ac_compile) 2>&5
8309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310 test $ac_status = 0; }; then
8311 case `/usr/bin/file conftest.o` in
8313 case $lt_cv_prog_gnu_ld in
8317 LD="${LD-ld} -m elf_x86_64"
8320 LD="${LD-ld} -m elf64_sparc"
8323 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8324 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8329 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8341 need_locks="$enable_libtool_lock"
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}mt; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8349 $as_echo_n "(cached) " >&6
8351 if test -n "$MANIFEST_TOOL"; then
8352 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8372 if test -n "$MANIFEST_TOOL"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8374 $as_echo "$MANIFEST_TOOL" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8382 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8383 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8384 # Extract the first word of "mt", so it can be a program name with args.
8385 set dummy mt; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8389 $as_echo_n "(cached) " >&6
8391 if test -n "$ac_ct_MANIFEST_TOOL"; then
8392 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8412 if test -n "$ac_ct_MANIFEST_TOOL"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8414 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8420 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8423 case $cross_compiling:$ac_tool_warned in
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8429 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8432 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8435 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8437 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8438 if ${lt_cv_path_mainfest_tool+:} false; then :
8439 $as_echo_n "(cached) " >&6
8441 lt_cv_path_mainfest_tool=no
8442 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8443 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8444 cat conftest.err >&5
8445 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8446 lt_cv_path_mainfest_tool=yes
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8451 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8452 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8462 rhapsody* | darwin*)
8463 if test -n "$ac_tool_prefix"; then
8464 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 if test -n "$DSYMUTIL"; then
8472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8492 if test -n "$DSYMUTIL"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8494 $as_echo "$DSYMUTIL" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8502 if test -z "$ac_cv_prog_DSYMUTIL"; then
8503 ac_ct_DSYMUTIL=$DSYMUTIL
8504 # Extract the first word of "dsymutil", so it can be a program name with args.
8505 set dummy dsymutil; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8509 $as_echo_n "(cached) " >&6
8511 if test -n "$ac_ct_DSYMUTIL"; then
8512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8532 if test -n "$ac_ct_DSYMUTIL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8540 if test "x$ac_ct_DSYMUTIL" = x; then
8543 case $cross_compiling:$ac_tool_warned in
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8549 DSYMUTIL=$ac_ct_DSYMUTIL
8552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8555 if test -n "$ac_tool_prefix"; then
8556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_NMEDIT+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 if test -n "$NMEDIT"; then
8564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 NMEDIT=$ac_cv_prog_NMEDIT
8584 if test -n "$NMEDIT"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8586 $as_echo "$NMEDIT" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8594 if test -z "$ac_cv_prog_NMEDIT"; then
8595 ac_ct_NMEDIT=$NMEDIT
8596 # Extract the first word of "nmedit", so it can be a program name with args.
8597 set dummy nmedit; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8601 $as_echo_n "(cached) " >&6
8603 if test -n "$ac_ct_NMEDIT"; then
8604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8624 if test -n "$ac_ct_NMEDIT"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8626 $as_echo "$ac_ct_NMEDIT" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8632 if test "x$ac_ct_NMEDIT" = x; then
8635 case $cross_compiling:$ac_tool_warned in
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8639 ac_tool_warned=yes ;;
8641 NMEDIT=$ac_ct_NMEDIT
8644 NMEDIT="$ac_cv_prog_NMEDIT"
8647 if test -n "$ac_tool_prefix"; then
8648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_LIPO+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 if test -n "$LIPO"; then
8656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 LIPO=$ac_cv_prog_LIPO
8676 if test -n "$LIPO"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8678 $as_echo "$LIPO" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8686 if test -z "$ac_cv_prog_LIPO"; then
8688 # Extract the first word of "lipo", so it can be a program name with args.
8689 set dummy lipo; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8693 $as_echo_n "(cached) " >&6
8695 if test -n "$ac_ct_LIPO"; then
8696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705 ac_cv_prog_ac_ct_LIPO="lipo"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8716 if test -n "$ac_ct_LIPO"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8718 $as_echo "$ac_ct_LIPO" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8724 if test "x$ac_ct_LIPO" = x; then
8727 case $cross_compiling:$ac_tool_warned in
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8736 LIPO="$ac_cv_prog_LIPO"
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}otool; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_OTOOL+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 if test -n "$OTOOL"; then
8748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 OTOOL=$ac_cv_prog_OTOOL
8768 if test -n "$OTOOL"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8770 $as_echo "$OTOOL" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8778 if test -z "$ac_cv_prog_OTOOL"; then
8780 # Extract the first word of "otool", so it can be a program name with args.
8781 set dummy otool; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8785 $as_echo_n "(cached) " >&6
8787 if test -n "$ac_ct_OTOOL"; then
8788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_ac_ct_OTOOL="otool"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8808 if test -n "$ac_ct_OTOOL"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8810 $as_echo "$ac_ct_OTOOL" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8816 if test "x$ac_ct_OTOOL" = x; then
8819 case $cross_compiling:$ac_tool_warned in
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823 ac_tool_warned=yes ;;
8828 OTOOL="$ac_cv_prog_OTOOL"
8831 if test -n "$ac_tool_prefix"; then
8832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_prog_OTOOL64+:} false; then :
8837 $as_echo_n "(cached) " >&6
8839 if test -n "$OTOOL64"; then
8840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 OTOOL64=$ac_cv_prog_OTOOL64
8860 if test -n "$OTOOL64"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8862 $as_echo "$OTOOL64" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8870 if test -z "$ac_cv_prog_OTOOL64"; then
8871 ac_ct_OTOOL64=$OTOOL64
8872 # Extract the first word of "otool64", so it can be a program name with args.
8873 set dummy otool64; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8877 $as_echo_n "(cached) " >&6
8879 if test -n "$ac_ct_OTOOL64"; then
8880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_prog_ac_ct_OTOOL64="otool64"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8900 if test -n "$ac_ct_OTOOL64"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8902 $as_echo "$ac_ct_OTOOL64" >&6; }
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8908 if test "x$ac_ct_OTOOL64" = x; then
8911 case $cross_compiling:$ac_tool_warned in
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915 ac_tool_warned=yes ;;
8917 OTOOL64=$ac_ct_OTOOL64
8920 OTOOL64="$ac_cv_prog_OTOOL64"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8950 $as_echo_n "checking for -single_module linker flag... " >&6; }
8951 if ${lt_cv_apple_cc_single_mod+:} false; then :
8952 $as_echo_n "(cached) " >&6
8954 lt_cv_apple_cc_single_mod=no
8955 if test -z "${LT_MULTI_MODULE}"; then
8956 # By default we will add the -single_module flag. You can override
8957 # by either setting the environment variable LT_MULTI_MODULE
8958 # non-empty at configure time, or by adding -multi_module to the
8960 rm -rf libconftest.dylib*
8961 echo "int foo(void){return 1;}" > conftest.c
8962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963 -dynamiclib -Wl,-single_module conftest.c" >&5
8964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8967 # If there is a non-empty error log, and "single_module"
8968 # appears in it, assume the flag caused a linker warning
8969 if test -s conftest.err && $GREP single_module conftest.err; then
8970 cat conftest.err >&5
8971 # Otherwise, if the output was created with a 0 exit code from
8972 # the compiler, it worked.
8973 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8974 lt_cv_apple_cc_single_mod=yes
8976 cat conftest.err >&5
8978 rm -rf libconftest.dylib*
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8983 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8986 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8987 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 lt_cv_ld_exported_symbols_list=no
8991 save_LDFLAGS=$LDFLAGS
8992 echo "_main" > conftest.sym
8993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
9005 if ac_fn_c_try_link "$LINENO"; then :
9006 lt_cv_ld_exported_symbols_list=yes
9008 lt_cv_ld_exported_symbols_list=no
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LDFLAGS="$save_LDFLAGS"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9019 $as_echo_n "checking for -force_load linker flag... " >&6; }
9020 if ${lt_cv_ld_force_load+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 lt_cv_ld_force_load=no
9024 cat > conftest.c << _LT_EOF
9025 int forced_loaded() { return 2;}
9027 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9028 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9029 echo "$AR cru libconftest.a conftest.o" >&5
9030 $AR cru libconftest.a conftest.o 2>&5
9031 echo "$RANLIB libconftest.a" >&5
9032 $RANLIB libconftest.a 2>&5
9033 cat > conftest.c << _LT_EOF
9034 int main() { return 0;}
9036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9039 if test -s conftest.err && $GREP force_load conftest.err; then
9040 cat conftest.err >&5
9041 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9042 lt_cv_ld_force_load=yes
9044 cat conftest.err >&5
9046 rm -f conftest.err libconftest.a conftest conftest.c
9047 rm -rf conftest.dSYM
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9051 $as_echo "$lt_cv_ld_force_load" >&6; }
9053 rhapsody* | darwin1.[012])
9054 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9057 darwin*) # darwin 5.x on
9058 # if running on 10.5 or later, the deployment target defaults
9059 # to the OS version, if on x86, and 10.4, the deployment
9060 # target defaults to 10.4. Don't you love it?
9061 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9062 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9063 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9065 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9071 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9072 _lt_dar_single_mod='$single_module'
9074 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9075 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9079 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9080 _lt_dsymutil='~$DSYMUTIL $lib || :'
9087 for ac_header in dlfcn.h
9089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9091 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define HAVE_DLFCN_H 1
9103 func_stripname_cnf ()
9106 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9107 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9109 } # func_stripname_cnf
9116 enable_win32_dll=yes
9119 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9120 if test -n "$ac_tool_prefix"; then
9121 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9122 set dummy ${ac_tool_prefix}as; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_prog_AS+:} false; then :
9126 $as_echo_n "(cached) " >&6
9128 if test -n "$AS"; then
9129 ac_cv_prog_AS="$AS" # Let the user override the test.
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138 ac_cv_prog_AS="${ac_tool_prefix}as"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 if test -n "$AS"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9151 $as_echo "$AS" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9159 if test -z "$ac_cv_prog_AS"; then
9161 # Extract the first word of "as", so it can be a program name with args.
9162 set dummy as; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9166 $as_echo_n "(cached) " >&6
9168 if test -n "$ac_ct_AS"; then
9169 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 test -z "$as_dir" && as_dir=.
9176 for ac_exec_ext in '' $ac_executable_extensions; do
9177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9178 ac_cv_prog_ac_ct_AS="as"
9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9189 if test -n "$ac_ct_AS"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9191 $as_echo "$ac_ct_AS" >&6; }
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9197 if test "x$ac_ct_AS" = x; then
9200 case $cross_compiling:$ac_tool_warned in
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9204 ac_tool_warned=yes ;;
9212 if test -n "$ac_tool_prefix"; then
9213 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9214 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_prog_DLLTOOL+:} false; then :
9218 $as_echo_n "(cached) " >&6
9220 if test -n "$DLLTOOL"; then
9221 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9230 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 DLLTOOL=$ac_cv_prog_DLLTOOL
9241 if test -n "$DLLTOOL"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9243 $as_echo "$DLLTOOL" >&6; }
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9251 if test -z "$ac_cv_prog_DLLTOOL"; then
9252 ac_ct_DLLTOOL=$DLLTOOL
9253 # Extract the first word of "dlltool", so it can be a program name with args.
9254 set dummy dlltool; ac_word=$2
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 $as_echo_n "checking for $ac_word... " >&6; }
9257 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9258 $as_echo_n "(cached) " >&6
9260 if test -n "$ac_ct_DLLTOOL"; then
9261 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267 test -z "$as_dir" && as_dir=.
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9270 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9281 if test -n "$ac_ct_DLLTOOL"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9283 $as_echo "$ac_ct_DLLTOOL" >&6; }
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9289 if test "x$ac_ct_DLLTOOL" = x; then
9292 case $cross_compiling:$ac_tool_warned in
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296 ac_tool_warned=yes ;;
9298 DLLTOOL=$ac_ct_DLLTOOL
9301 DLLTOOL="$ac_cv_prog_DLLTOOL"
9304 if test -n "$ac_tool_prefix"; then
9305 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9306 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308 $as_echo_n "checking for $ac_word... " >&6; }
9309 if ${ac_cv_prog_OBJDUMP+:} false; then :
9310 $as_echo_n "(cached) " >&6
9312 if test -n "$OBJDUMP"; then
9313 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 OBJDUMP=$ac_cv_prog_OBJDUMP
9333 if test -n "$OBJDUMP"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9335 $as_echo "$OBJDUMP" >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9343 if test -z "$ac_cv_prog_OBJDUMP"; then
9344 ac_ct_OBJDUMP=$OBJDUMP
9345 # Extract the first word of "objdump", so it can be a program name with args.
9346 set dummy objdump; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9350 $as_echo_n "(cached) " >&6
9352 if test -n "$ac_ct_OBJDUMP"; then
9353 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9373 if test -n "$ac_ct_OBJDUMP"; then
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9375 $as_echo "$ac_ct_OBJDUMP" >&6; }
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9381 if test "x$ac_ct_OBJDUMP" = x; then
9384 case $cross_compiling:$ac_tool_warned in
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9388 ac_tool_warned=yes ;;
9390 OBJDUMP=$ac_ct_OBJDUMP
9393 OBJDUMP="$ac_cv_prog_OBJDUMP"
9399 test -z "$AS" && AS=as
9405 test -z "$DLLTOOL" && DLLTOOL=dlltool
9411 test -z "$OBJDUMP" && OBJDUMP=objdump
9416 # Check whether --enable-static was given.
9417 if test "${enable_static+set}" = set; then :
9418 enableval=$enable_static; p=${PACKAGE-default}
9420 yes) enable_static=yes ;;
9421 no) enable_static=no ;;
9424 # Look at the argument we got. We use all the common list separators.
9425 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9426 for pkg in $enableval; do
9428 if test "X$pkg" = "X$p"; then
9452 # Check whether --enable-shared was given.
9453 if test "${enable_shared+set}" = set; then :
9454 enableval=$enable_shared; p=${PACKAGE-default}
9456 yes) enable_shared=yes ;;
9457 no) enable_shared=no ;;
9460 # Look at the argument we got. We use all the common list separators.
9461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9462 for pkg in $enableval; do
9464 if test "X$pkg" = "X$p"; then
9485 # Check whether --with-pic was given.
9486 if test "${with_pic+set}" = set; then :
9487 withval=$with_pic; lt_p=${PACKAGE-default}
9489 yes|no) pic_mode=$withval ;;
9492 # Look at the argument we got. We use all the common list separators.
9493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9494 for lt_pkg in $withval; do
9496 if test "X$lt_pkg" = "X$lt_p"; then
9508 test -z "$pic_mode" && pic_mode=default
9516 # Check whether --enable-fast-install was given.
9517 if test "${enable_fast_install+set}" = set; then :
9518 enableval=$enable_fast_install; p=${PACKAGE-default}
9520 yes) enable_fast_install=yes ;;
9521 no) enable_fast_install=no ;;
9523 enable_fast_install=no
9524 # Look at the argument we got. We use all the common list separators.
9525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9526 for pkg in $enableval; do
9528 if test "X$pkg" = "X$p"; then
9529 enable_fast_install=yes
9536 enable_fast_install=yes
9549 # This can be used to rebuild libtool when needed
9550 LIBTOOL_DEPS="$ltmain"
9552 # Always use our own libtool.
9553 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9584 test -z "$LN_S" && LN_S="ln -s"
9599 if test -n "${ZSH_VERSION+set}" ; then
9600 setopt NO_GLOB_SUBST
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9604 $as_echo_n "checking for objdir... " >&6; }
9605 if ${lt_cv_objdir+:} false; then :
9606 $as_echo_n "(cached) " >&6
9608 rm -f .libs 2>/dev/null
9609 mkdir .libs 2>/dev/null
9610 if test -d .libs; then
9613 # MS-DOS does not allow filenames that begin with a dot.
9616 rmdir .libs 2>/dev/null
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9619 $as_echo "$lt_cv_objdir" >&6; }
9620 objdir=$lt_cv_objdir
9626 cat >>confdefs.h <<_ACEOF
9627 #define LT_OBJDIR "$lt_cv_objdir/"
9635 # AIX sometimes has problems with the GCC collect2 program. For some
9636 # reason, if we set the COLLECT_NAMES environment variable, the problems
9637 # vanish in a puff of smoke.
9638 if test "X${COLLECT_NAMES+set}" != Xset; then
9640 export COLLECT_NAMES
9647 can_build_shared=yes
9649 # All known linkers require a `.a' archive for static linking (except MSVC,
9650 # which needs '.lib').
9653 with_gnu_ld="$lt_cv_prog_gnu_ld"
9656 old_CFLAGS="$CFLAGS"
9658 # Set sane defaults for various variables
9659 test -z "$CC" && CC=cc
9660 test -z "$LTCC" && LTCC=$CC
9661 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9662 test -z "$LD" && LD=ld
9663 test -z "$ac_objext" && ac_objext=o
9665 for cc_temp in $compiler""; do
9667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9673 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9676 # Only perform the check for file, if the check method requires it
9677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9678 case $deplibs_check_method in
9680 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9682 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9683 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9684 $as_echo_n "(cached) " >&6
9688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9691 lt_save_MAGIC_CMD="$MAGIC_CMD"
9692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9694 for ac_dir in $ac_dummy; do
9696 test -z "$ac_dir" && ac_dir=.
9697 if test -f $ac_dir/${ac_tool_prefix}file; then
9698 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9699 if test -n "$file_magic_test_file"; then
9700 case $deplibs_check_method in
9702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9705 $EGREP "$file_magic_regex" > /dev/null; then
9710 *** Warning: the command libtool uses to detect shared libraries,
9711 *** $file_magic_cmd, produces output that libtool cannot recognize.
9712 *** The result is that libtool may fail to recognize shared libraries
9713 *** as such. This will affect the creation of libtool libraries that
9714 *** depend on shared libraries, but programs linked with such libtool
9715 *** libraries will work regardless of this problem. Nevertheless, you
9716 *** may want to report the problem to your system manager and/or to
9717 *** bug-libtool@gnu.org
9727 MAGIC_CMD="$lt_save_MAGIC_CMD"
9732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9733 if test -n "$MAGIC_CMD"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9735 $as_echo "$MAGIC_CMD" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9745 if test -z "$lt_cv_path_MAGIC_CMD"; then
9746 if test -n "$ac_tool_prefix"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9748 $as_echo_n "checking for file... " >&6; }
9749 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9750 $as_echo_n "(cached) " >&6
9754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9757 lt_save_MAGIC_CMD="$MAGIC_CMD"
9758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9760 for ac_dir in $ac_dummy; do
9762 test -z "$ac_dir" && ac_dir=.
9763 if test -f $ac_dir/file; then
9764 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9765 if test -n "$file_magic_test_file"; then
9766 case $deplibs_check_method in
9768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9771 $EGREP "$file_magic_regex" > /dev/null; then
9776 *** Warning: the command libtool uses to detect shared libraries,
9777 *** $file_magic_cmd, produces output that libtool cannot recognize.
9778 *** The result is that libtool may fail to recognize shared libraries
9779 *** as such. This will affect the creation of libtool libraries that
9780 *** depend on shared libraries, but programs linked with such libtool
9781 *** libraries will work regardless of this problem. Nevertheless, you
9782 *** may want to report the problem to your system manager and/or to
9783 *** bug-libtool@gnu.org
9793 MAGIC_CMD="$lt_save_MAGIC_CMD"
9798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9799 if test -n "$MAGIC_CMD"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9801 $as_echo "$MAGIC_CMD" >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9817 # Use C for the default configuration in the libtool script
9821 ac_cpp='$CPP $CPPFLAGS'
9822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9827 # Source file extension for C test sources.
9830 # Object file extension for compiled C test sources.
9834 # Code to be used in simple compile tests
9835 lt_simple_compile_test_code="int some_variable = 0;"
9837 # Code to be used in simple link tests
9838 lt_simple_link_test_code='int main(){return(0);}'
9846 # If no C compiler was specified, use CC.
9849 # If no C compiler flags were specified, use CFLAGS.
9850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9852 # Allow CC to be a program name with arguments.
9855 # Save the default compiler, since it gets overwritten when the other
9856 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9857 compiler_DEFAULT=$CC
9859 # save warnings/boilerplate of simple test code
9860 ac_outfile=conftest.$ac_objext
9861 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9863 _lt_compiler_boilerplate=`cat conftest.err`
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_linker_boilerplate=`cat conftest.err`
9874 ## There is no encapsulation within the following macros, do not change
9875 ## the running order or otherwise move them around unless you know exactly
9876 ## what you are doing...
9877 if test -n "$compiler"; then
9879 lt_prog_compiler_no_builtin_flag=
9881 if test "$GCC" = yes; then
9882 case $cc_basename in
9884 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9886 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9892 $as_echo_n "(cached) " >&6
9894 lt_cv_prog_compiler_rtti_exceptions=no
9895 ac_outfile=conftest.$ac_objext
9896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9897 lt_compiler_flag="-fno-rtti -fno-exceptions"
9898 # Insert the option either (1) after the last *FLAGS variable, or
9899 # (2) before a word containing "conftest.", or (3) at the end.
9900 # Note that $ac_compile itself does not contain backslashes and begins
9901 # with a dollar sign (not a hyphen), so the echo should work correctly.
9902 # The option is referenced via a variable to avoid confusing sed.
9903 lt_compile=`echo "$ac_compile" | $SED \
9904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9906 -e 's:$: $lt_compiler_flag:'`
9907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9908 (eval "$lt_compile" 2>conftest.err)
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 if (exit $ac_status) && test -s "$ac_outfile"; then
9913 # The compiler can only warn and ignore the option if not recognized
9914 # So say no if there are warnings other than the usual output.
9915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9918 lt_cv_prog_compiler_rtti_exceptions=yes
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9940 lt_prog_compiler_wl=
9941 lt_prog_compiler_pic=
9942 lt_prog_compiler_static=
9945 if test "$GCC" = yes; then
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_static='-static'
9951 # All AIX code is PIC.
9952 if test "$host_cpu" = ia64; then
9953 # AIX 5 now supports IA64 processor
9954 lt_prog_compiler_static='-Bstatic'
9961 # see comment about AmigaOS4 .so support
9962 lt_prog_compiler_pic='-fPIC'
9965 # FIXME: we need at least 68020 code to build shared libraries, but
9966 # adding the `-m68020' flag to GCC prevents building anything better,
9968 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9974 # PIC is the default for these OSes.
9977 mingw* | cygwin* | pw32* | os2* | cegcc*)
9978 # This hack is so that the source file can tell whether it is being
9979 # built for inclusion in a dll (and should export symbols for example).
9980 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9981 # (--disable-auto-import) libraries
9982 lt_prog_compiler_pic='-DDLL_EXPORT'
9985 darwin* | rhapsody*)
9986 # PIC is the default on this platform
9987 # Common symbols not allowed in MH_DYLIB files
9988 lt_prog_compiler_pic='-fno-common'
9992 # PIC is the default for Haiku.
9993 # The "-static" flag exists, but is broken.
9994 lt_prog_compiler_static=
9998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10000 # sets the default TLS model and affects inlining.
10006 lt_prog_compiler_pic='-fPIC'
10012 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10013 # Instead, we relocate shared libraries at runtime.
10017 # Just because we use GCC doesn't mean we suddenly get shared libraries
10018 # on systems that don't support them.
10019 lt_prog_compiler_can_build_shared=no
10024 # QNX uses GNU C++, but need to define -shared option too, otherwise
10025 # it will coredump.
10026 lt_prog_compiler_pic='-fPIC -shared'
10030 if test -d /usr/nec; then
10031 lt_prog_compiler_pic=-Kconform_pic
10036 lt_prog_compiler_pic='-fPIC'
10040 case $cc_basename in
10041 nvcc*) # Cuda Compiler Driver 2.2
10042 lt_prog_compiler_wl='-Xlinker '
10043 if test -n "$lt_prog_compiler_pic"; then
10044 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10049 # PORTME Check for flag to pass linker flags through the system compiler.
10052 lt_prog_compiler_wl='-Wl,'
10053 if test "$host_cpu" = ia64; then
10054 # AIX 5 now supports IA64 processor
10055 lt_prog_compiler_static='-Bstatic'
10057 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10061 mingw* | cygwin* | pw32* | os2* | cegcc*)
10062 # This hack is so that the source file can tell whether it is being
10063 # built for inclusion in a dll (and should export symbols for example).
10064 lt_prog_compiler_pic='-DDLL_EXPORT'
10067 hpux9* | hpux10* | hpux11*)
10068 lt_prog_compiler_wl='-Wl,'
10069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10070 # not for PA HP-UX.
10076 lt_prog_compiler_pic='+Z'
10079 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10080 lt_prog_compiler_static='${wl}-a ${wl}archive'
10083 irix5* | irix6* | nonstopux*)
10084 lt_prog_compiler_wl='-Wl,'
10085 # PIC (with -KPIC) is the default.
10086 lt_prog_compiler_static='-non_shared'
10089 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10090 case $cc_basename in
10091 # old Intel for x86_64 which still supported -KPIC.
10093 lt_prog_compiler_wl='-Wl,'
10094 lt_prog_compiler_pic='-KPIC'
10095 lt_prog_compiler_static='-static'
10097 # icc used to be incompatible with GCC.
10098 # ICC 10 doesn't accept -KPIC any more.
10100 lt_prog_compiler_wl='-Wl,'
10101 lt_prog_compiler_pic='-fPIC'
10102 lt_prog_compiler_static='-static'
10104 # Lahey Fortran 8.1.
10106 lt_prog_compiler_wl='-Wl,'
10107 lt_prog_compiler_pic='--shared'
10108 lt_prog_compiler_static='--static'
10111 # NAG Fortran compiler
10112 lt_prog_compiler_wl='-Wl,-Wl,,'
10113 lt_prog_compiler_pic='-PIC'
10114 lt_prog_compiler_static='-Bstatic'
10116 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10117 # Portland Group compilers (*not* the Pentium gcc compiler,
10118 # which looks to be a dead project)
10119 lt_prog_compiler_wl='-Wl,'
10120 lt_prog_compiler_pic='-fpic'
10121 lt_prog_compiler_static='-Bstatic'
10124 lt_prog_compiler_wl='-Wl,'
10125 # All Alpha code is PIC.
10126 lt_prog_compiler_static='-non_shared'
10128 xl* | bgxl* | bgf* | mpixl*)
10129 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10130 lt_prog_compiler_wl='-Wl,'
10131 lt_prog_compiler_pic='-qpic'
10132 lt_prog_compiler_static='-qstaticlink'
10135 case `$CC -V 2>&1 | sed 5q` in
10136 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10137 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10138 lt_prog_compiler_pic='-KPIC'
10139 lt_prog_compiler_static='-Bstatic'
10140 lt_prog_compiler_wl=''
10142 *Sun\ F* | *Sun*Fortran*)
10143 lt_prog_compiler_pic='-KPIC'
10144 lt_prog_compiler_static='-Bstatic'
10145 lt_prog_compiler_wl='-Qoption ld '
10149 lt_prog_compiler_pic='-KPIC'
10150 lt_prog_compiler_static='-Bstatic'
10151 lt_prog_compiler_wl='-Wl,'
10153 *Intel*\ [CF]*Compiler*)
10154 lt_prog_compiler_wl='-Wl,'
10155 lt_prog_compiler_pic='-fPIC'
10156 lt_prog_compiler_static='-static'
10159 lt_prog_compiler_wl='-Wl,'
10160 lt_prog_compiler_pic='-fpic'
10161 lt_prog_compiler_static='-Bstatic'
10169 lt_prog_compiler_pic='-KPIC'
10170 lt_prog_compiler_static='-Bstatic'
10174 # QNX uses GNU C++, but need to define -shared option too, otherwise
10175 # it will coredump.
10176 lt_prog_compiler_pic='-fPIC -shared'
10179 osf3* | osf4* | osf5*)
10180 lt_prog_compiler_wl='-Wl,'
10181 # All OSF/1 code is PIC.
10182 lt_prog_compiler_static='-non_shared'
10186 lt_prog_compiler_static='-non_shared'
10190 lt_prog_compiler_pic='-KPIC'
10191 lt_prog_compiler_static='-Bstatic'
10192 case $cc_basename in
10193 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10194 lt_prog_compiler_wl='-Qoption ld ';;
10196 lt_prog_compiler_wl='-Wl,';;
10201 lt_prog_compiler_wl='-Qoption ld '
10202 lt_prog_compiler_pic='-PIC'
10203 lt_prog_compiler_static='-Bstatic'
10206 sysv4 | sysv4.2uw2* | sysv4.3*)
10207 lt_prog_compiler_wl='-Wl,'
10208 lt_prog_compiler_pic='-KPIC'
10209 lt_prog_compiler_static='-Bstatic'
10213 if test -d /usr/nec ;then
10214 lt_prog_compiler_pic='-Kconform_pic'
10215 lt_prog_compiler_static='-Bstatic'
10219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10220 lt_prog_compiler_wl='-Wl,'
10221 lt_prog_compiler_pic='-KPIC'
10222 lt_prog_compiler_static='-Bstatic'
10226 lt_prog_compiler_wl='-Wl,'
10227 lt_prog_compiler_can_build_shared=no
10231 lt_prog_compiler_pic='-pic'
10232 lt_prog_compiler_static='-Bstatic'
10236 lt_prog_compiler_can_build_shared=no
10242 # For platforms which do not support PIC, -DPIC is meaningless:
10244 lt_prog_compiler_pic=
10247 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10252 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10253 if ${lt_cv_prog_compiler_pic+:} false; then :
10254 $as_echo_n "(cached) " >&6
10256 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10259 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10260 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10263 # Check to make sure the PIC flag actually works.
10265 if test -n "$lt_prog_compiler_pic"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10268 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10269 $as_echo_n "(cached) " >&6
10271 lt_cv_prog_compiler_pic_works=no
10272 ac_outfile=conftest.$ac_objext
10273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10274 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10275 # Insert the option either (1) after the last *FLAGS variable, or
10276 # (2) before a word containing "conftest.", or (3) at the end.
10277 # Note that $ac_compile itself does not contain backslashes and begins
10278 # with a dollar sign (not a hyphen), so the echo should work correctly.
10279 # The option is referenced via a variable to avoid confusing sed.
10280 lt_compile=`echo "$ac_compile" | $SED \
10281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10283 -e 's:$: $lt_compiler_flag:'`
10284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10285 (eval "$lt_compile" 2>conftest.err)
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 if (exit $ac_status) && test -s "$ac_outfile"; then
10290 # The compiler can only warn and ignore the option if not recognized
10291 # So say no if there are warnings other than the usual output.
10292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10295 lt_cv_prog_compiler_pic_works=yes
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10302 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10304 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10305 case $lt_prog_compiler_pic in
10307 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10310 lt_prog_compiler_pic=
10311 lt_prog_compiler_can_build_shared=no
10327 # Check to make sure the static flag actually works.
10329 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10332 if ${lt_cv_prog_compiler_static_works+:} false; then :
10333 $as_echo_n "(cached) " >&6
10335 lt_cv_prog_compiler_static_works=no
10336 save_LDFLAGS="$LDFLAGS"
10337 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10338 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10340 # The linker can only warn and ignore the option if not recognized
10341 # So say no if there are warnings
10342 if test -s conftest.err; then
10343 # Append any errors to the config.log.
10344 cat conftest.err 1>&5
10345 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10347 if diff conftest.exp conftest.er2 >/dev/null; then
10348 lt_cv_prog_compiler_static_works=yes
10351 lt_cv_prog_compiler_static_works=yes
10355 LDFLAGS="$save_LDFLAGS"
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10359 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10361 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10364 lt_prog_compiler_static=
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10374 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10375 if ${lt_cv_prog_compiler_c_o+:} false; then :
10376 $as_echo_n "(cached) " >&6
10378 lt_cv_prog_compiler_c_o=no
10379 $RM -r conftest 2>/dev/null
10383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10385 lt_compiler_flag="-o out/conftest2.$ac_objext"
10386 # Insert the option either (1) after the last *FLAGS variable, or
10387 # (2) before a word containing "conftest.", or (3) at the end.
10388 # Note that $ac_compile itself does not contain backslashes and begins
10389 # with a dollar sign (not a hyphen), so the echo should work correctly.
10390 lt_compile=`echo "$ac_compile" | $SED \
10391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10393 -e 's:$: $lt_compiler_flag:'`
10394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10395 (eval "$lt_compile" 2>out/conftest.err)
10397 cat out/conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10401 # The compiler can only warn and ignore the option if not recognized
10402 # So say no if there are warnings
10403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10406 lt_cv_prog_compiler_c_o=yes
10411 # SGI C++ compiler will create directory out/ii_files/ for
10412 # template instantiation
10413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10414 $RM out/* && rmdir out
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10421 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10429 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10430 if ${lt_cv_prog_compiler_c_o+:} false; then :
10431 $as_echo_n "(cached) " >&6
10433 lt_cv_prog_compiler_c_o=no
10434 $RM -r conftest 2>/dev/null
10438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10440 lt_compiler_flag="-o out/conftest2.$ac_objext"
10441 # Insert the option either (1) after the last *FLAGS variable, or
10442 # (2) before a word containing "conftest.", or (3) at the end.
10443 # Note that $ac_compile itself does not contain backslashes and begins
10444 # with a dollar sign (not a hyphen), so the echo should work correctly.
10445 lt_compile=`echo "$ac_compile" | $SED \
10446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10448 -e 's:$: $lt_compiler_flag:'`
10449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10450 (eval "$lt_compile" 2>out/conftest.err)
10452 cat out/conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10456 # The compiler can only warn and ignore the option if not recognized
10457 # So say no if there are warnings
10458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10461 lt_cv_prog_compiler_c_o=yes
10466 # SGI C++ compiler will create directory out/ii_files/ for
10467 # template instantiation
10468 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10469 $RM out/* && rmdir out
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10476 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10481 hard_links="nottested"
10482 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10483 # do not overwrite the value of need_locks provided by the user
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10485 $as_echo_n "checking if we can lock with hard links... " >&6; }
10488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10490 ln conftest.a conftest.b 2>&5 || hard_links=no
10491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10493 $as_echo "$hard_links" >&6; }
10494 if test "$hard_links" = no; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10496 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10509 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10512 allow_undefined_flag=
10513 always_export_symbols=no
10515 archive_expsym_cmds=
10516 compiler_needs_object=no
10517 enable_shared_with_static_runtimes=no
10518 export_dynamic_flag_spec=
10519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10520 hardcode_automatic=no
10522 hardcode_direct_absolute=no
10523 hardcode_libdir_flag_spec=
10524 hardcode_libdir_separator=
10525 hardcode_minus_L=no
10526 hardcode_shlibpath_var=unsupported
10528 link_all_deplibs=unknown
10530 module_expsym_cmds=
10531 old_archive_from_new_cmds=
10532 old_archive_from_expsyms_cmds=
10533 thread_safe_flag_spec=
10534 whole_archive_flag_spec=
10535 # include_expsyms should be a list of space-separated symbols to be *always*
10536 # included in the symbol list
10538 # exclude_expsyms can be an extended regexp of symbols to exclude
10539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10541 # as well as any symbol that contains `d'.
10542 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10544 # platforms (ab)use it in PIC code, but their linkers get confused if
10545 # the symbol is explicitly referenced. Since portable code cannot
10546 # rely on this symbol name, it's probably fine to never include it in
10547 # preloaded symbol tables.
10548 # Exclude shared library initialization/finalization symbols.
10549 extract_expsyms_cmds=
10552 cygwin* | mingw* | pw32* | cegcc*)
10553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10554 # When not using gcc, we currently assume that we are using
10555 # Microsoft Visual C++.
10556 if test "$GCC" != yes; then
10561 # we just hope/assume this is gcc and not c89 (= MSVC++)
10567 linux* | k*bsd*-gnu | gnu*)
10568 link_all_deplibs=no
10574 # On some targets, GNU ld is compatible enough with the native linker
10575 # that we're better off using the native interface for both.
10576 lt_use_gnu_ld_interface=no
10577 if test "$with_gnu_ld" = yes; then
10580 # The AIX port of GNU ld has always aspired to compatibility
10581 # with the native linker. However, as the warning in the GNU ld
10582 # block says, versions before 2.19.5* couldn't really create working
10583 # shared libraries, regardless of the interface used.
10584 case `$LD -v 2>&1` in
10585 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10586 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10587 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10589 lt_use_gnu_ld_interface=yes
10594 lt_use_gnu_ld_interface=yes
10599 if test "$lt_use_gnu_ld_interface" = yes; then
10600 # If archive_cmds runs LD, not CC, wlarc should be empty
10603 # Set some defaults for GNU ld with shared library support. These
10604 # are reset later if shared libraries are not supported. Putting them
10605 # here allows them to be overridden if necessary.
10606 runpath_var=LD_RUN_PATH
10607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608 export_dynamic_flag_spec='${wl}--export-dynamic'
10609 # ancient GNU ld didn't support --whole-archive et. al.
10610 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10611 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10613 whole_archive_flag_spec=
10615 supports_anon_versioning=no
10616 case `$LD -v 2>&1` in
10617 *GNU\ gold*) supports_anon_versioning=yes ;;
10618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10621 *\ 2.11.*) ;; # other 2.11 versions
10622 *) supports_anon_versioning=yes ;;
10625 # See if GNU ld supports shared libraries.
10628 # On AIX/PPC, the GNU linker is very broken
10629 if test "$host_cpu" != ia64; then
10633 *** Warning: the GNU linker, at least up to release 2.19, is reported
10634 *** to be unable to reliably create shared libraries on AIX.
10635 *** Therefore, libtool is disabling shared libraries support. If you
10636 *** really care for shared libraries, you may want to install binutils
10637 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10638 *** You will then need to restart the configuration process.
10647 # see comment about AmigaOS4 .so support
10648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649 archive_expsym_cmds=''
10652 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)'
10653 hardcode_libdir_flag_spec='-L$libdir'
10654 hardcode_minus_L=yes
10660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10661 allow_undefined_flag=unsupported
10662 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10663 # support --undefined. This deserves some investigation. FIXME
10664 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10670 cygwin* | mingw* | pw32* | cegcc*)
10671 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10672 # as there is no search path for DLLs.
10673 hardcode_libdir_flag_spec='-L$libdir'
10674 export_dynamic_flag_spec='${wl}--export-all-symbols'
10675 allow_undefined_flag=unsupported
10676 always_export_symbols=no
10677 enable_shared_with_static_runtimes=yes
10678 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'
10679 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10681 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10683 # If the export-symbols file already is a .def file (1st line
10684 # is EXPORTS), use it as is; otherwise, prepend...
10685 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10686 cp $export_symbols $output_objdir/$soname.def;
10688 echo EXPORTS > $output_objdir/$soname.def;
10689 cat $export_symbols >> $output_objdir/$soname.def;
10691 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699 link_all_deplibs=yes
10704 hardcode_shlibpath_var=no
10705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10706 export_dynamic_flag_spec='${wl}-E'
10707 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10708 # Instead, shared libraries are loaded at an image base (0x10000000 by
10709 # default) and relocated if they conflict, which is a slow very memory
10710 # consuming and fragmenting process. To avoid this, we pick a random,
10711 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10712 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10713 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10714 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'
10717 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10719 if test "$host_os" = linux-dietlibc; then
10720 case $cc_basename in
10721 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10724 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10725 && test "$tmp_diet" = no
10727 tmp_addflag=' $pic_flag'
10728 tmp_sharedflag='-shared'
10729 case $cc_basename,$host_cpu in
10730 pgcc*) # Portland Group C compiler
10731 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'
10732 tmp_addflag=' $pic_flag'
10734 pgf77* | pgf90* | pgf95* | pgfortran*)
10735 # Portland Group f77 and f90 compilers
10736 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'
10737 tmp_addflag=' $pic_flag -Mnomain' ;;
10738 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10739 tmp_addflag=' -i_dynamic' ;;
10740 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10741 tmp_addflag=' -i_dynamic -nofor_main' ;;
10742 ifc* | ifort*) # Intel Fortran compiler
10743 tmp_addflag=' -nofor_main' ;;
10744 lf95*) # Lahey Fortran 8.1
10745 whole_archive_flag_spec=
10746 tmp_sharedflag='--shared' ;;
10747 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10748 tmp_sharedflag='-qmkshrobj'
10750 nvcc*) # Cuda Compiler Driver 2.2
10751 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'
10752 compiler_needs_object=yes
10755 case `$CC -V 2>&1 | sed 5q` in
10756 *Sun\ C*) # Sun C 5.9
10757 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'
10758 compiler_needs_object=yes
10759 tmp_sharedflag='-G' ;;
10760 *Sun\ F*) # Sun Fortran 8.3
10761 tmp_sharedflag='-G' ;;
10763 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10765 if test "x$supports_anon_versioning" = xyes; then
10766 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10768 echo "local: *; };" >> $output_objdir/$libname.ver~
10769 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10772 case $cc_basename in
10773 xlf* | bgf* | bgxlf* | mpixlf*)
10774 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10775 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10777 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10778 if test "x$supports_anon_versioning" = xyes; then
10779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10781 echo "local: *; };" >> $output_objdir/$libname.ver~
10782 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10791 netbsd* | netbsdelf*-gnu)
10792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10807 *** create shared libraries on Solaris systems. Therefore, libtool
10808 *** is disabling shared libraries support. We urge you to upgrade GNU
10809 *** binutils to release 2.9.1 or newer. Another option is to modify
10810 *** your PATH or compiler configuration so that the native linker is
10811 *** used, and then restart.
10814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10823 case `$LD -v 2>&1` in
10824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10829 *** reliably create shared libraries on SCO systems. Therefore, libtool
10830 *** is disabling shared libraries support. We urge you to upgrade GNU
10831 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10832 *** your PATH or compiler configuration so that the native linker is
10833 *** used, and then restart.
10838 # For security reasons, it is highly recommended that you always
10839 # use absolute paths for naming shared libraries, and exclude the
10840 # DT_RUNPATH tag from executables and libraries. But doing so
10841 # requires that you compile everything twice, which is a pain.
10842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10856 hardcode_direct=yes
10857 hardcode_shlibpath_var=no
10861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10862 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10870 if test "$ld_shlibs" = no; then
10872 hardcode_libdir_flag_spec=
10873 export_dynamic_flag_spec=
10874 whole_archive_flag_spec=
10877 # PORTME fill in a description of your system's linker (not GNU ld)
10880 allow_undefined_flag=unsupported
10881 always_export_symbols=yes
10882 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'
10883 # Note: this linker hardcodes the directories in LIBPATH if there
10884 # are no directories specified by -L.
10885 hardcode_minus_L=yes
10886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10887 # Neither direct hardcoding nor static linking is supported with a
10889 hardcode_direct=unsupported
10894 if test "$host_cpu" = ia64; then
10895 # On IA64, the linker does run time linking by default, so we don't
10896 # have to do anything special.
10897 aix_use_runtimelinking=no
10898 exp_sym_flag='-Bexport'
10901 # If we're using GNU nm, then we don't want the "-C" option.
10902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10903 # Also, AIX nm treats weak defined symbols like other global
10904 # defined symbols, whereas GNU nm marks them as "W".
10905 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10906 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'
10908 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'
10910 aix_use_runtimelinking=no
10912 # Test if we are trying to use run time linking or normal
10913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10914 # need to do runtime linking.
10915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10916 for ld_flag in $LDFLAGS; do
10917 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10918 aix_use_runtimelinking=yes
10925 exp_sym_flag='-bexport'
10926 no_entry_flag='-bnoentry'
10929 # When large executables or shared objects are built, AIX ld can
10930 # have problems creating the table of contents. If linking a library
10931 # or program results in "error TOC overflow" add -mminimal-toc to
10932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10936 hardcode_direct=yes
10937 hardcode_direct_absolute=yes
10938 hardcode_libdir_separator=':'
10939 link_all_deplibs=yes
10940 file_list_spec='${wl}-f,'
10942 if test "$GCC" = yes; then
10943 case $host_os in aix4.[012]|aix4.[012].*)
10944 # We only want to do this on AIX 4.2 and lower, the check
10945 # below for broken collect2 doesn't work under 4.3+
10946 collect2name=`${CC} -print-prog-name=collect2`
10947 if test -f "$collect2name" &&
10948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10950 # We have reworked collect2
10953 # We have old collect2
10954 hardcode_direct=unsupported
10955 # It fails to find uninstalled libraries when the uninstalled
10956 # path is not listed in the libpath. Setting hardcode_minus_L
10957 # to unsupported forces relinking
10958 hardcode_minus_L=yes
10959 hardcode_libdir_flag_spec='-L$libdir'
10960 hardcode_libdir_separator=
10964 shared_flag='-shared'
10965 if test "$aix_use_runtimelinking" = yes; then
10966 shared_flag="$shared_flag "'${wl}-G'
10968 link_all_deplibs=no
10971 if test "$host_cpu" = ia64; then
10972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10973 # chokes on -Wl,-G. The following line is correct:
10976 if test "$aix_use_runtimelinking" = yes; then
10977 shared_flag='${wl}-G'
10979 shared_flag='${wl}-bM:SRE'
10984 export_dynamic_flag_spec='${wl}-bexpall'
10985 # It seems that -bexpall does not export symbols beginning with
10986 # underscore (_), so it is better to generate a list of symbols to export.
10987 always_export_symbols=yes
10988 if test "$aix_use_runtimelinking" = yes; then
10989 # Warning - without using the other runtime loading flags (-brtl),
10990 # -berok will link without error, but may produce a broken library.
10991 allow_undefined_flag='-berok'
10992 # Determine the default libpath from the value encoded in an
10993 # empty executable.
10994 if test "${lt_cv_aix_libpath+set}" = set; then
10995 aix_libpath=$lt_cv_aix_libpath
10997 if ${lt_cv_aix_libpath_+:} false; then :
10998 $as_echo_n "(cached) " >&6
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11011 if ac_fn_c_try_link "$LINENO"; then :
11013 lt_aix_libpath_sed='
11014 /Import File Strings/,/^$/ {
11016 s/^0 *\([^ ]*\) *$/\1/
11020 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11021 # Check for a 64-bit object if we didn't find anything.
11022 if test -z "$lt_cv_aix_libpath_"; then
11023 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 if test -z "$lt_cv_aix_libpath_"; then
11029 lt_cv_aix_libpath_="/usr/lib:/lib"
11034 aix_libpath=$lt_cv_aix_libpath_
11037 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11038 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"
11040 if test "$host_cpu" = ia64; then
11041 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11042 allow_undefined_flag="-z nodefs"
11043 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"
11045 # Determine the default libpath from the value encoded in an
11046 # empty executable.
11047 if test "${lt_cv_aix_libpath+set}" = set; then
11048 aix_libpath=$lt_cv_aix_libpath
11050 if ${lt_cv_aix_libpath_+:} false; then :
11051 $as_echo_n "(cached) " >&6
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11064 if ac_fn_c_try_link "$LINENO"; then :
11066 lt_aix_libpath_sed='
11067 /Import File Strings/,/^$/ {
11069 s/^0 *\([^ ]*\) *$/\1/
11073 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11074 # Check for a 64-bit object if we didn't find anything.
11075 if test -z "$lt_cv_aix_libpath_"; then
11076 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11079 rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081 if test -z "$lt_cv_aix_libpath_"; then
11082 lt_cv_aix_libpath_="/usr/lib:/lib"
11087 aix_libpath=$lt_cv_aix_libpath_
11090 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11091 # Warning - without using the other run time loading flags,
11092 # -berok will link without error, but may produce a broken library.
11093 no_undefined_flag=' ${wl}-bernotok'
11094 allow_undefined_flag=' ${wl}-berok'
11095 if test "$with_gnu_ld" = yes; then
11096 # We only use this code for GNU lds that support --whole-archive.
11097 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11099 # Exported symbols can be pulled into shared objects from archives
11100 whole_archive_flag_spec='$convenience'
11102 archive_cmds_need_lc=yes
11103 # This is similar to how AIX traditionally builds its shared libraries.
11104 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'
11112 # see comment about AmigaOS4 .so support
11113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11114 archive_expsym_cmds=''
11117 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)'
11118 hardcode_libdir_flag_spec='-L$libdir'
11119 hardcode_minus_L=yes
11125 export_dynamic_flag_spec=-rdynamic
11128 cygwin* | mingw* | pw32* | cegcc*)
11129 # When not using gcc, we currently assume that we are using
11130 # Microsoft Visual C++.
11131 # hardcode_libdir_flag_spec is actually meaningless, as there is
11132 # no search path for DLLs.
11133 case $cc_basename in
11136 hardcode_libdir_flag_spec=' '
11137 allow_undefined_flag=unsupported
11138 always_export_symbols=yes
11140 # Tell ltmain to make .lib files, not .a files.
11142 # Tell ltmain to make .dll files, not .so files.
11144 # FIXME: Setting linknames here is a bad hack.
11145 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11146 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11147 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11149 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11151 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11153 # The linker will not automatically build a static lib if we build a DLL.
11154 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11155 enable_shared_with_static_runtimes=yes
11156 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11159 old_postinstall_cmds='chmod 644 $oldlib'
11160 postlink_cmds='lt_outputfile="@OUTPUT@"~
11161 lt_tool_outputfile="@TOOL_OUTPUT@"~
11162 case $lt_outputfile in
11165 lt_outputfile="$lt_outputfile.exe"
11166 lt_tool_outputfile="$lt_tool_outputfile.exe"
11169 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11170 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11171 $RM "$lt_outputfile.manifest";
11175 # Assume MSVC wrapper
11176 hardcode_libdir_flag_spec=' '
11177 allow_undefined_flag=unsupported
11178 # Tell ltmain to make .lib files, not .a files.
11180 # Tell ltmain to make .dll files, not .so files.
11182 # FIXME: Setting linknames here is a bad hack.
11183 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11184 # The linker will automatically build a .lib file if we build a DLL.
11185 old_archive_from_new_cmds='true'
11186 # FIXME: Should let the user specify the lib program.
11187 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11188 enable_shared_with_static_runtimes=yes
11193 darwin* | rhapsody*)
11196 archive_cmds_need_lc=no
11198 hardcode_automatic=yes
11199 hardcode_shlibpath_var=unsupported
11200 if test "$lt_cv_ld_force_load" = "yes"; then
11201 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\"`'
11204 whole_archive_flag_spec=''
11206 link_all_deplibs=yes
11207 allow_undefined_flag="$_lt_dar_allow_undefined"
11208 case $cc_basename in
11209 ifort*) _lt_dar_can_shared=yes ;;
11210 *) _lt_dar_can_shared=$GCC ;;
11212 if test "$_lt_dar_can_shared" = "yes"; then
11213 output_verbose_link_cmd=func_echo_all
11214 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11215 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11216 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}"
11217 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}"
11226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227 hardcode_libdir_flag_spec='-L$libdir'
11228 hardcode_shlibpath_var=no
11231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11232 # support. Future versions do this automatically, but an explicit c++rt0.o
11233 # does not break anything, and helps significantly (at the cost of a little
11236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11237 hardcode_libdir_flag_spec='-R$libdir'
11238 hardcode_direct=yes
11239 hardcode_shlibpath_var=no
11242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11245 hardcode_direct=yes
11246 hardcode_minus_L=yes
11247 hardcode_shlibpath_var=no
11250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11251 freebsd* | dragonfly*)
11252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11253 hardcode_libdir_flag_spec='-R$libdir'
11254 hardcode_direct=yes
11255 hardcode_shlibpath_var=no
11259 if test "$GCC" = yes; then
11260 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'
11262 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'
11264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11265 hardcode_libdir_separator=:
11266 hardcode_direct=yes
11268 # hardcode_minus_L: Not really in the search PATH,
11269 # but as the default location of the library.
11270 hardcode_minus_L=yes
11271 export_dynamic_flag_spec='${wl}-E'
11275 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11276 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11278 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11280 if test "$with_gnu_ld" = no; then
11281 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11282 hardcode_libdir_separator=:
11283 hardcode_direct=yes
11284 hardcode_direct_absolute=yes
11285 export_dynamic_flag_spec='${wl}-E'
11286 # hardcode_minus_L: Not really in the search PATH,
11287 # but as the default location of the library.
11288 hardcode_minus_L=yes
11293 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11296 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11299 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11302 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11308 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11315 # Older versions of the 11.00 compiler do not understand -b yet
11316 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11318 $as_echo_n "checking if $CC understands -b... " >&6; }
11319 if ${lt_cv_prog_compiler__b+:} false; then :
11320 $as_echo_n "(cached) " >&6
11322 lt_cv_prog_compiler__b=no
11323 save_LDFLAGS="$LDFLAGS"
11324 LDFLAGS="$LDFLAGS -b"
11325 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11326 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11327 # The linker can only warn and ignore the option if not recognized
11328 # So say no if there are warnings
11329 if test -s conftest.err; then
11330 # Append any errors to the config.log.
11331 cat conftest.err 1>&5
11332 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11334 if diff conftest.exp conftest.er2 >/dev/null; then
11335 lt_cv_prog_compiler__b=yes
11338 lt_cv_prog_compiler__b=yes
11342 LDFLAGS="$save_LDFLAGS"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11346 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11348 if test x"$lt_cv_prog_compiler__b" = xyes; then
11349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11357 if test "$with_gnu_ld" = no; then
11358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11359 hardcode_libdir_separator=:
11364 hardcode_shlibpath_var=no
11367 hardcode_direct=yes
11368 hardcode_direct_absolute=yes
11369 export_dynamic_flag_spec='${wl}-E'
11371 # hardcode_minus_L: Not really in the search PATH,
11372 # but as the default location of the library.
11373 hardcode_minus_L=yes
11379 irix5* | irix6* | nonstopux*)
11380 if test "$GCC" = yes; then
11381 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'
11382 # Try to use the -exported_symbol ld option, if it does not
11383 # work, assume that -exports_file does not work either and
11384 # implicitly export all symbols.
11385 # This should be the same for all languages, so no per-tag cache variable.
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11387 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11388 if ${lt_cv_irix_exported_symbol+:} false; then :
11389 $as_echo_n "(cached) " >&6
11391 save_LDFLAGS="$LDFLAGS"
11392 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395 int foo (void) { return 0; }
11397 if ac_fn_c_try_link "$LINENO"; then :
11398 lt_cv_irix_exported_symbol=yes
11400 lt_cv_irix_exported_symbol=no
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LDFLAGS="$save_LDFLAGS"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11407 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11408 if test "$lt_cv_irix_exported_symbol" = yes; then
11409 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'
11412 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'
11413 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'
11415 archive_cmds_need_lc='no'
11416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11417 hardcode_libdir_separator=:
11419 link_all_deplibs=yes
11422 netbsd* | netbsdelf*-gnu)
11423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11426 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11428 hardcode_libdir_flag_spec='-R$libdir'
11429 hardcode_direct=yes
11430 hardcode_shlibpath_var=no
11434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11435 hardcode_direct=yes
11436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11437 hardcode_libdir_separator=:
11438 hardcode_shlibpath_var=no
11445 if test -f /usr/libexec/ld.so; then
11446 hardcode_direct=yes
11447 hardcode_shlibpath_var=no
11448 hardcode_direct_absolute=yes
11449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11451 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11452 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11453 export_dynamic_flag_spec='${wl}-E'
11456 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11458 hardcode_libdir_flag_spec='-R$libdir'
11461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11472 hardcode_libdir_flag_spec='-L$libdir'
11473 hardcode_minus_L=yes
11474 allow_undefined_flag=unsupported
11475 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'
11476 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11480 if test "$GCC" = yes; then
11481 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11482 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'
11484 allow_undefined_flag=' -expect_unresolved \*'
11485 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'
11487 archive_cmds_need_lc='no'
11488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11489 hardcode_libdir_separator=:
11492 osf4* | osf5*) # as osf3* with the addition of -msym flag
11493 if test "$GCC" = yes; then
11494 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11495 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'
11496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11498 allow_undefined_flag=' -expect_unresolved \*'
11499 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'
11500 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~
11501 $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'
11503 # Both c and cxx compiler support -rpath directly
11504 hardcode_libdir_flag_spec='-rpath $libdir'
11506 archive_cmds_need_lc='no'
11507 hardcode_libdir_separator=:
11511 no_undefined_flag=' -z defs'
11512 if test "$GCC" = yes; then
11514 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11516 $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'
11518 case `$CC -V 2>&1` in
11521 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11523 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11527 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11528 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11529 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11533 hardcode_libdir_flag_spec='-R$libdir'
11534 hardcode_shlibpath_var=no
11536 solaris2.[0-5] | solaris2.[0-5].*) ;;
11538 # The compiler driver will combine and reorder linker options,
11539 # but understands `-z linker_flag'. GCC discards it without `$wl',
11540 # but is careful enough not to reorder.
11541 # Supported since Solaris 2.6 (maybe 2.5.1?)
11542 if test "$GCC" = yes; then
11543 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11545 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11549 link_all_deplibs=yes
11553 if test "x$host_vendor" = xsequent; then
11554 # Use $CC to link under sequent, because it throws in some extra .o
11555 # files that make .init and .fini sections work.
11556 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11558 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11560 hardcode_libdir_flag_spec='-L$libdir'
11561 hardcode_direct=yes
11562 hardcode_minus_L=yes
11563 hardcode_shlibpath_var=no
11567 case $host_vendor in
11569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570 hardcode_direct=yes # is this really true???
11573 ## LD is ld it makes a PLAMLIB
11574 ## CC just makes a GrossModule.
11575 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11576 reload_cmds='$CC -r -o $output$reload_objs'
11580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11581 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11584 runpath_var='LD_RUN_PATH'
11585 hardcode_shlibpath_var=no
11589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11590 hardcode_shlibpath_var=no
11591 export_dynamic_flag_spec='-Bexport'
11595 if test -d /usr/nec; then
11596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11597 hardcode_shlibpath_var=no
11598 runpath_var=LD_RUN_PATH
11599 hardcode_runpath_var=yes
11604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11605 no_undefined_flag='${wl}-z,text'
11606 archive_cmds_need_lc=no
11607 hardcode_shlibpath_var=no
11608 runpath_var='LD_RUN_PATH'
11610 if test "$GCC" = yes; then
11611 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11612 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11614 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11615 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11619 sysv5* | sco3.2v5* | sco5v6*)
11620 # Note: We can NOT use -z defs as we might desire, because we do not
11621 # link with -lc, and that would cause any symbols used from libc to
11622 # always be unresolved, which means just about no library would
11623 # ever link correctly. If we're not using GNU ld we use -z text
11624 # though, which does catch some bad symbols but isn't as heavy-handed
11626 no_undefined_flag='${wl}-z,text'
11627 allow_undefined_flag='${wl}-z,nodefs'
11628 archive_cmds_need_lc=no
11629 hardcode_shlibpath_var=no
11630 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11631 hardcode_libdir_separator=':'
11632 link_all_deplibs=yes
11633 export_dynamic_flag_spec='${wl}-Bexport'
11634 runpath_var='LD_RUN_PATH'
11636 if test "$GCC" = yes; then
11637 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11638 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11640 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11641 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11647 hardcode_libdir_flag_spec='-L$libdir'
11648 hardcode_shlibpath_var=no
11656 if test x$host_vendor = xsni; then
11658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11659 export_dynamic_flag_spec='${wl}-Blargedynsym'
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11666 $as_echo "$ld_shlibs" >&6; }
11667 test "$ld_shlibs" = no && can_build_shared=no
11669 with_gnu_ld=$with_gnu_ld
11686 # Do we need to explicitly link libc?
11688 case "x$archive_cmds_need_lc" in
11690 # Assume -lc should be added
11691 archive_cmds_need_lc=yes
11693 if test "$enable_shared" = yes && test "$GCC" = yes; then
11694 case $archive_cmds in
11696 # FIXME: we may have to deal with multi-command sequences.
11699 # Test whether the compiler implicitly links with -lc since on some
11700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11701 # to ld, don't add -lc before -lgcc.
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11703 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11704 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11705 $as_echo_n "(cached) " >&6
11708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11711 (eval $ac_compile) 2>&5
11713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714 test $ac_status = 0; } 2>conftest.err; then
11717 libobjs=conftest.$ac_objext
11719 wl=$lt_prog_compiler_wl
11720 pic_flag=$lt_prog_compiler_pic
11726 lt_save_allow_undefined_flag=$allow_undefined_flag
11727 allow_undefined_flag=
11728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11729 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732 test $ac_status = 0; }
11734 lt_cv_archive_cmds_need_lc=no
11736 lt_cv_archive_cmds_need_lc=yes
11738 allow_undefined_flag=$lt_save_allow_undefined_flag
11740 cat conftest.err 1>&5
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11746 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11747 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11906 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11908 if test "$GCC" = yes; then
11910 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11911 *) lt_awk_arg="/^libraries:/" ;;
11914 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11915 *) lt_sed_strip_eq="s,=/,/,g" ;;
11917 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11918 case $lt_search_path_spec in
11920 # if the path contains ";" then we assume it to be the separator
11921 # otherwise default to the standard path separator (i.e. ":") - it is
11922 # assumed that no part of a normal pathname contains ";" but that should
11923 # okay in the real world where ";" in dirpaths is itself problematic.
11924 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11927 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11930 # Ok, now we have the path, separated by spaces, we can step through it
11931 # and add multilib dir if necessary.
11932 lt_tmp_lt_search_path_spec=
11933 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11934 for lt_sys_path in $lt_search_path_spec; do
11935 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11936 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11938 test -d "$lt_sys_path" && \
11939 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11942 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11943 BEGIN {RS=" "; FS="/|\n";} {
11946 for (lt_i = NF; lt_i > 0; lt_i--) {
11947 if ($lt_i != "" && $lt_i != ".") {
11948 if ($lt_i == "..") {
11951 if (lt_count == 0) {
11952 lt_foo="/" $lt_i lt_foo;
11959 if (lt_foo != "") { lt_freq[lt_foo]++; }
11960 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11962 # AWK program above erroneously prepends '/' to C:/dos/paths
11965 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11966 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11968 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11970 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11972 library_names_spec=
11973 libname_spec='lib$name'
11977 postuninstall_cmds=
11981 shlibpath_overrides_runpath=unknown
11983 dynamic_linker="$host_os ld.so"
11984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11985 need_lib_prefix=unknown
11986 hardcode_into_libs=no
11988 # when you set need_version to no, make sure it does not cause -set_version
11989 # flags to be left without arguments
11990 need_version=unknown
11994 version_type=linux # correct to gnu/linux during the next big refactor
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11996 shlibpath_var=LIBPATH
11998 # AIX 3 has no versioning support, so we append a major version to the name.
11999 soname_spec='${libname}${release}${shared_ext}$major'
12003 version_type=linux # correct to gnu/linux during the next big refactor
12006 hardcode_into_libs=yes
12007 if test "$host_cpu" = ia64; then
12008 # AIX 5 supports IA64
12009 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12010 shlibpath_var=LD_LIBRARY_PATH
12012 # With GCC up to 2.95.x, collect2 would create an import file
12013 # for dependence libraries. The import file would start with
12014 # the line `#! .'. This would cause the generated library to
12015 # depend on `.', always an invalid library. This was fixed in
12016 # development snapshots of GCC prior to 3.0.
12018 aix4 | aix4.[01] | aix4.[01].*)
12019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12021 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12024 can_build_shared=no
12028 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12029 # soname into executable. Probably we can add versioning support to
12030 # collect2, so additional links can be useful in future.
12031 if test "$aix_use_runtimelinking" = yes; then
12032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12033 # instead of lib<name>.a to let people know that these are not
12034 # typical AIX shared libraries.
12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037 # We preserve .a as extension for shared libraries through AIX4.2
12038 # and later when we are not doing run time linking.
12039 library_names_spec='${libname}${release}.a $libname.a'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12042 shlibpath_var=LIBPATH
12049 # Since July 2007 AmigaOS4 officially supports .so libraries.
12050 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12054 library_names_spec='$libname.ixlibrary $libname.a'
12055 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12056 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'
12062 library_names_spec='${libname}${shared_ext}'
12063 dynamic_linker="$host_os ld.so"
12064 shlibpath_var=LIBRARY_PATH
12068 version_type=linux # correct to gnu/linux during the next big refactor
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071 soname_spec='${libname}${release}${shared_ext}$major'
12072 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12075 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12076 # the default ld.so.conf also contains /usr/contrib/lib and
12077 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12078 # libtool to hard-code these into programs
12081 cygwin* | mingw* | pw32* | cegcc*)
12082 version_type=windows
12087 case $GCC,$cc_basename in
12090 library_names_spec='$libname.dll.a'
12091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12092 postinstall_cmds='base_file=`basename \${file}`~
12093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12094 dldir=$destdir/`dirname \$dlpath`~
12095 test -d \$dldir || mkdir -p \$dldir~
12096 $install_prog $dir/$dlname \$dldir/$dlname~
12097 chmod a+x \$dldir/$dlname~
12098 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12099 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12102 dlpath=$dir/\$dldll~
12104 shlibpath_overrides_runpath=yes
12108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12111 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12114 # MinGW DLLs use traditional 'lib' prefix
12115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12118 # pw32 DLLs use 'pw' prefix rather than 'lib'
12119 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12122 dynamic_linker='Win32 ld.exe'
12127 libname_spec='$name'
12128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12129 library_names_spec='${libname}.dll.lib'
12133 sys_lib_search_path_spec=
12136 for lt_path in $LIB
12139 # Let DOS variable expansion print the short 8.3 style file name.
12140 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12141 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12144 # Convert to MSYS style.
12145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12148 # Convert to unix form, then to dos form, then back to unix form
12149 # but this time dos style (no spaces!) so that the unix form looks
12150 # like /cygdrive/c/PROGRA~1:/cygdr...
12151 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12152 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12153 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12156 sys_lib_search_path_spec="$LIB"
12157 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12158 # It is most probably a Windows format PATH.
12159 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12163 # FIXME: find the short name or the path components, as spaces are
12164 # common. (e.g. "Program Files" -> "PROGRA~1")
12168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12169 postinstall_cmds='base_file=`basename \${file}`~
12170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12171 dldir=$destdir/`dirname \$dlpath`~
12172 test -d \$dldir || mkdir -p \$dldir~
12173 $install_prog $dir/$dlname \$dldir/$dlname'
12174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12175 dlpath=$dir/\$dldll~
12177 shlibpath_overrides_runpath=yes
12178 dynamic_linker='Win32 link.exe'
12182 # Assume MSVC wrapper
12183 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12184 dynamic_linker='Win32 ld.exe'
12187 # FIXME: first we should search . and the directory the executable is in
12191 darwin* | rhapsody*)
12192 dynamic_linker="$host_os dyld"
12193 version_type=darwin
12196 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12197 soname_spec='${libname}${release}${major}$shared_ext'
12198 shlibpath_overrides_runpath=yes
12199 shlibpath_var=DYLD_LIBRARY_PATH
12200 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12207 version_type=linux # correct to gnu/linux during the next big refactor
12210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12211 soname_spec='${libname}${release}${shared_ext}$major'
12212 shlibpath_var=LD_LIBRARY_PATH
12215 freebsd* | dragonfly*)
12216 # DragonFly does not have aout. When/if they implement a new
12217 # versioning mechanism, adjust this.
12218 if test -x /usr/bin/objformat; then
12219 objformat=`/usr/bin/objformat`
12222 freebsd[23].*) objformat=aout ;;
12223 *) objformat=elf ;;
12226 version_type=freebsd-$objformat
12227 case $version_type in
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12238 shlibpath_var=LD_LIBRARY_PATH
12241 shlibpath_overrides_runpath=yes
12243 freebsd3.[01]* | freebsdelf3.[01]*)
12244 shlibpath_overrides_runpath=yes
12245 hardcode_into_libs=yes
12247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12249 shlibpath_overrides_runpath=no
12250 hardcode_into_libs=yes
12252 *) # from 4.6 on, and DragonFly
12253 shlibpath_overrides_runpath=yes
12254 hardcode_into_libs=yes
12260 version_type=linux # correct to gnu/linux during the next big refactor
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=no
12267 hardcode_into_libs=yes
12271 version_type=linux # correct to gnu/linux during the next big refactor
12274 dynamic_linker="$host_os runtime_loader"
12275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12276 soname_spec='${libname}${release}${shared_ext}$major'
12277 shlibpath_var=LIBRARY_PATH
12278 shlibpath_overrides_runpath=yes
12279 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12280 hardcode_into_libs=yes
12283 hpux9* | hpux10* | hpux11*)
12284 # Give a soname corresponding to the major version so that dld.sl refuses to
12285 # link against other versions.
12292 hardcode_into_libs=yes
12293 dynamic_linker="$host_os dld.so"
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297 soname_spec='${libname}${release}${shared_ext}$major'
12298 if test "X$HPUX_IA64_MODE" = X32; then
12299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12307 hardcode_into_libs=yes
12308 dynamic_linker="$host_os dld.sl"
12309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12318 dynamic_linker="$host_os dld.sl"
12319 shlibpath_var=SHLIB_PATH
12320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322 soname_spec='${libname}${release}${shared_ext}$major'
12325 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12326 postinstall_cmds='chmod 555 $lib'
12327 # or fails outright, so override atomically:
12328 install_override_mode=555
12332 version_type=linux # correct to gnu/linux during the next big refactor
12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12336 soname_spec='${libname}${release}${shared_ext}$major'
12337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12338 shlibpath_var=LD_LIBRARY_PATH
12339 shlibpath_overrides_runpath=no
12340 hardcode_into_libs=yes
12343 irix5* | irix6* | nonstopux*)
12345 nonstopux*) version_type=nonstopux ;;
12347 if test "$lt_cv_prog_gnu_ld" = yes; then
12348 version_type=linux # correct to gnu/linux during the next big refactor
12355 soname_spec='${libname}${release}${shared_ext}$major'
12356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12358 irix5* | nonstopux*)
12359 libsuff= shlibsuff=
12362 case $LD in # libtool.m4 will add one of these switches to LD
12363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12364 libsuff= shlibsuff= libmagic=32-bit;;
12365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12366 libsuff=32 shlibsuff=N32 libmagic=N32;;
12367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12369 *) libsuff= shlibsuff= libmagic=never-match;;
12373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12374 shlibpath_overrides_runpath=no
12375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12377 hardcode_into_libs=yes
12380 # No shared lib support for Linux oldld, aout, or coff.
12381 linux*oldld* | linux*aout* | linux*coff*)
12385 # This must be glibc/ELF.
12386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12387 version_type=linux # correct to gnu/linux during the next big refactor
12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391 soname_spec='${libname}${release}${shared_ext}$major'
12392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12393 shlibpath_var=LD_LIBRARY_PATH
12394 shlibpath_overrides_runpath=no
12396 # Some binutils ld are patched to set DT_RUNPATH
12397 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12398 $as_echo_n "(cached) " >&6
12400 lt_cv_shlibpath_overrides_runpath=no
12401 save_LDFLAGS=$LDFLAGS
12402 save_libdir=$libdir
12403 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12404 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12416 if ac_fn_c_try_link "$LINENO"; then :
12417 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12418 lt_cv_shlibpath_overrides_runpath=yes
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LDFLAGS=$save_LDFLAGS
12424 libdir=$save_libdir
12428 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12430 # This implies no fast_install, which is unacceptable.
12431 # Some rework will be needed to allow for fast_install
12432 # before this can be enabled.
12433 hardcode_into_libs=yes
12435 # Append ld.so.conf contents to the search path
12436 if test -f /etc/ld.so.conf; then
12437 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' ' '`
12438 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12441 # We used to test for /lib/ld.so.1 and disable shared libraries on
12442 # powerpc, because MkLinux only supported shared libraries with the
12443 # GNU dynamic linker. Since this was broken with cross compilers,
12444 # most powerpc-linux boxes support dynamic linking these days and
12445 # people can always --disable-shared, the test was removed, and we
12446 # assume the GNU/Linux dynamic linker is in use.
12447 dynamic_linker='GNU/Linux ld.so'
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 shlibpath_overrides_runpath=no
12458 hardcode_into_libs=yes
12459 dynamic_linker='NetBSD ld.elf_so'
12466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12469 dynamic_linker='NetBSD (a.out) ld.so'
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12472 soname_spec='${libname}${release}${shared_ext}$major'
12473 dynamic_linker='NetBSD ld.elf_so'
12475 shlibpath_var=LD_LIBRARY_PATH
12476 shlibpath_overrides_runpath=yes
12477 hardcode_into_libs=yes
12481 version_type=linux # correct to gnu/linux during the next big refactor
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483 shlibpath_var=LD_LIBRARY_PATH
12484 shlibpath_overrides_runpath=yes
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492 soname_spec='${libname}${release}${shared_ext}$major'
12493 shlibpath_var=LD_LIBRARY_PATH
12494 shlibpath_overrides_runpath=no
12495 hardcode_into_libs=yes
12496 dynamic_linker='ldqnx.so'
12501 sys_lib_dlsearch_path_spec="/usr/lib"
12503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12506 *) need_version=no ;;
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12513 openbsd2.[89] | openbsd2.[89].*)
12514 shlibpath_overrides_runpath=no
12517 shlibpath_overrides_runpath=yes
12521 shlibpath_overrides_runpath=yes
12526 libname_spec='$name'
12529 library_names_spec='$libname${shared_ext} $libname.a'
12530 dynamic_linker='OS/2 ld.exe'
12531 shlibpath_var=LIBPATH
12534 osf3* | osf4* | osf5*)
12538 soname_spec='${libname}${release}${shared_ext}$major'
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12550 version_type=linux # correct to gnu/linux during the next big refactor
12553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12554 soname_spec='${libname}${release}${shared_ext}$major'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 shlibpath_overrides_runpath=yes
12557 hardcode_into_libs=yes
12558 # ldd complains unless libraries are executable
12559 postinstall_cmds='chmod +x $lib'
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 shlibpath_overrides_runpath=yes
12568 if test "$with_gnu_ld" = yes; then
12575 version_type=linux # correct to gnu/linux during the next big refactor
12576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577 soname_spec='${libname}${release}${shared_ext}$major'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 case $host_vendor in
12581 shlibpath_overrides_runpath=no
12583 runpath_var=LD_RUN_PATH
12591 shlibpath_overrides_runpath=no
12592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12598 if test -d /usr/nec ;then
12599 version_type=linux # correct to gnu/linux during the next big refactor
12600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12601 soname_spec='$libname${shared_ext}.$major'
12602 shlibpath_var=LD_LIBRARY_PATH
12606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12607 version_type=freebsd-elf
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 shlibpath_var=LD_LIBRARY_PATH
12613 shlibpath_overrides_runpath=yes
12614 hardcode_into_libs=yes
12615 if test "$with_gnu_ld" = yes; then
12616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12625 sys_lib_dlsearch_path_spec='/usr/lib'
12629 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12630 version_type=linux # correct to gnu/linux during the next big refactor
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12634 shlibpath_var=LD_LIBRARY_PATH
12635 shlibpath_overrides_runpath=no
12636 hardcode_into_libs=yes
12640 version_type=linux # correct to gnu/linux during the next big refactor
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642 soname_spec='${libname}${release}${shared_ext}$major'
12643 shlibpath_var=LD_LIBRARY_PATH
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12651 $as_echo "$dynamic_linker" >&6; }
12652 test "$dynamic_linker" = no && can_build_shared=no
12654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12655 if test "$GCC" = yes; then
12656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12660 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12663 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12758 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12760 if test -n "$hardcode_libdir_flag_spec" ||
12761 test -n "$runpath_var" ||
12762 test "X$hardcode_automatic" = "Xyes" ; then
12764 # We can hardcode non-existent directories.
12765 if test "$hardcode_direct" != no &&
12766 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12767 # have to relink, otherwise we might link with an installed library
12768 # when we should be linking with a yet-to-be-installed one
12769 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12770 test "$hardcode_minus_L" != no; then
12771 # Linking always hardcodes the temporary library directory.
12772 hardcode_action=relink
12774 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12775 hardcode_action=immediate
12778 # We cannot hardcode anything, or else we can only hardcode existing
12780 hardcode_action=unsupported
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12783 $as_echo "$hardcode_action" >&6; }
12785 if test "$hardcode_action" = relink ||
12786 test "$inherit_rpath" = yes; then
12787 # Fast installation is not supported
12788 enable_fast_install=no
12789 elif test "$shlibpath_overrides_runpath" = yes ||
12790 test "$enable_shared" = no; then
12791 # Fast installation is not necessary
12792 enable_fast_install=needless
12800 if test "x$enable_dlopen" != xyes; then
12801 enable_dlopen=unknown
12802 enable_dlopen_self=unknown
12803 enable_dlopen_self_static=unknown
12810 lt_cv_dlopen="load_add_on"
12812 lt_cv_dlopen_self=yes
12815 mingw* | pw32* | cegcc*)
12816 lt_cv_dlopen="LoadLibrary"
12821 lt_cv_dlopen="dlopen"
12826 # if libdl is installed we need to link against it
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12829 if ${ac_cv_lib_dl_dlopen+:} false; then :
12830 $as_echo_n "(cached) " >&6
12832 ac_check_lib_save_LIBS=$LIBS
12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12837 /* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12852 if ac_fn_c_try_link "$LINENO"; then :
12853 ac_cv_lib_dl_dlopen=yes
12855 ac_cv_lib_dl_dlopen=no
12857 rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12859 LIBS=$ac_check_lib_save_LIBS
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12863 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12867 lt_cv_dlopen="dyld"
12869 lt_cv_dlopen_self=yes
12876 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12877 if test "x$ac_cv_func_shl_load" = xyes; then :
12878 lt_cv_dlopen="shl_load"
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12881 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12882 if ${ac_cv_lib_dld_shl_load+:} false; then :
12883 $as_echo_n "(cached) " >&6
12885 ac_check_lib_save_LIBS=$LIBS
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12890 /* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12900 return shl_load ();
12905 if ac_fn_c_try_link "$LINENO"; then :
12906 ac_cv_lib_dld_shl_load=yes
12908 ac_cv_lib_dld_shl_load=no
12910 rm -f core conftest.err conftest.$ac_objext \
12911 conftest$ac_exeext conftest.$ac_ext
12912 LIBS=$ac_check_lib_save_LIBS
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12915 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12916 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12919 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12920 if test "x$ac_cv_func_dlopen" = xyes; then :
12921 lt_cv_dlopen="dlopen"
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12925 if ${ac_cv_lib_dl_dlopen+:} false; then :
12926 $as_echo_n "(cached) " >&6
12928 ac_check_lib_save_LIBS=$LIBS
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12933 /* Override any GCC internal prototype to avoid an error.
12934 Use char because int might match the return type of a GCC
12935 builtin and then its argument prototype would still apply. */
12948 if ac_fn_c_try_link "$LINENO"; then :
12949 ac_cv_lib_dl_dlopen=yes
12951 ac_cv_lib_dl_dlopen=no
12953 rm -f core conftest.err conftest.$ac_objext \
12954 conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12959 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12963 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12964 if ${ac_cv_lib_svld_dlopen+:} false; then :
12965 $as_echo_n "(cached) " >&6
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-lsvld $LIBS"
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_lib_svld_dlopen=yes
12990 ac_cv_lib_svld_dlopen=no
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12997 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12998 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13002 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13003 if ${ac_cv_lib_dld_dld_link+:} false; then :
13004 $as_echo_n "(cached) " >&6
13006 ac_check_lib_save_LIBS=$LIBS
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13011 /* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13021 return dld_link ();
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 ac_cv_lib_dld_dld_link=yes
13029 ac_cv_lib_dld_dld_link=no
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13036 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13037 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13038 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13059 if test "x$lt_cv_dlopen" != xno; then
13065 case $lt_cv_dlopen in
13067 save_CPPFLAGS="$CPPFLAGS"
13068 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13070 save_LDFLAGS="$LDFLAGS"
13071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13074 LIBS="$lt_cv_dlopen_libs $LIBS"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13077 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13078 if ${lt_cv_dlopen_self+:} false; then :
13079 $as_echo_n "(cached) " >&6
13081 if test "$cross_compiling" = yes; then :
13082 lt_cv_dlopen_self=cross
13084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13085 lt_status=$lt_dlunknown
13086 cat > conftest.$ac_ext <<_LT_EOF
13087 #line $LINENO "configure"
13088 #include "confdefs.h"
13097 # define LT_DLGLOBAL RTLD_GLOBAL
13100 # define LT_DLGLOBAL DL_GLOBAL
13102 # define LT_DLGLOBAL 0
13106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13107 find out it does not work in some platform. */
13108 #ifndef LT_DLLAZY_OR_NOW
13110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13113 # define LT_DLLAZY_OR_NOW DL_LAZY
13116 # define LT_DLLAZY_OR_NOW RTLD_NOW
13119 # define LT_DLLAZY_OR_NOW DL_NOW
13121 # define LT_DLLAZY_OR_NOW 0
13128 /* When -fvisbility=hidden is used, assume the code has been annotated
13129 correspondingly for the symbols needed. */
13130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13131 int fnord () __attribute__((visibility("default")));
13134 int fnord () { return 42; }
13137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13138 int status = $lt_dlunknown;
13142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13146 else puts (dlerror ());
13148 /* dlclose (self); */
13156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13157 (eval $ac_link) 2>&5
13159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13161 (./conftest; exit; ) >&5 2>/dev/null
13163 case x$lt_status in
13164 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13165 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13166 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13169 # compilation failed
13170 lt_cv_dlopen_self=no
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13178 $as_echo "$lt_cv_dlopen_self" >&6; }
13180 if test "x$lt_cv_dlopen_self" = xyes; then
13181 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13183 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13184 if ${lt_cv_dlopen_self_static+:} false; then :
13185 $as_echo_n "(cached) " >&6
13187 if test "$cross_compiling" = yes; then :
13188 lt_cv_dlopen_self_static=cross
13190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13191 lt_status=$lt_dlunknown
13192 cat > conftest.$ac_ext <<_LT_EOF
13193 #line $LINENO "configure"
13194 #include "confdefs.h"
13203 # define LT_DLGLOBAL RTLD_GLOBAL
13206 # define LT_DLGLOBAL DL_GLOBAL
13208 # define LT_DLGLOBAL 0
13212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13213 find out it does not work in some platform. */
13214 #ifndef LT_DLLAZY_OR_NOW
13216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13219 # define LT_DLLAZY_OR_NOW DL_LAZY
13222 # define LT_DLLAZY_OR_NOW RTLD_NOW
13225 # define LT_DLLAZY_OR_NOW DL_NOW
13227 # define LT_DLLAZY_OR_NOW 0
13234 /* When -fvisbility=hidden is used, assume the code has been annotated
13235 correspondingly for the symbols needed. */
13236 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13237 int fnord () __attribute__((visibility("default")));
13240 int fnord () { return 42; }
13243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13244 int status = $lt_dlunknown;
13248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13251 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13252 else puts (dlerror ());
13254 /* dlclose (self); */
13262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13263 (eval $ac_link) 2>&5
13265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13266 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13267 (./conftest; exit; ) >&5 2>/dev/null
13269 case x$lt_status in
13270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13275 # compilation failed
13276 lt_cv_dlopen_self_static=no
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13284 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13287 CPPFLAGS="$save_CPPFLAGS"
13288 LDFLAGS="$save_LDFLAGS"
13293 case $lt_cv_dlopen_self in
13294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13295 *) enable_dlopen_self=unknown ;;
13298 case $lt_cv_dlopen_self_static in
13299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13300 *) enable_dlopen_self_static=unknown ;;
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13323 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13326 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13328 $as_echo "yes" >&6; }
13330 # FIXME - insert some real tests, host_os isn't really good enough
13333 if test -n "$STRIP" ; then
13334 striplib="$STRIP -x"
13335 old_striplib="$STRIP -S"
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337 $as_echo "yes" >&6; }
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 $as_echo "no" >&6; }
13361 # Report which library types will actually be built
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13363 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13365 $as_echo "$can_build_shared" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13368 $as_echo_n "checking whether to build shared libraries... " >&6; }
13369 test "$can_build_shared" = "no" && enable_shared=no
13371 # On AIX, shared libraries and static libraries use the same namespace, and
13372 # are all built from PIC.
13375 test "$enable_shared" = yes && enable_static=no
13376 if test -n "$RANLIB"; then
13377 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13378 postinstall_cmds='$RANLIB $lib'
13383 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13384 test "$enable_shared" = yes && enable_static=no
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13389 $as_echo "$enable_shared" >&6; }
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13392 $as_echo_n "checking whether to build static libraries... " >&6; }
13393 # Make sure either enable_shared or enable_static is yes.
13394 test "$enable_shared" = yes || enable_static=yes
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13396 $as_echo "$enable_static" >&6; }
13403 ac_cpp='$CPP $CPPFLAGS'
13404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13410 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13411 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13412 (test "X$CXX" != "Xg++"))) ; then
13414 ac_cpp='$CXXCPP $CPPFLAGS'
13415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13419 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13420 if test -z "$CXXCPP"; then
13421 if ${ac_cv_prog_CXXCPP+:} false; then :
13422 $as_echo_n "(cached) " >&6
13424 # Double quotes because CXXCPP needs to be expanded
13425 for CXXCPP in "$CXX -E" "/lib/cpp"
13427 ac_preproc_ok=false
13428 for ac_cxx_preproc_warn_flag in '' yes
13430 # Use a header file that comes with gcc, so configuring glibc
13431 # with a fresh cross-compiler works.
13432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13433 # <limits.h> exists even on freestanding compilers.
13434 # On the NeXT, cc -E runs the code through the compiler's parser,
13435 # not just through cpp. "Syntax error" is here to catch this case.
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13439 # include <limits.h>
13441 # include <assert.h>
13445 if ac_fn_cxx_try_cpp "$LINENO"; then :
13448 # Broken: fails on valid input.
13451 rm -f conftest.err conftest.i conftest.$ac_ext
13453 # OK, works on sane cases. Now check whether nonexistent headers
13454 # can be detected and how.
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457 #include <ac_nonexistent.h>
13459 if ac_fn_cxx_try_cpp "$LINENO"; then :
13460 # Broken: success on invalid input.
13463 # Passes both tests.
13467 rm -f conftest.err conftest.i conftest.$ac_ext
13470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13471 rm -f conftest.i conftest.err conftest.$ac_ext
13472 if $ac_preproc_ok; then :
13477 ac_cv_prog_CXXCPP=$CXXCPP
13480 CXXCPP=$ac_cv_prog_CXXCPP
13482 ac_cv_prog_CXXCPP=$CXXCPP
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13485 $as_echo "$CXXCPP" >&6; }
13486 ac_preproc_ok=false
13487 for ac_cxx_preproc_warn_flag in '' yes
13489 # Use a header file that comes with gcc, so configuring glibc
13490 # with a fresh cross-compiler works.
13491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13492 # <limits.h> exists even on freestanding compilers.
13493 # On the NeXT, cc -E runs the code through the compiler's parser,
13494 # not just through cpp. "Syntax error" is here to catch this case.
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13498 # include <limits.h>
13500 # include <assert.h>
13504 if ac_fn_cxx_try_cpp "$LINENO"; then :
13507 # Broken: fails on valid input.
13510 rm -f conftest.err conftest.i conftest.$ac_ext
13512 # OK, works on sane cases. Now check whether nonexistent headers
13513 # can be detected and how.
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 #include <ac_nonexistent.h>
13518 if ac_fn_cxx_try_cpp "$LINENO"; then :
13519 # Broken: success on invalid input.
13522 # Passes both tests.
13526 rm -f conftest.err conftest.i conftest.$ac_ext
13529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13530 rm -f conftest.i conftest.err conftest.$ac_ext
13531 if $ac_preproc_ok; then :
13534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13536 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13537 See \`config.log' for more details" "$LINENO" 5; }
13541 ac_cpp='$CPP $CPPFLAGS'
13542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13547 _lt_caught_CXX_error=yes
13551 ac_cpp='$CXXCPP $CPPFLAGS'
13552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13556 archive_cmds_need_lc_CXX=no
13557 allow_undefined_flag_CXX=
13558 always_export_symbols_CXX=no
13559 archive_expsym_cmds_CXX=
13560 compiler_needs_object_CXX=no
13561 export_dynamic_flag_spec_CXX=
13562 hardcode_direct_CXX=no
13563 hardcode_direct_absolute_CXX=no
13564 hardcode_libdir_flag_spec_CXX=
13565 hardcode_libdir_separator_CXX=
13566 hardcode_minus_L_CXX=no
13567 hardcode_shlibpath_var_CXX=unsupported
13568 hardcode_automatic_CXX=no
13569 inherit_rpath_CXX=no
13571 module_expsym_cmds_CXX=
13572 link_all_deplibs_CXX=unknown
13573 old_archive_cmds_CXX=$old_archive_cmds
13574 reload_flag_CXX=$reload_flag
13575 reload_cmds_CXX=$reload_cmds
13576 no_undefined_flag_CXX=
13577 whole_archive_flag_spec_CXX=
13578 enable_shared_with_static_runtimes_CXX=no
13580 # Source file extension for C++ test sources.
13583 # Object file extension for compiled C++ test sources.
13587 # No sense in running all these tests if we already determined that
13588 # the CXX compiler isn't working. Some variables (like enable_shared)
13589 # are currently assumed to apply to all compilers on this platform,
13590 # and will be corrupted by setting them based on a non-working compiler.
13591 if test "$_lt_caught_CXX_error" != yes; then
13592 # Code to be used in simple compile tests
13593 lt_simple_compile_test_code="int some_variable = 0;"
13595 # Code to be used in simple link tests
13596 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13605 # If no C compiler was specified, use CC.
13608 # If no C compiler flags were specified, use CFLAGS.
13609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13611 # Allow CC to be a program name with arguments.
13615 # save warnings/boilerplate of simple test code
13616 ac_outfile=conftest.$ac_objext
13617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13619 _lt_compiler_boilerplate=`cat conftest.err`
13622 ac_outfile=conftest.$ac_objext
13623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13625 _lt_linker_boilerplate=`cat conftest.err`
13629 # Allow CC to be a program name with arguments.
13631 lt_save_CFLAGS=$CFLAGS
13635 lt_save_with_gnu_ld=$with_gnu_ld
13636 lt_save_path_LD=$lt_cv_path_LD
13637 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13638 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13640 $as_unset lt_cv_prog_gnu_ld
13642 if test -n "${lt_cv_path_LDCXX+set}"; then
13643 lt_cv_path_LD=$lt_cv_path_LDCXX
13645 $as_unset lt_cv_path_LD
13647 test -z "${LDCXX+set}" || LD=$LDCXX
13652 for cc_temp in $compiler""; do
13654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13660 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13663 if test -n "$compiler"; then
13664 # We don't want -fno-exception when compiling C++ code, so set the
13665 # no_builtin_flag separately
13666 if test "$GXX" = yes; then
13667 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13669 lt_prog_compiler_no_builtin_flag_CXX=
13672 if test "$GXX" = yes; then
13673 # Set up default GNU C++ configuration
13677 # Check whether --with-gnu-ld was given.
13678 if test "${with_gnu_ld+set}" = set; then :
13679 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13685 if test "$GCC" = yes; then
13686 # Check if gcc -print-prog-name=ld gives a path.
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13688 $as_echo_n "checking for ld used by $CC... " >&6; }
13691 # gcc leaves a trailing carriage return which upsets mingw
13692 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13694 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13697 # Accept absolute paths.
13699 re_direlt='/[^/][^/]*/\.\./'
13700 # Canonicalize the pathname of ld
13701 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13702 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13703 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13705 test -z "$LD" && LD="$ac_prog"
13708 # If it fails, then pretend we aren't using GCC.
13712 # If it is relative, then search for the first ld in PATH.
13713 with_gnu_ld=unknown
13716 elif test "$with_gnu_ld" = yes; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13718 $as_echo_n "checking for GNU ld... " >&6; }
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13721 $as_echo_n "checking for non-GNU ld... " >&6; }
13723 if ${lt_cv_path_LD+:} false; then :
13724 $as_echo_n "(cached) " >&6
13726 if test -z "$LD"; then
13727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13728 for ac_dir in $PATH; do
13730 test -z "$ac_dir" && ac_dir=.
13731 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13732 lt_cv_path_LD="$ac_dir/$ac_prog"
13733 # Check to see if the program is GNU ld. I'd rather use --version,
13734 # but apparently some variants of GNU ld only accept -v.
13735 # Break only if it was the GNU/non-GNU ld that we prefer.
13736 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13737 *GNU* | *'with BFD'*)
13738 test "$with_gnu_ld" != no && break
13741 test "$with_gnu_ld" != yes && break
13748 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13752 LD="$lt_cv_path_LD"
13753 if test -n "$LD"; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13755 $as_echo "$LD" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13760 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13762 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13763 if ${lt_cv_prog_gnu_ld+:} false; then :
13764 $as_echo_n "(cached) " >&6
13766 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13767 case `$LD -v 2>&1 </dev/null` in
13768 *GNU* | *'with BFD'*)
13769 lt_cv_prog_gnu_ld=yes
13772 lt_cv_prog_gnu_ld=no
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13777 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13778 with_gnu_ld=$lt_cv_prog_gnu_ld
13786 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13787 # archiving commands below assume that GNU ld is being used.
13788 if test "$with_gnu_ld" = yes; then
13789 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13790 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'
13792 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13795 # If archive_cmds runs LD, not CC, wlarc should be empty
13796 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13797 # investigate it a little bit more. (MM)
13800 # ancient GNU ld didn't support --whole-archive et. al.
13801 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13802 $GREP 'no-whole-archive' > /dev/null; then
13803 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13805 whole_archive_flag_spec_CXX=
13811 # A generic and very simple default shared library creation
13812 # command for GNU C++ for the case where it uses the native
13813 # linker, instead of GNU ld. If possible, this setting should
13814 # overridden to take advantage of the native linker features on
13815 # the platform it is being used on.
13816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13819 # Commands to make compiler produce verbose output that lists
13820 # what "hidden" libraries, object files and flags are used when
13821 # linking a shared library.
13822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13830 # PORTME: fill in a description of your system's C++ link characteristics
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13832 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13836 # FIXME: insert proper C++ library support
13840 if test "$host_cpu" = ia64; then
13841 # On IA64, the linker does run time linking by default, so we don't
13842 # have to do anything special.
13843 aix_use_runtimelinking=no
13844 exp_sym_flag='-Bexport'
13847 aix_use_runtimelinking=no
13849 # Test if we are trying to use run time linking or normal
13850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13851 # need to do runtime linking.
13852 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13853 for ld_flag in $LDFLAGS; do
13856 aix_use_runtimelinking=yes
13864 exp_sym_flag='-bexport'
13865 no_entry_flag='-bnoentry'
13868 # When large executables or shared objects are built, AIX ld can
13869 # have problems creating the table of contents. If linking a library
13870 # or program results in "error TOC overflow" add -mminimal-toc to
13871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13874 archive_cmds_CXX=''
13875 hardcode_direct_CXX=yes
13876 hardcode_direct_absolute_CXX=yes
13877 hardcode_libdir_separator_CXX=':'
13878 link_all_deplibs_CXX=yes
13879 file_list_spec_CXX='${wl}-f,'
13881 if test "$GXX" = yes; then
13882 case $host_os in aix4.[012]|aix4.[012].*)
13883 # We only want to do this on AIX 4.2 and lower, the check
13884 # below for broken collect2 doesn't work under 4.3+
13885 collect2name=`${CC} -print-prog-name=collect2`
13886 if test -f "$collect2name" &&
13887 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13889 # We have reworked collect2
13892 # We have old collect2
13893 hardcode_direct_CXX=unsupported
13894 # It fails to find uninstalled libraries when the uninstalled
13895 # path is not listed in the libpath. Setting hardcode_minus_L
13896 # to unsupported forces relinking
13897 hardcode_minus_L_CXX=yes
13898 hardcode_libdir_flag_spec_CXX='-L$libdir'
13899 hardcode_libdir_separator_CXX=
13902 shared_flag='-shared'
13903 if test "$aix_use_runtimelinking" = yes; then
13904 shared_flag="$shared_flag "'${wl}-G'
13908 if test "$host_cpu" = ia64; then
13909 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13910 # chokes on -Wl,-G. The following line is correct:
13913 if test "$aix_use_runtimelinking" = yes; then
13914 shared_flag='${wl}-G'
13916 shared_flag='${wl}-bM:SRE'
13921 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13922 # It seems that -bexpall does not export symbols beginning with
13923 # underscore (_), so it is better to generate a list of symbols to
13925 always_export_symbols_CXX=yes
13926 if test "$aix_use_runtimelinking" = yes; then
13927 # Warning - without using the other runtime loading flags (-brtl),
13928 # -berok will link without error, but may produce a broken library.
13929 allow_undefined_flag_CXX='-berok'
13930 # Determine the default libpath from the value encoded in an empty
13932 if test "${lt_cv_aix_libpath+set}" = set; then
13933 aix_libpath=$lt_cv_aix_libpath
13935 if ${lt_cv_aix_libpath__CXX+:} false; then :
13936 $as_echo_n "(cached) " >&6
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13949 if ac_fn_cxx_try_link "$LINENO"; then :
13951 lt_aix_libpath_sed='
13952 /Import File Strings/,/^$/ {
13954 s/^0 *\([^ ]*\) *$/\1/
13958 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13959 # Check for a 64-bit object if we didn't find anything.
13960 if test -z "$lt_cv_aix_libpath__CXX"; then
13961 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13966 if test -z "$lt_cv_aix_libpath__CXX"; then
13967 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13972 aix_libpath=$lt_cv_aix_libpath__CXX
13975 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13977 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"
13979 if test "$host_cpu" = ia64; then
13980 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13981 allow_undefined_flag_CXX="-z nodefs"
13982 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"
13984 # Determine the default libpath from the value encoded in an
13985 # empty executable.
13986 if test "${lt_cv_aix_libpath+set}" = set; then
13987 aix_libpath=$lt_cv_aix_libpath
13989 if ${lt_cv_aix_libpath__CXX+:} false; then :
13990 $as_echo_n "(cached) " >&6
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
14003 if ac_fn_cxx_try_link "$LINENO"; then :
14005 lt_aix_libpath_sed='
14006 /Import File Strings/,/^$/ {
14008 s/^0 *\([^ ]*\) *$/\1/
14012 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14013 # Check for a 64-bit object if we didn't find anything.
14014 if test -z "$lt_cv_aix_libpath__CXX"; then
14015 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14018 rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020 if test -z "$lt_cv_aix_libpath__CXX"; then
14021 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14026 aix_libpath=$lt_cv_aix_libpath__CXX
14029 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14030 # Warning - without using the other run time loading flags,
14031 # -berok will link without error, but may produce a broken library.
14032 no_undefined_flag_CXX=' ${wl}-bernotok'
14033 allow_undefined_flag_CXX=' ${wl}-berok'
14034 if test "$with_gnu_ld" = yes; then
14035 # We only use this code for GNU lds that support --whole-archive.
14036 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14038 # Exported symbols can be pulled into shared objects from archives
14039 whole_archive_flag_spec_CXX='$convenience'
14041 archive_cmds_need_lc_CXX=yes
14042 # This is similar to how AIX traditionally builds its shared
14044 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'
14050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14051 allow_undefined_flag_CXX=unsupported
14052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14053 # support --undefined. This deserves some investigation. FIXME
14054 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14061 case $cc_basename in
14063 # FIXME: insert proper C++ library support
14069 cygwin* | mingw* | pw32* | cegcc*)
14070 case $GXX,$cc_basename in
14073 # hardcode_libdir_flag_spec is actually meaningless, as there is
14074 # no search path for DLLs.
14075 hardcode_libdir_flag_spec_CXX=' '
14076 allow_undefined_flag_CXX=unsupported
14077 always_export_symbols_CXX=yes
14078 file_list_spec_CXX='@'
14079 # Tell ltmain to make .lib files, not .a files.
14081 # Tell ltmain to make .dll files, not .so files.
14083 # FIXME: Setting linknames here is a bad hack.
14084 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14085 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14086 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14088 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14090 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14092 # The linker will not automatically build a static lib if we build a DLL.
14093 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14094 enable_shared_with_static_runtimes_CXX=yes
14096 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14097 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14098 lt_tool_outputfile="@TOOL_OUTPUT@"~
14099 case $lt_outputfile in
14102 lt_outputfile="$lt_outputfile.exe"
14103 lt_tool_outputfile="$lt_tool_outputfile.exe"
14106 func_to_tool_file "$lt_outputfile"~
14107 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14108 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14109 $RM "$lt_outputfile.manifest";
14114 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14115 # as there is no search path for DLLs.
14116 hardcode_libdir_flag_spec_CXX='-L$libdir'
14117 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14118 allow_undefined_flag_CXX=unsupported
14119 always_export_symbols_CXX=no
14120 enable_shared_with_static_runtimes_CXX=yes
14122 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14123 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'
14124 # If the export-symbols file already is a .def file (1st line
14125 # is EXPORTS), use it as is; otherwise, prepend...
14126 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14127 cp $export_symbols $output_objdir/$soname.def;
14129 echo EXPORTS > $output_objdir/$soname.def;
14130 cat $export_symbols >> $output_objdir/$soname.def;
14132 $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'
14139 darwin* | rhapsody*)
14142 archive_cmds_need_lc_CXX=no
14143 hardcode_direct_CXX=no
14144 hardcode_automatic_CXX=yes
14145 hardcode_shlibpath_var_CXX=unsupported
14146 if test "$lt_cv_ld_force_load" = "yes"; then
14147 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\"`'
14150 whole_archive_flag_spec_CXX=''
14152 link_all_deplibs_CXX=yes
14153 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14154 case $cc_basename in
14155 ifort*) _lt_dar_can_shared=yes ;;
14156 *) _lt_dar_can_shared=$GCC ;;
14158 if test "$_lt_dar_can_shared" = "yes"; then
14159 output_verbose_link_cmd=func_echo_all
14160 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}"
14161 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14162 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}"
14163 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}"
14164 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14165 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}"
14166 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}"
14176 case $cc_basename in
14178 # FIXME: insert proper C++ library support
14182 # Green Hills C++ Compiler
14183 # FIXME: insert proper C++ library support
14187 # FIXME: insert proper C++ library support
14194 # C++ shared libraries reported to be fairly broken before
14200 archive_cmds_need_lc_CXX=no
14203 freebsd* | dragonfly*)
14204 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14213 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214 link_all_deplibs_CXX=yes
14218 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14219 hardcode_libdir_separator_CXX=:
14220 export_dynamic_flag_spec_CXX='${wl}-E'
14221 hardcode_direct_CXX=yes
14222 hardcode_minus_L_CXX=yes # Not in the search PATH,
14223 # but as the default
14224 # location of the library.
14226 case $cc_basename in
14228 # FIXME: insert proper C++ library support
14232 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'
14233 # Commands to make compiler produce verbose output that lists
14234 # what "hidden" libraries, object files and flags are used when
14235 # linking a shared library.
14237 # There doesn't appear to be a way to prevent this compiler from
14238 # explicitly linking system object files so we need to strip them
14239 # from the output so that they don't get included in the library
14241 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"'
14244 if test "$GXX" = yes; then
14245 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'
14247 # FIXME: insert proper C++ library support
14255 if test $with_gnu_ld = no; then
14256 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14257 hardcode_libdir_separator_CXX=:
14263 export_dynamic_flag_spec_CXX='${wl}-E'
14269 hardcode_direct_CXX=no
14270 hardcode_shlibpath_var_CXX=no
14273 hardcode_direct_CXX=yes
14274 hardcode_direct_absolute_CXX=yes
14275 hardcode_minus_L_CXX=yes # Not in the search PATH,
14276 # but as the default
14277 # location of the library.
14281 case $cc_basename in
14283 # FIXME: insert proper C++ library support
14289 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14292 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14295 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14298 # Commands to make compiler produce verbose output that lists
14299 # what "hidden" libraries, object files and flags are used when
14300 # linking a shared library.
14302 # There doesn't appear to be a way to prevent this compiler from
14303 # explicitly linking system object files so we need to strip them
14304 # from the output so that they don't get included in the library
14306 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"'
14309 if test "$GXX" = yes; then
14310 if test $with_gnu_ld = no; then
14313 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14316 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14319 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'
14324 # FIXME: insert proper C++ library support
14332 hardcode_direct_CXX=no
14333 hardcode_shlibpath_var_CXX=no
14334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14335 export_dynamic_flag_spec_CXX='${wl}-E'
14336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14337 # Instead, shared libraries are loaded at an image base (0x10000000 by
14338 # default) and relocated if they conflict, which is a slow very memory
14339 # consuming and fragmenting process. To avoid this, we pick a random,
14340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14342 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'
14343 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'
14346 case $cc_basename in
14349 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'
14351 # Archives containing C++ object files must be created using
14352 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14353 # necessary to make sure instantiated templates are included
14355 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14358 if test "$GXX" = yes; then
14359 if test "$with_gnu_ld" = no; then
14360 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'
14362 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'
14365 link_all_deplibs_CXX=yes
14368 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14369 hardcode_libdir_separator_CXX=:
14370 inherit_rpath_CXX=yes
14373 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14374 case $cc_basename in
14376 # Kuck and Associates, Inc. (KAI) C++ Compiler
14378 # KCC will only create a shared library if the output file
14379 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14380 # to its proper name (with version) after linking.
14381 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'
14382 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'
14383 # Commands to make compiler produce verbose output that lists
14384 # what "hidden" libraries, object files and flags are used when
14385 # linking a shared library.
14387 # There doesn't appear to be a way to prevent this compiler from
14388 # explicitly linking system object files so we need to strip them
14389 # from the output so that they don't get included in the library
14391 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"'
14393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14396 # Archives containing C++ object files must be created using
14397 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14398 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14403 # version 8.0 and above of icpc choke on multiply defined symbols
14404 # if we add $predep_objects and $postdep_objects, however 7.1 and
14405 # earlier do not add the objects themselves.
14406 case `$CC -V 2>&1` in
14408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14409 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'
14411 *) # Version 8.0 or newer
14414 ia64*) tmp_idyn=' -i_dynamic';;
14416 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14417 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'
14420 archive_cmds_need_lc_CXX=no
14421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14423 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14426 # Portland Group C++ compiler
14428 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14429 prelink_cmds_CXX='tpldir=Template.dir~
14431 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14432 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14433 old_archive_cmds_CXX='tpldir=Template.dir~
14435 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14436 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14438 archive_cmds_CXX='tpldir=Template.dir~
14440 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14441 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14442 archive_expsym_cmds_CXX='tpldir=Template.dir~
14444 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14445 $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'
14447 *) # Version 6 and above use weak symbols
14448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14449 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'
14453 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14455 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'
14459 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14460 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'
14462 runpath_var=LD_RUN_PATH
14463 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14464 hardcode_libdir_separator_CXX=:
14466 # Commands to make compiler produce verbose output that lists
14467 # what "hidden" libraries, object files and flags are used when
14468 # linking a shared library.
14470 # There doesn't appear to be a way to prevent this compiler from
14471 # explicitly linking system object files so we need to strip them
14472 # from the output so that they don't get included in the library
14474 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'
14476 xl* | mpixl* | bgxl*)
14477 # IBM XL 8.0 on PPC, with GNU ld
14478 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14480 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481 if test "x$supports_anon_versioning" = xyes; then
14482 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14484 echo "local: *; };" >> $output_objdir/$libname.ver~
14485 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14489 case `$CC -V 2>&1 | sed 5q` in
14492 no_undefined_flag_CXX=' -zdefs'
14493 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14494 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'
14495 hardcode_libdir_flag_spec_CXX='-R$libdir'
14496 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'
14497 compiler_needs_object_CXX=yes
14499 # Not sure whether something based on
14500 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14502 output_verbose_link_cmd='func_echo_all'
14504 # Archives containing C++ object files must be created using
14505 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14506 # necessary to make sure instantiated templates are included
14508 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14516 # FIXME: insert proper C++ library support
14521 # FIXME: insert proper C++ library support
14526 case $cc_basename in
14528 # FIXME: insert proper C++ library support
14532 # FIXME: insert proper C++ library support
14539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14540 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14542 hardcode_libdir_flag_spec_CXX='-R$libdir'
14543 hardcode_direct_CXX=yes
14544 hardcode_shlibpath_var_CXX=no
14546 # Workaround some broken pre-1.5 toolchains
14547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14555 # C++ shared libraries are fairly broken
14560 if test -f /usr/libexec/ld.so; then
14561 hardcode_direct_CXX=yes
14562 hardcode_shlibpath_var_CXX=no
14563 hardcode_direct_absolute_CXX=yes
14564 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14567 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14568 export_dynamic_flag_spec_CXX='${wl}-E'
14569 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14571 output_verbose_link_cmd=func_echo_all
14577 osf3* | osf4* | osf5*)
14578 case $cc_basename in
14580 # Kuck and Associates, Inc. (KAI) C++ Compiler
14582 # KCC will only create a shared library if the output file
14583 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14584 # to its proper name (with version) after linking.
14585 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'
14587 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14588 hardcode_libdir_separator_CXX=:
14590 # Archives containing C++ object files must be created using
14591 # the KAI C++ compiler.
14593 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14594 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14598 # Rational C++ 2.4.1
14599 # FIXME: insert proper C++ library support
14605 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14606 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'
14607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14610 allow_undefined_flag_CXX=' -expect_unresolved \*'
14611 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'
14612 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14613 echo "-hidden">> $lib.exp~
14614 $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~
14616 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14620 hardcode_libdir_separator_CXX=:
14622 # Commands to make compiler produce verbose output that lists
14623 # what "hidden" libraries, object files and flags are used when
14624 # linking a shared library.
14626 # There doesn't appear to be a way to prevent this compiler from
14627 # explicitly linking system object files so we need to strip them
14628 # from the output so that they don't get included in the library
14630 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"'
14633 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14634 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14637 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'
14640 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'
14644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14645 hardcode_libdir_separator_CXX=:
14647 # Commands to make compiler produce verbose output that lists
14648 # what "hidden" libraries, object files and flags are used when
14649 # linking a shared library.
14650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14653 # FIXME: insert proper C++ library support
14661 # FIXME: insert proper C++ library support
14666 case $cc_basename in
14669 # FIXME: insert proper C++ library support
14674 # FIXME: insert proper C++ library support
14678 # FIXME: insert proper C++ library support
14685 case $cc_basename in
14687 # Sun C++ 4.2, 5.x and Centerline C++
14688 archive_cmds_need_lc_CXX=yes
14689 no_undefined_flag_CXX=' -zdefs'
14690 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14691 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14692 $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'
14694 hardcode_libdir_flag_spec_CXX='-R$libdir'
14695 hardcode_shlibpath_var_CXX=no
14697 solaris2.[0-5] | solaris2.[0-5].*) ;;
14699 # The compiler driver will combine and reorder linker options,
14700 # but understands `-z linker_flag'.
14701 # Supported since Solaris 2.6 (maybe 2.5.1?)
14702 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14705 link_all_deplibs_CXX=yes
14707 output_verbose_link_cmd='func_echo_all'
14709 # Archives containing C++ object files must be created using
14710 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14711 # necessary to make sure instantiated templates are included
14713 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14716 # Green Hills C++ Compiler
14717 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14719 # The C++ compiler must be used to create the archive.
14720 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14723 # GNU C++ compiler with Solaris linker
14724 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14725 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14726 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14727 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14728 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14729 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14731 # Commands to make compiler produce verbose output that lists
14732 # what "hidden" libraries, object files and flags are used when
14733 # linking a shared library.
14734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14736 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14738 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14739 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14740 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14742 # Commands to make compiler produce verbose output that lists
14743 # what "hidden" libraries, object files and flags are used when
14744 # linking a shared library.
14745 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14748 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14750 solaris2.[0-5] | solaris2.[0-5].*) ;;
14752 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14760 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14761 no_undefined_flag_CXX='${wl}-z,text'
14762 archive_cmds_need_lc_CXX=no
14763 hardcode_shlibpath_var_CXX=no
14764 runpath_var='LD_RUN_PATH'
14766 case $cc_basename in
14768 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14772 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14773 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778 sysv5* | sco3.2v5* | sco5v6*)
14779 # Note: We can NOT use -z defs as we might desire, because we do not
14780 # link with -lc, and that would cause any symbols used from libc to
14781 # always be unresolved, which means just about no library would
14782 # ever link correctly. If we're not using GNU ld we use -z text
14783 # though, which does catch some bad symbols but isn't as heavy-handed
14785 no_undefined_flag_CXX='${wl}-z,text'
14786 allow_undefined_flag_CXX='${wl}-z,nodefs'
14787 archive_cmds_need_lc_CXX=no
14788 hardcode_shlibpath_var_CXX=no
14789 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14790 hardcode_libdir_separator_CXX=':'
14791 link_all_deplibs_CXX=yes
14792 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14793 runpath_var='LD_RUN_PATH'
14795 case $cc_basename in
14797 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14800 '"$old_archive_cmds_CXX"
14801 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14802 '"$reload_cmds_CXX"
14805 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14806 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 case $cc_basename in
14814 # NonStop-UX NCC 3.20
14815 # FIXME: insert proper C++ library support
14819 # FIXME: insert proper C++ library support
14826 # FIXME: insert proper C++ library support
14831 # FIXME: insert proper C++ library support
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14837 $as_echo "$ld_shlibs_CXX" >&6; }
14838 test "$ld_shlibs_CXX" = no && can_build_shared=no
14844 ## There is no encapsulation within the following macros, do not change
14845 ## the running order or otherwise move them around unless you know exactly
14846 ## what you are doing...
14847 # Dependencies to place before and after the object being linked:
14848 predep_objects_CXX=
14849 postdep_objects_CXX=
14852 compiler_lib_search_path_CXX=
14854 cat > conftest.$ac_ext <<_LT_EOF
14858 Foo (void) { a = 0; }
14865 _lt_libdeps_save_CFLAGS=$CFLAGS
14866 case "$CC $CFLAGS " in #(
14867 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14868 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14869 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14873 (eval $ac_compile) 2>&5
14875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876 test $ac_status = 0; }; then
14877 # Parse the compiler output and extract the necessary
14878 # objects, libraries and library flags.
14880 # Sentinel used to keep track of whether or not we are before
14881 # the conftest object file.
14882 pre_test_object_deps_done=no
14884 for p in `eval "$output_verbose_link_cmd"`; do
14885 case ${prev}${p} in
14888 # Some compilers place space between "-{L,R}" and the path.
14889 # Remove the space.
14890 if test $p = "-L" ||
14891 test $p = "-R"; then
14896 # Expand the sysroot to ease extracting the directories later.
14897 if test -z "$prev"; then
14899 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14900 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14901 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14905 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14907 if test "$pre_test_object_deps_done" = no; then
14910 # Internal compiler library paths should come after those
14911 # provided the user. The postdeps already come after the
14912 # user supplied libs so there is no need to process them.
14913 if test -z "$compiler_lib_search_path_CXX"; then
14914 compiler_lib_search_path_CXX="${prev}${p}"
14916 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14919 # The "-l" case would never come before the object being
14920 # linked, so don't bother handling this case.
14923 if test -z "$postdeps_CXX"; then
14924 postdeps_CXX="${prev}${p}"
14926 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14932 *.lto.$objext) ;; # Ignore GCC LTO objects
14934 # This assumes that the test object file only shows up
14935 # once in the compiler output.
14936 if test "$p" = "conftest.$objext"; then
14937 pre_test_object_deps_done=yes
14941 if test "$pre_test_object_deps_done" = no; then
14942 if test -z "$predep_objects_CXX"; then
14943 predep_objects_CXX="$p"
14945 predep_objects_CXX="$predep_objects_CXX $p"
14948 if test -z "$postdep_objects_CXX"; then
14949 postdep_objects_CXX="$p"
14951 postdep_objects_CXX="$postdep_objects_CXX $p"
14956 *) ;; # Ignore the rest.
14964 echo "libtool.m4: error: problem compiling CXX test program"
14967 $RM -f confest.$objext
14968 CFLAGS=$_lt_libdeps_save_CFLAGS
14970 # PORTME: override above test on systems where it is broken
14973 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14974 # hack all around it, let's just trust "g++" to DTRT.
14975 predep_objects_CXX=
14976 postdep_objects_CXX=
14981 case `$CC -V 2>&1 | sed 5q` in
14985 # The more standards-conforming stlport4 library is
14986 # incompatible with the Cstd library. Avoid specifying
14987 # it if it's in CXXFLAGS. Ignore libCrun as
14988 # -library=stlport4 depends on it.
14989 case " $CXX $CXXFLAGS " in
14990 *" -library=stlport4 "*)
14991 solaris_use_stlport4=yes
14995 if test "$solaris_use_stlport4" != yes; then
14996 postdeps_CXX='-library=Cstd -library=Crun'
15003 case $cc_basename in
15005 # The more standards-conforming stlport4 library is
15006 # incompatible with the Cstd library. Avoid specifying
15007 # it if it's in CXXFLAGS. Ignore libCrun as
15008 # -library=stlport4 depends on it.
15009 case " $CXX $CXXFLAGS " in
15010 *" -library=stlport4 "*)
15011 solaris_use_stlport4=yes
15015 # Adding this requires a known-good setup of shared libraries for
15016 # Sun compiler versions before 5.6, else PIC objects from an old
15017 # archive will be linked into the output, leading to subtle bugs.
15018 if test "$solaris_use_stlport4" != yes; then
15019 postdeps_CXX='-library=Cstd -library=Crun'
15027 case " $postdeps_CXX " in
15028 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15030 compiler_lib_search_dirs_CXX=
15031 if test -n "${compiler_lib_search_path_CXX}"; then
15032 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15065 lt_prog_compiler_wl_CXX=
15066 lt_prog_compiler_pic_CXX=
15067 lt_prog_compiler_static_CXX=
15070 # C++ specific cases for pic, static, wl, etc.
15071 if test "$GXX" = yes; then
15072 lt_prog_compiler_wl_CXX='-Wl,'
15073 lt_prog_compiler_static_CXX='-static'
15077 # All AIX code is PIC.
15078 if test "$host_cpu" = ia64; then
15079 # AIX 5 now supports IA64 processor
15080 lt_prog_compiler_static_CXX='-Bstatic'
15087 # see comment about AmigaOS4 .so support
15088 lt_prog_compiler_pic_CXX='-fPIC'
15091 # FIXME: we need at least 68020 code to build shared libraries, but
15092 # adding the `-m68020' flag to GCC prevents building anything better,
15094 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15099 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15100 # PIC is the default for these OSes.
15102 mingw* | cygwin* | os2* | pw32* | cegcc*)
15103 # This hack is so that the source file can tell whether it is being
15104 # built for inclusion in a dll (and should export symbols for example).
15105 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15106 # (--disable-auto-import) libraries
15107 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15109 darwin* | rhapsody*)
15110 # PIC is the default on this platform
15111 # Common symbols not allowed in MH_DYLIB files
15112 lt_prog_compiler_pic_CXX='-fno-common'
15115 # DJGPP does not support shared libraries at all
15116 lt_prog_compiler_pic_CXX=
15119 # PIC is the default for Haiku.
15120 # The "-static" flag exists, but is broken.
15121 lt_prog_compiler_static_CXX=
15124 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15125 # Instead, we relocate shared libraries at runtime.
15128 if test -d /usr/nec; then
15129 lt_prog_compiler_pic_CXX=-Kconform_pic
15133 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15134 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15135 # sets the default TLS model and affects inlining.
15140 lt_prog_compiler_pic_CXX='-fPIC'
15145 # QNX uses GNU C++, but need to define -shared option too, otherwise
15146 # it will coredump.
15147 lt_prog_compiler_pic_CXX='-fPIC -shared'
15150 lt_prog_compiler_pic_CXX='-fPIC'
15156 # All AIX code is PIC.
15157 if test "$host_cpu" = ia64; then
15158 # AIX 5 now supports IA64 processor
15159 lt_prog_compiler_static_CXX='-Bstatic'
15161 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15165 case $cc_basename in
15167 # Green Hills C++ Compiler
15168 # _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"
15172 mingw* | cygwin* | os2* | pw32* | cegcc*)
15173 # This hack is so that the source file can tell whether it is being
15174 # built for inclusion in a dll (and should export symbols for example).
15175 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15178 case $cc_basename in
15180 lt_prog_compiler_pic_CXX='-KPIC'
15183 # Green Hills C++ Compiler
15184 lt_prog_compiler_pic_CXX='-pic'
15190 freebsd* | dragonfly*)
15191 # FreeBSD uses GNU C++
15193 hpux9* | hpux10* | hpux11*)
15194 case $cc_basename in
15196 lt_prog_compiler_wl_CXX='-Wl,'
15197 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15198 if test "$host_cpu" != ia64; then
15199 lt_prog_compiler_pic_CXX='+Z'
15203 lt_prog_compiler_wl_CXX='-Wl,'
15204 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15210 lt_prog_compiler_pic_CXX='+Z'
15219 # This is c89, which is MS Visual C++ (no shared libs)
15220 # Anyone wants to do a port?
15222 irix5* | irix6* | nonstopux*)
15223 case $cc_basename in
15225 lt_prog_compiler_wl_CXX='-Wl,'
15226 lt_prog_compiler_static_CXX='-non_shared'
15227 # CC pic flag -KPIC is the default.
15233 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15234 case $cc_basename in
15237 lt_prog_compiler_wl_CXX='--backend -Wl,'
15238 lt_prog_compiler_pic_CXX='-fPIC'
15241 # old Intel C++ for x86_64 which still supported -KPIC.
15242 lt_prog_compiler_wl_CXX='-Wl,'
15243 lt_prog_compiler_pic_CXX='-KPIC'
15244 lt_prog_compiler_static_CXX='-static'
15247 # Intel C++, used to be incompatible with GCC.
15248 # ICC 10 doesn't accept -KPIC any more.
15249 lt_prog_compiler_wl_CXX='-Wl,'
15250 lt_prog_compiler_pic_CXX='-fPIC'
15251 lt_prog_compiler_static_CXX='-static'
15254 # Portland Group C++ compiler
15255 lt_prog_compiler_wl_CXX='-Wl,'
15256 lt_prog_compiler_pic_CXX='-fpic'
15257 lt_prog_compiler_static_CXX='-Bstatic'
15261 # Make sure the PIC flag is empty. It appears that all Alpha
15262 # Linux and Compaq Tru64 Unix objects are PIC.
15263 lt_prog_compiler_pic_CXX=
15264 lt_prog_compiler_static_CXX='-non_shared'
15266 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15267 # IBM XL 8.0, 9.0 on PPC and BlueGene
15268 lt_prog_compiler_wl_CXX='-Wl,'
15269 lt_prog_compiler_pic_CXX='-qpic'
15270 lt_prog_compiler_static_CXX='-qstaticlink'
15273 case `$CC -V 2>&1 | sed 5q` in
15276 lt_prog_compiler_pic_CXX='-KPIC'
15277 lt_prog_compiler_static_CXX='-Bstatic'
15278 lt_prog_compiler_wl_CXX='-Qoption ld '
15289 case $cc_basename in
15291 lt_prog_compiler_pic_CXX='-W c,exportall'
15297 netbsd* | netbsdelf*-gnu)
15300 # QNX uses GNU C++, but need to define -shared option too, otherwise
15301 # it will coredump.
15302 lt_prog_compiler_pic_CXX='-fPIC -shared'
15304 osf3* | osf4* | osf5*)
15305 case $cc_basename in
15307 lt_prog_compiler_wl_CXX='--backend -Wl,'
15310 # Rational C++ 2.4.1
15311 lt_prog_compiler_pic_CXX='-pic'
15314 # Digital/Compaq C++
15315 lt_prog_compiler_wl_CXX='-Wl,'
15316 # Make sure the PIC flag is empty. It appears that all Alpha
15317 # Linux and Compaq Tru64 Unix objects are PIC.
15318 lt_prog_compiler_pic_CXX=
15319 lt_prog_compiler_static_CXX='-non_shared'
15328 case $cc_basename in
15330 # Sun C++ 4.2, 5.x and Centerline C++
15331 lt_prog_compiler_pic_CXX='-KPIC'
15332 lt_prog_compiler_static_CXX='-Bstatic'
15333 lt_prog_compiler_wl_CXX='-Qoption ld '
15336 # Green Hills C++ Compiler
15337 lt_prog_compiler_pic_CXX='-PIC'
15344 case $cc_basename in
15347 lt_prog_compiler_pic_CXX='-pic'
15348 lt_prog_compiler_static_CXX='-Bstatic'
15352 lt_prog_compiler_pic_CXX='-pic'
15358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15359 case $cc_basename in
15361 lt_prog_compiler_wl_CXX='-Wl,'
15362 lt_prog_compiler_pic_CXX='-KPIC'
15363 lt_prog_compiler_static_CXX='-Bstatic'
15368 case $cc_basename in
15370 # NonStop-UX NCC 3.20
15371 lt_prog_compiler_pic_CXX='-KPIC'
15380 lt_prog_compiler_can_build_shared_CXX=no
15386 # For platforms which do not support PIC, -DPIC is meaningless:
15388 lt_prog_compiler_pic_CXX=
15391 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15396 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15397 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15398 $as_echo_n "(cached) " >&6
15400 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15403 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15404 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15407 # Check to make sure the PIC flag actually works.
15409 if test -n "$lt_prog_compiler_pic_CXX"; then
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15411 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15412 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15413 $as_echo_n "(cached) " >&6
15415 lt_cv_prog_compiler_pic_works_CXX=no
15416 ac_outfile=conftest.$ac_objext
15417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15418 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15419 # Insert the option either (1) after the last *FLAGS variable, or
15420 # (2) before a word containing "conftest.", or (3) at the end.
15421 # Note that $ac_compile itself does not contain backslashes and begins
15422 # with a dollar sign (not a hyphen), so the echo should work correctly.
15423 # The option is referenced via a variable to avoid confusing sed.
15424 lt_compile=`echo "$ac_compile" | $SED \
15425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15427 -e 's:$: $lt_compiler_flag:'`
15428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15429 (eval "$lt_compile" 2>conftest.err)
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 if (exit $ac_status) && test -s "$ac_outfile"; then
15434 # The compiler can only warn and ignore the option if not recognized
15435 # So say no if there are warnings other than the usual output.
15436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15439 lt_cv_prog_compiler_pic_works_CXX=yes
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15446 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15448 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15449 case $lt_prog_compiler_pic_CXX in
15451 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15454 lt_prog_compiler_pic_CXX=
15455 lt_prog_compiler_can_build_shared_CXX=no
15465 # Check to make sure the static flag actually works.
15467 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15470 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15471 $as_echo_n "(cached) " >&6
15473 lt_cv_prog_compiler_static_works_CXX=no
15474 save_LDFLAGS="$LDFLAGS"
15475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15478 # The linker can only warn and ignore the option if not recognized
15479 # So say no if there are warnings
15480 if test -s conftest.err; then
15481 # Append any errors to the config.log.
15482 cat conftest.err 1>&5
15483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15485 if diff conftest.exp conftest.er2 >/dev/null; then
15486 lt_cv_prog_compiler_static_works_CXX=yes
15489 lt_cv_prog_compiler_static_works_CXX=yes
15493 LDFLAGS="$save_LDFLAGS"
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15497 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15499 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15502 lt_prog_compiler_static_CXX=
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15510 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15511 $as_echo_n "(cached) " >&6
15513 lt_cv_prog_compiler_c_o_CXX=no
15514 $RM -r conftest 2>/dev/null
15518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15520 lt_compiler_flag="-o out/conftest2.$ac_objext"
15521 # Insert the option either (1) after the last *FLAGS variable, or
15522 # (2) before a word containing "conftest.", or (3) at the end.
15523 # Note that $ac_compile itself does not contain backslashes and begins
15524 # with a dollar sign (not a hyphen), so the echo should work correctly.
15525 lt_compile=`echo "$ac_compile" | $SED \
15526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15528 -e 's:$: $lt_compiler_flag:'`
15529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15530 (eval "$lt_compile" 2>out/conftest.err)
15532 cat out/conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15536 # The compiler can only warn and ignore the option if not recognized
15537 # So say no if there are warnings
15538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15541 lt_cv_prog_compiler_c_o_CXX=yes
15546 # SGI C++ compiler will create directory out/ii_files/ for
15547 # template instantiation
15548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15549 $RM out/* && rmdir out
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15556 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15562 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15563 $as_echo_n "(cached) " >&6
15565 lt_cv_prog_compiler_c_o_CXX=no
15566 $RM -r conftest 2>/dev/null
15570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15572 lt_compiler_flag="-o out/conftest2.$ac_objext"
15573 # Insert the option either (1) after the last *FLAGS variable, or
15574 # (2) before a word containing "conftest.", or (3) at the end.
15575 # Note that $ac_compile itself does not contain backslashes and begins
15576 # with a dollar sign (not a hyphen), so the echo should work correctly.
15577 lt_compile=`echo "$ac_compile" | $SED \
15578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15580 -e 's:$: $lt_compiler_flag:'`
15581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15582 (eval "$lt_compile" 2>out/conftest.err)
15584 cat out/conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15588 # The compiler can only warn and ignore the option if not recognized
15589 # So say no if there are warnings
15590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15593 lt_cv_prog_compiler_c_o_CXX=yes
15598 # SGI C++ compiler will create directory out/ii_files/ for
15599 # template instantiation
15600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15601 $RM out/* && rmdir out
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15613 hard_links="nottested"
15614 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15615 # do not overwrite the value of need_locks provided by the user
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15617 $as_echo_n "checking if we can lock with hard links... " >&6; }
15620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15622 ln conftest.a conftest.b 2>&5 || hard_links=no
15623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15625 $as_echo "$hard_links" >&6; }
15626 if test "$hard_links" = no; then
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15641 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15644 # If we're using GNU nm, then we don't want the "-C" option.
15645 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15646 # Also, AIX nm treats weak defined symbols like other global defined
15647 # symbols, whereas GNU nm marks them as "W".
15648 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15649 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'
15651 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'
15655 export_symbols_cmds_CXX="$ltdll_cmds"
15657 cygwin* | mingw* | cegcc*)
15658 case $cc_basename in
15660 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15663 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'
15664 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15668 linux* | k*bsd*-gnu | gnu*)
15669 link_all_deplibs_CXX=no
15672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15677 $as_echo "$ld_shlibs_CXX" >&6; }
15678 test "$ld_shlibs_CXX" = no && can_build_shared=no
15680 with_gnu_ld_CXX=$with_gnu_ld
15688 # Do we need to explicitly link libc?
15690 case "x$archive_cmds_need_lc_CXX" in
15692 # Assume -lc should be added
15693 archive_cmds_need_lc_CXX=yes
15695 if test "$enable_shared" = yes && test "$GCC" = yes; then
15696 case $archive_cmds_CXX in
15698 # FIXME: we may have to deal with multi-command sequences.
15701 # Test whether the compiler implicitly links with -lc since on some
15702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15703 # to ld, don't add -lc before -lgcc.
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15706 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15707 $as_echo_n "(cached) " >&6
15710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15713 (eval $ac_compile) 2>&5
15715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716 test $ac_status = 0; } 2>conftest.err; then
15719 libobjs=conftest.$ac_objext
15721 wl=$lt_prog_compiler_wl_CXX
15722 pic_flag=$lt_prog_compiler_pic_CXX
15728 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15729 allow_undefined_flag_CXX=
15730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15731 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15734 test $ac_status = 0; }
15736 lt_cv_archive_cmds_need_lc_CXX=no
15738 lt_cv_archive_cmds_need_lc_CXX=yes
15740 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15742 cat conftest.err 1>&5
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15748 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15749 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15818 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15820 library_names_spec=
15821 libname_spec='lib$name'
15825 postuninstall_cmds=
15829 shlibpath_overrides_runpath=unknown
15831 dynamic_linker="$host_os ld.so"
15832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15833 need_lib_prefix=unknown
15834 hardcode_into_libs=no
15836 # when you set need_version to no, make sure it does not cause -set_version
15837 # flags to be left without arguments
15838 need_version=unknown
15842 version_type=linux # correct to gnu/linux during the next big refactor
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15844 shlibpath_var=LIBPATH
15846 # AIX 3 has no versioning support, so we append a major version to the name.
15847 soname_spec='${libname}${release}${shared_ext}$major'
15851 version_type=linux # correct to gnu/linux during the next big refactor
15854 hardcode_into_libs=yes
15855 if test "$host_cpu" = ia64; then
15856 # AIX 5 supports IA64
15857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15858 shlibpath_var=LD_LIBRARY_PATH
15860 # With GCC up to 2.95.x, collect2 would create an import file
15861 # for dependence libraries. The import file would start with
15862 # the line `#! .'. This would cause the generated library to
15863 # depend on `.', always an invalid library. This was fixed in
15864 # development snapshots of GCC prior to 3.0.
15866 aix4 | aix4.[01] | aix4.[01].*)
15867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15869 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15872 can_build_shared=no
15876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15877 # soname into executable. Probably we can add versioning support to
15878 # collect2, so additional links can be useful in future.
15879 if test "$aix_use_runtimelinking" = yes; then
15880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15881 # instead of lib<name>.a to let people know that these are not
15882 # typical AIX shared libraries.
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885 # We preserve .a as extension for shared libraries through AIX4.2
15886 # and later when we are not doing run time linking.
15887 library_names_spec='${libname}${release}.a $libname.a'
15888 soname_spec='${libname}${release}${shared_ext}$major'
15890 shlibpath_var=LIBPATH
15897 # Since July 2007 AmigaOS4 officially supports .so libraries.
15898 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902 library_names_spec='$libname.ixlibrary $libname.a'
15903 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15904 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'
15910 library_names_spec='${libname}${shared_ext}'
15911 dynamic_linker="$host_os ld.so"
15912 shlibpath_var=LIBRARY_PATH
15916 version_type=linux # correct to gnu/linux during the next big refactor
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919 soname_spec='${libname}${release}${shared_ext}$major'
15920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15924 # the default ld.so.conf also contains /usr/contrib/lib and
15925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15926 # libtool to hard-code these into programs
15929 cygwin* | mingw* | pw32* | cegcc*)
15930 version_type=windows
15935 case $GCC,$cc_basename in
15938 library_names_spec='$libname.dll.a'
15939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15940 postinstall_cmds='base_file=`basename \${file}`~
15941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15942 dldir=$destdir/`dirname \$dlpath`~
15943 test -d \$dldir || mkdir -p \$dldir~
15944 $install_prog $dir/$dlname \$dldir/$dlname~
15945 chmod a+x \$dldir/$dlname~
15946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15950 dlpath=$dir/\$dldll~
15952 shlibpath_overrides_runpath=yes
15956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15961 # MinGW DLLs use traditional 'lib' prefix
15962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15965 # pw32 DLLs use 'pw' prefix rather than 'lib'
15966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969 dynamic_linker='Win32 ld.exe'
15974 libname_spec='$name'
15975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15976 library_names_spec='${libname}.dll.lib'
15980 sys_lib_search_path_spec=
15983 for lt_path in $LIB
15986 # Let DOS variable expansion print the short 8.3 style file name.
15987 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15988 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15991 # Convert to MSYS style.
15992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15995 # Convert to unix form, then to dos form, then back to unix form
15996 # but this time dos style (no spaces!) so that the unix form looks
15997 # like /cygdrive/c/PROGRA~1:/cygdr...
15998 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15999 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16000 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16003 sys_lib_search_path_spec="$LIB"
16004 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16005 # It is most probably a Windows format PATH.
16006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16010 # FIXME: find the short name or the path components, as spaces are
16011 # common. (e.g. "Program Files" -> "PROGRA~1")
16015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16016 postinstall_cmds='base_file=`basename \${file}`~
16017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16018 dldir=$destdir/`dirname \$dlpath`~
16019 test -d \$dldir || mkdir -p \$dldir~
16020 $install_prog $dir/$dlname \$dldir/$dlname'
16021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16022 dlpath=$dir/\$dldll~
16024 shlibpath_overrides_runpath=yes
16025 dynamic_linker='Win32 link.exe'
16029 # Assume MSVC wrapper
16030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16031 dynamic_linker='Win32 ld.exe'
16034 # FIXME: first we should search . and the directory the executable is in
16038 darwin* | rhapsody*)
16039 dynamic_linker="$host_os dyld"
16040 version_type=darwin
16043 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16044 soname_spec='${libname}${release}${major}$shared_ext'
16045 shlibpath_overrides_runpath=yes
16046 shlibpath_var=DYLD_LIBRARY_PATH
16047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16053 version_type=linux # correct to gnu/linux during the next big refactor
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 shlibpath_var=LD_LIBRARY_PATH
16061 freebsd* | dragonfly*)
16062 # DragonFly does not have aout. When/if they implement a new
16063 # versioning mechanism, adjust this.
16064 if test -x /usr/bin/objformat; then
16065 objformat=`/usr/bin/objformat`
16068 freebsd[23].*) objformat=aout ;;
16069 *) objformat=elf ;;
16072 version_type=freebsd-$objformat
16073 case $version_type in
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16084 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16089 freebsd3.[01]* | freebsdelf3.[01]*)
16090 shlibpath_overrides_runpath=yes
16091 hardcode_into_libs=yes
16093 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16094 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16095 shlibpath_overrides_runpath=no
16096 hardcode_into_libs=yes
16098 *) # from 4.6 on, and DragonFly
16099 shlibpath_overrides_runpath=yes
16100 hardcode_into_libs=yes
16106 version_type=linux # correct to gnu/linux during the next big refactor
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=no
16113 hardcode_into_libs=yes
16117 version_type=linux # correct to gnu/linux during the next big refactor
16120 dynamic_linker="$host_os runtime_loader"
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16122 soname_spec='${libname}${release}${shared_ext}$major'
16123 shlibpath_var=LIBRARY_PATH
16124 shlibpath_overrides_runpath=yes
16125 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16126 hardcode_into_libs=yes
16129 hpux9* | hpux10* | hpux11*)
16130 # Give a soname corresponding to the major version so that dld.sl refuses to
16131 # link against other versions.
16138 hardcode_into_libs=yes
16139 dynamic_linker="$host_os dld.so"
16140 shlibpath_var=LD_LIBRARY_PATH
16141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 if test "X$HPUX_IA64_MODE" = X32; then
16145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16153 hardcode_into_libs=yes
16154 dynamic_linker="$host_os dld.sl"
16155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16164 dynamic_linker="$host_os dld.sl"
16165 shlibpath_var=SHLIB_PATH
16166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168 soname_spec='${libname}${release}${shared_ext}$major'
16171 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16172 postinstall_cmds='chmod 555 $lib'
16173 # or fails outright, so override atomically:
16174 install_override_mode=555
16178 version_type=linux # correct to gnu/linux during the next big refactor
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=no
16186 hardcode_into_libs=yes
16189 irix5* | irix6* | nonstopux*)
16191 nonstopux*) version_type=nonstopux ;;
16193 if test "$lt_cv_prog_gnu_ld" = yes; then
16194 version_type=linux # correct to gnu/linux during the next big refactor
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16204 irix5* | nonstopux*)
16205 libsuff= shlibsuff=
16208 case $LD in # libtool.m4 will add one of these switches to LD
16209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16210 libsuff= shlibsuff= libmagic=32-bit;;
16211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16212 libsuff=32 shlibsuff=N32 libmagic=N32;;
16213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16215 *) libsuff= shlibsuff= libmagic=never-match;;
16219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16220 shlibpath_overrides_runpath=no
16221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16223 hardcode_into_libs=yes
16226 # No shared lib support for Linux oldld, aout, or coff.
16227 linux*oldld* | linux*aout* | linux*coff*)
16231 # This must be glibc/ELF.
16232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16233 version_type=linux # correct to gnu/linux during the next big refactor
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=no
16242 # Some binutils ld are patched to set DT_RUNPATH
16243 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16244 $as_echo_n "(cached) " >&6
16246 lt_cv_shlibpath_overrides_runpath=no
16247 save_LDFLAGS=$LDFLAGS
16248 save_libdir=$libdir
16249 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16250 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16262 if ac_fn_cxx_try_link "$LINENO"; then :
16263 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16264 lt_cv_shlibpath_overrides_runpath=yes
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 LDFLAGS=$save_LDFLAGS
16270 libdir=$save_libdir
16274 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16276 # This implies no fast_install, which is unacceptable.
16277 # Some rework will be needed to allow for fast_install
16278 # before this can be enabled.
16279 hardcode_into_libs=yes
16281 # Append ld.so.conf contents to the search path
16282 if test -f /etc/ld.so.conf; then
16283 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' ' '`
16284 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16287 # We used to test for /lib/ld.so.1 and disable shared libraries on
16288 # powerpc, because MkLinux only supported shared libraries with the
16289 # GNU dynamic linker. Since this was broken with cross compilers,
16290 # most powerpc-linux boxes support dynamic linking these days and
16291 # people can always --disable-shared, the test was removed, and we
16292 # assume the GNU/Linux dynamic linker is in use.
16293 dynamic_linker='GNU/Linux ld.so'
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 shlibpath_overrides_runpath=no
16304 hardcode_into_libs=yes
16305 dynamic_linker='NetBSD ld.elf_so'
16312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16315 dynamic_linker='NetBSD (a.out) ld.so'
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 dynamic_linker='NetBSD ld.elf_so'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=yes
16323 hardcode_into_libs=yes
16327 version_type=linux # correct to gnu/linux during the next big refactor
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 shlibpath_overrides_runpath=yes
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=no
16341 hardcode_into_libs=yes
16342 dynamic_linker='ldqnx.so'
16347 sys_lib_dlsearch_path_spec="/usr/lib"
16349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16351 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16352 *) need_version=no ;;
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16359 openbsd2.[89] | openbsd2.[89].*)
16360 shlibpath_overrides_runpath=no
16363 shlibpath_overrides_runpath=yes
16367 shlibpath_overrides_runpath=yes
16372 libname_spec='$name'
16375 library_names_spec='$libname${shared_ext} $libname.a'
16376 dynamic_linker='OS/2 ld.exe'
16377 shlibpath_var=LIBPATH
16380 osf3* | osf4* | osf5*)
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16396 version_type=linux # correct to gnu/linux during the next big refactor
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 hardcode_into_libs=yes
16404 # ldd complains unless libraries are executable
16405 postinstall_cmds='chmod +x $lib'
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16414 if test "$with_gnu_ld" = yes; then
16421 version_type=linux # correct to gnu/linux during the next big refactor
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 case $host_vendor in
16427 shlibpath_overrides_runpath=no
16429 runpath_var=LD_RUN_PATH
16437 shlibpath_overrides_runpath=no
16438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16444 if test -d /usr/nec ;then
16445 version_type=linux # correct to gnu/linux during the next big refactor
16446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16447 soname_spec='$libname${shared_ext}.$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16453 version_type=freebsd-elf
16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16457 soname_spec='${libname}${release}${shared_ext}$major'
16458 shlibpath_var=LD_LIBRARY_PATH
16459 shlibpath_overrides_runpath=yes
16460 hardcode_into_libs=yes
16461 if test "$with_gnu_ld" = yes; then
16462 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16471 sys_lib_dlsearch_path_spec='/usr/lib'
16475 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16476 version_type=linux # correct to gnu/linux during the next big refactor
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=no
16482 hardcode_into_libs=yes
16486 version_type=linux # correct to gnu/linux during the next big refactor
16487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16488 soname_spec='${libname}${release}${shared_ext}$major'
16489 shlibpath_var=LD_LIBRARY_PATH
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16497 $as_echo "$dynamic_linker" >&6; }
16498 test "$dynamic_linker" = no && can_build_shared=no
16500 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16501 if test "$GCC" = yes; then
16502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16505 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16506 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16508 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16509 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16550 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16551 hardcode_action_CXX=
16552 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16553 test -n "$runpath_var_CXX" ||
16554 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16556 # We can hardcode non-existent directories.
16557 if test "$hardcode_direct_CXX" != no &&
16558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16559 # have to relink, otherwise we might link with an installed library
16560 # when we should be linking with a yet-to-be-installed one
16561 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16562 test "$hardcode_minus_L_CXX" != no; then
16563 # Linking always hardcodes the temporary library directory.
16564 hardcode_action_CXX=relink
16566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16567 hardcode_action_CXX=immediate
16570 # We cannot hardcode anything, or else we can only hardcode existing
16572 hardcode_action_CXX=unsupported
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16575 $as_echo "$hardcode_action_CXX" >&6; }
16577 if test "$hardcode_action_CXX" = relink ||
16578 test "$inherit_rpath_CXX" = yes; then
16579 # Fast installation is not supported
16580 enable_fast_install=no
16581 elif test "$shlibpath_overrides_runpath" = yes ||
16582 test "$enable_shared" = no; then
16583 # Fast installation is not necessary
16584 enable_fast_install=needless
16593 fi # test -n "$compiler"
16596 CFLAGS=$lt_save_CFLAGS
16600 with_gnu_ld=$lt_save_with_gnu_ld
16601 lt_cv_path_LDCXX=$lt_cv_path_LD
16602 lt_cv_path_LD=$lt_save_path_LD
16603 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16604 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16605 fi # test "$_lt_caught_CXX_error" != yes
16608 ac_cpp='$CPP $CPPFLAGS'
16609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16627 ac_config_commands="$ac_config_commands libtool"
16632 # Only expand once:
16635 if test -n "$ac_tool_prefix"; then
16636 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16637 set dummy ${ac_tool_prefix}windres; ac_word=$2
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16639 $as_echo_n "checking for $ac_word... " >&6; }
16640 if ${ac_cv_prog_RC+:} false; then :
16641 $as_echo_n "(cached) " >&6
16643 if test -n "$RC"; then
16644 ac_cv_prog_RC="$RC" # Let the user override the test.
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 for as_dir in $PATH
16650 test -z "$as_dir" && as_dir=.
16651 for ac_exec_ext in '' $ac_executable_extensions; do
16652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653 ac_cv_prog_RC="${ac_tool_prefix}windres"
16654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16664 if test -n "$RC"; then
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16666 $as_echo "$RC" >&6; }
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669 $as_echo "no" >&6; }
16674 if test -z "$ac_cv_prog_RC"; then
16676 # Extract the first word of "windres", so it can be a program name with args.
16677 set dummy windres; ac_word=$2
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16679 $as_echo_n "checking for $ac_word... " >&6; }
16680 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16681 $as_echo_n "(cached) " >&6
16683 if test -n "$ac_ct_RC"; then
16684 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16687 for as_dir in $PATH
16690 test -z "$as_dir" && as_dir=.
16691 for ac_exec_ext in '' $ac_executable_extensions; do
16692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16693 ac_cv_prog_ac_ct_RC="windres"
16694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16703 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16704 if test -n "$ac_ct_RC"; then
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16706 $as_echo "$ac_ct_RC" >&6; }
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709 $as_echo "no" >&6; }
16712 if test "x$ac_ct_RC" = x; then
16715 case $cross_compiling:$ac_tool_warned in
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16719 ac_tool_warned=yes ;;
16724 RC="$ac_cv_prog_RC"
16730 # Source file extension for RC test sources.
16733 # Object file extension for compiled RC test sources.
16737 # Code to be used in simple compile tests
16738 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16740 # Code to be used in simple link tests
16741 lt_simple_link_test_code="$lt_simple_compile_test_code"
16743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16750 # If no C compiler was specified, use CC.
16753 # If no C compiler flags were specified, use CFLAGS.
16754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16756 # Allow CC to be a program name with arguments.
16760 # save warnings/boilerplate of simple test code
16761 ac_outfile=conftest.$ac_objext
16762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16764 _lt_compiler_boilerplate=`cat conftest.err`
16767 ac_outfile=conftest.$ac_objext
16768 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16770 _lt_linker_boilerplate=`cat conftest.err`
16774 # Allow CC to be a program name with arguments.
16776 lt_save_CFLAGS=$CFLAGS
16783 for cc_temp in $compiler""; do
16785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16791 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16793 lt_cv_prog_compiler_c_o_RC=yes
16795 if test -n "$compiler"; then
16804 ac_cpp='$CPP $CPPFLAGS'
16805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16810 CFLAGS=$lt_save_CFLAGS
16813 # For now we hardcode the use of version scripts. It would be better
16814 # to write a test for this or even implement this within libtool.
16815 have_ld_version_script=no
16818 have_ld_version_script=yes
16821 have_ld_version_script=yes
16825 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
16830 if test "$have_ld_version_script" = "yes"; then
16831 HAVE_LD_VERSION_SCRIPT_TRUE=
16832 HAVE_LD_VERSION_SCRIPT_FALSE='#'
16834 HAVE_LD_VERSION_SCRIPT_TRUE='#'
16835 HAVE_LD_VERSION_SCRIPT_FALSE=
16843 component_system=None
16844 have_dosish_system=no
16845 have_android_system=no
16852 have_w64_system=yes
16855 have_w32ce_system=yes
16857 *-linux-androideabi)
16858 have_android_system=yes
16862 *-mingw32ce*|*-mingw32*)
16863 have_dosish_system=yes
16864 have_w32_system=yes
16865 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
16866 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
16867 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
16868 G13_DEFAULT='c:\\gnupg\\g13.exe'
16869 #component_system='COM+'
16871 # Check whether --enable-glibtest was given.
16872 if test "${enable_glibtest+set}" = set; then :
16873 enableval=$enable_glibtest;
16875 enable_glibtest=yes
16879 pkg_config_args=glib-2.0
16884 pkg_config_args="$pkg_config_args gmodule-2.0"
16887 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16890 pkg_config_args="$pkg_config_args gobject-2.0"
16893 pkg_config_args="$pkg_config_args gthread-2.0"
16898 # Extract the first word of "pkg-config", so it can be a program name with args.
16899 set dummy pkg-config; ac_word=$2
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16901 $as_echo_n "checking for $ac_word... " >&6; }
16902 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16903 $as_echo_n "(cached) " >&6
16905 case $PKG_CONFIG in
16907 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16911 for as_dir in $PATH
16914 test -z "$as_dir" && as_dir=.
16915 for ac_exec_ext in '' $ac_executable_extensions; do
16916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16917 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16925 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16929 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16930 if test -n "$PKG_CONFIG"; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16932 $as_echo "$PKG_CONFIG" >&6; }
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16935 $as_echo "no" >&6; }
16942 if test x$PKG_CONFIG != xno ; then
16943 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
16946 echo *** pkg-config too old; version 0.7 or better required.
16954 min_glib_version=2.0.0
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16956 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16958 if test x$PKG_CONFIG != xno ; then
16959 ## don't try to run the test against uninstalled libtool libs
16960 if $PKG_CONFIG --uninstalled $pkg_config_args; then
16961 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16965 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
16972 if test x"$no_glib" = x ; then
16973 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
16974 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
16975 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
16977 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
16978 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
16979 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
16980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16981 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
16982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16983 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
16984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16985 if test "x$enable_glibtest" = "xyes" ; then
16986 ac_save_CFLAGS="$CFLAGS"
16987 ac_save_LIBS="$LIBS"
16988 CFLAGS="$CFLAGS $GLIB_CFLAGS"
16989 LIBS="$GLIB_LIBS $LIBS"
16990 rm -f conf.glibtest
16991 if test "$cross_compiling" = yes; then :
16992 echo $ac_n "cross compiling; assumed OK... $ac_c"
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16999 #include <stdlib.h>
17004 int major, minor, micro;
17007 system ("touch conf.glibtest");
17009 /* HP/UX 9 (%@#!) writes to sscanf strings */
17010 tmp_version = g_strdup("$min_glib_version");
17011 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17012 printf("%s, bad version string\n", "$min_glib_version");
17016 if ((glib_major_version != $glib_config_major_version) ||
17017 (glib_minor_version != $glib_config_minor_version) ||
17018 (glib_micro_version != $glib_config_micro_version))
17020 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17021 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17022 glib_major_version, glib_minor_version, glib_micro_version);
17023 printf ("*** was found! If pkg-config was correct, then it is best\n");
17024 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17025 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17026 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17027 printf("*** required on your system.\n");
17028 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17029 printf("*** to point to the correct configuration files\n");
17031 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17032 (glib_minor_version != GLIB_MINOR_VERSION) ||
17033 (glib_micro_version != GLIB_MICRO_VERSION))
17035 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17036 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17037 printf("*** library (version %d.%d.%d)\n",
17038 glib_major_version, glib_minor_version, glib_micro_version);
17042 if ((glib_major_version > major) ||
17043 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17044 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17050 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17051 glib_major_version, glib_minor_version, glib_micro_version);
17052 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17053 major, minor, micro);
17054 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17056 printf("*** If you have already installed a sufficiently new version, this error\n");
17057 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17058 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17059 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17060 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17061 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17062 printf("*** so that the correct libraries are found at run-time))\n");
17069 if ac_fn_c_try_run "$LINENO"; then :
17074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17075 conftest.$ac_objext conftest.beam conftest.$ac_ext
17078 CFLAGS="$ac_save_CFLAGS"
17079 LIBS="$ac_save_LIBS"
17082 if test "x$no_glib" = x ; then
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17084 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088 $as_echo "no" >&6; }
17089 if test "$PKG_CONFIG" = "no" ; then
17090 echo "*** A new enough version of pkg-config was not found."
17091 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17093 if test -f conf.glibtest ; then
17096 echo "*** Could not run GLIB test program, checking why..."
17097 ac_save_CFLAGS="$CFLAGS"
17098 ac_save_LIBS="$LIBS"
17099 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17100 LIBS="$LIBS $GLIB_LIBS"
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17110 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17115 if ac_fn_c_try_link "$LINENO"; then :
17116 echo "*** The test program compiled, but did not run. This usually means"
17117 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17118 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17119 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17120 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17121 echo "*** is required on your system"
17123 echo "*** If you have an old version installed, it is best to remove it, although"
17124 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17126 echo "*** The test program failed to compile or link. See the file config.log for the"
17127 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17129 rm -f core conftest.err conftest.$ac_objext \
17130 conftest$ac_exeext conftest.$ac_ext
17131 CFLAGS="$ac_save_CFLAGS"
17132 LIBS="$ac_save_LIBS"
17147 rm -f conf.glibtest
17149 # Check whether --enable-w32-glib was given.
17150 if test "${enable_w32_glib+set}" = set; then :
17151 enableval=$enable_w32_glib; build_w32_glib=$enableval
17155 # Check disabled, because the qt-dev packages in gpg4win do
17156 # not provide any support for cross compilation.
17157 # PKG_CHECK_MODULES(QT4_CORE, QtCore)
17159 # Use it like this:
17160 # ./configure --enable-w32-qt QT4_CORE_CFLAGS="..." QT4_CORE_LIBS="..."
17163 # Check whether --enable-w32-qt was given.
17164 if test "${enable_w32_qt+set}" = set; then :
17165 enableval=$enable_w32_qt; build_w32_qt=$enableval
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17171 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17172 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17173 $as_echo_n "(cached) " >&6
17175 ac_check_lib_save_LIBS=$LIBS
17176 LIBS="-lpthread $LIBS"
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17186 char pthread_create ();
17190 return pthread_create ();
17195 if ac_fn_c_try_link "$LINENO"; then :
17196 ac_cv_lib_pthread_pthread_create=yes
17198 ac_cv_lib_pthread_pthread_create=no
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202 LIBS=$ac_check_lib_save_LIBS
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17205 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17206 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17210 if test "$have_pthread" = yes; then
17212 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
17216 # XXX: Probably use exec-prefix here?
17217 # GPG_DEFAULT='/usr/bin/gpg'
17218 # GPGSM_DEFAULT='/usr/bin/gpgsm'
17219 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
17220 # G13_DEFAULT='/usr/bin/g13'
17224 if test "$have_dosish_system" = yes; then
17226 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17229 if test "$have_dosish_system" = yes; then
17230 HAVE_DOSISH_SYSTEM_TRUE=
17231 HAVE_DOSISH_SYSTEM_FALSE='#'
17233 HAVE_DOSISH_SYSTEM_TRUE='#'
17234 HAVE_DOSISH_SYSTEM_FALSE=
17238 if test "$have_w32_system" = yes; then
17240 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17243 if test "$have_w32_system" = yes; then
17244 HAVE_W32_SYSTEM_TRUE=
17245 HAVE_W32_SYSTEM_FALSE='#'
17247 HAVE_W32_SYSTEM_TRUE='#'
17248 HAVE_W32_SYSTEM_FALSE=
17252 if test "$have_w64_system" = yes; then
17254 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17257 if test "$have_w64_system" = yes; then
17258 HAVE_W64_SYSTEM_TRUE=
17259 HAVE_W64_SYSTEM_FALSE='#'
17261 HAVE_W64_SYSTEM_TRUE='#'
17262 HAVE_W64_SYSTEM_FALSE=
17266 if test "$have_w32ce_system" = yes; then
17268 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17271 if test "$have_w32ce_system" = yes; then
17272 HAVE_W32CE_SYSTEM_TRUE=
17273 HAVE_W32CE_SYSTEM_FALSE='#'
17275 HAVE_W32CE_SYSTEM_TRUE='#'
17276 HAVE_W32CE_SYSTEM_FALSE=
17280 if test "$have_android_system" = yes; then
17282 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17285 if test "$have_android_system" = yes; then
17286 HAVE_ANDROID_SYSTEM_TRUE=
17287 HAVE_ANDROID_SYSTEM_FALSE='#'
17289 HAVE_ANDROID_SYSTEM_TRUE='#'
17290 HAVE_ANDROID_SYSTEM_FALSE=
17294 if test "$build_w32_glib" = yes; then
17295 BUILD_W32_GLIB_TRUE=
17296 BUILD_W32_GLIB_FALSE='#'
17298 BUILD_W32_GLIB_TRUE='#'
17299 BUILD_W32_GLIB_FALSE=
17302 if test "$build_w32_qt" = yes; then
17304 BUILD_W32_QT_FALSE='#'
17306 BUILD_W32_QT_TRUE='#'
17307 BUILD_W32_QT_FALSE=
17311 if test "$have_pthread" = "yes"; then
17313 HAVE_PTHREAD_FALSE='#'
17315 HAVE_PTHREAD_TRUE='#'
17316 HAVE_PTHREAD_FALSE=
17322 # Provide information about the build.
17324 BUILD_REVISION="5075c0d"
17327 cat >>confdefs.h <<_ACEOF
17328 #define BUILD_REVISION "$BUILD_REVISION"
17332 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
17333 BUILD_FILEVERSION="${BUILD_FILEVERSION}20597"
17336 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17339 cat >>confdefs.h <<_ACEOF
17340 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
17347 # Checks for header files.
17351 for ac_header in $ac_header_list
17353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17357 cat >>confdefs.h <<_ACEOF
17358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17386 $as_echo_n "checking for inline... " >&6; }
17387 if ${ac_cv_c_inline+:} false; then :
17388 $as_echo_n "(cached) " >&6
17391 for ac_kw in inline __inline__ __inline; do
17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394 #ifndef __cplusplus
17396 static $ac_kw foo_t static_foo () {return 0; }
17397 $ac_kw foo_t foo () {return 0; }
17401 if ac_fn_c_try_compile "$LINENO"; then :
17402 ac_cv_c_inline=$ac_kw
17404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17405 test "$ac_cv_c_inline" != no && break
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17410 $as_echo "$ac_cv_c_inline" >&6; }
17412 case $ac_cv_c_inline in
17415 case $ac_cv_c_inline in
17417 *) ac_val=$ac_cv_c_inline;;
17419 cat >>confdefs.h <<_ACEOF
17420 #ifndef __cplusplus
17421 #define inline $ac_val
17427 # The cast to long int works around a bug in the HP C Compiler
17428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17430 # This bug is HP SR number 8606223364.
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17432 $as_echo_n "checking size of unsigned int... " >&6; }
17433 if ${ac_cv_sizeof_unsigned_int+:} false; then :
17434 $as_echo_n "(cached) " >&6
17436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
17439 if test "$ac_cv_type_unsigned_int" = yes; then
17440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17442 as_fn_error 77 "cannot compute sizeof (unsigned int)
17443 See \`config.log' for more details" "$LINENO" 5; }
17445 ac_cv_sizeof_unsigned_int=0
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17451 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17455 cat >>confdefs.h <<_ACEOF
17456 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17460 # Check whether --enable-largefile was given.
17461 if test "${enable_largefile+set}" = set; then :
17462 enableval=$enable_largefile;
17465 if test "$enable_largefile" != no; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17468 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17469 if ${ac_cv_sys_largefile_CC+:} false; then :
17470 $as_echo_n "(cached) " >&6
17472 ac_cv_sys_largefile_CC=no
17473 if test "$GCC" != yes; then
17476 # IRIX 6.2 and later do not support large files by default,
17477 # so use the C compiler's -n32 option if that helps.
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 #include <sys/types.h>
17481 /* Check that off_t can represent 2**63 - 1 correctly.
17482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17483 since some C++ compilers masquerading as C compilers
17484 incorrectly reject 9223372036854775807. */
17485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17487 && LARGE_OFF_T % 2147483647 == 1)
17497 if ac_fn_c_try_compile "$LINENO"; then :
17500 rm -f core conftest.err conftest.$ac_objext
17502 if ac_fn_c_try_compile "$LINENO"; then :
17503 ac_cv_sys_largefile_CC=' -n32'; break
17505 rm -f core conftest.err conftest.$ac_objext
17509 rm -f conftest.$ac_ext
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17513 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17514 if test "$ac_cv_sys_largefile_CC" != no; then
17515 CC=$CC$ac_cv_sys_largefile_CC
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17519 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17520 if ${ac_cv_sys_file_offset_bits+:} false; then :
17521 $as_echo_n "(cached) " >&6
17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h. */
17526 #include <sys/types.h>
17527 /* Check that off_t can represent 2**63 - 1 correctly.
17528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17529 since some C++ compilers masquerading as C compilers
17530 incorrectly reject 9223372036854775807. */
17531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17533 && LARGE_OFF_T % 2147483647 == 1)
17543 if ac_fn_c_try_compile "$LINENO"; then :
17544 ac_cv_sys_file_offset_bits=no; break
17546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17549 #define _FILE_OFFSET_BITS 64
17550 #include <sys/types.h>
17551 /* Check that off_t can represent 2**63 - 1 correctly.
17552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17553 since some C++ compilers masquerading as C compilers
17554 incorrectly reject 9223372036854775807. */
17555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17557 && LARGE_OFF_T % 2147483647 == 1)
17567 if ac_fn_c_try_compile "$LINENO"; then :
17568 ac_cv_sys_file_offset_bits=64; break
17570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571 ac_cv_sys_file_offset_bits=unknown
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17576 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17577 case $ac_cv_sys_file_offset_bits in #(
17580 cat >>confdefs.h <<_ACEOF
17581 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17586 if test $ac_cv_sys_file_offset_bits = unknown; then
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17588 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17589 if ${ac_cv_sys_large_files+:} false; then :
17590 $as_echo_n "(cached) " >&6
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17595 #include <sys/types.h>
17596 /* Check that off_t can represent 2**63 - 1 correctly.
17597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17598 since some C++ compilers masquerading as C compilers
17599 incorrectly reject 9223372036854775807. */
17600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17602 && LARGE_OFF_T % 2147483647 == 1)
17612 if ac_fn_c_try_compile "$LINENO"; then :
17613 ac_cv_sys_large_files=no; break
17615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17618 #define _LARGE_FILES 1
17619 #include <sys/types.h>
17620 /* Check that off_t can represent 2**63 - 1 correctly.
17621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17622 since some C++ compilers masquerading as C compilers
17623 incorrectly reject 9223372036854775807. */
17624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17626 && LARGE_OFF_T % 2147483647 == 1)
17636 if ac_fn_c_try_compile "$LINENO"; then :
17637 ac_cv_sys_large_files=1; break
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640 ac_cv_sys_large_files=unknown
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17645 $as_echo "$ac_cv_sys_large_files" >&6; }
17646 case $ac_cv_sys_large_files in #(
17649 cat >>confdefs.h <<_ACEOF
17650 #define _LARGE_FILES $ac_cv_sys_large_files
17660 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17661 if test "x$ac_cv_type_off_t" = xyes; then :
17665 cat >>confdefs.h <<_ACEOF
17666 #define off_t long int
17672 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17673 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17675 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17678 for ac_type in 'unsigned int' 'unsigned long int' \
17679 'unsigned long long int'; do
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 $ac_includes_default
17686 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17687 test_array [0] = 0;
17688 return test_array [0];
17694 if ac_fn_c_try_compile "$LINENO"; then :
17696 cat >>confdefs.h <<_ACEOF
17697 #define uintptr_t $ac_type
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703 test -z "$ac_type" && break
17709 # A simple compile time check in gpgme.h for GNU/Linux systems that
17710 # prevents a file offset bits mismatch between gpgme and the application.
17711 NEED__FILE_OFFSET_BITS=0
17712 if test "$have_w32_system" != yes; then
17713 case "$ac_cv_sys_file_offset_bits" in
17714 "" | no | unknown) ;;
17716 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
17722 # Figure out platform dependent typedefs for gpgme.h
17723 if test "$have_w32_system" = yes; then
17724 if test "$have_w64_system" = yes; then
17725 INSERT__TYPEDEFS_FOR_GPGME_H="/* Typedefs for the 64 bit W32 API. */
17726 #include <basetsd.h>
17727 typedef long off_t;
17728 typedef __int64 ssize_t;"
17730 INSERT__TYPEDEFS_FOR_GPGME_H="/* Typedefs for the 32 bit W32 API. */
17731 #ifndef _OFF_T_DEFINED /* Defined by newer mingw32 toolkits. */
17732 typedef long off_t;
17734 #ifndef _SSIZE_T_DEFINED /* Defined by newer mingw32 toolkits. */
17735 typedef long ssize_t;
17739 INSERT__TYPEDEFS_FOR_GPGME_H="#include <sys/types.h>"
17744 # Checks for compiler features.
17745 if test "$GCC" = yes; then
17746 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
17747 if test "$have_w32_system" = yes; then
17748 CFLAGS="$CFLAGS -mms-bitfields"
17752 # Only used for debugging, so no serious test needed (for actual
17753 # functionality you have to test libc as well, this only tests the
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
17756 $as_echo_n "checking for __thread... " >&6; }
17757 if ${gpgme_cv_tls_works+:} false; then :
17758 $as_echo_n "(cached) " >&6
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17771 if ac_fn_c_try_compile "$LINENO"; then :
17772 gpgme_cv_tls_works=yes
17774 gpgme_cv_tls_works=no
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
17779 $as_echo "$gpgme_cv_tls_works" >&6; }
17780 if test "$gpgme_cv_tls_works" = yes; then
17782 $as_echo "#define HAVE_TLS 1" >>confdefs.h
17787 # Checks for library functions.
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
17789 $as_echo "$as_me: checking for libraries" >&6;}
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17792 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17793 if ${ac_cv_sys_largefile_source+:} false; then :
17794 $as_echo_n "(cached) " >&6
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 #include <sys/types.h> /* for off_t */
17804 int (*fp) (FILE *, off_t, int) = fseeko;
17805 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17810 if ac_fn_c_try_link "$LINENO"; then :
17811 ac_cv_sys_largefile_source=no; break
17813 rm -f core conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 #define _LARGEFILE_SOURCE 1
17818 #include <sys/types.h> /* for off_t */
17823 int (*fp) (FILE *, off_t, int) = fseeko;
17824 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17829 if ac_fn_c_try_link "$LINENO"; then :
17830 ac_cv_sys_largefile_source=1; break
17832 rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834 ac_cv_sys_largefile_source=unknown
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17839 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17840 case $ac_cv_sys_largefile_source in #(
17843 cat >>confdefs.h <<_ACEOF
17844 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17850 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17851 # in glibc 2.1.3, but that breaks too many other things.
17852 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17853 if test $ac_cv_sys_largefile_source != unknown; then
17855 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17860 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17861 if test "x$ac_cv_func_vasprintf" = xyes; then :
17862 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
17865 case " $LIBOBJS " in
17866 *" vasprintf.$ac_objext "* ) ;;
17867 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
17874 if test "$ac_cv_func_vasprintf" != yes; then
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
17876 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
17877 if ${gnupg_cv_must_copy_va_byval+:} false; then :
17878 $as_echo_n "(cached) " >&6
17881 if test "$cross_compiling" = yes; then
17882 gnupg_cv_must_copy_va_byval=no
17884 gnupg_cv_must_copy_va_byval=no
17885 if test "$cross_compiling" = yes; then :
17886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17888 as_fn_error $? "cannot run test program while cross compiling
17889 See \`config.log' for more details" "$LINENO" 5; }
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 #include <stdarg.h>
17895 void f (int i, ...)
17897 va_list args1, args2;
17898 va_start (args1, i);
17900 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
17913 if ac_fn_c_try_run "$LINENO"; then :
17914 gnupg_cv_must_copy_va_byval=yes
17916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17917 conftest.$ac_objext conftest.beam conftest.$ac_ext
17924 if test "$gnupg_cv_must_copy_va_byval" = yes; then
17926 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
17929 if test "$cross_compiling" = yes; then
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
17931 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
17934 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
17939 # Try to find a thread-safe version of ttyname().
17940 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
17941 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
17947 cat >>confdefs.h <<_ACEOF
17948 #define HAVE_DECL_TTYNAME_R $ac_have_decl
17952 for ac_header in unistd.h
17954 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17955 if test "x$ac_cv_header_unistd_h" = xyes; then :
17956 cat >>confdefs.h <<_ACEOF
17957 #define HAVE_UNISTD_H 1
17966 if test $ac_cv_have_decl_ttyname_r = no; then
17967 HAVE_DECL_TTYNAME_R=0
17970 for ac_func in ttyname_r
17972 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
17973 if test "x$ac_cv_func_ttyname_r" = xyes; then :
17974 cat >>confdefs.h <<_ACEOF
17975 #define HAVE_TTYNAME_R 1
17981 if test $ac_cv_func_ttyname_r = no; then
17983 case " $LIBOBJS " in
17984 *" ttyname_r.$ac_objext "* ) ;;
17985 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
17990 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
17995 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
17996 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
17997 $as_echo_n "(cached) " >&6
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001 #include <stddef.h>
18002 #include <unistd.h>
18006 *ttyname_r (0, NULL, 0);
18012 if ac_fn_c_try_compile "$LINENO"; then :
18013 gnupg_cv_func_ttyname_r_posix=no
18015 gnupg_cv_func_ttyname_r_posix=yes
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
18021 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
18022 if test $gnupg_cv_func_ttyname_r_posix = no; then
18023 case " $LIBOBJS " in
18024 *" ttyname_r.$ac_objext "* ) ;;
18025 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18029 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18031 elif test "$have_android_system" = yes; then
18032 # Android has ttyname and ttyname_r but they are only stubs and
18033 # print an annoying warning message. Thus we need to replace
18034 # ttyname_r with our own dummy function.
18035 case " $LIBOBJS " in
18036 *" ttyname_r.$ac_objext "* ) ;;
18037 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18041 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18045 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
18049 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
18050 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
18051 $as_echo_n "(cached) " >&6
18055 # Guess no on Solaris.
18056 solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18057 # Guess no on OSF/1.
18058 osf*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18059 # Guess yes otherwise.
18060 *) gnupg_cv_func_ttyname_r_works="guessing yes" ;;
18062 if test "$cross_compiling" = yes; then :
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18069 #include <unistd.h>
18075 char buf[31]; /* use any size < 128 here */
18077 fd = open ("/dev/tty", O_RDONLY);
18080 else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
18082 else if (ttyname_r (fd, buf, 1) == 0)
18087 if ac_fn_c_try_run "$LINENO"; then :
18088 gnupg_cv_func_ttyname_r_works=yes
18091 17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
18094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18095 conftest.$ac_objext conftest.beam conftest.$ac_ext
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
18101 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
18102 case "$gnupg_cv_func_ttyname_r_works" in
18104 *) case " $LIBOBJS " in
18105 *" ttyname_r.$ac_objext "* ) ;;
18106 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18110 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18113 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
18120 if test "$ac_cv_func_ttyname_r" != yes; then
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18123 *** ttyname() is not thread-safe and ttyname_r() does not exist
18125 $as_echo "$as_me: WARNING:
18127 *** ttyname() is not thread-safe and ttyname_r() does not exist
18131 # Try to find a thread-safe version of getenv().
18132 have_thread_safe_getenv=no
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18135 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18136 if ${ac_cv_gnu_library_2_1+:} false; then :
18137 $as_echo_n "(cached) " >&6
18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18142 #include <features.h>
18143 #ifdef __GNU_LIBRARY__
18144 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18151 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18152 ac_cv_gnu_library_2_1=yes
18154 ac_cv_gnu_library_2_1=no
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18162 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18164 GLIBC21="$ac_cv_gnu_library_2_1"
18167 if test $GLIBC21 = yes; then
18168 have_thread_safe_getenv=yes
18170 if test $have_thread_safe_getenv = yes; then
18172 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
18176 for ac_func in getenv_r
18178 ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
18179 if test "x$ac_cv_func_getenv_r" = xyes; then :
18180 cat >>confdefs.h <<_ACEOF
18181 #define HAVE_GETENV_R 1
18187 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18190 *** getenv() is not thread-safe and getenv_r() does not exist
18192 $as_echo "$as_me: WARNING:
18194 *** getenv() is not thread-safe and getenv_r() does not exist
18198 # For converting time strings to seconds since Epoch, we need the timegm
18200 for ac_func in timegm
18202 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18203 if test "x$ac_cv_func_timegm" = xyes; then :
18204 cat >>confdefs.h <<_ACEOF
18205 #define HAVE_TIMEGM 1
18211 if test "$ac_cv_func_timegm" != yes; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18214 *** timegm() not available - a non-thread-safe kludge will be used
18215 *** and the TZ variable might be changed at runtime.
18217 $as_echo "$as_me: WARNING:
18219 *** timegm() not available - a non-thread-safe kludge will be used
18220 *** and the TZ variable might be changed at runtime.
18224 for ac_func in setlocale
18226 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18227 if test "x$ac_cv_func_setlocale" = xyes; then :
18228 cat >>confdefs.h <<_ACEOF
18229 #define HAVE_SETLOCALE 1
18236 # Checking for libgpg-error.
18239 gpg_error_config_prefix=""
18241 # Check whether --with-libgpg-error-prefix was given.
18242 if test "${with_libgpg_error_prefix+set}" = set; then :
18243 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
18248 # Check whether --with-gpg-error-prefix was given.
18249 if test "${with_gpg_error_prefix+set}" = set; then :
18250 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
18254 if test x$gpg_error_config_prefix != x ; then
18255 if test x${GPG_ERROR_CONFIG+set} != xset ; then
18256 GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
18260 if test -n "$ac_tool_prefix"; then
18261 # Extract the first word of "${ac_tool_prefix}gpg-error-config", so it can be a program name with args.
18262 set dummy ${ac_tool_prefix}gpg-error-config; ac_word=$2
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18264 $as_echo_n "checking for $ac_word... " >&6; }
18265 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
18266 $as_echo_n "(cached) " >&6
18268 case $GPG_ERROR_CONFIG in
18270 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
18273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18274 for as_dir in $PATH
18277 test -z "$as_dir" && as_dir=.
18278 for ac_exec_ext in '' $ac_executable_extensions; do
18279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18280 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18291 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
18292 if test -n "$GPG_ERROR_CONFIG"; then
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
18294 $as_echo "$GPG_ERROR_CONFIG" >&6; }
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18297 $as_echo "no" >&6; }
18302 if test -z "$ac_cv_path_GPG_ERROR_CONFIG"; then
18303 ac_pt_GPG_ERROR_CONFIG=$GPG_ERROR_CONFIG
18304 # Extract the first word of "gpg-error-config", so it can be a program name with args.
18305 set dummy gpg-error-config; ac_word=$2
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18307 $as_echo_n "checking for $ac_word... " >&6; }
18308 if ${ac_cv_path_ac_pt_GPG_ERROR_CONFIG+:} false; then :
18309 $as_echo_n "(cached) " >&6
18311 case $ac_pt_GPG_ERROR_CONFIG in
18313 ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$ac_pt_GPG_ERROR_CONFIG" # Let the user override the test with a path.
18316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18320 test -z "$as_dir" && as_dir=.
18321 for ac_exec_ext in '' $ac_executable_extensions; do
18322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18323 ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18334 ac_pt_GPG_ERROR_CONFIG=$ac_cv_path_ac_pt_GPG_ERROR_CONFIG
18335 if test -n "$ac_pt_GPG_ERROR_CONFIG"; then
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GPG_ERROR_CONFIG" >&5
18337 $as_echo "$ac_pt_GPG_ERROR_CONFIG" >&6; }
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18340 $as_echo "no" >&6; }
18343 if test "x$ac_pt_GPG_ERROR_CONFIG" = x; then
18344 GPG_ERROR_CONFIG="no"
18346 case $cross_compiling:$ac_tool_warned in
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18350 ac_tool_warned=yes ;;
18352 GPG_ERROR_CONFIG=$ac_pt_GPG_ERROR_CONFIG
18355 GPG_ERROR_CONFIG="$ac_cv_path_GPG_ERROR_CONFIG"
18358 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
18360 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
18362 if test "$GPG_ERROR_CONFIG" != "no" \
18363 && test -f "$GPG_ERROR_CONFIG" ; then
18364 req_major=`echo $min_gpg_error_version | \
18365 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
18366 req_minor=`echo $min_gpg_error_version | \
18367 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
18368 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
18369 major=`echo $gpg_error_config_version | \
18370 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
18371 minor=`echo $gpg_error_config_version | \
18372 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
18373 if test "$major" -gt "$req_major"; then
18376 if test "$major" -eq "$req_major"; then
18377 if test "$minor" -ge "$req_minor"; then
18383 if test $ok = yes; then
18384 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
18385 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
18387 $as_echo "yes ($gpg_error_config_version)" >&6; }
18389 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
18390 if test x"$gpg_error_config_host" != xnone ; then
18391 if test x"$gpg_error_config_host" != x"$host" ; then
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18394 *** The config script $GPG_ERROR_CONFIG was
18395 *** built for $gpg_error_config_host and thus may not match the
18396 *** used host $host.
18397 *** You may want to use the configure option --with-gpg-error-prefix
18398 *** to specify a matching config script.
18400 $as_echo "$as_me: WARNING:
18402 *** The config script $GPG_ERROR_CONFIG was
18403 *** built for $gpg_error_config_host and thus may not match the
18404 *** used host $host.
18405 *** You may want to use the configure option --with-gpg-error-prefix
18406 *** to specify a matching config script.
18411 GPG_ERROR_CFLAGS=""
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 $as_echo "no" >&6; }
18421 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
18424 # And for libassuan.
18428 # Check whether --with-libassuan-prefix was given.
18429 if test "${with_libassuan_prefix+set}" = set; then :
18430 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
18432 libassuan_config_prefix=""
18435 if test x$libassuan_config_prefix != x ; then
18436 libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
18437 if test x${LIBASSUAN_CONFIG+set} != xset ; then
18438 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
18442 if test -n "$ac_tool_prefix"; then
18443 # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
18444 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18446 $as_echo_n "checking for $ac_word... " >&6; }
18447 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
18448 $as_echo_n "(cached) " >&6
18450 case $LIBASSUAN_CONFIG in
18452 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
18455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18456 for as_dir in $PATH
18459 test -z "$as_dir" && as_dir=.
18460 for ac_exec_ext in '' $ac_executable_extensions; do
18461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18462 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18473 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
18474 if test -n "$LIBASSUAN_CONFIG"; then
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
18476 $as_echo "$LIBASSUAN_CONFIG" >&6; }
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18479 $as_echo "no" >&6; }
18484 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
18485 ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
18486 # Extract the first word of "libassuan-config", so it can be a program name with args.
18487 set dummy libassuan-config; ac_word=$2
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18489 $as_echo_n "checking for $ac_word... " >&6; }
18490 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
18491 $as_echo_n "(cached) " >&6
18493 case $ac_pt_LIBASSUAN_CONFIG in
18495 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
18498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18499 for as_dir in $PATH
18502 test -z "$as_dir" && as_dir=.
18503 for ac_exec_ext in '' $ac_executable_extensions; do
18504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18505 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18516 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
18517 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
18519 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18525 if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
18526 LIBASSUAN_CONFIG="no"
18528 case $cross_compiling:$ac_tool_warned in
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18532 ac_tool_warned=yes ;;
18534 LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
18537 LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
18541 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
18542 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18543 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
18544 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18546 req_libassuan_api=0
18547 min_libassuan_version="$tmp"
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
18551 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
18553 if test "$LIBASSUAN_CONFIG" != "no" \
18554 && test -f "$LIBASSUAN_CONFIG" ; then
18555 req_major=`echo $min_libassuan_version | \
18556 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18557 req_minor=`echo $min_libassuan_version | \
18558 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18559 req_micro=`echo $min_libassuan_version | \
18560 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18562 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
18563 major=`echo $libassuan_config_version | \
18564 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18565 minor=`echo $libassuan_config_version | \
18566 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18567 micro=`echo $libassuan_config_version | \
18568 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18570 if test "$major" -gt "$req_major"; then
18573 if test "$major" -eq "$req_major"; then
18574 if test "$minor" -gt "$req_minor"; then
18577 if test "$minor" -eq "$req_minor"; then
18578 if test "$micro" -ge "$req_micro"; then
18587 if test $ok = yes; then
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
18589 $as_echo "yes ($libassuan_config_version)" >&6; }
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18592 $as_echo "no" >&6; }
18595 if test $ok = yes; then
18596 if test "$req_libassuan_api" -gt 0 ; then
18597 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
18598 if test "$tmp" -gt 0 ; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
18600 $as_echo_n "checking LIBASSUAN API version... " >&6; }
18601 if test "$req_libassuan_api" -eq "$tmp" ; then
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18603 $as_echo "okay" >&6; }
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
18607 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
18613 if test $ok = yes; then
18614 if test x"$host" != x ; then
18615 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
18616 if test x"$libassuan_config_host" != xnone ; then
18617 if test x"$libassuan_config_host" != x"$host" ; then
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18620 *** The config script $LIBASSUAN_CONFIG was
18621 *** built for $libassuan_config_host and thus may not match the
18622 *** used host $host.
18623 *** You may want to use the configure option --with-libassuan-prefix
18624 *** to specify a matching config script.
18626 $as_echo "$as_me: WARNING:
18628 *** The config script $LIBASSUAN_CONFIG was
18629 *** built for $libassuan_config_host and thus may not match the
18630 *** used host $host.
18631 *** You may want to use the configure option --with-libassuan-prefix
18632 *** to specify a matching config script.
18639 if test $ok = yes; then
18640 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
18641 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
18644 LIBASSUAN_CFLAGS=""
18651 if test "$have_libassuan" = "yes"; then
18653 cat >>confdefs.h <<_ACEOF
18654 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
18658 if test "$have_libassuan" = "yes"; then
18660 HAVE_ASSUAN_FALSE='#'
18662 HAVE_ASSUAN_TRUE='#'
18666 if test "$have_libassuan" = "yes"; then
18668 $as_echo "#define ENABLE_ASSUAN 1" >>confdefs.h
18672 # Checks for system services
18673 NEED_GPG_VERSION_DEFAULT=1.4.0
18674 NEED_GPGSM_VERSION_DEFAULT=1.9.6
18675 NEED_GPGCONF_VERSION_DEFAULT=2.0.4
18676 NEED_G13_VERSION_DEFAULT=2.1.0
18677 NEED_GPG_VERSION="$NEED_GPG_VERSION_DEFAULT"
18678 NEED_GPGSM_VERSION="$NEED_GPGSM_VERSION_DEFAULT"
18679 NEED_GPGCONF_VERSION="$NEED_GPGCONF_VERSION_DEFAULT"
18680 NEED_G13_VERSION="$NEED_G13_VERSION_DEFAULT"
18682 # Check whether --with-gpg-version was given.
18683 if test "${with_gpg_version+set}" = set; then :
18684 withval=$with_gpg_version; NEED_GPG_VERSION=$withval
18687 if test "$NEED_GPG_VERSION" = "yes"; then
18688 NEED_GPG_VERSION="$NEED_GPG_VERSION_DEFAULT"
18690 if test "$NEED_GPG_VERSION" = "no"; then
18691 NEED_GPG_VERSION=0.0.0
18694 # Check whether --with-gpgsm-version was given.
18695 if test "${with_gpgsm_version+set}" = set; then :
18696 withval=$with_gpgsm_version; NEED_GPGSM_VERSION=$withval
18699 if test "$NEED_GPGSM_VERSION" = "yes"; then
18700 NEED_GPGSM_VERSION="$NEED_GPGSM_VERSION_DEFAULT"
18702 if test "$NEED_GPGSM_VERSION" = "no"; then
18703 NEED_GPGSM_VERSION=0.0.0
18706 # Check whether --with-gpgconf-version was given.
18707 if test "${with_gpgconf_version+set}" = set; then :
18708 withval=$with_gpgconf_version; NEED_GPGCONF_VERSION=$withval
18711 if test "$NEED_GPGCONF_VERSION" = "yes"; then
18712 NEED_GPGCONF_VERSION="$NEED_GPGCONF_VERSION_DEFAULT"
18714 if test "$NEED_GPGCONF_VERSION" = "no"; then
18715 NEED_GPGCONF_VERSION=0.0.0
18718 # Check whether --with-g13-version was given.
18719 if test "${with_g13_version+set}" = set; then :
18720 withval=$with_g13_version; NEED_G13_VERSION=$withval
18723 if test "$NEED_G13_VERSION" = "yes"; then
18724 NEED_G13_VERSION="$NEED_G13_VERSION_DEFAULT"
18726 if test "$NEED_G13_VERSION" = "no"; then
18727 NEED_G13_VERSION=0.0.0
18731 cat >>confdefs.h <<_ACEOF
18732 #define NEED_GPG_VERSION "$NEED_GPG_VERSION"
18736 cat >>confdefs.h <<_ACEOF
18737 #define NEED_GPGSM_VERSION "$NEED_GPGSM_VERSION"
18741 cat >>confdefs.h <<_ACEOF
18742 #define NEED_GPGCONF_VERSION "$NEED_GPGCONF_VERSION"
18746 cat >>confdefs.h <<_ACEOF
18747 #define NEED_G13_VERSION "$NEED_G13_VERSION"
18754 # Check whether --with-gpg was given.
18755 if test "${with_gpg+set}" = set; then :
18756 withval=$with_gpg; GPG=$withval
18761 if test "$NO_OVERRIDE" = "yes" || test "$GPG" = "yes"; then
18764 if test "$cross_compiling" != "yes"; then
18765 # Extract the first word of "gpg", so it can be a program name with args.
18766 set dummy gpg; ac_word=$2
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18768 $as_echo_n "checking for $ac_word... " >&6; }
18769 if ${ac_cv_path_GPG+:} false; then :
18770 $as_echo_n "(cached) " >&6
18774 ac_cv_path_GPG="$GPG" # Let the user override the test with a path.
18777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18778 for as_dir in $PATH
18781 test -z "$as_dir" && as_dir=.
18782 for ac_exec_ext in '' $ac_executable_extensions; do
18783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18784 ac_cv_path_GPG="$as_dir/$ac_word$ac_exec_ext"
18785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18795 GPG=$ac_cv_path_GPG
18796 if test -n "$GPG"; then
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG" >&5
18798 $as_echo "$GPG" >&6; }
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18801 $as_echo "no" >&6; }
18806 if test -z "$GPG"; then
18810 if test "$GPG" = no; then
18811 if test "$NO_OVERRIDE" = "yes"; then
18812 if test "$cross_compiling" != "yes"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18815 *** Could not find GnuPG, install GnuPG or use --with-gpg=PATH to enable it
18817 $as_echo "$as_me: WARNING:
18819 *** Could not find GnuPG, install GnuPG or use --with-gpg=PATH to enable it
18824 *** Can not determine path to GnuPG when cross-compiling, use --with-gpg=PATH
18830 cat >>confdefs.h <<_ACEOF
18831 #define GPG_PATH "$GPG"
18836 GPG_VERSION=unknown
18838 if test -z "$GPG" -o "x$GPG" = "xno"; then
18841 if test "$cross_compiling" = "yes"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GnuPG version can not be checked when cross compiling" >&5
18843 $as_echo "$as_me: WARNING: GnuPG version can not be checked when cross compiling" >&2;}
18846 if test ! -x "$GPG"; then
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GnuPG not executable, version check disabled" >&5
18848 $as_echo "$as_me: WARNING: GnuPG not executable, version check disabled" >&2;}
18853 if test "$ok" = "maybe"; then
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG >= $NEED_GPG_VERSION" >&5
18855 $as_echo_n "checking for GPG >= $NEED_GPG_VERSION... " >&6; }
18856 req_major=`echo $NEED_GPG_VERSION | \
18857 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18858 req_minor=`echo $NEED_GPG_VERSION | \
18859 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18860 req_micro=`echo $NEED_GPG_VERSION | \
18861 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18862 GPG_VERSION=`$GPG --version | sed -n '1 s/[^0-9]*\(.*\)/\1/p'`
18863 major=`echo $GPG_VERSION | \
18864 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18865 minor=`echo $GPG_VERSION | \
18866 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18867 micro=`echo $GPG_VERSION | \
18868 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18870 if test "$major" -gt "$req_major"; then
18873 if test "$major" -eq "$req_major"; then
18874 if test "$minor" -gt "$req_minor"; then
18877 if test "$minor" -eq "$req_minor"; then
18878 if test "$micro" -ge "$req_micro"; then
18885 if test "$ok" = "yes"; then
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18887 $as_echo "yes" >&6; }
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18890 $as_echo "no" >&6; }
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPG must be at least version $NEED_GPG_VERSION" >&5
18892 $as_echo "$as_me: WARNING: GPG must be at least version $NEED_GPG_VERSION" >&2;}
18896 # Check whether --enable-gpg-test was given.
18897 if test "${enable_gpg_test+set}" = set; then :
18898 enableval=$enable_gpg_test; run_gpg_test=$enableval
18901 if test "$run_gpg_test" = "yes"; then
18902 RUN_GPG_TESTS_TRUE=
18903 RUN_GPG_TESTS_FALSE='#'
18905 RUN_GPG_TESTS_TRUE='#'
18906 RUN_GPG_TESTS_FALSE=
18913 # Check whether --with-gpgsm was given.
18914 if test "${with_gpgsm+set}" = set; then :
18915 withval=$with_gpgsm; GPGSM=$withval
18920 if test "$NO_OVERRIDE" = "yes" || test "$GPGSM" = "yes"; then
18923 if test "$cross_compiling" != "yes"; then
18924 # Extract the first word of "gpgsm", so it can be a program name with args.
18925 set dummy gpgsm; ac_word=$2
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18927 $as_echo_n "checking for $ac_word... " >&6; }
18928 if ${ac_cv_path_GPGSM+:} false; then :
18929 $as_echo_n "(cached) " >&6
18933 ac_cv_path_GPGSM="$GPGSM" # Let the user override the test with a path.
18936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937 for as_dir in $PATH
18940 test -z "$as_dir" && as_dir=.
18941 for ac_exec_ext in '' $ac_executable_extensions; do
18942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18943 ac_cv_path_GPGSM="$as_dir/$ac_word$ac_exec_ext"
18944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18954 GPGSM=$ac_cv_path_GPGSM
18955 if test -n "$GPGSM"; then
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGSM" >&5
18957 $as_echo "$GPGSM" >&6; }
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18960 $as_echo "no" >&6; }
18965 if test -z "$GPGSM"; then
18966 GPGSM="$GPGSM_DEFAULT"
18969 if test "$GPGSM" = no; then
18970 if test "$NO_OVERRIDE" = "yes"; then
18971 if test "$cross_compiling" != "yes"; then
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18974 *** Could not find GpgSM, install GpgSM or use --with-gpgsm=PATH to enable it
18976 $as_echo "$as_me: WARNING:
18978 *** Could not find GpgSM, install GpgSM or use --with-gpgsm=PATH to enable it
18983 *** Can not determine path to GpgSM when cross-compiling, use --with-gpgsm=PATH
18989 cat >>confdefs.h <<_ACEOF
18990 #define GPGSM_PATH "$GPGSM"
18994 $as_echo "#define ENABLE_GPGSM 1" >>confdefs.h
18997 if test "$GPGSM" != "no"; then
18999 HAVE_GPGSM_FALSE='#'
19001 HAVE_GPGSM_TRUE='#'
19007 GPGSM_VERSION=unknown
19009 if test -z "$GPGSM" -o "x$GPGSM" = "xno"; then
19012 if test "$cross_compiling" = "yes"; then
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGSM version can not be checked when cross compiling" >&5
19014 $as_echo "$as_me: WARNING: GPGSM version can not be checked when cross compiling" >&2;}
19017 if test ! -x "$GPGSM"; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGSM not executable, version check disabled" >&5
19019 $as_echo "$as_me: WARNING: GPGSM not executable, version check disabled" >&2;}
19024 if test "$ok" = "maybe"; then
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGSM >= $NEED_GPGSM_VERSION" >&5
19026 $as_echo_n "checking for GPGSM >= $NEED_GPGSM_VERSION... " >&6; }
19027 req_major=`echo $NEED_GPGSM_VERSION | \
19028 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19029 req_minor=`echo $NEED_GPGSM_VERSION | \
19030 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19031 req_micro=`echo $NEED_GPGSM_VERSION | \
19032 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19033 GPGSM_VERSION=`$GPGSM --version | sed -n '1 s/[^0-9]*\(.*\)/\1/p'`
19034 major=`echo $GPGSM_VERSION | \
19035 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19036 minor=`echo $GPGSM_VERSION | \
19037 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19038 micro=`echo $GPGSM_VERSION | \
19039 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19041 if test "$major" -gt "$req_major"; then
19044 if test "$major" -eq "$req_major"; then
19045 if test "$minor" -gt "$req_minor"; then
19048 if test "$minor" -eq "$req_minor"; then
19049 if test "$micro" -ge "$req_micro"; then
19056 if test "$ok" = "yes"; then
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19058 $as_echo "yes" >&6; }
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19061 $as_echo "no" >&6; }
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGSM must be at least version $NEED_GPGSM_VERSION" >&5
19063 $as_echo "$as_me: WARNING: GPGSM must be at least version $NEED_GPGSM_VERSION" >&2;}
19066 run_gpgsm_test="$ok"
19067 # Check whether --enable-gpgsm-test was given.
19068 if test "${enable_gpgsm_test+set}" = set; then :
19069 enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
19072 if test "$run_gpgsm_test" = "yes"; then
19073 RUN_GPGSM_TESTS_TRUE=
19074 RUN_GPGSM_TESTS_FALSE='#'
19076 RUN_GPGSM_TESTS_TRUE='#'
19077 RUN_GPGSM_TESTS_FALSE=
19084 # Check whether --with-gpgconf was given.
19085 if test "${with_gpgconf+set}" = set; then :
19086 withval=$with_gpgconf; GPGCONF=$withval
19091 if test "$NO_OVERRIDE" = "yes" || test "$GPGCONF" = "yes"; then
19094 if test "$cross_compiling" != "yes"; then
19095 # Extract the first word of "gpgconf", so it can be a program name with args.
19096 set dummy gpgconf; ac_word=$2
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19098 $as_echo_n "checking for $ac_word... " >&6; }
19099 if ${ac_cv_path_GPGCONF+:} false; then :
19100 $as_echo_n "(cached) " >&6
19104 ac_cv_path_GPGCONF="$GPGCONF" # Let the user override the test with a path.
19107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19108 for as_dir in $PATH
19111 test -z "$as_dir" && as_dir=.
19112 for ac_exec_ext in '' $ac_executable_extensions; do
19113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19114 ac_cv_path_GPGCONF="$as_dir/$ac_word$ac_exec_ext"
19115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19125 GPGCONF=$ac_cv_path_GPGCONF
19126 if test -n "$GPGCONF"; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGCONF" >&5
19128 $as_echo "$GPGCONF" >&6; }
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19131 $as_echo "no" >&6; }
19136 if test -z "$GPGCONF"; then
19137 GPGCONF="$GPGCONF_DEFAULT"
19140 if test "$GPGCONF" = no; then
19141 if test "$NO_OVERRIDE" = "yes"; then
19142 if test "$cross_compiling" != "yes"; then
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19145 *** Could not find gpgconf, install gpgconf or use --with-gpgconf=PATH to enable it
19147 $as_echo "$as_me: WARNING:
19149 *** Could not find gpgconf, install gpgconf or use --with-gpgconf=PATH to enable it
19154 *** Can not determine path to gpgconf when cross-compiling, use --with-gpgconf=PATH
19160 cat >>confdefs.h <<_ACEOF
19161 #define GPGCONF_PATH "$GPGCONF"
19165 $as_echo "#define ENABLE_GPGCONF 1" >>confdefs.h
19168 if test "$GPGCONF" != "no"; then
19170 HAVE_GPGCONF_FALSE='#'
19172 HAVE_GPGCONF_TRUE='#'
19173 HAVE_GPGCONF_FALSE=
19177 GPGCONF_VERSION=unknown
19179 if test -z "$GPGCONF" -o "x$GPGCONF" = "xno"; then
19182 if test "$cross_compiling" = "yes"; then
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGCONF version can not be checked when cross compiling" >&5
19184 $as_echo "$as_me: WARNING: GPGCONF version can not be checked when cross compiling" >&2;}
19187 if test ! -x "$GPGCONF"; then
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGCONF not executable, version check disabled" >&5
19189 $as_echo "$as_me: WARNING: GPGCONF not executable, version check disabled" >&2;}
19194 if test "$ok" = "maybe"; then
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGCONF >= $NEED_GPGCONF_VERSION" >&5
19196 $as_echo_n "checking for GPGCONF >= $NEED_GPGCONF_VERSION... " >&6; }
19197 req_major=`echo $NEED_GPGCONF_VERSION | \
19198 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19199 req_minor=`echo $NEED_GPGCONF_VERSION | \
19200 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19201 req_micro=`echo $NEED_GPGCONF_VERSION | \
19202 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19203 GPGCONF_VERSION=`$GPGCONF --version | sed -n '1 s/[^0-9]*\(.*\)/\1/p'`
19204 major=`echo $GPGCONF_VERSION | \
19205 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19206 minor=`echo $GPGCONF_VERSION | \
19207 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19208 micro=`echo $GPGCONF_VERSION | \
19209 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19211 if test "$major" -gt "$req_major"; then
19214 if test "$major" -eq "$req_major"; then
19215 if test "$minor" -gt "$req_minor"; then
19218 if test "$minor" -eq "$req_minor"; then
19219 if test "$micro" -ge "$req_micro"; then
19226 if test "$ok" = "yes"; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19228 $as_echo "yes" >&6; }
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 $as_echo "no" >&6; }
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGCONF must be at least version $NEED_GPGCONF_VERSION" >&5
19233 $as_echo "$as_me: WARNING: GPGCONF must be at least version $NEED_GPGCONF_VERSION" >&2;}
19236 run_gpgconf_test="$ok"
19237 # Check whether --enable-gpgconf-test was given.
19238 if test "${enable_gpgconf_test+set}" = set; then :
19239 enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
19242 if test "$run_gpgconf_test" = "yes"; then
19243 RUN_GPGCONF_TESTS_TRUE=
19244 RUN_GPGCONF_TESTS_FALSE='#'
19246 RUN_GPGCONF_TESTS_TRUE='#'
19247 RUN_GPGCONF_TESTS_FALSE=
19254 # Check whether --with-g13 was given.
19255 if test "${with_g13+set}" = set; then :
19256 withval=$with_g13; G13=$withval
19261 if test "$NO_OVERRIDE" = "yes" || test "$G13" = "yes"; then
19264 if test "$cross_compiling" != "yes"; then
19265 # Extract the first word of "g13", so it can be a program name with args.
19266 set dummy g13; ac_word=$2
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19268 $as_echo_n "checking for $ac_word... " >&6; }
19269 if ${ac_cv_path_G13+:} false; then :
19270 $as_echo_n "(cached) " >&6
19274 ac_cv_path_G13="$G13" # Let the user override the test with a path.
19277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19281 test -z "$as_dir" && as_dir=.
19282 for ac_exec_ext in '' $ac_executable_extensions; do
19283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19284 ac_cv_path_G13="$as_dir/$ac_word$ac_exec_ext"
19285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19295 G13=$ac_cv_path_G13
19296 if test -n "$G13"; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G13" >&5
19298 $as_echo "$G13" >&6; }
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19306 if test -z "$G13"; then
19310 if test "$G13" = no; then
19311 if test "$NO_OVERRIDE" = "yes"; then
19312 if test "$cross_compiling" != "yes"; then
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19315 *** Could not find g13, install g13 or use --with-g13=PATH to enable it
19317 $as_echo "$as_me: WARNING:
19319 *** Could not find g13, install g13 or use --with-g13=PATH to enable it
19324 *** Can not determine path to g13 when cross-compiling, use --with-g13=PATH
19330 cat >>confdefs.h <<_ACEOF
19331 #define G13_PATH "$G13"
19335 $as_echo "#define ENABLE_G13 1" >>confdefs.h
19338 if test "$G13" != "no"; then
19347 G13_VERSION=unknown
19349 if test -z "$G13" -o "x$G13" = "xno"; then
19352 if test "$cross_compiling" = "yes"; then
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: G13 version can not be checked when cross compiling" >&5
19354 $as_echo "$as_me: WARNING: G13 version can not be checked when cross compiling" >&2;}
19357 if test ! -x "$G13"; then
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: G13 not executable, version check disabled" >&5
19359 $as_echo "$as_me: WARNING: G13 not executable, version check disabled" >&2;}
19364 if test "$ok" = "maybe"; then
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for G13 >= $NEED_G13_VERSION" >&5
19366 $as_echo_n "checking for G13 >= $NEED_G13_VERSION... " >&6; }
19367 req_major=`echo $NEED_G13_VERSION | \
19368 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19369 req_minor=`echo $NEED_G13_VERSION | \
19370 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19371 req_micro=`echo $NEED_G13_VERSION | \
19372 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19373 G13_VERSION=`$G13 --version | sed -n '1 s/.*\ \([0-9].*\)/\1/p'`
19374 major=`echo $G13_VERSION | \
19375 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19376 minor=`echo $G13_VERSION | \
19377 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19378 micro=`echo $G13_VERSION | \
19379 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19381 if test "$major" -gt "$req_major"; then
19384 if test "$major" -eq "$req_major"; then
19385 if test "$minor" -gt "$req_minor"; then
19388 if test "$minor" -eq "$req_minor"; then
19389 if test "$micro" -ge "$req_micro"; then
19396 if test "$ok" = "yes"; then
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19398 $as_echo "yes" >&6; }
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19401 $as_echo "no" >&6; }
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: G13 must be at least version $NEED_G13_VERSION" >&5
19403 $as_echo "$as_me: WARNING: G13 must be at least version $NEED_G13_VERSION" >&2;}
19407 # Check whether --enable-g13-test was given.
19408 if test "${enable_g13_test+set}" = set; then :
19409 enableval=$enable_g13_test; run_g13_test=$enableval
19412 if test "$run_g13_test" = "yes"; then
19413 RUN_G13_TESTS_TRUE=
19414 RUN_G13_TESTS_FALSE='#'
19416 RUN_G13_TESTS_TRUE='#'
19417 RUN_G13_TESTS_FALSE=
19422 # Check for funopen
19423 for ac_func in funopen
19425 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
19426 if test "x$ac_cv_func_funopen" = xyes; then :
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE_FUNOPEN 1
19434 if test $ac_cv_func_funopen != yes; then
19435 # No funopen but we can implement that in terms of fopencookie.
19436 for ac_func in fopencookie
19438 ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
19439 if test "x$ac_cv_func_fopencookie" = xyes; then :
19440 cat >>confdefs.h <<_ACEOF
19441 #define HAVE_FOPENCOOKIE 1
19447 if test $ac_cv_func_fopencookie = yes; then
19448 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
19449 if test "x$ac_cv_func_funopen" = xyes; then :
19450 $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
19453 case " $LIBOBJS " in
19454 *" funopen.$ac_objext "* ) ;;
19455 *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19465 *** No implementation of fopencookie or funopen available
19467 $as_echo "$as_me: WARNING:
19469 *** No implementation of fopencookie or funopen available
19474 # Check for getgid etc
19475 for ac_func in getgid getegid
19477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19480 cat >>confdefs.h <<_ACEOF
19481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19489 # Replacement functions.
19490 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
19491 if test "x$ac_cv_func_stpcpy" = xyes; then :
19492 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
19495 case " $LIBOBJS " in
19496 *" stpcpy.$ac_objext "* ) ;;
19497 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
19504 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19505 if test "x$ac_cv_func_setenv" = xyes; then :
19506 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
19509 case " $LIBOBJS " in
19510 *" setenv.$ac_objext "* ) ;;
19511 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
19519 # Assuan check for descriptor passing.
19520 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
19521 #include <stdlib.h>
19522 #include <stddef.h>
19524 #include <sys/types.h>
19525 #include <sys/socket.h>
19526 #include <sys/un.h>
19528 #include <sys/uio.h>
19530 #include <unistd.h>
19533 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
19534 supports_descriptor_passing=yes
19536 supports_descriptor_passing=no
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19539 *** Data structure for sending ancillary data missing.
19540 *** Descriptor passing won't work.
19542 $as_echo "$as_me: WARNING:
19544 *** Data structure for sending ancillary data missing.
19545 *** Descriptor passing won't work.
19553 use_descriptor_passing=no
19556 use_descriptor_passing=yes
19559 # Check whether --enable-fd-passing was given.
19560 if test "${enable_fd_passing+set}" = set; then :
19561 enableval=$enable_fd_passing; use_descriptor_passing=$enableval
19565 if test "$supports_descriptor_passing" != "yes"; then
19566 use_descriptor_passing=no
19569 if test "$use_descriptor_passing" = "yes"; then
19571 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
19575 if test "$use_descriptor_passing" = "yes"; then
19576 USE_DESCRIPTOR_PASSING_TRUE=
19577 USE_DESCRIPTOR_PASSING_FALSE='#'
19579 USE_DESCRIPTOR_PASSING_TRUE='#'
19580 USE_DESCRIPTOR_PASSING_FALSE=
19586 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
19589 if test "$uiserver" != "no"; then
19591 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
19594 if test "$uiserver" != "no"; then
19595 HAVE_UISERVER_TRUE=
19596 HAVE_UISERVER_FALSE='#'
19598 HAVE_UISERVER_TRUE='#'
19599 HAVE_UISERVER_FALSE=
19604 # Add a few constants to help porting to W32
19610 # Substitution used for gpgme-config
19611 GPGME_CONFIG_LIBS="-lgpgme"
19612 GPGME_CONFIG_CFLAGS=""
19613 GPGME_CONFIG_HOST="$host"
19619 # Frob'da Variables
19620 LTLIBOBJS=`echo "$LIBOBJS" |
19621 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
19624 # Some checks for gpgme-tool
19625 # Done at top: AC_CHECK_HEADER([argp.h])
19626 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
19628 if test "x$ac_cv_type_error_t" = xyes; then :
19630 cat >>confdefs.h <<_ACEOF
19631 #define HAVE_ERROR_T 1
19637 $as_echo "#define error_t int" >>confdefs.h
19643 # A substitution to set generated files in a Emacs buffer to read-only.
19644 emacs_local_vars_begin='Local Variables:'
19646 emacs_local_vars_read_only='buffer-read-only: t'
19648 emacs_local_vars_end='End:'
19654 if test "$have_gpg_error" = "no"; then
19656 { $as_echo "$as_me:${as_lineno-$LINENO}:
19658 *** You need libgpg-error to build this program.
19659 ** This library is for example available at
19660 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
19661 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19665 *** You need libgpg-error to build this program.
19666 ** This library is for example available at
19667 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
19668 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19671 if test "$have_libassuan" = "no"; then
19673 { $as_echo "$as_me:${as_lineno-$LINENO}:
19675 *** You need libassuan to build this program with GPGSM support.
19676 *** This library is for example available at
19677 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
19678 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19682 *** You need libassuan to build this program with GPGSM support.
19683 *** This library is for example available at
19684 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
19685 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19689 if test "$die" = "yes"; then
19692 *** Required libraries not found. Please consult the above messages
19693 *** and install them before running configure again.
19699 # Create config files
19701 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile doc/Makefile src/versioninfo.rc src/gpgme.h"
19703 ac_config_files="$ac_config_files src/gpgme-config"
19705 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
19707 cat >confcache <<\_ACEOF
19708 # This file is a shell script that caches the results of configure
19709 # tests run on this system so they can be shared between configure
19710 # scripts and configure runs, see configure's option --config-cache.
19711 # It is not useful on other systems. If it contains results you don't
19712 # want to keep, you may remove or edit it.
19714 # config.status only pays attention to the cache file if you give it
19715 # the --recheck option to rerun configure.
19717 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19718 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19719 # following values.
19723 # The following way of writing the cache mishandles newlines in values,
19724 # but we know of no workaround that is simple, portable, and efficient.
19725 # So, we kill variables containing newlines.
19726 # Ultrix sh set writes to stderr and can't be redirected directly,
19727 # and sets the high bit in the cache file unless we assign to the vars.
19729 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19730 eval ac_val=\$$ac_var
19734 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19738 _ | IFS | as_nl) ;; #(
19739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19740 *) { eval $ac_var=; unset $ac_var;} ;;
19746 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19747 *${as_nl}ac_space=\ *)
19748 # `set' does not quote correctly, so add quotes: double-quote
19749 # substitution turns \\\\ into \\, and sed turns \\ into \.
19752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19755 # `set' quotes correctly as required by POSIX, so do not add quotes.
19756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19765 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19767 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19769 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19770 if test -w "$cache_file"; then
19771 if test "x$cache_file" != "x/dev/null"; then
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19773 $as_echo "$as_me: updating cache $cache_file" >&6;}
19774 if test ! -f "$cache_file" || test -h "$cache_file"; then
19775 cat confcache >"$cache_file"
19777 case $cache_file in #(
19779 mv -f confcache "$cache_file"$$ &&
19780 mv -f "$cache_file"$$ "$cache_file" ;; #(
19782 mv -f confcache "$cache_file" ;;
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19794 # Let make expand exec_prefix.
19795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19797 DEFS=-DHAVE_CONFIG_H
19802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19803 # 1. Remove the extension, and $U if already installed.
19804 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19805 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19806 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19807 # will be set to the directory where LIBOBJS objects are built.
19808 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19809 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19811 LIBOBJS=$ac_libobjs
19813 LTLIBOBJS=$ac_ltlibobjs
19816 if test -n "$EXEEXT"; then
19818 am__EXEEXT_FALSE='#'
19820 am__EXEEXT_TRUE='#'
19824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19825 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19829 as_fn_error $? "conditional \"AMDEP\" was never defined.
19830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19833 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19837 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19840 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19841 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19844 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19845 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19848 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
19849 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
19850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19852 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19853 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19856 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
19857 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
19858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19860 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19861 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19864 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
19865 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
19866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19868 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
19869 as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
19870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19872 if test -z "${BUILD_W32_QT_TRUE}" && test -z "${BUILD_W32_QT_FALSE}"; then
19873 as_fn_error $? "conditional \"BUILD_W32_QT\" was never defined.
19874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19876 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19877 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19880 if test -z "${HAVE_ASSUAN_TRUE}" && test -z "${HAVE_ASSUAN_FALSE}"; then
19881 as_fn_error $? "conditional \"HAVE_ASSUAN\" was never defined.
19882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19884 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
19885 as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
19886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19888 if test -z "${HAVE_GPGSM_TRUE}" && test -z "${HAVE_GPGSM_FALSE}"; then
19889 as_fn_error $? "conditional \"HAVE_GPGSM\" was never defined.
19890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19892 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
19893 as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
19894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19896 if test -z "${HAVE_GPGCONF_TRUE}" && test -z "${HAVE_GPGCONF_FALSE}"; then
19897 as_fn_error $? "conditional \"HAVE_GPGCONF\" was never defined.
19898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19900 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
19901 as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
19902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19904 if test -z "${HAVE_G13_TRUE}" && test -z "${HAVE_G13_FALSE}"; then
19905 as_fn_error $? "conditional \"HAVE_G13\" was never defined.
19906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19908 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
19909 as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
19910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19912 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
19913 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
19914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19916 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
19917 as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
19918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19921 : "${CONFIG_STATUS=./config.status}"
19923 ac_clean_files_save=$ac_clean_files
19924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19930 # Generated by $as_me.
19931 # Run this file to recreate the current configuration.
19932 # Compiler output produced by configure, useful for debugging
19933 # configure, is in config.log if it exists.
19936 ac_cs_recheck=false
19939 SHELL=\${CONFIG_SHELL-$SHELL}
19942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19943 ## -------------------- ##
19944 ## M4sh Initialization. ##
19945 ## -------------------- ##
19947 # Be more Bourne compatible
19948 DUALCASE=1; export DUALCASE # for MKS sh
19949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19953 # is contrary to our usage. Disable this feature.
19954 alias -g '${1+"$@"}'='"$@"'
19955 setopt NO_GLOB_SUBST
19957 case `(set -o) 2>/dev/null` in #(
19969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19973 # Prefer a ksh shell builtin over an external printf program on Solaris,
19974 # but without wasting forks for bash or zsh.
19975 if test -z "$BASH_VERSION$ZSH_VERSION" \
19976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19977 as_echo='print -r --'
19978 as_echo_n='print -rn --'
19979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19980 as_echo='printf %s\n'
19981 as_echo_n='printf %s'
19983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19985 as_echo_n='/usr/ucb/echo -n'
19987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19988 as_echo_n_body='eval
19992 expr "X$arg" : "X\\(.*\\)$as_nl";
19993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19997 export as_echo_n_body
19998 as_echo_n='sh -c $as_echo_n_body as_echo'
20000 export as_echo_body
20001 as_echo='sh -c $as_echo_body as_echo'
20004 # The user is always right.
20005 if test "${PATH_SEPARATOR+set}" != set; then
20007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20015 # We need space, tab and new line, in precisely that order. Quoting is
20016 # there to prevent editors from complaining about space-tab.
20017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20018 # splitting by setting IFS to empty value.)
20021 # Find who we are. Look in the path if we contain no directory separator.
20024 *[\\/]* ) as_myself=$0 ;;
20025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20026 for as_dir in $PATH
20029 test -z "$as_dir" && as_dir=.
20030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20036 # We did not find ourselves, most probably we were run as `sh COMMAND'
20037 # in which case we are not to be found in the path.
20038 if test "x$as_myself" = x; then
20041 if test ! -f "$as_myself"; then
20042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20046 # Unset variables that we do not need and which cause bugs (e.g. in
20047 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20048 # suppresses any "Segmentation fault" message there. '((' could
20049 # trigger a bug in pdksh 5.2.14.
20050 for as_var in BASH_ENV ENV MAIL MAILPATH
20051 do eval test x\${$as_var+set} = xset \
20052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20069 # ----------------------------------------
20070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20072 # script with STATUS, using 1 if that was 0.
20075 as_status=$1; test $as_status -eq 0 && as_status=1
20077 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20080 $as_echo "$as_me: error: $2" >&2
20081 as_fn_exit $as_status
20085 # as_fn_set_status STATUS
20086 # -----------------------
20087 # Set $? to STATUS, without forking.
20088 as_fn_set_status ()
20091 } # as_fn_set_status
20093 # as_fn_exit STATUS
20094 # -----------------
20095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20099 as_fn_set_status $1
20105 # Portably unset VAR.
20108 { eval $1=; unset $1;}
20110 as_unset=as_fn_unset
20111 # as_fn_append VAR VALUE
20112 # ----------------------
20113 # Append the text in VALUE to the end of the definition contained in VAR. Take
20114 # advantage of any shell optimizations that allow amortized linear growth over
20115 # repeated appends, instead of the typical quadratic growth present in naive
20117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20118 eval 'as_fn_append ()
20129 # as_fn_arith ARG...
20130 # ------------------
20131 # Perform arithmetic evaluation on the ARGs, and store the result in the
20132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20133 # must be portable across $(()) and expr.
20134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20135 eval 'as_fn_arith ()
20142 as_val=`expr "$@" || test $? -eq 1`
20147 if expr a : '\(a\)' >/dev/null 2>&1 &&
20148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20155 as_basename=basename
20160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20166 as_me=`$as_basename -- "$0" ||
20167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20168 X"$0" : 'X\(//\)$' \| \
20169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20171 sed '/^.*\/\([^/][^/]*\)\/*$/{
20185 # Avoid depending upon Character Ranges.
20186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20189 as_cr_digits='0123456789'
20190 as_cr_alnum=$as_cr_Letters$as_cr_digits
20192 ECHO_C= ECHO_N= ECHO_T=
20193 case `echo -n x` in #(((((
20195 case `echo 'xy\c'` in
20196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20205 rm -f conf$$ conf$$.exe conf$$.file
20206 if test -d conf$$.dir; then
20207 rm -f conf$$.dir/conf$$.file
20210 mkdir conf$$.dir 2>/dev/null
20212 if (echo >conf$$.file) 2>/dev/null; then
20213 if ln -s conf$$.file conf$$ 2>/dev/null; then
20215 # ... but there are two gotchas:
20216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20218 # In both cases, we have to default to `cp -pR'.
20219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20221 elif ln conf$$.file conf$$ 2>/dev/null; then
20229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20230 rmdir conf$$.dir 2>/dev/null
20235 # Create "$as_dir" as a directory, including parents if necessary.
20240 -*) as_dir=./$as_dir;;
20242 test -d "$as_dir" || eval $as_mkdir_p || {
20246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20247 *) as_qdir=$as_dir;;
20249 as_dirs="'$as_qdir' $as_dirs"
20250 as_dir=`$as_dirname -- "$as_dir" ||
20251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20252 X"$as_dir" : 'X\(//\)[^/]' \| \
20253 X"$as_dir" : 'X\(//\)$' \| \
20254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20255 $as_echo X"$as_dir" |
20256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20260 /^X\(\/\/\)[^/].*/{
20273 test -d "$as_dir" && break
20275 test -z "$as_dirs" || eval "mkdir $as_dirs"
20276 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20280 if mkdir -p . 2>/dev/null; then
20281 as_mkdir_p='mkdir -p "$as_dir"'
20283 test -d ./-p && rmdir ./-p
20288 # as_fn_executable_p FILE
20289 # -----------------------
20290 # Test if FILE is an executable regular file.
20291 as_fn_executable_p ()
20293 test -f "$1" && test -x "$1"
20294 } # as_fn_executable_p
20295 as_test_x='test -x'
20296 as_executable_p=as_fn_executable_p
20298 # Sed expression to map a string onto a valid CPP name.
20299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20301 # Sed expression to map a string onto a valid variable name.
20302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20306 ## ----------------------------------- ##
20307 ## Main body of $CONFIG_STATUS script. ##
20308 ## ----------------------------------- ##
20310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20313 # Save the log message, to keep $0 and so on meaningful, and to
20314 # report actual input values of CONFIG_FILES etc. instead of their
20315 # values after options handling.
20317 This file was extended by gpgme $as_me 1.4.1, which was
20318 generated by GNU Autoconf 2.69. Invocation command line was
20320 CONFIG_FILES = $CONFIG_FILES
20321 CONFIG_HEADERS = $CONFIG_HEADERS
20322 CONFIG_LINKS = $CONFIG_LINKS
20323 CONFIG_COMMANDS = $CONFIG_COMMANDS
20326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20331 case $ac_config_files in *"
20332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20335 case $ac_config_headers in *"
20336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20341 # Files that config.status was made for.
20342 config_files="$ac_config_files"
20343 config_headers="$ac_config_headers"
20344 config_commands="$ac_config_commands"
20348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20350 \`$as_me' instantiates files and other configuration actions
20351 from templates according to the current configuration. Unless the files
20352 and actions are specified as TAGs, all are instantiated by default.
20354 Usage: $0 [OPTION]... [TAG]...
20356 -h, --help print this help, then exit
20357 -V, --version print version number and configuration settings, then exit
20358 --config print configuration, then exit
20359 -q, --quiet, --silent
20360 do not print progress messages
20361 -d, --debug don't remove temporary files
20362 --recheck update $as_me by reconfiguring in the same conditions
20363 --file=FILE[:TEMPLATE]
20364 instantiate the configuration file FILE
20365 --header=FILE[:TEMPLATE]
20366 instantiate the configuration header FILE
20368 Configuration files:
20371 Configuration headers:
20374 Configuration commands:
20377 Report bugs to <http://bugs.gnupg.org>."
20380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20381 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20383 gpgme config.status 1.4.1
20384 configured by $0, generated by GNU Autoconf 2.69,
20385 with options \\"\$ac_cs_config\\"
20387 Copyright (C) 2012 Free Software Foundation, Inc.
20388 This config.status script is free software; the Free Software Foundation
20389 gives unlimited permission to copy, distribute and modify it."
20396 test -n "\$AWK" || AWK=awk
20399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20400 # The default lists apply if the user does not specify any file.
20406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20423 # Handling of the options.
20424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20427 $as_echo "$ac_cs_version"; exit ;;
20428 --config | --confi | --conf | --con | --co | --c )
20429 $as_echo "$ac_cs_config"; exit ;;
20430 --debug | --debu | --deb | --de | --d | -d )
20432 --file | --fil | --fi | --f )
20435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20436 '') as_fn_error $? "missing file argument" ;;
20438 as_fn_append CONFIG_FILES " '$ac_optarg'"
20439 ac_need_defaults=false;;
20440 --header | --heade | --head | --hea )
20443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20445 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20446 ac_need_defaults=false;;
20448 # Conflict between --help and --header
20449 as_fn_error $? "ambiguous option: \`$1'
20450 Try \`$0 --help' for more information.";;
20451 --help | --hel | -h )
20452 $as_echo "$ac_cs_usage"; exit ;;
20453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20454 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20457 # This is an error.
20458 -*) as_fn_error $? "unrecognized option: \`$1'
20459 Try \`$0 --help' for more information." ;;
20461 *) as_fn_append ac_config_targets " $1"
20462 ac_need_defaults=false ;;
20468 ac_configure_extra_args=
20470 if $ac_cs_silent; then
20472 ac_configure_extra_args="$ac_configure_extra_args --silent"
20476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20477 if \$ac_cs_recheck; then
20478 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20481 CONFIG_SHELL='$SHELL'
20482 export CONFIG_SHELL
20487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20492 ## Running $as_me. ##
20498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20502 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20505 # The HP-UX ksh and POSIX shell print the target directory to stdout
20506 # if CDPATH is set.
20507 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20509 sed_quote_subst='$sed_quote_subst'
20510 double_quote_subst='$double_quote_subst'
20511 delay_variable_subst='$delay_variable_subst'
20512 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20513 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20514 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20515 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20517 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20518 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20519 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20520 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20521 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20522 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20523 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20524 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20525 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20526 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20527 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20528 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20529 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20530 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20531 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20532 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20533 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20534 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20535 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20536 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20537 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20538 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20539 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20540 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20541 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20542 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20543 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20544 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20545 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20546 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20547 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20548 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20549 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20550 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20551 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20552 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20553 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20554 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20555 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20556 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20557 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20558 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20559 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20560 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20561 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20562 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20563 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20564 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20565 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20566 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20567 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20568 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20569 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"`'
20570 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20571 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20572 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20573 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20574 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20575 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20576 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20577 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20578 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20579 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20580 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20581 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20582 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20583 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20584 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20585 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20586 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20587 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20588 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20589 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20590 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20591 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20592 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20593 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20594 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20595 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20596 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20597 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20598 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20599 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20600 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20601 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20602 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20603 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20604 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20605 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20606 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20607 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20608 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20609 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20610 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20611 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20612 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20613 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20614 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20615 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20616 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20617 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20618 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20619 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20620 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20621 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20622 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20623 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20624 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20625 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20626 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20627 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20628 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20629 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20630 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20631 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20632 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20633 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20634 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20635 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20636 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20637 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20638 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20639 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20640 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20641 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20642 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20643 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20644 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20645 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20646 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20647 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20648 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20649 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20650 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
20651 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20652 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
20653 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20654 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
20655 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20656 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20657 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20658 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
20659 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20660 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
20661 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20662 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
20663 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20664 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
20665 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20666 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
20667 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20668 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20669 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20670 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20671 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20672 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20673 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20674 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20675 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20676 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20677 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20678 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20679 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20680 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20681 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20682 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20683 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20684 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20685 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20686 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20687 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20688 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20689 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20690 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20691 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20692 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20693 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20694 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20695 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20696 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20697 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20698 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20699 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20700 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20701 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20702 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20703 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20704 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20705 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20706 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20707 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20708 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20709 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20710 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20711 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20712 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20713 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20714 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20715 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20716 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20717 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20718 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20719 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20720 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20721 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20722 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20723 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20724 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20725 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20726 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20727 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20728 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20729 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20730 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20731 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20732 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20733 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20734 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20735 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20736 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20737 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20738 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20739 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20740 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20741 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20742 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20743 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20744 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20747 LTCFLAGS='$LTCFLAGS'
20748 compiler='$compiler_DEFAULT'
20750 # A function that is used when there is no print builtin or printf.
20751 func_fallback_echo ()
20753 eval 'cat <<_LTECHO_EOF
20758 # Quote evaled strings.
20775 deplibs_check_method \
20779 sharedlib_from_linklib_cmd \
20782 archiver_list_spec \
20788 lt_cv_sys_global_symbol_pipe \
20789 lt_cv_sys_global_symbol_to_cdecl \
20790 lt_cv_sys_global_symbol_to_c_name_address \
20791 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20792 nm_file_list_spec \
20793 lt_prog_compiler_no_builtin_flag \
20794 lt_prog_compiler_pic \
20795 lt_prog_compiler_wl \
20796 lt_prog_compiler_static \
20797 lt_cv_prog_compiler_c_o \
20806 export_dynamic_flag_spec \
20807 whole_archive_flag_spec \
20808 compiler_needs_object \
20810 allow_undefined_flag \
20811 no_undefined_flag \
20812 hardcode_libdir_flag_spec \
20813 hardcode_libdir_separator \
20817 variables_saved_for_relink \
20819 library_names_spec \
20821 install_override_mode \
20825 compiler_lib_search_dirs \
20830 compiler_lib_search_path \
20837 lt_prog_compiler_no_builtin_flag_CXX \
20838 lt_prog_compiler_no_builtin_flag_RC \
20839 lt_prog_compiler_pic_CXX \
20840 lt_prog_compiler_pic_RC \
20841 lt_prog_compiler_wl_CXX \
20842 lt_prog_compiler_wl_RC \
20843 lt_prog_compiler_static_CXX \
20844 lt_prog_compiler_static_RC \
20845 lt_cv_prog_compiler_c_o_CXX \
20846 lt_cv_prog_compiler_c_o_RC \
20847 export_dynamic_flag_spec_CXX \
20848 export_dynamic_flag_spec_RC \
20849 whole_archive_flag_spec_CXX \
20850 whole_archive_flag_spec_RC \
20851 compiler_needs_object_CXX \
20852 compiler_needs_object_RC \
20855 allow_undefined_flag_CXX \
20856 allow_undefined_flag_RC \
20857 no_undefined_flag_CXX \
20858 no_undefined_flag_RC \
20859 hardcode_libdir_flag_spec_CXX \
20860 hardcode_libdir_flag_spec_RC \
20861 hardcode_libdir_separator_CXX \
20862 hardcode_libdir_separator_RC \
20863 exclude_expsyms_CXX \
20864 exclude_expsyms_RC \
20865 include_expsyms_CXX \
20866 include_expsyms_RC \
20867 file_list_spec_CXX \
20868 file_list_spec_RC \
20869 compiler_lib_search_dirs_CXX \
20870 compiler_lib_search_dirs_RC \
20871 predep_objects_CXX \
20872 predep_objects_RC \
20873 postdep_objects_CXX \
20874 postdep_objects_RC \
20879 compiler_lib_search_path_CXX \
20880 compiler_lib_search_path_RC; do
20881 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20882 *[\\\\\\\`\\"\\\$]*)
20883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20891 # Double-quote double-evaled strings.
20892 for var in reload_cmds \
20893 old_postinstall_cmds \
20894 old_postuninstall_cmds \
20896 extract_expsyms_cmds \
20897 old_archive_from_new_cmds \
20898 old_archive_from_expsyms_cmds \
20900 archive_expsym_cmds \
20902 module_expsym_cmds \
20903 export_symbols_cmds \
20907 postuninstall_cmds \
20909 sys_lib_search_path_spec \
20910 sys_lib_dlsearch_path_spec \
20913 old_archive_cmds_CXX \
20914 old_archive_cmds_RC \
20915 old_archive_from_new_cmds_CXX \
20916 old_archive_from_new_cmds_RC \
20917 old_archive_from_expsyms_cmds_CXX \
20918 old_archive_from_expsyms_cmds_RC \
20921 archive_expsym_cmds_CXX \
20922 archive_expsym_cmds_RC \
20925 module_expsym_cmds_CXX \
20926 module_expsym_cmds_RC \
20927 export_symbols_cmds_CXX \
20928 export_symbols_cmds_RC \
20931 postlink_cmds_CXX \
20932 postlink_cmds_RC; do
20933 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20934 *[\\\\\\\`\\"\\\$]*)
20935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20943 ac_aux_dir='$ac_aux_dir'
20944 xsi_shell='$xsi_shell'
20945 lt_shell_append='$lt_shell_append'
20947 # See if we are running on zsh, and set the options which allow our
20948 # commands through without removal of \ escapes INIT.
20949 if test -n "\${ZSH_VERSION+set}" ; then
20950 setopt NO_GLOB_SUBST
20956 TIMESTAMP='$TIMESTAMP'
20969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20971 # Handling of arguments.
20972 for ac_config_target in $ac_config_targets
20974 case $ac_config_target in
20975 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20976 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20977 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20978 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20979 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20980 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20981 "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
20982 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
20983 "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
20984 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20985 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20986 "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
20987 "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
20988 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
20989 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
20990 "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
20992 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20997 # If the user did not use the arguments to specify the items to instantiate,
20998 # then the envvar interface is used. Set only those that are not.
20999 # We use the long form for the default assignment because of an extremely
21000 # bizarre bug on SunOS 4.1.3.
21001 if $ac_need_defaults; then
21002 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21003 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21004 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21007 # Have a temporary directory for convenience. Make it in the build tree
21008 # simply because there is no reason against having it here, and in addition,
21009 # creating and moving files from /tmp can sometimes cause problems.
21010 # Hook for its removal unless debugging.
21011 # Note that there is a small window in which the directory will not be cleaned:
21012 # after its creation but before its name has been assigned to `$tmp'.
21016 trap 'exit_status=$?
21017 : "${ac_tmp:=$tmp}"
21018 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21020 trap 'as_fn_exit 1' 1 2 13 15
21022 # Create a (secure) tmp directory for tmp files.
21025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21029 tmp=./conf$$-$RANDOM
21030 (umask 077 && mkdir "$tmp")
21031 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21034 # Set up the scripts for CONFIG_FILES section.
21035 # No need to generate them if there are no CONFIG_FILES.
21036 # This happens for instance with `./config.status config.h'.
21037 if test -n "$CONFIG_FILES"; then
21040 ac_cr=`echo X | tr X '\015'`
21041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21042 # But we know of no other shell where ac_cr would be empty at this
21043 # point, so we can use a bashism as a fallback.
21044 if test "x$ac_cr" = x; then
21045 eval ac_cr=\$\'\\r\'
21047 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21051 ac_cs_awk_cr=$ac_cr
21054 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21059 echo "cat >conf$$subs.awk <<_ACEOF" &&
21060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21062 } >conf$$subs.sh ||
21063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21066 for ac_last_try in false false false false false :; do
21067 . ./conf$$subs.sh ||
21068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21071 if test $ac_delim_n = $ac_delim_num; then
21073 elif $ac_last_try; then
21074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21079 rm -f conf$$subs.sh
21081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21082 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21086 s/^/S["/; s/!.*/"]=/
21096 s/\(.\{148\}\)..*/\1/
21098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21110 s/\(.\{148\}\)..*/\1/
21112 s/["\\]/\\&/g; s/^/"/; s/$/"/
21116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21121 ' <conf$$subs.awk | sed '
21126 ' >>$CONFIG_STATUS || ac_write_fail=1
21127 rm -f conf$$subs.awk
21128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21130 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21131 for (key in S) S_is_set[key] = 1
21137 nfields = split(line, field, "@")
21139 len = length(field[1])
21140 for (i = 2; i < nfields; i++) {
21142 keylen = length(key)
21143 if (S_is_set[key]) {
21145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21146 len += length(value) + length(field[++i])
21157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21163 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21168 # trailing colons and then remove the whole line if VPATH becomes empty
21169 # (actually we leave an empty line to preserve line numbers).
21170 if test "x$srcdir" = x.; then
21171 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21190 fi # test -n "$CONFIG_FILES"
21192 # Set up the scripts for CONFIG_HEADERS section.
21193 # No need to generate them if there are no CONFIG_HEADERS.
21194 # This happens for instance with `./config.status Makefile'.
21195 if test -n "$CONFIG_HEADERS"; then
21196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21200 # Transform confdefs.h into an awk script `defines.awk', embedded as
21201 # here-document in config.status, that substitutes the proper values into
21202 # config.h.in to produce config.h.
21204 # Create a delimiter string that does not exist in confdefs.h, to ease
21205 # handling of long lines.
21207 for ac_last_try in false false :; do
21208 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21209 if test -z "$ac_tt"; then
21211 elif $ac_last_try; then
21212 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21218 # For the awk script, D is an array of macro values keyed by name,
21219 # likewise P contains macro parameters if any. Preserve backslash
21220 # newline sequences.
21222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21224 s/.\{148\}/&'"$ac_delim"'/g
21227 s/^[ ]*#[ ]*define[ ][ ]*/ /
21234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21241 D["\1"]=" \3\\\\\\n"\\/p
21243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21248 s/.\{148\}/&'"$ac_delim"'/g
21253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21258 ' <confdefs.h | sed '
21259 s/'"$ac_delim"'/"\\\
21260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21263 for (key in D) D_is_set[key] = 1
21266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21268 split(line, arg, " ")
21269 if (arg[1] == "#") {
21273 defundef = substr(arg[1], 2)
21276 split(mac1, mac2, "(") #)
21278 prefix = substr(line, 1, index(line, defundef) - 1)
21279 if (D_is_set[macro]) {
21280 # Preserve the white space surrounding the "#".
21281 print prefix "define", macro P[macro] D[macro]
21284 # Replace #undef with comments. This is necessary, for example,
21285 # in the case of _POSIX_SOURCE, which is predefined and required
21286 # on some systems where configure will not decide to define it.
21287 if (defundef == "undef") {
21288 print "/*", prefix defundef, macro, "*/"
21296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21297 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21298 fi # test -n "$CONFIG_HEADERS"
21301 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21306 :[FHLC]) ac_mode=$ac_tag; continue;;
21308 case $ac_mode$ac_tag in
21310 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21311 :[FH]-) ac_tag=-:-;;
21312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21329 -) ac_f="$ac_tmp/stdin";;
21330 *) # Look for the file first in the build tree, then in the source tree
21331 # (if the path is not absolute). The absolute path cannot be DOS-style,
21332 # because $ac_f cannot contain `:'.
21336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21338 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21340 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21341 as_fn_append ac_file_inputs " '$ac_f'"
21344 # Let's still pretend it is `configure' which instantiates (i.e., don't
21345 # use $as_me), people would be surprised to read:
21346 # /* config.h. Generated by config.status. */
21347 configure_input='Generated from '`
21348 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21350 if test x"$ac_file" != x-; then
21351 configure_input="$ac_file. $configure_input"
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21353 $as_echo "$as_me: creating $ac_file" >&6;}
21355 # Neutralize special characters interpreted by sed in replacement strings.
21356 case $configure_input in #(
21357 *\&* | *\|* | *\\* )
21358 ac_sed_conf_input=`$as_echo "$configure_input" |
21359 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21360 *) ac_sed_conf_input=$configure_input;;
21364 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21370 ac_dir=`$as_dirname -- "$ac_file" ||
21371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21372 X"$ac_file" : 'X\(//\)[^/]' \| \
21373 X"$ac_file" : 'X\(//\)$' \| \
21374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21375 $as_echo X"$ac_file" |
21376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21380 /^X\(\/\/\)[^/].*/{
21393 as_dir="$ac_dir"; as_fn_mkdir_p
21397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21400 # A ".." for each directory in $ac_dir_suffix.
21401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21402 case $ac_top_builddir_sub in
21403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21407 ac_abs_top_builddir=$ac_pwd
21408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21409 # for backward compatibility:
21410 ac_top_builddir=$ac_top_build_prefix
21413 .) # We are building in place.
21415 ac_top_srcdir=$ac_top_builddir_sub
21416 ac_abs_top_srcdir=$ac_pwd ;;
21417 [\\/]* | ?:[\\/]* ) # Absolute name.
21418 ac_srcdir=$srcdir$ac_dir_suffix;
21419 ac_top_srcdir=$srcdir
21420 ac_abs_top_srcdir=$srcdir ;;
21421 *) # Relative name.
21422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21423 ac_top_srcdir=$ac_top_build_prefix$srcdir
21424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21436 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21437 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21439 ac_MKDIR_P=$MKDIR_P
21441 [\\/$]* | ?:[\\/]* ) ;;
21442 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21447 # If the template does not know about datarootdir, expand it.
21448 # FIXME: This hack should be removed a few years after 2.60.
21449 ac_datarootdir_hack=; ac_datarootdir_seen=
21460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21461 *datarootdir*) ac_datarootdir_seen=yes;;
21462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21464 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21467 ac_datarootdir_hack='
21468 s&@datadir@&$datadir&g
21469 s&@docdir@&$docdir&g
21470 s&@infodir@&$infodir&g
21471 s&@localedir@&$localedir&g
21472 s&@mandir@&$mandir&g
21473 s&\\\${datarootdir}&$datarootdir&g' ;;
21477 # Neutralize VPATH when `$srcdir' = `.'.
21478 # Shell code in configure.ac might set extrasub.
21479 # FIXME: do we really want to maintain this feature?
21480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21481 ac_sed_extra="$ac_vpsub
21484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21487 s|@configure_input@|$ac_sed_conf_input|;t t
21488 s&@top_builddir@&$ac_top_builddir_sub&;t t
21489 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21490 s&@srcdir@&$ac_srcdir&;t t
21491 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21492 s&@top_srcdir@&$ac_top_srcdir&;t t
21493 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21494 s&@builddir@&$ac_builddir&;t t
21495 s&@abs_builddir@&$ac_abs_builddir&;t t
21496 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21497 s&@INSTALL@&$ac_INSTALL&;t t
21498 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21499 $ac_datarootdir_hack
21501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21502 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21505 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21506 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21507 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21509 which seems to be undefined. Please make sure it is defined" >&5
21510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21511 which seems to be undefined. Please make sure it is defined" >&2;}
21513 rm -f "$ac_tmp/stdin"
21515 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21516 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21524 if test x"$ac_file" != x-; then
21526 $as_echo "/* $configure_input */" \
21527 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21528 } >"$ac_tmp/config.h" \
21529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21530 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21535 mv "$ac_tmp/config.h" "$ac_file" \
21536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21539 $as_echo "/* $configure_input */" \
21540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21541 || as_fn_error $? "could not create -" "$LINENO" 5
21543 # Compute "$ac_file"'s index in $config_headers.
21546 for _am_header in $config_headers :; do
21547 case $_am_header in
21548 $_am_arg | $_am_arg:* )
21551 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21554 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21555 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21556 X"$_am_arg" : 'X\(//\)[^/]' \| \
21557 X"$_am_arg" : 'X\(//\)$' \| \
21558 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21559 $as_echo X"$_am_arg" |
21560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21564 /^X\(\/\/\)[^/].*/{
21576 s/.*/./; q'`/stamp-h$_am_stamp_count
21579 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21580 $as_echo "$as_me: executing $ac_file commands" >&6;}
21585 case $ac_file$ac_mode in
21586 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21587 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21588 # are listed without --file. Let's play safe and only enable the eval
21589 # if we detect the quoting.
21590 case $CONFIG_FILES in
21591 *\'*) eval set x "$CONFIG_FILES" ;;
21592 *) set x $CONFIG_FILES ;;
21597 # Strip MF so we end up with the name of the file.
21598 mf=`echo "$mf" | sed -e 's/:.*$//'`
21599 # Check whether this is an Automake generated Makefile or not.
21600 # We used to match only the files named `Makefile.in', but
21601 # some people rename them; so instead we look at the file content.
21602 # Grep'ing the first line is not enough: some people post-process
21603 # each Makefile.in and add a new line on top of each file to say so.
21604 # Grep'ing the whole file is not good either: AIX grep has a line
21605 # limit of 2048, but all sed's we know have understand at least 4000.
21606 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21607 dirpart=`$as_dirname -- "$mf" ||
21608 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21609 X"$mf" : 'X\(//\)[^/]' \| \
21610 X"$mf" : 'X\(//\)$' \| \
21611 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21617 /^X\(\/\/\)[^/].*/{
21633 # Extract the definition of DEPDIR, am__include, and am__quote
21634 # from the Makefile without running `make'.
21635 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21636 test -z "$DEPDIR" && continue
21637 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21638 test -z "am__include" && continue
21639 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21640 # When using ansi2knr, U may be empty or an underscore; expand it
21641 U=`sed -n 's/^U = //p' < "$mf"`
21642 # Find all dependency output files, they are included files with
21643 # $(DEPDIR) in their names. We invoke sed twice because it is the
21644 # simplest approach to changing $(DEPDIR) to its actual value in the
21646 for file in `sed -n "
21647 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21648 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21649 # Make sure the directory exists.
21650 test -f "$dirpart/$file" && continue
21651 fdir=`$as_dirname -- "$file" ||
21652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21653 X"$file" : 'X\(//\)[^/]' \| \
21654 X"$file" : 'X\(//\)$' \| \
21655 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21656 $as_echo X"$file" |
21657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21661 /^X\(\/\/\)[^/].*/{
21674 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21675 # echo "creating $dirpart/$file"
21676 echo '# dummy' > "$dirpart/$file"
21683 # See if we are running on zsh, and set the options which allow our
21684 # commands through without removal of \ escapes.
21685 if test -n "${ZSH_VERSION+set}" ; then
21686 setopt NO_GLOB_SUBST
21689 cfgfile="${ofile}T"
21690 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21693 cat <<_LT_EOF >> "$cfgfile"
21696 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21697 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21698 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21699 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21701 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21702 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21704 # Written by Gordon Matzigkeit, 1996
21706 # This file is part of GNU Libtool.
21708 # GNU Libtool is free software; you can redistribute it and/or
21709 # modify it under the terms of the GNU General Public License as
21710 # published by the Free Software Foundation; either version 2 of
21711 # the License, or (at your option) any later version.
21713 # As a special exception to the GNU General Public License,
21714 # if you distribute this file as part of a program or library that
21715 # is built using GNU Libtool, you may include this file under the
21716 # same distribution terms that you use for the rest of that program.
21718 # GNU Libtool is distributed in the hope that it will be useful,
21719 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21720 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21721 # GNU General Public License for more details.
21723 # You should have received a copy of the GNU General Public License
21724 # along with GNU Libtool; see the file COPYING. If not, a copy
21725 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21726 # obtained by writing to the Free Software Foundation, Inc.,
21727 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21730 # The names of the tagged configurations supported by this script.
21731 available_tags="CXX RC "
21733 # ### BEGIN LIBTOOL CONFIG
21735 # Which release of libtool.m4 was used?
21736 macro_version=$macro_version
21737 macro_revision=$macro_revision
21739 # Assembler program.
21742 # DLL creation program.
21743 DLLTOOL=$lt_DLLTOOL
21745 # Object dumper program.
21746 OBJDUMP=$lt_OBJDUMP
21748 # Whether or not to build static libraries.
21749 build_old_libs=$enable_static
21751 # Whether or not to build shared libraries.
21752 build_libtool_libs=$enable_shared
21754 # What type of objects to build.
21757 # Whether or not to optimize for fast installation.
21758 fast_install=$enable_fast_install
21760 # Shell to use when invoking shell scripts.
21763 # An echo program that protects backslashes.
21766 # The PATH separator for the build system.
21767 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21770 host_alias=$host_alias
21774 # The build system.
21775 build_alias=$build_alias
21779 # A sed program that does not truncate output.
21782 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21783 Xsed="\$SED -e 1s/^X//"
21785 # A grep program that handles long lines.
21791 # A literal string matcher.
21794 # A BSD- or MS-compatible name lister.
21797 # Whether we need soft or hard links.
21800 # What is the maximum length of a command?
21801 max_cmd_len=$max_cmd_len
21803 # Object file suffix (normally "o").
21806 # Executable file suffix (normally "").
21809 # whether the shell understands "unset".
21812 # turn spaces into newlines.
21815 # turn newlines into spaces.
21818 # convert \$build file names to \$host format.
21819 to_host_file_cmd=$lt_cv_to_host_file_cmd
21821 # convert \$build files to toolchain format.
21822 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21824 # Method to check whether dependent libraries are shared objects.
21825 deplibs_check_method=$lt_deplibs_check_method
21827 # Command to use when deplibs_check_method = "file_magic".
21828 file_magic_cmd=$lt_file_magic_cmd
21830 # How to find potential files when deplibs_check_method = "file_magic".
21831 file_magic_glob=$lt_file_magic_glob
21833 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21834 want_nocaseglob=$lt_want_nocaseglob
21836 # Command to associate shared and link libraries.
21837 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21842 # Flags to create an archive.
21843 AR_FLAGS=$lt_AR_FLAGS
21845 # How to feed a file listing to the archiver.
21846 archiver_list_spec=$lt_archiver_list_spec
21848 # A symbol stripping program.
21851 # Commands used to install an old-style archive.
21853 old_postinstall_cmds=$lt_old_postinstall_cmds
21854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21856 # Whether to use a lock for old archive extraction.
21857 lock_old_archive_extraction=$lock_old_archive_extraction
21862 # LTCC compiler flags.
21863 LTCFLAGS=$lt_CFLAGS
21865 # Take the output of nm and produce a listing of raw symbols and C names.
21866 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21868 # Transform the output of nm in a proper C declaration.
21869 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21871 # Transform the output of nm in a C name address pair.
21872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21874 # Transform the output of nm in a C name address pair when lib prefix is needed.
21875 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21877 # Specify filename containing input files for \$NM.
21878 nm_file_list_spec=$lt_nm_file_list_spec
21880 # The root where to search for dependent libraries,and in which our libraries should be installed.
21881 lt_sysroot=$lt_sysroot
21883 # The name of the directory that contains temporary libtool files.
21886 # Used to examine libraries when file_magic_cmd begins with "file".
21887 MAGIC_CMD=$MAGIC_CMD
21889 # Must we lock files when doing compilation?
21890 need_locks=$lt_need_locks
21893 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21895 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21896 DSYMUTIL=$lt_DSYMUTIL
21898 # Tool to change global to local symbols on Mac OS X.
21901 # Tool to manipulate fat objects and archives on Mac OS X.
21904 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21907 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21908 OTOOL64=$lt_OTOOL64
21910 # Old archive suffix (normally "a").
21913 # Shared library suffix (normally ".so").
21914 shrext_cmds=$lt_shrext_cmds
21916 # The commands to extract the exported symbol list from a shared archive.
21917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21919 # Variables whose values should be saved in libtool wrapper scripts and
21920 # restored at link time.
21921 variables_saved_for_relink=$lt_variables_saved_for_relink
21923 # Do we need the "lib" prefix for modules?
21924 need_lib_prefix=$need_lib_prefix
21926 # Do we need a version for libraries?
21927 need_version=$need_version
21929 # Library versioning type.
21930 version_type=$version_type
21932 # Shared library runtime path variable.
21933 runpath_var=$runpath_var
21935 # Shared library path variable.
21936 shlibpath_var=$shlibpath_var
21938 # Is shlibpath searched before the hard-coded library search path?
21939 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21941 # Format of library name prefix.
21942 libname_spec=$lt_libname_spec
21944 # List of archive names. First name is the real one, the rest are links.
21945 # The last name is the one that the linker finds with -lNAME
21946 library_names_spec=$lt_library_names_spec
21948 # The coded name of the library, if different from the real name.
21949 soname_spec=$lt_soname_spec
21951 # Permission mode override for installation of shared libraries.
21952 install_override_mode=$lt_install_override_mode
21954 # Command to use after installation of a shared archive.
21955 postinstall_cmds=$lt_postinstall_cmds
21957 # Command to use after uninstallation of a shared archive.
21958 postuninstall_cmds=$lt_postuninstall_cmds
21960 # Commands used to finish a libtool library installation in a directory.
21961 finish_cmds=$lt_finish_cmds
21963 # As "finish_cmds", except a single script fragment to be evaled but
21965 finish_eval=$lt_finish_eval
21967 # Whether we should hardcode library paths into libraries.
21968 hardcode_into_libs=$hardcode_into_libs
21970 # Compile-time system search path for libraries.
21971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21973 # Run-time system search path for libraries.
21974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21976 # Whether dlopen is supported.
21977 dlopen_support=$enable_dlopen
21979 # Whether dlopen of programs is supported.
21980 dlopen_self=$enable_dlopen_self
21982 # Whether dlopen of statically linked programs is supported.
21983 dlopen_self_static=$enable_dlopen_self_static
21985 # Commands to strip libraries.
21986 old_striplib=$lt_old_striplib
21987 striplib=$lt_striplib
21990 # The linker used to build libraries.
21993 # How to create reloadable object files.
21994 reload_flag=$lt_reload_flag
21995 reload_cmds=$lt_reload_cmds
21997 # Commands used to build an old-style archive.
21998 old_archive_cmds=$lt_old_archive_cmds
22000 # A language specific compiler.
22003 # Is the compiler the GNU compiler?
22006 # Compiler flag to turn off builtin functions.
22007 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22009 # Additional compiler flags for building library objects.
22010 pic_flag=$lt_lt_prog_compiler_pic
22012 # How to pass a linker flag through the compiler.
22013 wl=$lt_lt_prog_compiler_wl
22015 # Compiler flag to prevent dynamic linking.
22016 link_static_flag=$lt_lt_prog_compiler_static
22018 # Does compiler simultaneously support -c and -o options?
22019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22021 # Whether or not to add -lc for building shared libraries.
22022 build_libtool_need_lc=$archive_cmds_need_lc
22024 # Whether or not to disallow shared libs when runtime libs are static.
22025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22027 # Compiler flag to allow reflexive dlopens.
22028 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22030 # Compiler flag to generate shared objects directly from archives.
22031 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22033 # Whether the compiler copes with passing no objects directly.
22034 compiler_needs_object=$lt_compiler_needs_object
22036 # Create an old-style archive from a shared archive.
22037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22039 # Create a temporary old-style archive to link instead of a shared archive.
22040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22042 # Commands used to build a shared archive.
22043 archive_cmds=$lt_archive_cmds
22044 archive_expsym_cmds=$lt_archive_expsym_cmds
22046 # Commands used to build a loadable module if different from building
22047 # a shared archive.
22048 module_cmds=$lt_module_cmds
22049 module_expsym_cmds=$lt_module_expsym_cmds
22051 # Whether we are building with GNU ld or not.
22052 with_gnu_ld=$lt_with_gnu_ld
22054 # Flag that allows shared libraries with undefined symbols to be built.
22055 allow_undefined_flag=$lt_allow_undefined_flag
22057 # Flag that enforces no undefined symbols.
22058 no_undefined_flag=$lt_no_undefined_flag
22060 # Flag to hardcode \$libdir into a binary during linking.
22061 # This must work even if \$libdir does not exist
22062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22064 # Whether we need a single "-rpath" flag with a separated argument.
22065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22068 # DIR into the resulting binary.
22069 hardcode_direct=$hardcode_direct
22071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22072 # DIR into the resulting binary and the resulting library dependency is
22073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22074 # library is relocated.
22075 hardcode_direct_absolute=$hardcode_direct_absolute
22077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22078 # into the resulting binary.
22079 hardcode_minus_L=$hardcode_minus_L
22081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22082 # into the resulting binary.
22083 hardcode_shlibpath_var=$hardcode_shlibpath_var
22085 # Set to "yes" if building a shared library automatically hardcodes DIR
22086 # into the library and all subsequent libraries and executables linked
22088 hardcode_automatic=$hardcode_automatic
22090 # Set to yes if linker adds runtime paths of dependent libraries
22091 # to runtime path list.
22092 inherit_rpath=$inherit_rpath
22094 # Whether libtool must link a program against all its dependency libraries.
22095 link_all_deplibs=$link_all_deplibs
22097 # Set to "yes" if exported symbols are required.
22098 always_export_symbols=$always_export_symbols
22100 # The commands to list exported symbols.
22101 export_symbols_cmds=$lt_export_symbols_cmds
22103 # Symbols that should not be listed in the preloaded symbols.
22104 exclude_expsyms=$lt_exclude_expsyms
22106 # Symbols that must always be exported.
22107 include_expsyms=$lt_include_expsyms
22109 # Commands necessary for linking programs (against libraries) with templates.
22110 prelink_cmds=$lt_prelink_cmds
22112 # Commands necessary for finishing linking programs.
22113 postlink_cmds=$lt_postlink_cmds
22115 # Specify filename containing input files.
22116 file_list_spec=$lt_file_list_spec
22118 # How to hardcode a shared library path into an executable.
22119 hardcode_action=$hardcode_action
22121 # The directories searched by this compiler when creating a shared library.
22122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22124 # Dependencies to place before and after the objects being linked to
22125 # create a shared library.
22126 predep_objects=$lt_predep_objects
22127 postdep_objects=$lt_postdep_objects
22128 predeps=$lt_predeps
22129 postdeps=$lt_postdeps
22131 # The library search path used internally by the compiler when linking
22132 # a shared library.
22133 compiler_lib_search_path=$lt_compiler_lib_search_path
22135 # ### END LIBTOOL CONFIG
22141 cat <<\_LT_EOF >> "$cfgfile"
22142 # AIX sometimes has problems with the GCC collect2 program. For some
22143 # reason, if we set the COLLECT_NAMES environment variable, the problems
22144 # vanish in a puff of smoke.
22145 if test "X${COLLECT_NAMES+set}" != Xset; then
22147 export COLLECT_NAMES
22154 ltmain="$ac_aux_dir/ltmain.sh"
22157 # We use sed instead of cat because bash on DJGPP gets confused if
22158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22159 # text mode, it properly converts lines to CR/LF. This bash problem
22160 # is reportedly fixed, but why not run on old versions too?
22161 sed '$q' "$ltmain" >> "$cfgfile" \
22162 || (rm -f "$cfgfile"; exit 1)
22164 if test x"$xsi_shell" = xyes; then
22165 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22169 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22170 \ * ) func_dirname_result="${3}" ;;\
22172 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22173 && mv -f "$cfgfile.tmp" "$cfgfile" \
22174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22175 test 0 -eq $? || _lt_function_replace_fail=:
22178 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22181 \ func_basename_result="${1##*/}"\
22182 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22183 && mv -f "$cfgfile.tmp" "$cfgfile" \
22184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22185 test 0 -eq $? || _lt_function_replace_fail=:
22188 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22189 func_dirname_and_basename ()\
22192 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22193 \ * ) func_dirname_result="${3}" ;;\
22195 \ func_basename_result="${1##*/}"\
22196 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22197 && mv -f "$cfgfile.tmp" "$cfgfile" \
22198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22199 test 0 -eq $? || _lt_function_replace_fail=:
22202 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22205 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22206 \ # positional parameters, so assign one to ordinary parameter first.\
22207 \ func_stripname_result=${3}\
22208 \ func_stripname_result=${func_stripname_result#"${1}"}\
22209 \ func_stripname_result=${func_stripname_result%"${2}"}\
22210 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22211 && mv -f "$cfgfile.tmp" "$cfgfile" \
22212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22213 test 0 -eq $? || _lt_function_replace_fail=:
22216 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22217 func_split_long_opt ()\
22219 \ func_split_long_opt_name=${1%%=*}\
22220 \ func_split_long_opt_arg=${1#*=}\
22221 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22222 && mv -f "$cfgfile.tmp" "$cfgfile" \
22223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22224 test 0 -eq $? || _lt_function_replace_fail=:
22227 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22228 func_split_short_opt ()\
22230 \ func_split_short_opt_arg=${1#??}\
22231 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22232 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22233 && mv -f "$cfgfile.tmp" "$cfgfile" \
22234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22235 test 0 -eq $? || _lt_function_replace_fail=:
22238 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22242 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22243 \ *) func_lo2o_result=${1} ;;\
22245 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22246 && mv -f "$cfgfile.tmp" "$cfgfile" \
22247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22248 test 0 -eq $? || _lt_function_replace_fail=:
22251 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22254 func_xform_result=${1%.*}.lo\
22255 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22256 && mv -f "$cfgfile.tmp" "$cfgfile" \
22257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22258 test 0 -eq $? || _lt_function_replace_fail=:
22261 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22264 func_arith_result=$(( $* ))\
22265 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22266 && mv -f "$cfgfile.tmp" "$cfgfile" \
22267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22268 test 0 -eq $? || _lt_function_replace_fail=:
22271 sed -e '/^func_len ()$/,/^} # func_len /c\
22274 func_len_result=${#1}\
22275 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22276 && mv -f "$cfgfile.tmp" "$cfgfile" \
22277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22278 test 0 -eq $? || _lt_function_replace_fail=:
22282 if test x"$lt_shell_append" = xyes; then
22283 sed -e '/^func_append ()$/,/^} # func_append /c\
22286 eval "${1}+=\\${2}"\
22287 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22288 && mv -f "$cfgfile.tmp" "$cfgfile" \
22289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22290 test 0 -eq $? || _lt_function_replace_fail=:
22293 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22294 func_append_quoted ()\
22296 \ func_quote_for_eval "${2}"\
22297 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22298 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22299 && mv -f "$cfgfile.tmp" "$cfgfile" \
22300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22301 test 0 -eq $? || _lt_function_replace_fail=:
22304 # Save a `func_append' function call where possible by direct use of '+='
22305 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22306 && mv -f "$cfgfile.tmp" "$cfgfile" \
22307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22308 test 0 -eq $? || _lt_function_replace_fail=:
22310 # Save a `func_append' function call even when '+=' is not available
22311 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22312 && mv -f "$cfgfile.tmp" "$cfgfile" \
22313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22314 test 0 -eq $? || _lt_function_replace_fail=:
22317 if test x"$_lt_function_replace_fail" = x":"; then
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22319 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22323 mv -f "$cfgfile" "$ofile" ||
22324 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22328 cat <<_LT_EOF >> "$ofile"
22330 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22332 # The linker used to build libraries.
22335 # How to create reloadable object files.
22336 reload_flag=$lt_reload_flag_CXX
22337 reload_cmds=$lt_reload_cmds_CXX
22339 # Commands used to build an old-style archive.
22340 old_archive_cmds=$lt_old_archive_cmds_CXX
22342 # A language specific compiler.
22343 CC=$lt_compiler_CXX
22345 # Is the compiler the GNU compiler?
22348 # Compiler flag to turn off builtin functions.
22349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22351 # Additional compiler flags for building library objects.
22352 pic_flag=$lt_lt_prog_compiler_pic_CXX
22354 # How to pass a linker flag through the compiler.
22355 wl=$lt_lt_prog_compiler_wl_CXX
22357 # Compiler flag to prevent dynamic linking.
22358 link_static_flag=$lt_lt_prog_compiler_static_CXX
22360 # Does compiler simultaneously support -c and -o options?
22361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22363 # Whether or not to add -lc for building shared libraries.
22364 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22366 # Whether or not to disallow shared libs when runtime libs are static.
22367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22369 # Compiler flag to allow reflexive dlopens.
22370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22372 # Compiler flag to generate shared objects directly from archives.
22373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22375 # Whether the compiler copes with passing no objects directly.
22376 compiler_needs_object=$lt_compiler_needs_object_CXX
22378 # Create an old-style archive from a shared archive.
22379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22381 # Create a temporary old-style archive to link instead of a shared archive.
22382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22384 # Commands used to build a shared archive.
22385 archive_cmds=$lt_archive_cmds_CXX
22386 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22388 # Commands used to build a loadable module if different from building
22389 # a shared archive.
22390 module_cmds=$lt_module_cmds_CXX
22391 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22393 # Whether we are building with GNU ld or not.
22394 with_gnu_ld=$lt_with_gnu_ld_CXX
22396 # Flag that allows shared libraries with undefined symbols to be built.
22397 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22399 # Flag that enforces no undefined symbols.
22400 no_undefined_flag=$lt_no_undefined_flag_CXX
22402 # Flag to hardcode \$libdir into a binary during linking.
22403 # This must work even if \$libdir does not exist
22404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22406 # Whether we need a single "-rpath" flag with a separated argument.
22407 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22409 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22410 # DIR into the resulting binary.
22411 hardcode_direct=$hardcode_direct_CXX
22413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22414 # DIR into the resulting binary and the resulting library dependency is
22415 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22416 # library is relocated.
22417 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22419 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22420 # into the resulting binary.
22421 hardcode_minus_L=$hardcode_minus_L_CXX
22423 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22424 # into the resulting binary.
22425 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22427 # Set to "yes" if building a shared library automatically hardcodes DIR
22428 # into the library and all subsequent libraries and executables linked
22430 hardcode_automatic=$hardcode_automatic_CXX
22432 # Set to yes if linker adds runtime paths of dependent libraries
22433 # to runtime path list.
22434 inherit_rpath=$inherit_rpath_CXX
22436 # Whether libtool must link a program against all its dependency libraries.
22437 link_all_deplibs=$link_all_deplibs_CXX
22439 # Set to "yes" if exported symbols are required.
22440 always_export_symbols=$always_export_symbols_CXX
22442 # The commands to list exported symbols.
22443 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22445 # Symbols that should not be listed in the preloaded symbols.
22446 exclude_expsyms=$lt_exclude_expsyms_CXX
22448 # Symbols that must always be exported.
22449 include_expsyms=$lt_include_expsyms_CXX
22451 # Commands necessary for linking programs (against libraries) with templates.
22452 prelink_cmds=$lt_prelink_cmds_CXX
22454 # Commands necessary for finishing linking programs.
22455 postlink_cmds=$lt_postlink_cmds_CXX
22457 # Specify filename containing input files.
22458 file_list_spec=$lt_file_list_spec_CXX
22460 # How to hardcode a shared library path into an executable.
22461 hardcode_action=$hardcode_action_CXX
22463 # The directories searched by this compiler when creating a shared library.
22464 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22466 # Dependencies to place before and after the objects being linked to
22467 # create a shared library.
22468 predep_objects=$lt_predep_objects_CXX
22469 postdep_objects=$lt_postdep_objects_CXX
22470 predeps=$lt_predeps_CXX
22471 postdeps=$lt_postdeps_CXX
22473 # The library search path used internally by the compiler when linking
22474 # a shared library.
22475 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22477 # ### END LIBTOOL TAG CONFIG: CXX
22481 cat <<_LT_EOF >> "$ofile"
22483 # ### BEGIN LIBTOOL TAG CONFIG: RC
22485 # The linker used to build libraries.
22488 # How to create reloadable object files.
22489 reload_flag=$lt_reload_flag_RC
22490 reload_cmds=$lt_reload_cmds_RC
22492 # Commands used to build an old-style archive.
22493 old_archive_cmds=$lt_old_archive_cmds_RC
22495 # A language specific compiler.
22498 # Is the compiler the GNU compiler?
22501 # Compiler flag to turn off builtin functions.
22502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22504 # Additional compiler flags for building library objects.
22505 pic_flag=$lt_lt_prog_compiler_pic_RC
22507 # How to pass a linker flag through the compiler.
22508 wl=$lt_lt_prog_compiler_wl_RC
22510 # Compiler flag to prevent dynamic linking.
22511 link_static_flag=$lt_lt_prog_compiler_static_RC
22513 # Does compiler simultaneously support -c and -o options?
22514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22516 # Whether or not to add -lc for building shared libraries.
22517 build_libtool_need_lc=$archive_cmds_need_lc_RC
22519 # Whether or not to disallow shared libs when runtime libs are static.
22520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22522 # Compiler flag to allow reflexive dlopens.
22523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22525 # Compiler flag to generate shared objects directly from archives.
22526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22528 # Whether the compiler copes with passing no objects directly.
22529 compiler_needs_object=$lt_compiler_needs_object_RC
22531 # Create an old-style archive from a shared archive.
22532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22534 # Create a temporary old-style archive to link instead of a shared archive.
22535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22537 # Commands used to build a shared archive.
22538 archive_cmds=$lt_archive_cmds_RC
22539 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22541 # Commands used to build a loadable module if different from building
22542 # a shared archive.
22543 module_cmds=$lt_module_cmds_RC
22544 module_expsym_cmds=$lt_module_expsym_cmds_RC
22546 # Whether we are building with GNU ld or not.
22547 with_gnu_ld=$lt_with_gnu_ld_RC
22549 # Flag that allows shared libraries with undefined symbols to be built.
22550 allow_undefined_flag=$lt_allow_undefined_flag_RC
22552 # Flag that enforces no undefined symbols.
22553 no_undefined_flag=$lt_no_undefined_flag_RC
22555 # Flag to hardcode \$libdir into a binary during linking.
22556 # This must work even if \$libdir does not exist
22557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22559 # Whether we need a single "-rpath" flag with a separated argument.
22560 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22563 # DIR into the resulting binary.
22564 hardcode_direct=$hardcode_direct_RC
22566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22567 # DIR into the resulting binary and the resulting library dependency is
22568 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22569 # library is relocated.
22570 hardcode_direct_absolute=$hardcode_direct_absolute_RC
22572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22573 # into the resulting binary.
22574 hardcode_minus_L=$hardcode_minus_L_RC
22576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22577 # into the resulting binary.
22578 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22580 # Set to "yes" if building a shared library automatically hardcodes DIR
22581 # into the library and all subsequent libraries and executables linked
22583 hardcode_automatic=$hardcode_automatic_RC
22585 # Set to yes if linker adds runtime paths of dependent libraries
22586 # to runtime path list.
22587 inherit_rpath=$inherit_rpath_RC
22589 # Whether libtool must link a program against all its dependency libraries.
22590 link_all_deplibs=$link_all_deplibs_RC
22592 # Set to "yes" if exported symbols are required.
22593 always_export_symbols=$always_export_symbols_RC
22595 # The commands to list exported symbols.
22596 export_symbols_cmds=$lt_export_symbols_cmds_RC
22598 # Symbols that should not be listed in the preloaded symbols.
22599 exclude_expsyms=$lt_exclude_expsyms_RC
22601 # Symbols that must always be exported.
22602 include_expsyms=$lt_include_expsyms_RC
22604 # Commands necessary for linking programs (against libraries) with templates.
22605 prelink_cmds=$lt_prelink_cmds_RC
22607 # Commands necessary for finishing linking programs.
22608 postlink_cmds=$lt_postlink_cmds_RC
22610 # Specify filename containing input files.
22611 file_list_spec=$lt_file_list_spec_RC
22613 # How to hardcode a shared library path into an executable.
22614 hardcode_action=$hardcode_action_RC
22616 # The directories searched by this compiler when creating a shared library.
22617 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22619 # Dependencies to place before and after the objects being linked to
22620 # create a shared library.
22621 predep_objects=$lt_predep_objects_RC
22622 postdep_objects=$lt_postdep_objects_RC
22623 predeps=$lt_predeps_RC
22624 postdeps=$lt_postdeps_RC
22626 # The library search path used internally by the compiler when linking
22627 # a shared library.
22628 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22630 # ### END LIBTOOL TAG CONFIG: RC
22634 "src/gpgme-config":F) chmod +x src/gpgme-config ;;
22642 ac_clean_files=$ac_clean_files_save
22644 test $ac_write_fail = 0 ||
22645 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22648 # configure is writing to config.log, and then calls config.status.
22649 # config.status does its own redirection, appending to config.log.
22650 # Unfortunately, on DOS this fails, as config.log is still kept open
22651 # by configure, so config.status won't be able to write to it; its
22652 # output is simply discarded. So we exec the FD to /dev/null,
22653 # effectively closing config.log, so it can be properly (re)opened and
22654 # appended to by config.status. When coming back to configure, we
22655 # need to make the FD available again.
22656 if test "$no_create" != yes; then
22658 ac_config_status_args=
22659 test "$silent" = yes &&
22660 ac_config_status_args="$ac_config_status_args --quiet"
22662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22665 # would make configure fail if this is the last instruction.
22666 $ac_cs_success || as_fn_exit 1
22668 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22670 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22675 GPGME v${VERSION} has been configured as follows:
22677 Revision: 5075c0d (20597)
22681 GnuPG version: $GPG_VERSION, min. $NEED_GPG_VERSION
22683 GpgSM version: $GPGSM_VERSION, min. $NEED_GPGSM_VERSION
22684 GpgConf path: $GPGCONF
22685 GpgConf version: $GPGCONF_VERSION, min. $NEED_GPGCONF_VERSION
22687 G13 version: $G13_VERSION, min. $NEED_G13_VERSION
22689 Assuan version: $libassuan_config_version, min. $NEED_LIBASSUAN_VERSION
22691 UI Server: $uiserver
22692 FD Passing: $use_descriptor_passing
22693 GPGME Pthread: $have_pthread