2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.15.0.
5 # Report bugs to <https://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: https://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.15.0'
594 PACKAGE_STRING='gpgme 1.15.0'
595 PACKAGE_BUGREPORT='https://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
642 GPGME_CONFIG_AVAIL_LANG
646 GPGME_CONFIG_API_VERSION
649 USE_DESCRIPTOR_PASSING_FALSE
650 USE_DESCRIPTOR_PASSING_TRUE
664 INSERT__TYPEDEFS_FOR_GPGME_H
665 NEED__FILE_OFFSET_BITS
668 RUN_GPGSM_TESTS_FALSE
672 RUN_GPGCONF_TESTS_FALSE
673 RUN_GPGCONF_TESTS_TRUE
711 HAVE_MACOS_SYSTEM_FALSE
712 HAVE_MACOS_SYSTEM_TRUE
713 HAVE_ANDROID_SYSTEM_FALSE
714 HAVE_ANDROID_SYSTEM_TRUE
715 HAVE_W64_SYSTEM_FALSE
717 HAVE_W32_SYSTEM_FALSE
719 HAVE_DOSISH_SYSTEM_FALSE
720 HAVE_DOSISH_SYSTEM_TRUE
727 HAVE_LD_VERSION_SCRIPT_FALSE
728 HAVE_LD_VERSION_SCRIPT_TRUE
763 LDADD_FOR_TESTS_KLUDGE
793 MAINTAINER_MODE_FALSE
807 INSTALL_STRIP_PROGRAM
822 LIBQGPGME_LT_REVISION
825 LIBGPGMEPP_LT_REVISION
827 LIBGPGMEPP_LT_CURRENT
859 program_transform_name
873 enable_option_checking
875 enable_maintainer_mode
876 enable_dependency_tracking
888 enable_build_timestamp
894 with_libgpg_error_prefix
895 with_gpg_error_prefix
896 with_libassuan_prefix
898 enable_linux_getdents
900 ac_precious_vars='build_alias
924 # Initialize some variables set by options.
926 ac_init_version=false
927 ac_unrecognized_opts=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 runstatedir='${localstatedir}/run'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 # Accept the important Cygnus configure options, so we can diagnose typos.
992 case $ac_dashdash$ac_option in
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1016 -datadir | --datadir | --datadi | --datad)
1018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019 datadir=$ac_optarg ;;
1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1028 -disable-* | --disable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_$ac_useropt"
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1042 eval enable_$ac_useropt=no ;;
1044 -docdir | --docdir | --docdi | --doc | --do)
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
1054 -enable-* | --enable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1068 eval enable_$ac_useropt=\$ac_optarg ;;
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099 htmldir=$ac_optarg ;;
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1113 -libdir | --libdir | --libdi | --libd)
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1204 -psdir | --psdir | --psdi | --psd | --ps)
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1213 -runstatedir | --runstatedir | --runstatedi | --runstated \
1214 | --runstate | --runstat | --runsta | --runst | --runs \
1215 | --run | --ru | --r)
1216 ac_prev=runstatedir ;;
1217 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1218 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1219 | --run=* | --ru=* | --r=*)
1220 runstatedir=$ac_optarg ;;
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1241 -site=* | --site=* | --sit=*)
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1281 eval with_$ac_useropt=\$ac_optarg ;;
1283 -without-* | --without-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1297 eval with_$ac_useropt=no ;;
1300 # Obsolete; use --with-x.
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1317 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1318 Try \`$0 --help' for more information"
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 case $ac_envvar in #(
1325 '' | [0-9]* | *[!_$as_cr_alnum]* )
1326 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1328 eval $ac_envvar=\$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1342 if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 as_fn_error $? "missing argument to $ac_option"
1347 if test -n "$ac_unrecognized_opts"; then
1348 case $enable_option_checking in
1350 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1351 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355 # Check all directory arguments for consistency.
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir runstatedir
1361 eval ac_val=\$$ac_var
1362 # Remove trailing slashes.
1365 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366 eval $ac_var=\$ac_val;;
1368 # Be sure to have absolute directory names.
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1381 target=$target_alias
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 as_fn_error $? "working directory cannot be determined"
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 as_fn_error $? "pwd does not report name of working directory"
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1438 ac_srcdir_defaulted=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures gpgme 1.15.0 to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking ...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/gpgme]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of gpgme 1.15.0:";;
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --enable-silent-rules less verbose build output (undo: "make V=1")
1552 --disable-silent-rules verbose build output (undo: "make V=0")
1553 --enable-maintainer-mode
1554 enable make rules and dependencies not useful (and
1555 sometimes confusing) to the casual installer
1556 --enable-dependency-tracking
1557 do not reject slow dependency extractors
1558 --disable-dependency-tracking
1559 speeds up one-time build
1560 --enable-static[=PKGS] build static libraries [default=no]
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
1564 --disable-libtool-lock avoid locking (might break parallel builds)
1565 --disable-glibtest do not try to compile and run a test GLIB program
1566 --enable-w32-glib build GPGME Glib for W32
1567 --enable-fixed-path=PATH
1568 locate binaries only via this PATH
1569 --enable-languages=languages
1570 enable only specific language bindings
1571 --enable-build-timestamp
1572 set an explicit build timestamp for reproducibility.
1573 (default is the current time in ISO-8601 format)
1574 --disable-gpgconf-test disable GPGCONF regression test
1575 --disable-gpg-test disable GPG regression test
1576 --disable-gpgsm-test disable GPGSM regression test
1577 --disable-g13-test disable G13 regression test
1578 --disable-largefile omit support for large files
1579 --disable-fd-passing do not use FD passing
1580 --disable-linux-getdents
1581 do not use SYS_getdents on Linux
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-sysroot=DIR Search for dependent libraries within DIR
1590 (or the compiler's sysroot if not specified).
1591 --with-libgpg-error-prefix=PFX
1592 prefix where GPG Error is installed (optional)
1594 --with-libassuan-prefix=PFX
1595 prefix where LIBASSUAN is installed (optional)
1597 Some influential environment variables:
1598 SYSROOT locate config scripts also below that directory
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
1603 LIBS libraries to pass to the linker, e.g. -l<library>
1604 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1605 you have headers in a nonstandard directory <include dir>
1607 CXX C++ compiler command
1608 CXXFLAGS C++ compiler flags
1610 build system C compiler
1611 CXXCPP C++ preprocessor
1612 PKG_CONFIG path to pkg-config utility
1614 C compiler flags for GPGME_QT, overriding pkg-config
1616 linker flags for GPGME_QT, overriding pkg-config
1618 C compiler flags for GPGME_QTTEST, overriding pkg-config
1620 linker flags for GPGME_QTTEST, overriding pkg-config
1621 PYTHON the Python interpreter
1623 The installed Python version to use, for example '2.3'. This
1624 string will be appended to the Python interpreter canonical
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1630 Report bugs to <https://bugs.gnupg.org>.
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1660 .) # We are building in place.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1693 gpgme configure 1.15.0
1694 generated by GNU Autoconf 2.69
1696 Copyright (C) 2012 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1743 } # ac_fn_c_try_compile
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } > conftest.i && {
1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785 # the include files in INCLUDES and setting the cache variable VAR
1787 ac_fn_c_check_header_mongrel ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if eval \${$3+:} false; then :
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1800 # Is the header compilable?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802 $as_echo_n "checking $2 usability... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_header_compiler=yes
1811 ac_header_compiler=no
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815 $as_echo "$ac_header_compiler" >&6; }
1817 # Is the header present?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819 $as_echo_n "checking $2 presence... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825 ac_header_preproc=yes
1827 ac_header_preproc=no
1829 rm -f conftest.err conftest.i conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831 $as_echo "$ac_header_preproc" >&6; }
1833 # So? What about this header?
1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ( $as_echo "## ------------------------------------- ##
1853 ## Report this to https://bugs.gnupg.org ##
1854 ## ------------------------------------- ##"
1855 ) | sed "s/^/$as_me: WARNING: /" >&2
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1863 eval "$3=\$ac_header_compiler"
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 } # ac_fn_c_check_header_mongrel
1873 # ac_fn_c_try_run LINENO
1874 # ----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1876 # that executables *can* be run.
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>&5
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1891 { { case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_try") 2>&5
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; }; }; then :
1903 $as_echo "$as_me: program exited with status $ac_status" >&5
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=$ac_status
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status $ac_retval
1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists and can be compiled using the include files in
1918 # INCLUDES, setting the cache variable VAR accordingly.
1919 ac_fn_c_check_header_compile ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_header_compile
1946 # ac_fn_c_try_link LINENO
1947 # -----------------------
1948 # Try to link conftest.$ac_ext, and return whether this succeeded.
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 rm -f conftest.$ac_objext conftest$ac_exeext
1953 if { { ac_try="$ac_link"
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_link") 2>conftest.err
1962 if test -s conftest.err; then
1963 grep -v '^ *+' conftest.err >conftest.er1
1964 cat conftest.er1 >&5
1965 mv -f conftest.er1 conftest.err
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && {
1969 test -z "$ac_c_werror_flag" ||
1970 test ! -s conftest.err
1971 } && test -s conftest$ac_exeext && {
1972 test "$cross_compiling" = yes ||
1973 test -x conftest$ac_exeext
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1982 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984 # interfere with the next link command; also delete a directory that is
1985 # left behind by Apple's compiler. We do this before executing the actions.
1986 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1990 } # ac_fn_c_try_link
1992 # ac_fn_cxx_try_compile LINENO
1993 # ----------------------------
1994 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_compile ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext
1999 if { { ac_try="$ac_compile"
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_compile") 2>conftest.err
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest.$ac_objext; then :
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
2028 } # ac_fn_cxx_try_compile
2030 # ac_fn_c_check_func LINENO FUNC VAR
2031 # ----------------------------------
2032 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2033 ac_fn_c_check_func ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045 #define $2 innocuous_$2
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below.
2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050 <limits.h> exists even on freestanding compilers. */
2053 # include <limits.h>
2055 # include <assert.h>
2060 /* Override any GCC internal prototype to avoid an error.
2061 Use char because int might match the return type of a GCC
2062 builtin and then its argument prototype would still apply. */
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined __stub_$2 || defined __stub___$2
2082 if ac_fn_c_try_link "$LINENO"; then :
2087 rm -f core conftest.err conftest.$ac_objext \
2088 conftest$ac_exeext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_func
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } > conftest.i && {
2119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 as_fn_set_status $ac_retval
2132 } # ac_fn_cxx_try_cpp
2134 # ac_fn_cxx_try_link LINENO
2135 # -------------------------
2136 # Try to link conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_cxx_try_link ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
2161 test -x conftest$ac_exeext
2165 $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2178 } # ac_fn_cxx_try_link
2180 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2181 # --------------------------------------------
2182 # Tries to find the compile-time value of EXPR in a program that includes
2183 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2185 ac_fn_c_compute_int ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if test "$cross_compiling" = yes; then
2189 # Depending upon the size, compute the lo and hi bounds.
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) >= 0)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile "$LINENO"; then :
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2215 return test_array [0];
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_hi=$ac_mid; break
2224 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2225 if test $ac_lo -le $ac_mid; then
2229 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) < 0)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2259 return test_array [0];
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 ac_lo=$ac_mid; break
2268 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2269 if test $ac_mid -le $ac_hi; then
2273 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 # Binary search between lo and hi bounds.
2284 while test "x$ac_lo" != "x$ac_hi"; do
2285 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 return test_array [0];
2300 if ac_fn_c_try_compile "$LINENO"; then :
2303 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2315 static long int longval () { return $2; }
2316 static unsigned long int ulongval () { return $2; }
2323 FILE *f = fopen ("conftest.val", "w");
2328 long int i = longval ();
2331 fprintf (f, "%ld", i);
2335 unsigned long int i = ulongval ();
2338 fprintf (f, "%lu", i);
2340 /* Do not output a trailing newline, as this causes \r\n confusion
2341 on some platforms. */
2342 return ferror (f) || fclose (f) != 0;
2348 if ac_fn_c_try_run "$LINENO"; then :
2349 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2354 conftest.$ac_objext conftest.beam conftest.$ac_ext
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359 as_fn_set_status $ac_retval
2361 } # ac_fn_c_compute_int
2363 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2364 # -------------------------------------------
2365 # Tests whether TYPE exists after having included INCLUDES, setting cache
2366 # variable VAR accordingly.
2367 ac_fn_c_check_type ()
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if eval \${$3+:} false; then :
2373 $as_echo_n "(cached) " >&6
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2401 if ac_fn_c_try_compile "$LINENO"; then :
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 } # ac_fn_c_check_type
2417 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2418 # ---------------------------------------------
2419 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2421 ac_fn_c_check_decl ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 as_decl_name=`echo $2|sed 's/ *(.*//'`
2425 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2427 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2428 if eval \${$3+:} false; then :
2429 $as_echo_n "(cached) " >&6
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2437 #ifndef $as_decl_name
2439 (void) $as_decl_use;
2441 (void) $as_decl_name;
2449 if ac_fn_c_try_compile "$LINENO"; then :
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 } # ac_fn_c_check_decl
2463 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2464 # ----------------------------------------------------
2465 # Tries to find if the field MEMBER exists in type AGGR, after including
2466 # INCLUDES, setting cache variable VAR accordingly.
2467 ac_fn_c_check_member ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2471 $as_echo_n "checking for $2.$3... " >&6; }
2472 if eval \${$4+:} false; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2488 if ac_fn_c_try_compile "$LINENO"; then :
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2498 if (sizeof ac_aggr.$3)
2504 if ac_fn_c_try_compile "$LINENO"; then :
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518 } # ac_fn_c_check_member
2519 cat >config.log <<_ACEOF
2520 This file contains any messages produced by compilers while
2521 running configure, to aid debugging if configure makes a mistake.
2523 It was created by gpgme $as_me 1.15.0, which was
2524 generated by GNU Autoconf 2.69. Invocation command line was
2536 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2537 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2538 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2539 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2540 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2542 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2543 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2545 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2546 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2547 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2548 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2549 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2550 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2551 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 $as_echo "PATH: $as_dir"
2576 # Keep a trace of the command line.
2577 # Strip out --no-create and --no-recursion so they do not pile up.
2578 # Strip out --silent because we don't want to record it for future runs.
2579 # Also quote any args containing shell meta-characters.
2580 # Make two passes to allow for proper duplicate-argument suppression.
2584 ac_must_keep_next=false
2590 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2592 | -silent | --silent | --silen | --sile | --sil)
2595 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2600 as_fn_append ac_configure_args1 " '$ac_arg'"
2601 if test $ac_must_keep_next = true; then
2602 ac_must_keep_next=false # Got value, back to normal.
2605 *=* | --config-cache | -C | -disable-* | --disable-* \
2606 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2607 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2608 | -with-* | --with-* | -without-* | --without-* | --x)
2609 case "$ac_configure_args0 " in
2610 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2613 -* ) ac_must_keep_next=true ;;
2616 as_fn_append ac_configure_args " '$ac_arg'"
2621 { ac_configure_args0=; unset ac_configure_args0;}
2622 { ac_configure_args1=; unset ac_configure_args1;}
2624 # When interrupted or exit'd, cleanup temporary files, and complete
2625 # config.log. We remove comments because anyway the quotes in there
2626 # would cause problems or look ugly.
2627 # WARNING: Use '\'' to represent an apostrophe within the trap.
2628 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2629 trap 'exit_status=$?
2630 # Save into config.log some information that might help in debugging.
2634 $as_echo "## ---------------- ##
2635 ## Cache variables. ##
2636 ## ---------------- ##"
2638 # The following way of writing the cache mishandles newlines in values,
2640 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2641 eval ac_val=\$$ac_var
2645 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2646 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2649 _ | IFS | as_nl) ;; #(
2650 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2651 *) { eval $ac_var=; unset $ac_var;} ;;
2656 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2657 *${as_nl}ac_space=\ *)
2659 "s/'\''/'\''\\\\'\'''\''/g;
2660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2670 $as_echo "## ----------------- ##
2671 ## Output variables. ##
2672 ## ----------------- ##"
2674 for ac_var in $ac_subst_vars
2676 eval ac_val=\$$ac_var
2678 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2680 $as_echo "$ac_var='\''$ac_val'\''"
2684 if test -n "$ac_subst_files"; then
2685 $as_echo "## ------------------- ##
2686 ## File substitutions. ##
2687 ## ------------------- ##"
2689 for ac_var in $ac_subst_files
2691 eval ac_val=\$$ac_var
2693 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2695 $as_echo "$ac_var='\''$ac_val'\''"
2700 if test -s confdefs.h; then
2701 $as_echo "## ----------- ##
2708 test "$ac_signal" != 0 &&
2709 $as_echo "$as_me: caught signal $ac_signal"
2710 $as_echo "$as_me: exit $exit_status"
2712 rm -f core *.core core.conftest.* &&
2713 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2716 for ac_signal in 1 2 13 15; do
2717 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2721 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2722 rm -f -r conftest* confdefs.h
2724 $as_echo "/* confdefs.h */" > confdefs.h
2726 # Predefined preprocessor variables.
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_NAME "$PACKAGE_NAME"
2732 cat >>confdefs.h <<_ACEOF
2733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE_STRING "$PACKAGE_STRING"
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_URL "$PACKAGE_URL"
2753 # Let the site file select an alternate cache file if it wants to.
2754 # Prefer an explicitly selected file to automatically selected ones.
2757 if test -n "$CONFIG_SITE"; then
2758 # We do not want a PATH search for config.site.
2759 case $CONFIG_SITE in #((
2760 -*) ac_site_file1=./$CONFIG_SITE;;
2761 */*) ac_site_file1=$CONFIG_SITE;;
2762 *) ac_site_file1=./$CONFIG_SITE;;
2764 elif test "x$prefix" != xNONE; then
2765 ac_site_file1=$prefix/share/config.site
2766 ac_site_file2=$prefix/etc/config.site
2768 ac_site_file1=$ac_default_prefix/share/config.site
2769 ac_site_file2=$ac_default_prefix/etc/config.site
2771 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2773 test "x$ac_site_file" = xNONE && continue
2774 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2776 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2777 sed 's/^/| /' "$ac_site_file" >&5
2779 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 as_fn_error $? "failed to load site script $ac_site_file
2782 See \`config.log' for more details" "$LINENO" 5; }
2786 if test -r "$cache_file"; then
2787 # Some versions of bash will fail to source /dev/null (special files
2788 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2789 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2791 $as_echo "$as_me: loading cache $cache_file" >&6;}
2793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2794 *) . "./$cache_file";;
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2799 $as_echo "$as_me: creating cache $cache_file" >&6;}
2803 as_fn_append ac_header_list " locale.h"
2804 as_fn_append ac_header_list " sys/select.h"
2805 as_fn_append ac_header_list " sys/uio.h"
2806 as_fn_append ac_header_list " argp.h"
2807 as_fn_append ac_header_list " stdint.h"
2808 as_fn_append ac_header_list " unistd.h"
2809 as_fn_append ac_header_list " sys/time.h"
2810 as_fn_append ac_header_list " sys/types.h"
2811 as_fn_append ac_header_list " sys/stat.h"
2812 # Check that the precious variables saved in the cache have kept the same
2814 ac_cache_corrupted=false
2815 for ac_var in $ac_precious_vars; do
2816 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2817 eval ac_new_set=\$ac_env_${ac_var}_set
2818 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2819 eval ac_new_val=\$ac_env_${ac_var}_value
2820 case $ac_old_set,$ac_new_set in
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2823 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2824 ac_cache_corrupted=: ;;
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2827 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2828 ac_cache_corrupted=: ;;
2831 if test "x$ac_old_val" != "x$ac_new_val"; then
2832 # differences in whitespace do not lead to failure.
2833 ac_old_val_w=`echo x $ac_old_val`
2834 ac_new_val_w=`echo x $ac_new_val`
2835 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2837 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2838 ac_cache_corrupted=:
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2841 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2842 eval $ac_var=\$ac_old_val
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2845 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2847 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2850 # Pass precious variables to config.status.
2851 if test "$ac_new_set" = set; then
2853 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2854 *) ac_arg=$ac_var=$ac_new_val ;;
2856 case " $ac_configure_args " in
2857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2858 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2862 if $ac_cache_corrupted; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2866 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2867 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2869 ## -------------------- ##
2870 ## Main body of script. ##
2871 ## -------------------- ##
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 # LT Version numbers, remember to change them just *before* a release.
2882 # (Code changed: REVISION++)
2883 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2884 # (Interfaces added: AGE++)
2885 # (Interfaces removed: AGE=0)
2887 LIBGPGME_LT_CURRENT=35
2889 LIBGPGME_LT_REVISION=0
2891 # If there is an ABI break in gpgmepp or qgpgme also bump the
2892 # version in IMPORTED_LOCATION in the GpgmeppConfig-w32.cmake.in.in
2894 LIBGPGMEPP_LT_CURRENT=18
2895 LIBGPGMEPP_LT_AGE=12
2896 LIBGPGMEPP_LT_REVISION=0
2898 LIBQGPGME_LT_CURRENT=12
2900 LIBQGPGME_LT_REVISION=0
2901 ################################################
2915 # If the API is changed in an incompatible way: increment the next counter.
2916 GPGME_CONFIG_API_VERSION=1
2917 ##############################################
2919 NEED_GPG_ERROR_VERSION=1.36
2920 NEED_LIBASSUAN_API=2
2921 NEED_LIBASSUAN_VERSION=2.4.2
2929 for ac_dir in build-aux "$srcdir"/build-aux; do
2930 if test -f "$ac_dir/install-sh"; then
2932 ac_install_sh="$ac_aux_dir/install-sh -c"
2934 elif test -f "$ac_dir/install.sh"; then
2936 ac_install_sh="$ac_aux_dir/install.sh -c"
2938 elif test -f "$ac_dir/shtool"; then
2940 ac_install_sh="$ac_aux_dir/shtool install -c"
2944 if test -z "$ac_aux_dir"; then
2945 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2953 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2954 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2959 ac_config_headers="$ac_config_headers conf/config.h"
2961 am__api_version='1.16'
2963 # Find a good install program. We prefer a C program (faster),
2964 # so one script is as good as another. But avoid the broken or
2965 # incompatible versions:
2966 # SysV /etc/install, /usr/sbin/install
2967 # SunOS /usr/etc/install
2968 # IRIX /sbin/install
2970 # AmigaOS /C/install, which installs bootblocks on floppy discs
2971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2974 # OS/2's system install, which has a completely different semantic
2975 # ./install, which can be erroneously created by make from ./install.sh.
2976 # Reject install programs that cannot install multiple files.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2978 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2979 if test -z "$INSTALL"; then
2980 if ${ac_cv_path_install+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 # Account for people who put trailing slashes in PATH elements.
2989 case $as_dir/ in #((
2990 ./ | .// | /[cC]/* | \
2991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2992 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2995 # OSF1 and SCO ODT 3.0 have their own names for install.
2996 # Don't use installbsd from OSF since it installs stuff as root
2998 for ac_prog in ginstall scoinst install; do
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3001 if test $ac_prog = install &&
3002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3003 # AIX install. It has an incompatible calling convention.
3005 elif test $ac_prog = install &&
3006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3007 # program-specific install script used by HP pwplus--don't use.
3010 rm -rf conftest.one conftest.two conftest.dir
3011 echo one > conftest.one
3012 echo two > conftest.two
3014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3015 test -s conftest.one && test -s conftest.two &&
3016 test -s conftest.dir/conftest.one &&
3017 test -s conftest.dir/conftest.two
3019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3032 rm -rf conftest.one conftest.two conftest.dir
3035 if test "${ac_cv_path_install+set}" = set; then
3036 INSTALL=$ac_cv_path_install
3038 # As a last resort, use the slow shell script. Don't cache a
3039 # value for INSTALL within a source directory, because that will
3040 # break other packages using the cache if that directory is
3041 # removed, or if the value is a relative name.
3042 INSTALL=$ac_install_sh
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3046 $as_echo "$INSTALL" >&6; }
3048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3049 # It thinks the first close brace ends the variable substitution.
3050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3057 $as_echo_n "checking whether build environment is sane... " >&6; }
3058 # Reject unsafe characters in $srcdir or the absolute working directory
3059 # name. Accept space and tab only in the latter.
3063 *[\\\"\#\$\&\'\`$am_lf]*)
3064 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3067 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3068 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3071 # Do 'set' in a subshell so we don't clobber the current shell's
3072 # arguments. Must try -L first in case configure is actually a
3073 # symlink; some systems play weird games with the mod time of symlinks
3074 # (eg FreeBSD returns the mod time of the symlink's containing
3078 for am_try in 1 2; do
3079 echo "timestamp, slept: $am_has_slept" > conftest.file
3080 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3081 if test "$*" = "X"; then
3083 set X `ls -t "$srcdir/configure" conftest.file`
3085 if test "$*" != "X $srcdir/configure conftest.file" \
3086 && test "$*" != "X conftest.file $srcdir/configure"; then
3088 # If neither matched, then we have a broken ls. This can happen
3089 # if, for instance, CONFIG_SHELL is bash and it inherits a
3090 # broken ls alias from the environment. This has actually
3091 # happened. Such a system could not be considered "sane".
3092 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3093 alias in your environment" "$LINENO" 5
3095 if test "$2" = conftest.file || test $am_try -eq 2; then
3102 test "$2" = conftest.file
3108 as_fn_error $? "newly created file is older than distributed files!
3109 Check your system clock" "$LINENO" 5
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3113 # If we didn't sleep, we still need to ensure time stamps of config.status and
3114 # generated files are strictly newer.
3116 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3123 test "$program_prefix" != NONE &&
3124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3125 # Use a double $ so make ignores it.
3126 test "$program_suffix" != NONE &&
3127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3128 # Double any \ or $.
3129 # By default was `s,x,x', remove it if useless.
3130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3133 # Expand $ac_aux_dir to an absolute path.
3134 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3136 if test x"${MISSING+set}" != xset; then
3139 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3141 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3144 # Use eval to expand $SHELL
3145 if eval "$MISSING --is-lightweight"; then
3146 am_missing_run="$MISSING "
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3150 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3153 if test x"${install_sh+set}" != xset; then
3156 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3158 install_sh="\${SHELL} $am_aux_dir/install-sh"
3162 # Installed binaries are usually stripped using 'strip' when the user
3163 # run "make install-strip". However 'strip' might not be the right
3164 # tool to use in cross-compilation environments, therefore Automake
3165 # will honor the 'STRIP' environment variable to overrule this program.
3166 if test "$cross_compiling" != no; then
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}strip; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_STRIP+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$STRIP"; then
3176 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 STRIP=$ac_cv_prog_STRIP
3196 if test -n "$STRIP"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3198 $as_echo "$STRIP" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3206 if test -z "$ac_cv_prog_STRIP"; then
3208 # Extract the first word of "strip", so it can be a program name with args.
3209 set dummy strip; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$ac_ct_STRIP"; then
3216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_ac_ct_STRIP="strip"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3236 if test -n "$ac_ct_STRIP"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3238 $as_echo "$ac_ct_STRIP" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3244 if test "x$ac_ct_STRIP" = x; then
3247 case $cross_compiling:$ac_tool_warned in
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3256 STRIP="$ac_cv_prog_STRIP"
3260 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3263 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3264 if test -z "$MKDIR_P"; then
3265 if ${ac_cv_path_mkdir+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3272 test -z "$as_dir" && as_dir=.
3273 for ac_prog in mkdir gmkdir; do
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3276 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3277 'mkdir (GNU coreutils) '* | \
3278 'mkdir (coreutils) '* | \
3279 'mkdir (fileutils) '4.1*)
3280 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3290 test -d ./--version && rmdir ./--version
3291 if test "${ac_cv_path_mkdir+set}" = set; then
3292 MKDIR_P="$ac_cv_path_mkdir -p"
3294 # As a last resort, use the slow shell script. Don't cache a
3295 # value for MKDIR_P within a source directory, because that will
3296 # break other packages using the cache if that directory is
3297 # removed, or if the value is a relative name.
3298 MKDIR_P="$ac_install_sh -d"
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3302 $as_echo "$MKDIR_P" >&6; }
3304 for ac_prog in gawk mawk nawk awk
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_AWK+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$AWK"; then
3314 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_AWK="$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$AWK"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3336 $as_echo "$AWK" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3343 test -n "$AWK" && break
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3347 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3349 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3350 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3351 $as_echo_n "(cached) " >&6
3353 cat >conftest.make <<\_ACEOF
3356 @echo '@@@%%%=$(MAKE)=@@@%%%'
3358 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3361 eval ac_cv_prog_make_${ac_make}_set=yes;;
3363 eval ac_cv_prog_make_${ac_make}_set=no;;
3367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 SET_MAKE="MAKE=${MAKE-make}"
3377 rm -rf .tst 2>/dev/null
3378 mkdir .tst 2>/dev/null
3379 if test -d .tst; then
3384 rmdir .tst 2>/dev/null
3386 # Check whether --enable-silent-rules was given.
3387 if test "${enable_silent_rules+set}" = set; then :
3388 enableval=$enable_silent_rules;
3391 case $enable_silent_rules in # (((
3392 yes) AM_DEFAULT_VERBOSITY=0;;
3393 no) AM_DEFAULT_VERBOSITY=1;;
3394 *) AM_DEFAULT_VERBOSITY=1;;
3396 am_make=${MAKE-make}
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3398 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3399 if ${am_cv_make_support_nested_variables+:} false; then :
3400 $as_echo_n "(cached) " >&6
3402 if $as_echo 'TRUE=$(BAR$(V))
3408 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3409 am_cv_make_support_nested_variables=yes
3411 am_cv_make_support_nested_variables=no
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3415 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3416 if test $am_cv_make_support_nested_variables = yes; then
3418 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3420 AM_V=$AM_DEFAULT_VERBOSITY
3421 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3425 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3426 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3427 # is not polluted with repeated "-I."
3428 am__isrc=' -I$(srcdir)'
3429 # test to see if srcdir already configured
3430 if test -f $srcdir/config.status; then
3431 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3435 # test whether we have cygpath
3436 if test -z "$CYGPATH_W"; then
3437 if (cygpath --version) >/dev/null 2>/dev/null; then
3438 CYGPATH_W='cygpath -w'
3445 # Define the identity of the package.
3450 cat >>confdefs.h <<_ACEOF
3451 #define PACKAGE "$PACKAGE"
3455 cat >>confdefs.h <<_ACEOF
3456 #define VERSION "$VERSION"
3459 # Some tools Automake needs.
3461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3473 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3475 # For better backward compatibility. To be removed once Automake 1.9.x
3476 # dies out for good. For more background, see:
3477 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3478 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3479 mkdir_p='$(MKDIR_P)'
3481 # We need awk for the "check" target (and possibly the TAP driver). The
3482 # system "awk" is bad on some platforms.
3483 # Always define AMTAR for backward compatibility. Yes, it's still used
3484 # in the wild :-( We should find a proper way to deprecate it ...
3488 # We'll loop over all known methods to create a tar archive until one works.
3489 _am_tools='gnutar pax cpio none'
3491 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3498 # POSIX will say in a future version that running "rm -f" with no argument
3499 # is OK; and we want to be able to make that assumption in our Makefile
3500 # recipes. So use an aggressive probe to check that the usage we want is
3501 # actually supported "in the wild" to an acceptable degree.
3502 # See automake bug#10828.
3503 # To make any issue more visible, cause the running configure to be aborted
3504 # by default if the 'rm' program in use doesn't match our expectations; the
3505 # user can still override this though.
3506 if rm -f && rm -fr && rm -rf; then : OK; else
3510 Your 'rm' program seems unable to run without file operands specified
3511 on the command line, even when the '-f' option is present. This is contrary
3512 to the behaviour of most rm programs out there, and not conforming with
3513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3515 Please tell bug-automake@gnu.org about your system, including the value
3516 of your $PATH and any error possibly output before this message. This
3517 can help us improve future automake versions.
3520 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3521 echo 'Configuration will proceed anyway, since you have set the' >&2
3522 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3526 Aborting the configuration process, to ensure you take notice of the issue.
3528 You can download and install GNU coreutils to get an 'rm' implementation
3529 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3531 If you want to complete the configuration process using your problematic
3532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3533 to "yes", and re-run configure.
3536 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3542 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3543 # Check whether --enable-maintainer-mode was given.
3544 if test "${enable_maintainer_mode+set}" = set; then :
3545 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3547 USE_MAINTAINER_MODE=no
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3551 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3552 if test $USE_MAINTAINER_MODE = yes; then
3553 MAINTAINER_MODE_TRUE=
3554 MAINTAINER_MODE_FALSE='#'
3556 MAINTAINER_MODE_TRUE='#'
3557 MAINTAINER_MODE_FALSE=
3560 MAINT=$MAINTAINER_MODE_TRUE
3563 # Make sure we can run config.sub.
3564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3568 $as_echo_n "checking build system type... " >&6; }
3569 if ${ac_cv_build+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 ac_build_alias=$build_alias
3573 test "x$ac_build_alias" = x &&
3574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575 test "x$ac_build_alias" = x &&
3576 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582 $as_echo "$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3588 ac_save_IFS=$IFS; IFS='-'
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602 $as_echo_n "checking host system type... " >&6; }
3603 if ${ac_cv_host+:} false; then :
3604 $as_echo_n "(cached) " >&6
3606 if test "x$host_alias" = x; then
3607 ac_cv_host=$ac_cv_build
3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615 $as_echo "$ac_cv_host" >&6; }
3618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3621 ac_save_IFS=$IFS; IFS='-'
3627 # Remember, the first character of IFS is used to create $*,
3628 # except with old shells:
3631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634 # Check whether --enable-silent-rules was given.
3635 if test "${enable_silent_rules+set}" = set; then :
3636 enableval=$enable_silent_rules;
3639 case $enable_silent_rules in # (((
3640 yes) AM_DEFAULT_VERBOSITY=0;;
3641 no) AM_DEFAULT_VERBOSITY=1;;
3642 *) AM_DEFAULT_VERBOSITY=1;;
3644 am_make=${MAKE-make}
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3646 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3647 if ${am_cv_make_support_nested_variables+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 if $as_echo 'TRUE=$(BAR$(V))
3656 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3657 am_cv_make_support_nested_variables=yes
3659 am_cv_make_support_nested_variables=no
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3663 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3664 if test $am_cv_make_support_nested_variables = yes; then
3666 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3668 AM_V=$AM_DEFAULT_VERBOSITY
3669 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3675 # Enable GNU extensions on systems that have them.
3676 DEPDIR="${am__leading_dot}deps"
3678 ac_config_commands="$ac_config_commands depfiles"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3681 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3682 cat > confinc.mk << 'END'
3684 @echo this is the am__doit target >confinc.out
3689 # BSD make does it like this.
3690 echo '.include "confinc.mk" # ignored' > confmf.BSD
3691 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3692 echo 'include confinc.mk # ignored' > confmf.GNU
3694 for s in GNU BSD; do
3695 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3696 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }
3700 case $?:`cat confinc.out 2>/dev/null` in #(
3701 '0:this is the am__doit target') :
3704 am__include='.include' am__quote='"' ;; #(
3706 am__include='include' am__quote='' ;;
3711 if test "$am__include" != "#"; then
3712 _am_result="yes ($s style)"
3716 rm -f confinc.* confmf.*
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3718 $as_echo "${_am_result}" >&6; }
3720 # Check whether --enable-dependency-tracking was given.
3721 if test "${enable_dependency_tracking+set}" = set; then :
3722 enableval=$enable_dependency_tracking;
3725 if test "x$enable_dependency_tracking" != xno; then
3726 am_depcomp="$ac_aux_dir/depcomp"
3730 if test "x$enable_dependency_tracking" != xno; then
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 if test -n "$ac_tool_prefix"; then
3745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if ${ac_cv_prog_CC+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 if test -n "$CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3783 if test -z "$ac_cv_prog_CC"; then
3785 # Extract the first word of "gcc", so it can be a program name with args.
3786 set dummy gcc; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -n "$ac_ct_CC"; then
3793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_ac_ct_CC="gcc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813 if test -n "$ac_ct_CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815 $as_echo "$ac_ct_CC" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3821 if test "x$ac_ct_CC" = x; then
3824 case $cross_compiling:$ac_tool_warned in
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828 ac_tool_warned=yes ;;
3836 if test -z "$CC"; then
3837 if test -n "$ac_tool_prefix"; then
3838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3839 set dummy ${ac_tool_prefix}cc; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_CC+:} false; then :
3843 $as_echo_n "(cached) " >&6
3845 if test -n "$CC"; then
3846 ac_cv_prog_CC="$CC" # Let the user override the test.
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_CC="${ac_tool_prefix}cc"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 if test -n "$CC"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3868 $as_echo "$CC" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3877 if test -z "$CC"; then
3878 # Extract the first word of "cc", so it can be a program name with args.
3879 set dummy cc; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_CC+:} false; then :
3883 $as_echo_n "(cached) " >&6
3885 if test -n "$CC"; then
3886 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3897 ac_prog_rejected=yes
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 if test $ac_prog_rejected = yes; then
3909 # We found a bogon in the path, so make sure we never use it.
3910 set dummy $ac_cv_prog_CC
3912 if test $# != 0; then
3913 # We chose a different compiler from the bogus one.
3914 # However, it has the same basename, so the bogon will be chosen
3915 # first if we set CC to just the basename; use the full file name.
3917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3923 if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3933 if test -z "$CC"; then
3934 if test -n "$ac_tool_prefix"; then
3935 for ac_prog in cl.exe
3937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_CC+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 if test -n "$CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3974 test -n "$CC" && break
3977 if test -z "$CC"; then
3979 for ac_prog in cl.exe
3981 # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 if test -n "$ac_ct_CC"; then
3989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_ac_ct_CC="$ac_prog"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4009 if test -n "$ac_ct_CC"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4011 $as_echo "$ac_ct_CC" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4018 test -n "$ac_ct_CC" && break
4021 if test "x$ac_ct_CC" = x; then
4024 case $cross_compiling:$ac_tool_warned in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "no acceptable C compiler found in \$PATH
4040 See \`config.log' for more details" "$LINENO" 5; }
4042 # Provide some information about the compiler.
4043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 for ac_option in --version -v -V -qversion; do
4047 { { ac_try="$ac_compiler $ac_option >&5"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053 $as_echo "$ac_try_echo"; } >&5
4054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4056 if test -s conftest.err; then
4058 ... rest of stderr output deleted ...
4059 10q' conftest.err >conftest.er1
4060 cat conftest.er1 >&5
4062 rm -f conftest.er1 conftest.err
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 ac_clean_files_save=$ac_clean_files
4079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4080 # Try to create an executable without -o first, disregard a.out.
4081 # It will help us diagnose broken compilers, and finding out an intuition
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4084 $as_echo_n "checking whether the C compiler works... " >&6; }
4085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4087 # The possible output files:
4088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4091 for ac_file in $ac_files
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4095 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4100 if { { ac_try="$ac_link_default"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_link_default") 2>&5
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; then :
4111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4113 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4114 # so that the user can short-circuit this test for compilers unknown to
4116 for ac_file in $ac_files ''
4118 test -f "$ac_file" || continue
4120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4123 # We found the default executable, but exeext='' is most
4127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4131 # We set ac_cv_exeext here because the later test for it is not
4132 # safe: cross compilers may not add the suffix if given an `-o'
4133 # argument, so we may need to know it at that point already.
4134 # Even if this section looks crufty: it has the advantage of
4141 test "$ac_cv_exeext" = no && ac_cv_exeext=
4146 if test -z "$ac_file"; then :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error 77 "C compiler cannot create executables
4155 See \`config.log' for more details" "$LINENO" 5; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158 $as_echo "yes" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4161 $as_echo_n "checking for C compiler default output file name... " >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4163 $as_echo "$ac_file" >&6; }
4164 ac_exeext=$ac_cv_exeext
4166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167 ac_clean_files=$ac_clean_files_save
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4169 $as_echo_n "checking for suffix of executables... " >&6; }
4170 if { { ac_try="$ac_link"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_link") 2>&5
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }; then :
4181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4183 # work properly (i.e., refer to `conftest.exe'), while it won't with
4185 for ac_file in conftest.exe conftest conftest.*; do
4186 test -f "$ac_file" || continue
4188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198 See \`config.log' for more details" "$LINENO" 5; }
4200 rm -f conftest conftest$ac_cv_exeext
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4202 $as_echo "$ac_cv_exeext" >&6; }
4204 rm -f conftest.$ac_ext
4205 EXEEXT=$ac_cv_exeext
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4213 FILE *f = fopen ("conftest.out", "w");
4214 return ferror (f) || fclose (f) != 0;
4220 ac_clean_files="$ac_clean_files conftest.out"
4221 # Check that the compiler produces executables we can run. If not, either
4222 # the compiler is broken, or we cross compile.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4224 $as_echo_n "checking whether we are cross compiling... " >&6; }
4225 if test "$cross_compiling" != yes; then
4226 { { ac_try="$ac_link"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 $as_echo "$ac_try_echo"; } >&5
4233 (eval "$ac_link") 2>&5
4235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }
4237 if { ac_try='./conftest$ac_cv_exeext'
4238 { { case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_try") 2>&5
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; }; then
4250 if test "$cross_compiling" = maybe; then
4253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255 as_fn_error $? "cannot run C compiled programs.
4256 If you meant to cross compile, use \`--host'.
4257 See \`config.log' for more details" "$LINENO" 5; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262 $as_echo "$cross_compiling" >&6; }
4264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265 ac_clean_files=$ac_clean_files_save
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267 $as_echo_n "checking for suffix of object files... " >&6; }
4268 if ${ac_cv_objext+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_compile") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }; then :
4294 for ac_file in conftest.o conftest.obj conftest.*; do
4295 test -f "$ac_file" || continue;
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4303 $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $? "cannot compute suffix of object files: cannot compile
4309 See \`config.log' for more details" "$LINENO" 5; }
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319 if ${ac_cv_c_compiler_gnu+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4336 if ac_fn_c_try_compile "$LINENO"; then :
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_save_CFLAGS=$CFLAGS
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4356 if ${ac_cv_prog_cc_g+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4405 if ac_fn_c_try_compile "$LINENO"; then :
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418 CFLAGS=$ac_save_CFLAGS
4419 elif test $ac_cv_prog_cc_g = yes; then
4420 if test "$GCC" = yes; then
4426 if test "$GCC" = yes; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434 if ${ac_cv_prog_cc_c89+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_cv_prog_cc_c89=no
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4445 struct buf { int x; };
4446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447 static char *e (p, i)
4453 static char *f (char * (*g) (char **, int), char **p, ...)
4458 s = g (p, va_arg (v,int));
4463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4464 function prototypes and stuff, but not '\xHH' hex character constants.
4465 These don't provoke an error unfortunately, instead are silently treated
4466 as 'x'. The following induces an error, until -std is added to get
4467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4468 array size at least. It's necessary to write '\x00'==0 to get something
4469 that's true only with -std. */
4470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4472 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473 inside strings and character constants. */
4475 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4477 int test (int i, double x);
4478 struct s1 {int (*f) (int a);};
4479 struct s2 {int (*f) (double a);};
4480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4494 CC="$ac_save_CC $ac_arg"
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_prog_cc_c89=$ac_arg
4498 rm -f core conftest.err conftest.$ac_objext
4499 test "x$ac_cv_prog_cc_c89" != "xno" && break
4501 rm -f conftest.$ac_ext
4506 case "x$ac_cv_prog_cc_c89" in
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509 $as_echo "none needed" >&6; } ;;
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512 $as_echo "unsupported" >&6; } ;;
4514 CC="$CC $ac_cv_prog_cc_c89"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4518 if test "x$ac_cv_prog_cc_c89" != xno; then :
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4534 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4535 if ${am_cv_prog_cc_c_o+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4549 # Make sure it works both with $CC and with simple cc.
4550 # Following AC_PROG_CC_C_O, we do the test twice because some
4551 # compilers refuse to overwrite an existing .o file with -o,
4552 # though they will create one.
4553 am_cv_prog_cc_c_o=yes
4555 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4556 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } \
4560 && test -f conftest2.$ac_objext; then
4563 am_cv_prog_cc_c_o=no
4567 rm -f core conftest*
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4571 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4572 if test "$am_cv_prog_cc_c_o" != yes; then
4573 # Losing compiler, so override with the script.
4574 # FIXME: It is wrong to rewrite CC.
4575 # But if we don't then we get into trouble of one sort or another.
4576 # A longer-term fix would be to have automake use am__CC in this case,
4577 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578 CC="$am_aux_dir/compile $CC"
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 depcc="$CC" am_compiler_list=
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4590 $as_echo_n "checking dependency style of $depcc... " >&6; }
4591 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4595 # We make a subdir and do the tests there. Otherwise we can end up
4596 # making bogus files that we don't know about and never remove. For
4597 # instance it was reported that on HP-UX the gcc test will end up
4598 # making a dummy file named 'D' -- because '-MD' means "put the output
4602 # Copy depcomp to subdir because otherwise we won't find it if we're
4603 # using a relative directory.
4604 cp "$am_depcomp" conftest.dir
4606 # We will build objects and dependencies in a subdirectory because
4607 # it helps to detect inapplicable dependency modes. For instance
4608 # both Tru64's cc and ICC support -MD to output dependencies as a
4609 # side effect of compilation, but ICC will put the dependencies in
4610 # the current directory while Tru64 will put them in the object
4614 am_cv_CC_dependencies_compiler_type=none
4615 if test "$am_compiler_list" = ""; then
4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4619 case " $depcc " in #(
4620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4623 for depmode in $am_compiler_list; do
4624 # Setup a source with many dependencies, because some compilers
4625 # like to wrap large dependency lists on column 80 (with \), and
4626 # we should not choose a depcomp mode which is confused by this.
4628 # We need to recreate these files for each test, as the compiler may
4629 # overwrite some of them when testing with obscure command lines.
4630 # This happens at least with the AIX C compiler.
4632 for i in 1 2 3 4 5 6; do
4633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4634 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4635 # Solaris 10 /bin/sh.
4636 echo '/* dummy */' > sub/conftst$i.h
4638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4640 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4641 # mode. It turns out that the SunPro C++ compiler does not properly
4642 # handle '-M -o', and we need to detect this. Also, some Intel
4643 # versions had trouble with output in subdirs.
4644 am__obj=sub/conftest.${OBJEXT-o}
4645 am__minus_obj="-o $am__obj"
4648 # This depmode causes a compiler race in universal mode.
4649 test "$am__universal" = false || continue
4652 # After this tag, mechanisms are not by side-effect, so they'll
4653 # only be used when explicitly requested.
4654 if test "x$enable_dependency_tracking" = xyes; then
4660 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4661 # This compiler won't grok '-c -o', but also, the minuso test has
4662 # not run yet. These depmodes are late enough in the game, and
4663 # so weak that their functioning should not be impacted.
4664 am__obj=conftest.${OBJEXT-o}
4669 if depmode=$depmode \
4670 source=sub/conftest.c object=$am__obj \
4671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4673 >/dev/null 2>conftest.err &&
4674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678 # icc doesn't choke on unknown options, it will just issue warnings
4679 # or remarks (even with -Werror). So we grep stderr for any message
4680 # that says an option was ignored or not supported.
4681 # When given -MP, icc 7.0 and 7.1 complain thusly:
4682 # icc: Command line warning: ignoring option '-M'; no argument required
4683 # The diagnosis changed in icc 8.0:
4684 # icc: Command line remark: option '-MP' not supported
4685 if (grep 'ignoring option' conftest.err ||
4686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687 am_cv_CC_dependencies_compiler_type=$depmode
4696 am_cv_CC_dependencies_compiler_type=none
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4705 test "x$enable_dependency_tracking" != xno \
4706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4708 am__fastdepCC_FALSE='#'
4710 am__fastdepCC_TRUE='#'
4711 am__fastdepCC_FALSE=
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4722 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4723 # On Suns, sometimes $CPP names a directory.
4724 if test -n "$CPP" && test -d "$CPP"; then
4727 if test -z "$CPP"; then
4728 if ${ac_cv_prog_CPP+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 # Double quotes because CPP needs to be expanded
4732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4735 for ac_c_preproc_warn_flag in '' yes
4737 # Use a header file that comes with gcc, so configuring glibc
4738 # with a fresh cross-compiler works.
4739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4740 # <limits.h> exists even on freestanding compilers.
4741 # On the NeXT, cc -E runs the code through the compiler's parser,
4742 # not just through cpp. "Syntax error" is here to catch this case.
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4746 # include <limits.h>
4748 # include <assert.h>
4752 if ac_fn_c_try_cpp "$LINENO"; then :
4755 # Broken: fails on valid input.
4758 rm -f conftest.err conftest.i conftest.$ac_ext
4760 # OK, works on sane cases. Now check whether nonexistent headers
4761 # can be detected and how.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <ac_nonexistent.h>
4766 if ac_fn_c_try_cpp "$LINENO"; then :
4767 # Broken: success on invalid input.
4770 # Passes both tests.
4774 rm -f conftest.err conftest.i conftest.$ac_ext
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.i conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then :
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4792 $as_echo "$CPP" >&6; }
4794 for ac_c_preproc_warn_flag in '' yes
4796 # Use a header file that comes with gcc, so configuring glibc
4797 # with a fresh cross-compiler works.
4798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799 # <limits.h> exists even on freestanding compilers.
4800 # On the NeXT, cc -E runs the code through the compiler's parser,
4801 # not just through cpp. "Syntax error" is here to catch this case.
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4805 # include <limits.h>
4807 # include <assert.h>
4811 if ac_fn_c_try_cpp "$LINENO"; then :
4814 # Broken: fails on valid input.
4817 rm -f conftest.err conftest.i conftest.$ac_ext
4819 # OK, works on sane cases. Now check whether nonexistent headers
4820 # can be detected and how.
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <ac_nonexistent.h>
4825 if ac_fn_c_try_cpp "$LINENO"; then :
4826 # Broken: success on invalid input.
4829 # Passes both tests.
4833 rm -f conftest.err conftest.i conftest.$ac_ext
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.i conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then :
4841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details" "$LINENO" 5; }
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4855 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4856 if ${ac_cv_path_GREP+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -z "$GREP"; then
4860 ac_path_GREP_found=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4866 test -z "$as_dir" && as_dir=.
4867 for ac_prog in grep ggrep; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4870 as_fn_executable_p "$ac_path_GREP" || continue
4871 # Check for GNU ac_path_GREP and select it if it is found.
4872 # Check for GNU $ac_path_GREP
4873 case `"$ac_path_GREP" --version 2>&1` in
4875 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4878 $as_echo_n 0123456789 >"conftest.in"
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo 'GREP' >> "conftest.nl"
4885 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887 as_fn_arith $ac_count + 1 && ac_count=$as_val
4888 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_GREP="$ac_path_GREP"
4891 ac_path_GREP_max=$ac_count
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899 $ac_path_GREP_found && break 3
4904 if test -z "$ac_cv_path_GREP"; then
4905 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908 ac_cv_path_GREP=$GREP
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4913 $as_echo "$ac_cv_path_GREP" >&6; }
4914 GREP="$ac_cv_path_GREP"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4918 $as_echo_n "checking for egrep... " >&6; }
4919 if ${ac_cv_path_EGREP+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4923 then ac_cv_path_EGREP="$GREP -E"
4925 if test -z "$EGREP"; then
4926 ac_path_EGREP_found=false
4927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4932 test -z "$as_dir" && as_dir=.
4933 for ac_prog in egrep; do
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4936 as_fn_executable_p "$ac_path_EGREP" || continue
4937 # Check for GNU ac_path_EGREP and select it if it is found.
4938 # Check for GNU $ac_path_EGREP
4939 case `"$ac_path_EGREP" --version 2>&1` in
4941 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4944 $as_echo_n 0123456789 >"conftest.in"
4947 cat "conftest.in" "conftest.in" >"conftest.tmp"
4948 mv "conftest.tmp" "conftest.in"
4949 cp "conftest.in" "conftest.nl"
4950 $as_echo 'EGREP' >> "conftest.nl"
4951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953 as_fn_arith $ac_count + 1 && ac_count=$as_val
4954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4955 # Best one so far, save it but keep looking for a better one
4956 ac_cv_path_EGREP="$ac_path_EGREP"
4957 ac_path_EGREP_max=$ac_count
4959 # 10*(2^10) chars as input seems more than enough
4960 test $ac_count -gt 10 && break
4962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4965 $ac_path_EGREP_found && break 3
4970 if test -z "$ac_cv_path_EGREP"; then
4971 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4974 ac_cv_path_EGREP=$EGREP
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4980 $as_echo "$ac_cv_path_EGREP" >&6; }
4981 EGREP="$ac_cv_path_EGREP"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4985 $as_echo_n "checking for ANSI C header files... " >&6; }
4986 if ${ac_cv_header_stdc+:} false; then :
4987 $as_echo_n "(cached) " >&6
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 ac_cv_header_stdc=yes
5007 ac_cv_header_stdc=no
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 if test $ac_cv_header_stdc = yes; then
5012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 $EGREP "memchr" >/dev/null 2>&1; then :
5022 ac_cv_header_stdc=no
5028 if test $ac_cv_header_stdc = yes; then
5029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036 $EGREP "free" >/dev/null 2>&1; then :
5039 ac_cv_header_stdc=no
5045 if test $ac_cv_header_stdc = yes; then
5046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5047 if test "$cross_compiling" = yes; then :
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5054 #if ((' ' & 0x0FF) == 0x020)
5055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5058 # define ISLOWER(c) \
5059 (('a' <= (c) && (c) <= 'i') \
5060 || ('j' <= (c) && (c) <= 'r') \
5061 || ('s' <= (c) && (c) <= 'z'))
5062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5070 for (i = 0; i < 256; i++)
5071 if (XOR (islower (i), ISLOWER (i))
5072 || toupper (i) != TOUPPER (i))
5077 if ac_fn_c_try_run "$LINENO"; then :
5080 ac_cv_header_stdc=no
5082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5083 conftest.$ac_objext conftest.beam conftest.$ac_ext
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5089 $as_echo "$ac_cv_header_stdc" >&6; }
5090 if test $ac_cv_header_stdc = yes; then
5092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5098 inttypes.h stdint.h unistd.h
5100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5104 cat >>confdefs.h <<_ACEOF
5105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5115 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5122 if test "$MINIX" = yes; then
5124 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5127 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5130 $as_echo "#define _MINIX 1" >>confdefs.h
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5136 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5137 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5138 $as_echo_n "(cached) " >&6
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5143 # define __EXTENSIONS__ 1
5144 $ac_includes_default
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 ac_cv_safe_to_define___extensions__=yes
5156 ac_cv_safe_to_define___extensions__=no
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5161 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5162 test $ac_cv_safe_to_define___extensions__ = yes &&
5163 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5165 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5167 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5169 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5171 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5176 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5179 if test -n "$LD_LIBRARY_PATH"; then
5180 saved_LDFLAGS="$LDFLAGS"
5181 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5182 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5184 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5188 int main (void) { return 0; }
5191 if ac_fn_c_try_link "$LINENO"; then :
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5193 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 LDADD_FOR_TESTS_KLUDGE=""
5200 rm -f core conftest.err conftest.$ac_objext \
5201 conftest$ac_exeext conftest.$ac_ext
5202 LDFLAGS="$saved_LDFLAGS"
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_CC+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$CC"; then
5224 ac_cv_prog_CC="$CC" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 if test -n "$CC"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5246 $as_echo "$CC" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_CC"; then
5256 # Extract the first word of "gcc", so it can be a program name with args.
5257 set dummy gcc; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$ac_ct_CC"; then
5264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_CC="gcc"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5284 if test -n "$ac_ct_CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5286 $as_echo "$ac_ct_CC" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_CC" = x; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5307 if test -z "$CC"; then
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}cc; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_CC+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$CC"; then
5317 ac_cv_prog_CC="$CC" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_CC="${ac_tool_prefix}cc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 if test -n "$CC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5339 $as_echo "$CC" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5348 if test -z "$CC"; then
5349 # Extract the first word of "cc", so it can be a program name with args.
5350 set dummy cc; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_CC+:} false; then :
5354 $as_echo_n "(cached) " >&6
5356 if test -n "$CC"; then
5357 ac_cv_prog_CC="$CC" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5368 ac_prog_rejected=yes
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 if test $ac_prog_rejected = yes; then
5380 # We found a bogon in the path, so make sure we never use it.
5381 set dummy $ac_cv_prog_CC
5383 if test $# != 0; then
5384 # We chose a different compiler from the bogus one.
5385 # However, it has the same basename, so the bogon will be chosen
5386 # first if we set CC to just the basename; use the full file name.
5388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5394 if test -n "$CC"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5396 $as_echo "$CC" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5404 if test -z "$CC"; then
5405 if test -n "$ac_tool_prefix"; then
5406 for ac_prog in cl.exe
5408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_CC+:} false; then :
5413 $as_echo_n "(cached) " >&6
5415 if test -n "$CC"; then
5416 ac_cv_prog_CC="$CC" # Let the user override the test.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 if test -n "$CC"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5438 $as_echo "$CC" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5445 test -n "$CC" && break
5448 if test -z "$CC"; then
5450 for ac_prog in cl.exe
5452 # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5457 $as_echo_n "(cached) " >&6
5459 if test -n "$ac_ct_CC"; then
5460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_ac_ct_CC="$ac_prog"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5480 if test -n "$ac_ct_CC"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5482 $as_echo "$ac_ct_CC" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5489 test -n "$ac_ct_CC" && break
5492 if test "x$ac_ct_CC" = x; then
5495 case $cross_compiling:$ac_tool_warned in
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5510 as_fn_error $? "no acceptable C compiler found in \$PATH
5511 See \`config.log' for more details" "$LINENO" 5; }
5513 # Provide some information about the compiler.
5514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5517 for ac_option in --version -v -V -qversion; do
5518 { { ac_try="$ac_compiler $ac_option >&5"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5524 $as_echo "$ac_try_echo"; } >&5
5525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5527 if test -s conftest.err; then
5529 ... rest of stderr output deleted ...
5530 10q' conftest.err >conftest.er1
5531 cat conftest.er1 >&5
5533 rm -f conftest.er1 conftest.err
5534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5535 test $ac_status = 0; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5540 if ${ac_cv_c_compiler_gnu+:} false; then :
5541 $as_echo_n "(cached) " >&6
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5557 if ac_fn_c_try_compile "$LINENO"; then :
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5568 if test $ac_compiler_gnu = yes; then
5573 ac_test_CFLAGS=${CFLAGS+set}
5574 ac_save_CFLAGS=$CFLAGS
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5577 if ${ac_cv_prog_cc_g+:} false; then :
5578 $as_echo_n "(cached) " >&6
5580 ac_save_c_werror_flag=$ac_c_werror_flag
5581 ac_c_werror_flag=yes
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5595 if ac_fn_c_try_compile "$LINENO"; then :
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5610 if ac_fn_c_try_compile "$LINENO"; then :
5613 ac_c_werror_flag=$ac_save_c_werror_flag
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5626 if ac_fn_c_try_compile "$LINENO"; then :
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 ac_c_werror_flag=$ac_save_c_werror_flag
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5637 $as_echo "$ac_cv_prog_cc_g" >&6; }
5638 if test "$ac_test_CFLAGS" = set; then
5639 CFLAGS=$ac_save_CFLAGS
5640 elif test $ac_cv_prog_cc_g = yes; then
5641 if test "$GCC" = yes; then
5647 if test "$GCC" = yes; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5655 if ${ac_cv_prog_cc_c89+:} false; then :
5656 $as_echo_n "(cached) " >&6
5658 ac_cv_prog_cc_c89=no
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5666 struct buf { int x; };
5667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5668 static char *e (p, i)
5674 static char *f (char * (*g) (char **, int), char **p, ...)
5679 s = g (p, va_arg (v,int));
5684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5685 function prototypes and stuff, but not '\xHH' hex character constants.
5686 These don't provoke an error unfortunately, instead are silently treated
5687 as 'x'. The following induces an error, until -std is added to get
5688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5689 array size at least. It's necessary to write '\x00'==0 to get something
5690 that's true only with -std. */
5691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5694 inside strings and character constants. */
5696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5698 int test (int i, double x);
5699 struct s1 {int (*f) (int a);};
5700 struct s2 {int (*f) (double a);};
5701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5707 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5715 CC="$ac_save_CC $ac_arg"
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717 ac_cv_prog_cc_c89=$ac_arg
5719 rm -f core conftest.err conftest.$ac_objext
5720 test "x$ac_cv_prog_cc_c89" != "xno" && break
5722 rm -f conftest.$ac_ext
5727 case "x$ac_cv_prog_cc_c89" in
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5730 $as_echo "none needed" >&6; } ;;
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5733 $as_echo "unsupported" >&6; } ;;
5735 CC="$CC $ac_cv_prog_cc_c89"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5739 if test "x$ac_cv_prog_cc_c89" != xno; then :
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750 ac_cpp='$CPP $CPPFLAGS'
5751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5755 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5756 if ${am_cv_prog_cc_c_o+:} false; then :
5757 $as_echo_n "(cached) " >&6
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5770 # Make sure it works both with $CC and with simple cc.
5771 # Following AC_PROG_CC_C_O, we do the test twice because some
5772 # compilers refuse to overwrite an existing .o file with -o,
5773 # though they will create one.
5774 am_cv_prog_cc_c_o=yes
5776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } \
5781 && test -f conftest2.$ac_objext; then
5784 am_cv_prog_cc_c_o=no
5788 rm -f core conftest*
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5792 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5793 if test "$am_cv_prog_cc_c_o" != yes; then
5794 # Losing compiler, so override with the script.
5795 # FIXME: It is wrong to rewrite CC.
5796 # But if we don't then we get into trouble of one sort or another.
5797 # A longer-term fix would be to have automake use am__CC in this case,
5798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5799 CC="$am_aux_dir/compile $CC"
5802 ac_cpp='$CPP $CPPFLAGS'
5803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808 depcc="$CC" am_compiler_list=
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5811 $as_echo_n "checking dependency style of $depcc... " >&6; }
5812 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5813 $as_echo_n "(cached) " >&6
5815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5816 # We make a subdir and do the tests there. Otherwise we can end up
5817 # making bogus files that we don't know about and never remove. For
5818 # instance it was reported that on HP-UX the gcc test will end up
5819 # making a dummy file named 'D' -- because '-MD' means "put the output
5823 # Copy depcomp to subdir because otherwise we won't find it if we're
5824 # using a relative directory.
5825 cp "$am_depcomp" conftest.dir
5827 # We will build objects and dependencies in a subdirectory because
5828 # it helps to detect inapplicable dependency modes. For instance
5829 # both Tru64's cc and ICC support -MD to output dependencies as a
5830 # side effect of compilation, but ICC will put the dependencies in
5831 # the current directory while Tru64 will put them in the object
5835 am_cv_CC_dependencies_compiler_type=none
5836 if test "$am_compiler_list" = ""; then
5837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5840 case " $depcc " in #(
5841 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5844 for depmode in $am_compiler_list; do
5845 # Setup a source with many dependencies, because some compilers
5846 # like to wrap large dependency lists on column 80 (with \), and
5847 # we should not choose a depcomp mode which is confused by this.
5849 # We need to recreate these files for each test, as the compiler may
5850 # overwrite some of them when testing with obscure command lines.
5851 # This happens at least with the AIX C compiler.
5853 for i in 1 2 3 4 5 6; do
5854 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5855 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5856 # Solaris 10 /bin/sh.
5857 echo '/* dummy */' > sub/conftst$i.h
5859 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5861 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5862 # mode. It turns out that the SunPro C++ compiler does not properly
5863 # handle '-M -o', and we need to detect this. Also, some Intel
5864 # versions had trouble with output in subdirs.
5865 am__obj=sub/conftest.${OBJEXT-o}
5866 am__minus_obj="-o $am__obj"
5869 # This depmode causes a compiler race in universal mode.
5870 test "$am__universal" = false || continue
5873 # After this tag, mechanisms are not by side-effect, so they'll
5874 # only be used when explicitly requested.
5875 if test "x$enable_dependency_tracking" = xyes; then
5881 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5882 # This compiler won't grok '-c -o', but also, the minuso test has
5883 # not run yet. These depmodes are late enough in the game, and
5884 # so weak that their functioning should not be impacted.
5885 am__obj=conftest.${OBJEXT-o}
5890 if depmode=$depmode \
5891 source=sub/conftest.c object=$am__obj \
5892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5893 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5894 >/dev/null 2>conftest.err &&
5895 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5896 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5897 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5898 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5899 # icc doesn't choke on unknown options, it will just issue warnings
5900 # or remarks (even with -Werror). So we grep stderr for any message
5901 # that says an option was ignored or not supported.
5902 # When given -MP, icc 7.0 and 7.1 complain thusly:
5903 # icc: Command line warning: ignoring option '-M'; no argument required
5904 # The diagnosis changed in icc 8.0:
5905 # icc: Command line remark: option '-MP' not supported
5906 if (grep 'ignoring option' conftest.err ||
5907 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5908 am_cv_CC_dependencies_compiler_type=$depmode
5917 am_cv_CC_dependencies_compiler_type=none
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5922 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5923 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5926 test "x$enable_dependency_tracking" != xno \
5927 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5929 am__fastdepCC_FALSE='#'
5931 am__fastdepCC_TRUE='#'
5932 am__fastdepCC_FALSE=
5937 ac_cpp='$CPP $CPPFLAGS'
5938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5942 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5943 # On Suns, sometimes $CPP names a directory.
5944 if test -n "$CPP" && test -d "$CPP"; then
5947 if test -z "$CPP"; then
5948 if ${ac_cv_prog_CPP+:} false; then :
5949 $as_echo_n "(cached) " >&6
5951 # Double quotes because CPP needs to be expanded
5952 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5955 for ac_c_preproc_warn_flag in '' yes
5957 # Use a header file that comes with gcc, so configuring glibc
5958 # with a fresh cross-compiler works.
5959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5960 # <limits.h> exists even on freestanding compilers.
5961 # On the NeXT, cc -E runs the code through the compiler's parser,
5962 # not just through cpp. "Syntax error" is here to catch this case.
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5966 # include <limits.h>
5968 # include <assert.h>
5972 if ac_fn_c_try_cpp "$LINENO"; then :
5975 # Broken: fails on valid input.
5978 rm -f conftest.err conftest.i conftest.$ac_ext
5980 # OK, works on sane cases. Now check whether nonexistent headers
5981 # can be detected and how.
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include <ac_nonexistent.h>
5986 if ac_fn_c_try_cpp "$LINENO"; then :
5987 # Broken: success on invalid input.
5990 # Passes both tests.
5994 rm -f conftest.err conftest.i conftest.$ac_ext
5997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5998 rm -f conftest.i conftest.err conftest.$ac_ext
5999 if $ac_preproc_ok; then :
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6012 $as_echo "$CPP" >&6; }
6014 for ac_c_preproc_warn_flag in '' yes
6016 # Use a header file that comes with gcc, so configuring glibc
6017 # with a fresh cross-compiler works.
6018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6019 # <limits.h> exists even on freestanding compilers.
6020 # On the NeXT, cc -E runs the code through the compiler's parser,
6021 # not just through cpp. "Syntax error" is here to catch this case.
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6025 # include <limits.h>
6027 # include <assert.h>
6031 if ac_fn_c_try_cpp "$LINENO"; then :
6034 # Broken: fails on valid input.
6037 rm -f conftest.err conftest.i conftest.$ac_ext
6039 # OK, works on sane cases. Now check whether nonexistent headers
6040 # can be detected and how.
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <ac_nonexistent.h>
6045 if ac_fn_c_try_cpp "$LINENO"; then :
6046 # Broken: success on invalid input.
6049 # Passes both tests.
6053 rm -f conftest.err conftest.i conftest.$ac_ext
6056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6057 rm -f conftest.i conftest.err conftest.$ac_ext
6058 if $ac_preproc_ok; then :
6061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6063 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6064 See \`config.log' for more details" "$LINENO" 5; }
6068 ac_cpp='$CPP $CPPFLAGS'
6069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074 ac_cpp='$CXXCPP $CPPFLAGS'
6075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6078 if test -z "$CXX"; then
6079 if test -n "$CCC"; then
6082 if test -n "$ac_tool_prefix"; then
6083 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_CXX+:} false; then :
6090 $as_echo_n "(cached) " >&6
6092 if test -n "$CXX"; then
6093 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 if test -n "$CXX"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6115 $as_echo "$CXX" >&6; }
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6122 test -n "$CXX" && break
6125 if test -z "$CXX"; then
6127 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6129 # Extract the first word of "$ac_prog", so it can be a program name with args.
6130 set dummy $ac_prog; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 if test -n "$ac_ct_CXX"; then
6137 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_ac_ct_CXX="$ac_prog"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6157 if test -n "$ac_ct_CXX"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6159 $as_echo "$ac_ct_CXX" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6166 test -n "$ac_ct_CXX" && break
6169 if test "x$ac_ct_CXX" = x; then
6172 case $cross_compiling:$ac_tool_warned in
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6184 # Provide some information about the compiler.
6185 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6188 for ac_option in --version -v -V -qversion; do
6189 { { ac_try="$ac_compiler $ac_option >&5"
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6195 $as_echo "$ac_try_echo"; } >&5
6196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6198 if test -s conftest.err; then
6200 ... rest of stderr output deleted ...
6201 10q' conftest.err >conftest.er1
6202 cat conftest.er1 >&5
6204 rm -f conftest.er1 conftest.err
6205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206 test $ac_status = 0; }
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6210 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6211 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6212 $as_echo_n "(cached) " >&6
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6228 if ac_fn_cxx_try_compile "$LINENO"; then :
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6238 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6239 if test $ac_compiler_gnu = yes; then
6244 ac_test_CXXFLAGS=${CXXFLAGS+set}
6245 ac_save_CXXFLAGS=$CXXFLAGS
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6247 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6248 if ${ac_cv_prog_cxx_g+:} false; then :
6249 $as_echo_n "(cached) " >&6
6251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6252 ac_cxx_werror_flag=yes
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6266 if ac_fn_cxx_try_compile "$LINENO"; then :
6267 ac_cv_prog_cxx_g=yes
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6281 if ac_fn_cxx_try_compile "$LINENO"; then :
6284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6298 ac_cv_prog_cxx_g=yes
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6308 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6309 if test "$ac_test_CXXFLAGS" = set; then
6310 CXXFLAGS=$ac_save_CXXFLAGS
6311 elif test $ac_cv_prog_cxx_g = yes; then
6312 if test "$GXX" = yes; then
6318 if test "$GXX" = yes; then
6325 ac_cpp='$CPP $CPPFLAGS'
6326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330 depcc="$CXX" am_compiler_list=
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6333 $as_echo_n "checking dependency style of $depcc... " >&6; }
6334 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6335 $as_echo_n "(cached) " >&6
6337 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6338 # We make a subdir and do the tests there. Otherwise we can end up
6339 # making bogus files that we don't know about and never remove. For
6340 # instance it was reported that on HP-UX the gcc test will end up
6341 # making a dummy file named 'D' -- because '-MD' means "put the output
6345 # Copy depcomp to subdir because otherwise we won't find it if we're
6346 # using a relative directory.
6347 cp "$am_depcomp" conftest.dir
6349 # We will build objects and dependencies in a subdirectory because
6350 # it helps to detect inapplicable dependency modes. For instance
6351 # both Tru64's cc and ICC support -MD to output dependencies as a
6352 # side effect of compilation, but ICC will put the dependencies in
6353 # the current directory while Tru64 will put them in the object
6357 am_cv_CXX_dependencies_compiler_type=none
6358 if test "$am_compiler_list" = ""; then
6359 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6362 case " $depcc " in #(
6363 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6366 for depmode in $am_compiler_list; do
6367 # Setup a source with many dependencies, because some compilers
6368 # like to wrap large dependency lists on column 80 (with \), and
6369 # we should not choose a depcomp mode which is confused by this.
6371 # We need to recreate these files for each test, as the compiler may
6372 # overwrite some of them when testing with obscure command lines.
6373 # This happens at least with the AIX C compiler.
6375 for i in 1 2 3 4 5 6; do
6376 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6377 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6378 # Solaris 10 /bin/sh.
6379 echo '/* dummy */' > sub/conftst$i.h
6381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6383 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6384 # mode. It turns out that the SunPro C++ compiler does not properly
6385 # handle '-M -o', and we need to detect this. Also, some Intel
6386 # versions had trouble with output in subdirs.
6387 am__obj=sub/conftest.${OBJEXT-o}
6388 am__minus_obj="-o $am__obj"
6391 # This depmode causes a compiler race in universal mode.
6392 test "$am__universal" = false || continue
6395 # After this tag, mechanisms are not by side-effect, so they'll
6396 # only be used when explicitly requested.
6397 if test "x$enable_dependency_tracking" = xyes; then
6403 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6404 # This compiler won't grok '-c -o', but also, the minuso test has
6405 # not run yet. These depmodes are late enough in the game, and
6406 # so weak that their functioning should not be impacted.
6407 am__obj=conftest.${OBJEXT-o}
6412 if depmode=$depmode \
6413 source=sub/conftest.c object=$am__obj \
6414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6415 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6416 >/dev/null 2>conftest.err &&
6417 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6418 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6419 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6420 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6421 # icc doesn't choke on unknown options, it will just issue warnings
6422 # or remarks (even with -Werror). So we grep stderr for any message
6423 # that says an option was ignored or not supported.
6424 # When given -MP, icc 7.0 and 7.1 complain thusly:
6425 # icc: Command line warning: ignoring option '-M'; no argument required
6426 # The diagnosis changed in icc 8.0:
6427 # icc: Command line remark: option '-MP' not supported
6428 if (grep 'ignoring option' conftest.err ||
6429 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6430 am_cv_CXX_dependencies_compiler_type=$depmode
6439 am_cv_CXX_dependencies_compiler_type=none
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6444 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6445 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6448 test "x$enable_dependency_tracking" != xno \
6449 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6450 am__fastdepCXX_TRUE=
6451 am__fastdepCXX_FALSE='#'
6453 am__fastdepCXX_TRUE='#'
6454 am__fastdepCXX_FALSE=
6459 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6460 for ac_prog in gitlog-to-changelog
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6467 $as_echo_n "(cached) " >&6
6469 if test -n "$GITLOG_TO_CHANGELOG"; then
6470 ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6490 if test -n "$GITLOG_TO_CHANGELOG"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6492 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6499 test -n "$GITLOG_TO_CHANGELOG" && break
6501 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6508 VERSION_NUMBER=0x010f00
6511 # We need to compile and run a program on the build machine. A
6512 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6513 # the AC archive is broken for autoconf 2.57. Given that there is no
6514 # newer version of that macro, we assume that it is also broken for
6515 # autoconf 2.61 and thus we use a simple but usually sufficient
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6518 $as_echo_n "checking for cc for build... " >&6; }
6519 if test "$cross_compiling" = "yes"; then
6520 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6522 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6525 $as_echo "$CC_FOR_BUILD" >&6; }
6529 # Don't default to build static libs.
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6534 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6539 macro_version='2.4.2'
6540 macro_revision='1.3337'
6554 ltmain="$ac_aux_dir/ltmain.sh"
6556 # Backslashify metacharacters that are still active within
6557 # double-quoted strings.
6558 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6560 # Same as above, but do not quote variable references.
6561 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6563 # Sed substitution to delay expansion of an escaped shell variable in a
6564 # double_quote_subst'ed string.
6565 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6567 # Sed substitution to delay expansion of an escaped single quote.
6568 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6570 # Sed substitution to avoid accidental globbing in evaled expressions
6571 no_glob_subst='s/\*/\\\*/g'
6573 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6574 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6575 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6578 $as_echo_n "checking how to print strings... " >&6; }
6579 # Test print first, because it will be a builtin if present.
6580 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6581 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6583 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6586 # Use this function as a fallback that always works.
6587 func_fallback_echo ()
6589 eval 'cat <<_LTECHO_EOF
6593 ECHO='func_fallback_echo'
6596 # func_echo_all arg...
6597 # Invoke $ECHO with all args, space-separated.
6604 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6605 $as_echo "printf" >&6; } ;;
6606 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6607 $as_echo "print -r" >&6; } ;;
6608 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6609 $as_echo "cat" >&6; } ;;
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6626 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6627 if ${ac_cv_path_SED+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6631 for ac_i in 1 2 3 4 5 6 7; do
6632 ac_script="$ac_script$as_nl$ac_script"
6634 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6635 { ac_script=; unset ac_script;}
6636 if test -z "$SED"; then
6637 ac_path_SED_found=false
6638 # Loop through the user's path and test for each of PROGNAME-LIST
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_prog in sed gsed; do
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6647 as_fn_executable_p "$ac_path_SED" || continue
6648 # Check for GNU ac_path_SED and select it if it is found.
6649 # Check for GNU $ac_path_SED
6650 case `"$ac_path_SED" --version 2>&1` in
6652 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6655 $as_echo_n 0123456789 >"conftest.in"
6658 cat "conftest.in" "conftest.in" >"conftest.tmp"
6659 mv "conftest.tmp" "conftest.in"
6660 cp "conftest.in" "conftest.nl"
6661 $as_echo '' >> "conftest.nl"
6662 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6664 as_fn_arith $ac_count + 1 && ac_count=$as_val
6665 if test $ac_count -gt ${ac_path_SED_max-0}; then
6666 # Best one so far, save it but keep looking for a better one
6667 ac_cv_path_SED="$ac_path_SED"
6668 ac_path_SED_max=$ac_count
6670 # 10*(2^10) chars as input seems more than enough
6671 test $ac_count -gt 10 && break
6673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6676 $ac_path_SED_found && break 3
6681 if test -z "$ac_cv_path_SED"; then
6682 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6690 $as_echo "$ac_cv_path_SED" >&6; }
6691 SED="$ac_cv_path_SED"
6694 test -z "$SED" && SED=sed
6695 Xsed="$SED -e 1s/^X//"
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6708 $as_echo_n "checking for fgrep... " >&6; }
6709 if ${ac_cv_path_FGREP+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6713 then ac_cv_path_FGREP="$GREP -F"
6715 if test -z "$FGREP"; then
6716 ac_path_FGREP_found=false
6717 # Loop through the user's path and test for each of PROGNAME-LIST
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6722 test -z "$as_dir" && as_dir=.
6723 for ac_prog in fgrep; do
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6726 as_fn_executable_p "$ac_path_FGREP" || continue
6727 # Check for GNU ac_path_FGREP and select it if it is found.
6728 # Check for GNU $ac_path_FGREP
6729 case `"$ac_path_FGREP" --version 2>&1` in
6731 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6734 $as_echo_n 0123456789 >"conftest.in"
6737 cat "conftest.in" "conftest.in" >"conftest.tmp"
6738 mv "conftest.tmp" "conftest.in"
6739 cp "conftest.in" "conftest.nl"
6740 $as_echo 'FGREP' >> "conftest.nl"
6741 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6743 as_fn_arith $ac_count + 1 && ac_count=$as_val
6744 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6745 # Best one so far, save it but keep looking for a better one
6746 ac_cv_path_FGREP="$ac_path_FGREP"
6747 ac_path_FGREP_max=$ac_count
6749 # 10*(2^10) chars as input seems more than enough
6750 test $ac_count -gt 10 && break
6752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6755 $ac_path_FGREP_found && break 3
6760 if test -z "$ac_cv_path_FGREP"; then
6761 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6764 ac_cv_path_FGREP=$FGREP
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6770 $as_echo "$ac_cv_path_FGREP" >&6; }
6771 FGREP="$ac_cv_path_FGREP"
6774 test -z "$GREP" && GREP=grep
6794 # Check whether --with-gnu-ld was given.
6795 if test "${with_gnu_ld+set}" = set; then :
6796 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6802 if test "$GCC" = yes; then
6803 # Check if gcc -print-prog-name=ld gives a path.
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6805 $as_echo_n "checking for ld used by $CC... " >&6; }
6808 # gcc leaves a trailing carriage return which upsets mingw
6809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6814 # Accept absolute paths.
6816 re_direlt='/[^/][^/]*/\.\./'
6817 # Canonicalize the pathname of ld
6818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6822 test -z "$LD" && LD="$ac_prog"
6825 # If it fails, then pretend we aren't using GCC.
6829 # If it is relative, then search for the first ld in PATH.
6833 elif test "$with_gnu_ld" = yes; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6835 $as_echo_n "checking for GNU ld... " >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6838 $as_echo_n "checking for non-GNU ld... " >&6; }
6840 if ${lt_cv_path_LD+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -z "$LD"; then
6844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6845 for ac_dir in $PATH; do
6847 test -z "$ac_dir" && ac_dir=.
6848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6849 lt_cv_path_LD="$ac_dir/$ac_prog"
6850 # Check to see if the program is GNU ld. I'd rather use --version,
6851 # but apparently some variants of GNU ld only accept -v.
6852 # Break only if it was the GNU/non-GNU ld that we prefer.
6853 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6854 *GNU* | *'with BFD'*)
6855 test "$with_gnu_ld" != no && break
6858 test "$with_gnu_ld" != yes && break
6865 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6870 if test -n "$LD"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6872 $as_echo "$LD" >&6; }
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6877 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6880 if ${lt_cv_prog_gnu_ld+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6884 case `$LD -v 2>&1 </dev/null` in
6885 *GNU* | *'with BFD'*)
6886 lt_cv_prog_gnu_ld=yes
6889 lt_cv_prog_gnu_ld=no
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6894 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6895 with_gnu_ld=$lt_cv_prog_gnu_ld
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6906 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6907 if ${lt_cv_path_NM+:} false; then :
6908 $as_echo_n "(cached) " >&6
6910 if test -n "$NM"; then
6911 # Let the user override the test.
6914 lt_nm_to_check="${ac_tool_prefix}nm"
6915 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6916 lt_nm_to_check="$lt_nm_to_check nm"
6918 for lt_tmp_nm in $lt_nm_to_check; do
6919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6920 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6922 test -z "$ac_dir" && ac_dir=.
6923 tmp_nm="$ac_dir/$lt_tmp_nm"
6924 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6925 # Check to see if the nm accepts a BSD-compat flag.
6926 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6927 # nm: unknown option "B" ignored
6928 # Tru64's nm complains that /dev/null is an invalid object file
6929 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6930 */dev/null* | *'Invalid file or object type'*)
6931 lt_cv_path_NM="$tmp_nm -B"
6935 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6937 lt_cv_path_NM="$tmp_nm -p"
6941 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6942 continue # so that we can try to find one that supports BSD flags
6951 : ${lt_cv_path_NM=no}
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6955 $as_echo "$lt_cv_path_NM" >&6; }
6956 if test "$lt_cv_path_NM" != "no"; then
6959 # Didn't find any BSD compatible name lister, look for dumpbin.
6960 if test -n "$DUMPBIN"; then :
6961 # Let the user override the test.
6963 if test -n "$ac_tool_prefix"; then
6964 for ac_prog in dumpbin "link -dump"
6966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_DUMPBIN+:} false; then :
6971 $as_echo_n "(cached) " >&6
6973 if test -n "$DUMPBIN"; then
6974 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 DUMPBIN=$ac_cv_prog_DUMPBIN
6994 if test -n "$DUMPBIN"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6996 $as_echo "$DUMPBIN" >&6; }
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7003 test -n "$DUMPBIN" && break
7006 if test -z "$DUMPBIN"; then
7007 ac_ct_DUMPBIN=$DUMPBIN
7008 for ac_prog in dumpbin "link -dump"
7010 # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy $ac_prog; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$ac_ct_DUMPBIN"; then
7018 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7038 if test -n "$ac_ct_DUMPBIN"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7040 $as_echo "$ac_ct_DUMPBIN" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7047 test -n "$ac_ct_DUMPBIN" && break
7050 if test "x$ac_ct_DUMPBIN" = x; then
7053 case $cross_compiling:$ac_tool_warned in
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7059 DUMPBIN=$ac_ct_DUMPBIN
7063 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7065 DUMPBIN="$DUMPBIN -symbols"
7073 if test "$DUMPBIN" != ":"; then
7077 test -z "$NM" && NM=nm
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7085 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7086 if ${lt_cv_nm_interface+:} false; then :
7087 $as_echo_n "(cached) " >&6
7089 lt_cv_nm_interface="BSD nm"
7090 echo "int some_variable = 0;" > conftest.$ac_ext
7091 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7092 (eval "$ac_compile" 2>conftest.err)
7093 cat conftest.err >&5
7094 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7095 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7096 cat conftest.err >&5
7097 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7098 cat conftest.out >&5
7099 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7100 lt_cv_nm_interface="MS dumpbin"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7105 $as_echo "$lt_cv_nm_interface" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7108 $as_echo_n "checking whether ln -s works... " >&6; }
7110 if test "$LN_S" = "ln -s"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112 $as_echo "yes" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7115 $as_echo "no, using $LN_S" >&6; }
7118 # find the maximum length of command line arguments
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7120 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7121 if ${lt_cv_sys_max_cmd_len+:} false; then :
7122 $as_echo_n "(cached) " >&6
7129 # On DJGPP, this test can blow up pretty badly due to problems in libc
7130 # (any single argument exceeding 2000 bytes causes a buffer overrun
7131 # during glob expansion). Even if it were fixed, the result of this
7132 # check would be larger than it should be.
7133 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7137 # Under GNU Hurd, this test is not required because there is
7138 # no limit to the length of command line arguments.
7139 # Libtool will interpret -1 as no limit whatsoever
7140 lt_cv_sys_max_cmd_len=-1;
7143 cygwin* | mingw* | cegcc*)
7144 # On Win9x/ME, this test blows up -- it succeeds, but takes
7145 # about 5 minutes as the teststring grows exponentially.
7146 # Worse, since 9x/ME are not pre-emptively multitasking,
7147 # you end up with a "frozen" computer, even though with patience
7148 # the test eventually succeeds (with a max line length of 256k).
7149 # Instead, let's just punt: use the minimum linelength reported by
7150 # all of the supported platforms: 8192 (on NT/2K/XP).
7151 lt_cv_sys_max_cmd_len=8192;
7155 # On MiNT this can take a long time and run out of memory.
7156 lt_cv_sys_max_cmd_len=8192;
7160 # On AmigaOS with pdksh, this test takes hours, literally.
7161 # So we just punt and use a minimum line length of 8192.
7162 lt_cv_sys_max_cmd_len=8192;
7165 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7166 # This has been around since 386BSD, at least. Likely further.
7167 if test -x /sbin/sysctl; then
7168 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7169 elif test -x /usr/sbin/sysctl; then
7170 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7172 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7174 # And add a safety zone
7175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7180 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7181 lt_cv_sys_max_cmd_len=196608
7185 # The test takes a long time on OS/2.
7186 lt_cv_sys_max_cmd_len=8192
7190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7192 # nice to cause kernel panics so lets avoid the loop below.
7193 # First set a reasonable default.
7194 lt_cv_sys_max_cmd_len=16384
7196 if test -x /sbin/sysconfig; then
7197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7198 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7203 lt_cv_sys_max_cmd_len=102400
7205 sysv5* | sco5v6* | sysv4.2uw2*)
7206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7207 if test -n "$kargmax"; then
7208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7210 lt_cv_sys_max_cmd_len=32768
7214 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7215 if test -n "$lt_cv_sys_max_cmd_len"; then
7216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7219 # Make teststring a little bigger before we do anything with it.
7220 # a 1K string should be a reasonable start.
7221 for i in 1 2 3 4 5 6 7 8 ; do
7222 teststring=$teststring$teststring
7224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7225 # If test is not a shell built-in, we'll probably end up computing a
7226 # maximum length that is only half of the actual maximum length, but
7228 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7229 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7230 test $i != 17 # 1/2 MB should be enough
7233 teststring=$teststring$teststring
7235 # Only check the string length outside the loop.
7236 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7238 # Add a significant safety factor because C++ compilers can tack on
7239 # massive amounts of additional arguments before passing them to the
7240 # linker. It appears as though 1/2 is a usable value.
7241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7248 if test -n $lt_cv_sys_max_cmd_len ; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7250 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7253 $as_echo "none" >&6; }
7255 max_cmd_len=$lt_cv_sys_max_cmd_len
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7267 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7268 # Try some XSI features
7271 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7273 && eval 'test $(( 1 + 1 )) -eq 2 \
7274 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7277 $as_echo "$xsi_shell" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7281 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7283 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7285 && lt_shell_append=yes
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7287 $as_echo "$lt_shell_append" >&6; }
7290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7300 # test EBCDIC or ASCII
7301 case `echo X|tr X '\101'` in
7302 A) # ASCII based system
7303 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7304 lt_SP2NL='tr \040 \012'
7305 lt_NL2SP='tr \015\012 \040\040'
7307 *) # EBCDIC based system
7308 lt_SP2NL='tr \100 \n'
7309 lt_NL2SP='tr \r\n \100\100'
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7322 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7323 if ${lt_cv_to_host_file_cmd+:} false; then :
7324 $as_echo_n "(cached) " >&6
7329 *-*-mingw* ) # actually msys
7330 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7333 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7335 * ) # otherwise, assume *nix
7336 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7342 *-*-mingw* ) # actually msys
7343 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7346 lt_cv_to_host_file_cmd=func_convert_file_noop
7348 * ) # otherwise, assume *nix
7349 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7353 * ) # unhandled hosts (and "normal" native builds)
7354 lt_cv_to_host_file_cmd=func_convert_file_noop
7360 to_host_file_cmd=$lt_cv_to_host_file_cmd
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7362 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7369 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7370 if ${lt_cv_to_tool_file_cmd+:} false; then :
7371 $as_echo_n "(cached) " >&6
7373 #assume ordinary cross tools, or native build.
7374 lt_cv_to_tool_file_cmd=func_convert_file_noop
7378 *-*-mingw* ) # actually msys
7379 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7387 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7389 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7396 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7397 if ${lt_cv_ld_reload_flag+:} false; then :
7398 $as_echo_n "(cached) " >&6
7400 lt_cv_ld_reload_flag='-r'
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7403 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7404 reload_flag=$lt_cv_ld_reload_flag
7405 case $reload_flag in
7407 *) reload_flag=" $reload_flag" ;;
7409 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7411 cygwin* | mingw* | pw32* | cegcc*)
7412 if test "$GCC" != yes; then
7417 if test "$GCC" = yes; then
7418 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7433 if test -n "$ac_tool_prefix"; then
7434 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7435 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_OBJDUMP+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$OBJDUMP"; then
7442 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 OBJDUMP=$ac_cv_prog_OBJDUMP
7462 if test -n "$OBJDUMP"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7464 $as_echo "$OBJDUMP" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7472 if test -z "$ac_cv_prog_OBJDUMP"; then
7473 ac_ct_OBJDUMP=$OBJDUMP
7474 # Extract the first word of "objdump", so it can be a program name with args.
7475 set dummy objdump; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$ac_ct_OBJDUMP"; then
7482 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7502 if test -n "$ac_ct_OBJDUMP"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7504 $as_echo "$ac_ct_OBJDUMP" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7510 if test "x$ac_ct_OBJDUMP" = x; then
7513 case $cross_compiling:$ac_tool_warned in
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7519 OBJDUMP=$ac_ct_OBJDUMP
7522 OBJDUMP="$ac_cv_prog_OBJDUMP"
7525 test -z "$OBJDUMP" && OBJDUMP=objdump
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7533 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7534 if ${lt_cv_deplibs_check_method+:} false; then :
7535 $as_echo_n "(cached) " >&6
7537 lt_cv_file_magic_cmd='$MAGIC_CMD'
7538 lt_cv_file_magic_test_file=
7539 lt_cv_deplibs_check_method='unknown'
7540 # Need to set the preceding variable on all platforms that support
7541 # interlibrary dependencies.
7542 # 'none' -- dependencies not supported.
7543 # `unknown' -- same as none, but documents that we really don't know.
7544 # 'pass_all' -- all dependencies passed with no checks.
7545 # 'test_compile' -- check by making test program.
7546 # 'file_magic [[regex]]' -- check by looking for files in library path
7547 # which responds to the $file_magic_cmd with a given extended regex.
7548 # If you have `file' or equivalent on your system and you're not sure
7549 # whether `pass_all' will *always* work, you probably want this one.
7553 lt_cv_deplibs_check_method=pass_all
7557 lt_cv_deplibs_check_method=pass_all
7561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7562 lt_cv_file_magic_cmd='/usr/bin/file -L'
7563 lt_cv_file_magic_test_file=/shlib/libc.so
7567 # func_win32_libid is a shell function defined in ltmain.sh
7568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7569 lt_cv_file_magic_cmd='func_win32_libid'
7573 # Base MSYS/MinGW do not provide the 'file' command needed by
7574 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7575 # unless we find 'file', for example because we are cross-compiling.
7576 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7577 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7579 lt_cv_file_magic_cmd='func_win32_libid'
7581 # Keep this pattern in sync with the one in func_win32_libid.
7582 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7583 lt_cv_file_magic_cmd='$OBJDUMP -f'
7588 # use the weaker test based on 'objdump'. See mingw*.
7589 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7590 lt_cv_file_magic_cmd='$OBJDUMP -f'
7593 darwin* | rhapsody*)
7594 lt_cv_deplibs_check_method=pass_all
7597 freebsd* | dragonfly*)
7598 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7601 # Not sure whether the presence of OpenBSD here was a mistake.
7602 # Let's accept both of them until this is cleared up.
7603 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7604 lt_cv_file_magic_cmd=/usr/bin/file
7605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7609 lt_cv_deplibs_check_method=pass_all
7614 lt_cv_deplibs_check_method=pass_all
7618 lt_cv_deplibs_check_method=pass_all
7621 hpux10.20* | hpux11*)
7622 lt_cv_file_magic_cmd=/usr/bin/file
7625 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7626 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7629 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]'
7630 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7634 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7640 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7644 irix5* | irix6* | nonstopux*)
7646 *-32|*"-32 ") libmagic=32-bit;;
7647 *-n32|*"-n32 ") libmagic=N32;;
7648 *-64|*"-64 ") libmagic=64-bit;;
7649 *) libmagic=never-match;;
7651 lt_cv_deplibs_check_method=pass_all
7654 # This must be glibc/ELF.
7655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7656 lt_cv_deplibs_check_method=pass_all
7659 netbsd* | netbsdelf*-gnu)
7660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7669 lt_cv_file_magic_cmd=/usr/bin/file
7670 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7674 lt_cv_deplibs_check_method=pass_all
7678 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7685 osf3* | osf4* | osf5*)
7686 lt_cv_deplibs_check_method=pass_all
7690 lt_cv_deplibs_check_method=pass_all
7694 lt_cv_deplibs_check_method=pass_all
7697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7698 lt_cv_deplibs_check_method=pass_all
7702 case $host_vendor in
7704 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]'
7705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7708 lt_cv_deplibs_check_method=pass_all
7711 lt_cv_file_magic_cmd='/bin/file'
7712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7715 lt_cv_file_magic_cmd='/bin/file'
7716 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7717 lt_cv_file_magic_test_file=/lib/libc.so
7720 lt_cv_deplibs_check_method=pass_all
7723 lt_cv_deplibs_check_method=pass_all
7729 lt_cv_deplibs_check_method=pass_all
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7735 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7739 if test "$build" = "$host"; then
7742 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7745 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7751 file_magic_cmd=$lt_cv_file_magic_cmd
7752 deplibs_check_method=$lt_cv_deplibs_check_method
7753 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7776 if test -n "$ac_tool_prefix"; then
7777 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_DLLTOOL+:} false; then :
7782 $as_echo_n "(cached) " >&6
7784 if test -n "$DLLTOOL"; then
7785 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 DLLTOOL=$ac_cv_prog_DLLTOOL
7805 if test -n "$DLLTOOL"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7807 $as_echo "$DLLTOOL" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7815 if test -z "$ac_cv_prog_DLLTOOL"; then
7816 ac_ct_DLLTOOL=$DLLTOOL
7817 # Extract the first word of "dlltool", so it can be a program name with args.
7818 set dummy dlltool; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$ac_ct_DLLTOOL"; then
7825 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7845 if test -n "$ac_ct_DLLTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7847 $as_echo "$ac_ct_DLLTOOL" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7853 if test "x$ac_ct_DLLTOOL" = x; then
7856 case $cross_compiling:$ac_tool_warned in
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7862 DLLTOOL=$ac_ct_DLLTOOL
7865 DLLTOOL="$ac_cv_prog_DLLTOOL"
7868 test -z "$DLLTOOL" && DLLTOOL=dlltool
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7877 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7878 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 lt_cv_sharedlib_from_linklib_cmd='unknown'
7884 cygwin* | mingw* | pw32* | cegcc*)
7885 # two different shell functions defined in ltmain.sh
7886 # decide which to use based on capabilities of $DLLTOOL
7887 case `$DLLTOOL --help 2>&1` in
7888 *--identify-strict*)
7889 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7892 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7897 # fallback: assume linklib IS sharedlib
7898 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7904 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7905 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7906 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7914 if test -n "$ac_tool_prefix"; then
7917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_AR+:} false; then :
7922 $as_echo_n "(cached) " >&6
7924 if test -n "$AR"; then
7925 ac_cv_prog_AR="$AR" # Let the user override the test.
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 if test -n "$AR"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7947 $as_echo "$AR" >&6; }
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7954 test -n "$AR" && break
7957 if test -z "$AR"; then
7961 # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7966 $as_echo_n "(cached) " >&6
7968 if test -n "$ac_ct_AR"; then
7969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_ac_ct_AR="$ac_prog"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7989 if test -n "$ac_ct_AR"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7991 $as_echo "$ac_ct_AR" >&6; }
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7998 test -n "$ac_ct_AR" && break
8001 if test "x$ac_ct_AR" = x; then
8004 case $cross_compiling:$ac_tool_warned in
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008 ac_tool_warned=yes ;;
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8028 $as_echo_n "checking for archiver @FILE support... " >&6; }
8029 if ${lt_cv_ar_at_file+:} false; then :
8030 $as_echo_n "(cached) " >&6
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8044 if ac_fn_c_try_compile "$LINENO"; then :
8045 echo conftest.$ac_objext > conftest.lst
8046 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8048 (eval $lt_ar_try) 2>&5
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }
8052 if test "$ac_status" -eq 0; then
8053 # Ensure the archiver fails upon bogus file names.
8054 rm -f conftest.$ac_objext libconftest.a
8055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8056 (eval $lt_ar_try) 2>&5
8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }
8060 if test "$ac_status" -ne 0; then
8064 rm -f conftest.* libconftest.a
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8071 $as_echo "$lt_cv_ar_at_file" >&6; }
8073 if test "x$lt_cv_ar_at_file" = xno; then
8076 archiver_list_spec=$lt_cv_ar_at_file
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}strip; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_STRIP+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 if test -n "$STRIP"; then
8094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 STRIP=$ac_cv_prog_STRIP
8114 if test -n "$STRIP"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8116 $as_echo "$STRIP" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8124 if test -z "$ac_cv_prog_STRIP"; then
8126 # Extract the first word of "strip", so it can be a program name with args.
8127 set dummy strip; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8131 $as_echo_n "(cached) " >&6
8133 if test -n "$ac_ct_STRIP"; then
8134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_ac_ct_STRIP="strip"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8154 if test -n "$ac_ct_STRIP"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8156 $as_echo "$ac_ct_STRIP" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8162 if test "x$ac_ct_STRIP" = x; then
8165 case $cross_compiling:$ac_tool_warned in
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8174 STRIP="$ac_cv_prog_STRIP"
8177 test -z "$STRIP" && STRIP=:
8184 if test -n "$ac_tool_prefix"; then
8185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_RANLIB+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 if test -n "$RANLIB"; then
8193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 RANLIB=$ac_cv_prog_RANLIB
8213 if test -n "$RANLIB"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8215 $as_echo "$RANLIB" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8223 if test -z "$ac_cv_prog_RANLIB"; then
8224 ac_ct_RANLIB=$RANLIB
8225 # Extract the first word of "ranlib", so it can be a program name with args.
8226 set dummy ranlib; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$ac_ct_RANLIB"; then
8233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_ac_ct_RANLIB="ranlib"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8253 if test -n "$ac_ct_RANLIB"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8255 $as_echo "$ac_ct_RANLIB" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8261 if test "x$ac_ct_RANLIB" = x; then
8264 case $cross_compiling:$ac_tool_warned in
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8270 RANLIB=$ac_ct_RANLIB
8273 RANLIB="$ac_cv_prog_RANLIB"
8276 test -z "$RANLIB" && RANLIB=:
8283 # Determine commands to create old-style static archives.
8284 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8285 old_postinstall_cmds='chmod 644 $oldlib'
8286 old_postuninstall_cmds=
8288 if test -n "$RANLIB"; then
8291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8294 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8297 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8302 lock_old_archive_extraction=yes ;;
8304 lock_old_archive_extraction=no ;;
8345 # If no C compiler was specified, use CC.
8348 # If no C compiler flags were specified, use CFLAGS.
8349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8351 # Allow CC to be a program name with arguments.
8355 # Check for command to grab the raw symbol name followed by C symbol from nm.
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8357 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8358 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8359 $as_echo_n "(cached) " >&6
8362 # These are sane defaults that work on at least a few old systems.
8363 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8365 # Character class describing NM global symbol codes.
8366 symcode='[BCDEGRST]'
8368 # Regexp to match symbols that can be accessed directly from C.
8369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8371 # Define system-specific variables.
8376 cygwin* | mingw* | pw32* | cegcc*)
8377 symcode='[ABCDGISTW]'
8380 if test "$host_cpu" = ia64; then
8381 symcode='[ABCDEGRST]'
8385 symcode='[BCDEGRST]'
8388 symcode='[BCDEGQRST]'
8399 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8407 # If we're using GNU nm, then use its standard symbol codes.
8408 case `$NM -V 2>&1` in
8409 *GNU* | *'with BFD'*)
8410 symcode='[ABCDGIRSTW]' ;;
8413 # Transform an extracted symbol line into a proper C declaration.
8414 # Some systems (esp. on ia64) link data and code symbols differently,
8415 # so use this general approach.
8416 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8418 # Transform an extracted symbol line into symbol name and symbol address
8419 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8420 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'"
8422 # Handle CRLF in mingw tool chain
8426 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8430 # Try without a prefix underscore, then with it.
8431 for ac_symprfx in "" "_"; do
8433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8434 symxfrm="\\1 $ac_symprfx\\2 \\2"
8436 # Write the raw and C identifiers.
8437 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8438 # Fake it for dumpbin and say T for any non-static function
8439 # and D for any global variable.
8440 # Also find C++ and __fastcall symbols from MSVC++,
8441 # which start with @ or ?.
8442 lt_cv_sys_global_symbol_pipe="$AWK '"\
8443 " {last_section=section; section=\$ 3};"\
8444 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8445 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8446 " \$ 0!~/External *\|/{next};"\
8447 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8448 " {if(hide[section]) next};"\
8449 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8450 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8451 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8452 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8453 " ' prfx=^$ac_symprfx"
8455 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8457 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8459 # Check to see that the pipe works correctly.
8463 cat > conftest.$ac_ext <<_LT_EOF
8468 void nm_test_func(void);
8469 void nm_test_func(void){}
8473 int main(){nm_test_var='a';nm_test_func();return(0);}
8476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8477 (eval $ac_compile) 2>&5
8479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8480 test $ac_status = 0; }; then
8481 # Now try to grab the symbols.
8483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8484 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8487 test $ac_status = 0; } && test -s "$nlist"; then
8488 # Try sorting and uniquifying the output.
8489 if sort "$nlist" | uniq > "$nlist"T; then
8490 mv -f "$nlist"T "$nlist"
8495 # Make sure that we snagged all the symbols we need.
8496 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8497 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8498 cat <<_LT_EOF > conftest.$ac_ext
8499 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8500 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8501 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8502 relocations are performed -- see ld's documentation on pseudo-relocs. */
8503 # define LT_DLSYM_CONST
8504 #elif defined(__osf__)
8505 /* This system does not cope well with relocations in const data. */
8506 # define LT_DLSYM_CONST
8508 # define LT_DLSYM_CONST const
8516 # Now generate the symbol file.
8517 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8519 cat <<_LT_EOF >> conftest.$ac_ext
8521 /* The mapping between symbol names and symbols. */
8522 LT_DLSYM_CONST struct {
8526 lt__PROGRAM__LTX_preloaded_symbols[] =
8528 { "@PROGRAM@", (void *) 0 },
8530 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8531 cat <<\_LT_EOF >> conftest.$ac_ext
8535 /* This works around a problem in FreeBSD linker */
8536 #ifdef FREEBSD_WORKAROUND
8537 static const void *lt_preloaded_setup() {
8538 return lt__PROGRAM__LTX_preloaded_symbols;
8546 # Now try linking the two files.
8547 mv conftest.$ac_objext conftstm.$ac_objext
8548 lt_globsym_save_LIBS=$LIBS
8549 lt_globsym_save_CFLAGS=$CFLAGS
8550 LIBS="conftstm.$ac_objext"
8551 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8553 (eval $ac_link) 2>&5
8555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8556 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8559 LIBS=$lt_globsym_save_LIBS
8560 CFLAGS=$lt_globsym_save_CFLAGS
8562 echo "cannot find nm_test_func in $nlist" >&5
8565 echo "cannot find nm_test_var in $nlist" >&5
8568 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8571 echo "$progname: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 rm -rf conftest* conftst*
8576 # Do not use the global_symbol_pipe unless it works.
8577 if test "$pipe_works" = yes; then
8580 lt_cv_sys_global_symbol_pipe=
8586 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8587 lt_cv_sys_global_symbol_to_cdecl=
8589 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8591 $as_echo "failed" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8594 $as_echo "ok" >&6; }
8597 # Response file support.
8598 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8599 nm_file_list_spec='@'
8600 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8601 nm_file_list_spec='@'
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8631 $as_echo_n "checking for sysroot... " >&6; }
8633 # Check whether --with-sysroot was given.
8634 if test "${with_sysroot+set}" = set; then :
8635 withval=$with_sysroot;
8642 case ${with_sysroot} in #(
8644 if test "$GCC" = yes; then
8645 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8649 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8655 $as_echo "${with_sysroot}" >&6; }
8656 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8661 $as_echo "${lt_sysroot:-no}" >&6; }
8667 # Check whether --enable-libtool-lock was given.
8668 if test "${enable_libtool_lock+set}" = set; then :
8669 enableval=$enable_libtool_lock;
8672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8674 # Some flags need to be propagated to the compiler or linker for good
8678 # Find out which ABI we are using.
8679 echo 'int i;' > conftest.$ac_ext
8680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8681 (eval $ac_compile) 2>&5
8683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8684 test $ac_status = 0; }; then
8685 case `/usr/bin/file conftest.$ac_objext` in
8697 # Find out which ABI we are using.
8698 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8700 (eval $ac_compile) 2>&5
8702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703 test $ac_status = 0; }; then
8704 if test "$lt_cv_prog_gnu_ld" = yes; then
8705 case `/usr/bin/file conftest.$ac_objext` in
8707 LD="${LD-ld} -melf32bsmip"
8710 LD="${LD-ld} -melf32bmipn32"
8713 LD="${LD-ld} -melf64bmip"
8717 case `/usr/bin/file conftest.$ac_objext` in
8733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8735 # Find out which ABI we are using.
8736 echo 'int i;' > conftest.$ac_ext
8737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8738 (eval $ac_compile) 2>&5
8740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741 test $ac_status = 0; }; then
8742 case `/usr/bin/file conftest.o` in
8745 x86_64-*kfreebsd*-gnu)
8746 LD="${LD-ld} -m elf_i386_fbsd"
8749 LD="${LD-ld} -m elf_i386"
8751 ppc64-*linux*|powerpc64-*linux*)
8752 LD="${LD-ld} -m elf32ppclinux"
8755 LD="${LD-ld} -m elf_s390"
8758 LD="${LD-ld} -m elf32_sparc"
8764 x86_64-*kfreebsd*-gnu)
8765 LD="${LD-ld} -m elf_x86_64_fbsd"
8768 LD="${LD-ld} -m elf_x86_64"
8770 ppc*-*linux*|powerpc*-*linux*)
8771 LD="${LD-ld} -m elf64ppc"
8773 s390*-*linux*|s390*-*tpf*)
8774 LD="${LD-ld} -m elf64_s390"
8777 LD="${LD-ld} -m elf64_sparc"
8787 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8788 SAVE_CFLAGS="$CFLAGS"
8789 CFLAGS="$CFLAGS -belf"
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8791 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8792 if ${lt_cv_cc_needs_belf+:} false; then :
8793 $as_echo_n "(cached) " >&6
8796 ac_cpp='$CPP $CPPFLAGS'
8797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8812 if ac_fn_c_try_link "$LINENO"; then :
8813 lt_cv_cc_needs_belf=yes
8815 lt_cv_cc_needs_belf=no
8817 rm -f core conftest.err conftest.$ac_objext \
8818 conftest$ac_exeext conftest.$ac_ext
8820 ac_cpp='$CPP $CPPFLAGS'
8821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8827 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8828 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8829 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8830 CFLAGS="$SAVE_CFLAGS"
8834 # Find out which ABI we are using.
8835 echo 'int i;' > conftest.$ac_ext
8836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8837 (eval $ac_compile) 2>&5
8839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8840 test $ac_status = 0; }; then
8841 case `/usr/bin/file conftest.o` in
8843 case $lt_cv_prog_gnu_ld in
8847 LD="${LD-ld} -m elf_x86_64"
8850 LD="${LD-ld} -m elf64_sparc"
8853 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8854 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8859 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8871 need_locks="$enable_libtool_lock"
8873 if test -n "$ac_tool_prefix"; then
8874 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8875 set dummy ${ac_tool_prefix}mt; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8879 $as_echo_n "(cached) " >&6
8881 if test -n "$MANIFEST_TOOL"; then
8882 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8902 if test -n "$MANIFEST_TOOL"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8904 $as_echo "$MANIFEST_TOOL" >&6; }
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8912 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8913 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8914 # Extract the first word of "mt", so it can be a program name with args.
8915 set dummy mt; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8919 $as_echo_n "(cached) " >&6
8921 if test -n "$ac_ct_MANIFEST_TOOL"; then
8922 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8942 if test -n "$ac_ct_MANIFEST_TOOL"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8944 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8950 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8953 case $cross_compiling:$ac_tool_warned in
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8957 ac_tool_warned=yes ;;
8959 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8962 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8965 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8967 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8968 if ${lt_cv_path_mainfest_tool+:} false; then :
8969 $as_echo_n "(cached) " >&6
8971 lt_cv_path_mainfest_tool=no
8972 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8973 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8974 cat conftest.err >&5
8975 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8976 lt_cv_path_mainfest_tool=yes
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8981 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8982 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8992 rhapsody* | darwin*)
8993 if test -n "$ac_tool_prefix"; then
8994 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8995 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8999 $as_echo_n "(cached) " >&6
9001 if test -n "$DSYMUTIL"; then
9002 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9022 if test -n "$DSYMUTIL"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9024 $as_echo "$DSYMUTIL" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9032 if test -z "$ac_cv_prog_DSYMUTIL"; then
9033 ac_ct_DSYMUTIL=$DSYMUTIL
9034 # Extract the first word of "dsymutil", so it can be a program name with args.
9035 set dummy dsymutil; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9039 $as_echo_n "(cached) " >&6
9041 if test -n "$ac_ct_DSYMUTIL"; then
9042 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9062 if test -n "$ac_ct_DSYMUTIL"; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9064 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9070 if test "x$ac_ct_DSYMUTIL" = x; then
9073 case $cross_compiling:$ac_tool_warned in
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9077 ac_tool_warned=yes ;;
9079 DSYMUTIL=$ac_ct_DSYMUTIL
9082 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9085 if test -n "$ac_tool_prefix"; then
9086 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9087 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_prog_NMEDIT+:} false; then :
9091 $as_echo_n "(cached) " >&6
9093 if test -n "$NMEDIT"; then
9094 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 NMEDIT=$ac_cv_prog_NMEDIT
9114 if test -n "$NMEDIT"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9116 $as_echo "$NMEDIT" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9124 if test -z "$ac_cv_prog_NMEDIT"; then
9125 ac_ct_NMEDIT=$NMEDIT
9126 # Extract the first word of "nmedit", so it can be a program name with args.
9127 set dummy nmedit; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9131 $as_echo_n "(cached) " >&6
9133 if test -n "$ac_ct_NMEDIT"; then
9134 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9154 if test -n "$ac_ct_NMEDIT"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9156 $as_echo "$ac_ct_NMEDIT" >&6; }
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9162 if test "x$ac_ct_NMEDIT" = x; then
9165 case $cross_compiling:$ac_tool_warned in
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169 ac_tool_warned=yes ;;
9171 NMEDIT=$ac_ct_NMEDIT
9174 NMEDIT="$ac_cv_prog_NMEDIT"
9177 if test -n "$ac_tool_prefix"; then
9178 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9179 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if ${ac_cv_prog_LIPO+:} false; then :
9183 $as_echo_n "(cached) " >&6
9185 if test -n "$LIPO"; then
9186 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 LIPO=$ac_cv_prog_LIPO
9206 if test -n "$LIPO"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9208 $as_echo "$LIPO" >&6; }
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9216 if test -z "$ac_cv_prog_LIPO"; then
9218 # Extract the first word of "lipo", so it can be a program name with args.
9219 set dummy lipo; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9223 $as_echo_n "(cached) " >&6
9225 if test -n "$ac_ct_LIPO"; then
9226 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235 ac_cv_prog_ac_ct_LIPO="lipo"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9246 if test -n "$ac_ct_LIPO"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9248 $as_echo "$ac_ct_LIPO" >&6; }
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9254 if test "x$ac_ct_LIPO" = x; then
9257 case $cross_compiling:$ac_tool_warned in
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9261 ac_tool_warned=yes ;;
9266 LIPO="$ac_cv_prog_LIPO"
9269 if test -n "$ac_tool_prefix"; then
9270 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9271 set dummy ${ac_tool_prefix}otool; ac_word=$2
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273 $as_echo_n "checking for $ac_word... " >&6; }
9274 if ${ac_cv_prog_OTOOL+:} false; then :
9275 $as_echo_n "(cached) " >&6
9277 if test -n "$OTOOL"; then
9278 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 OTOOL=$ac_cv_prog_OTOOL
9298 if test -n "$OTOOL"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9300 $as_echo "$OTOOL" >&6; }
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9308 if test -z "$ac_cv_prog_OTOOL"; then
9310 # Extract the first word of "otool", so it can be a program name with args.
9311 set dummy otool; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9315 $as_echo_n "(cached) " >&6
9317 if test -n "$ac_ct_OTOOL"; then
9318 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 test -z "$as_dir" && as_dir=.
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327 ac_cv_prog_ac_ct_OTOOL="otool"
9328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9338 if test -n "$ac_ct_OTOOL"; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9340 $as_echo "$ac_ct_OTOOL" >&6; }
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9346 if test "x$ac_ct_OTOOL" = x; then
9349 case $cross_compiling:$ac_tool_warned in
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9353 ac_tool_warned=yes ;;
9358 OTOOL="$ac_cv_prog_OTOOL"
9361 if test -n "$ac_tool_prefix"; then
9362 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9363 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if ${ac_cv_prog_OTOOL64+:} false; then :
9367 $as_echo_n "(cached) " >&6
9369 if test -n "$OTOOL64"; then
9370 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 OTOOL64=$ac_cv_prog_OTOOL64
9390 if test -n "$OTOOL64"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9392 $as_echo "$OTOOL64" >&6; }
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9400 if test -z "$ac_cv_prog_OTOOL64"; then
9401 ac_ct_OTOOL64=$OTOOL64
9402 # Extract the first word of "otool64", so it can be a program name with args.
9403 set dummy otool64; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9407 $as_echo_n "(cached) " >&6
9409 if test -n "$ac_ct_OTOOL64"; then
9410 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419 ac_cv_prog_ac_ct_OTOOL64="otool64"
9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9430 if test -n "$ac_ct_OTOOL64"; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9432 $as_echo "$ac_ct_OTOOL64" >&6; }
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9438 if test "x$ac_ct_OTOOL64" = x; then
9441 case $cross_compiling:$ac_tool_warned in
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9445 ac_tool_warned=yes ;;
9447 OTOOL64=$ac_ct_OTOOL64
9450 OTOOL64="$ac_cv_prog_OTOOL64"
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9480 $as_echo_n "checking for -single_module linker flag... " >&6; }
9481 if ${lt_cv_apple_cc_single_mod+:} false; then :
9482 $as_echo_n "(cached) " >&6
9484 lt_cv_apple_cc_single_mod=no
9485 if test -z "${LT_MULTI_MODULE}"; then
9486 # By default we will add the -single_module flag. You can override
9487 # by either setting the environment variable LT_MULTI_MODULE
9488 # non-empty at configure time, or by adding -multi_module to the
9490 rm -rf libconftest.dylib*
9491 echo "int foo(void){return 1;}" > conftest.c
9492 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9493 -dynamiclib -Wl,-single_module conftest.c" >&5
9494 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9495 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9497 # If there is a non-empty error log, and "single_module"
9498 # appears in it, assume the flag caused a linker warning
9499 if test -s conftest.err && $GREP single_module conftest.err; then
9500 cat conftest.err >&5
9501 # Otherwise, if the output was created with a 0 exit code from
9502 # the compiler, it worked.
9503 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9504 lt_cv_apple_cc_single_mod=yes
9506 cat conftest.err >&5
9508 rm -rf libconftest.dylib*
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9513 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9516 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9517 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9518 $as_echo_n "(cached) " >&6
9520 lt_cv_ld_exported_symbols_list=no
9521 save_LDFLAGS=$LDFLAGS
9522 echo "_main" > conftest.sym
9523 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9535 if ac_fn_c_try_link "$LINENO"; then :
9536 lt_cv_ld_exported_symbols_list=yes
9538 lt_cv_ld_exported_symbols_list=no
9540 rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LDFLAGS="$save_LDFLAGS"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9546 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9549 $as_echo_n "checking for -force_load linker flag... " >&6; }
9550 if ${lt_cv_ld_force_load+:} false; then :
9551 $as_echo_n "(cached) " >&6
9553 lt_cv_ld_force_load=no
9554 cat > conftest.c << _LT_EOF
9555 int forced_loaded() { return 2;}
9557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9559 echo "$AR cru libconftest.a conftest.o" >&5
9560 $AR cru libconftest.a conftest.o 2>&5
9561 echo "$RANLIB libconftest.a" >&5
9562 $RANLIB libconftest.a 2>&5
9563 cat > conftest.c << _LT_EOF
9564 int main() { return 0;}
9566 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9567 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9569 if test -s conftest.err && $GREP force_load conftest.err; then
9570 cat conftest.err >&5
9571 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9572 lt_cv_ld_force_load=yes
9574 cat conftest.err >&5
9576 rm -f conftest.err libconftest.a conftest conftest.c
9577 rm -rf conftest.dSYM
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9581 $as_echo "$lt_cv_ld_force_load" >&6; }
9583 rhapsody* | darwin1.[012])
9584 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9587 darwin*) # darwin 5.x on
9588 # if running on 10.5 or later, the deployment target defaults
9589 # to the OS version, if on x86, and 10.4, the deployment
9590 # target defaults to 10.4. Don't you love it?
9591 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9592 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9601 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9602 _lt_dar_single_mod='$single_module'
9604 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9605 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9607 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9609 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9610 _lt_dsymutil='~$DSYMUTIL $lib || :'
9617 for ac_header in dlfcn.h
9619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9621 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9622 cat >>confdefs.h <<_ACEOF
9623 #define HAVE_DLFCN_H 1
9633 func_stripname_cnf ()
9636 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9637 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9639 } # func_stripname_cnf
9646 enable_win32_dll=yes
9649 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9650 if test -n "$ac_tool_prefix"; then
9651 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9652 set dummy ${ac_tool_prefix}as; ac_word=$2
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654 $as_echo_n "checking for $ac_word... " >&6; }
9655 if ${ac_cv_prog_AS+:} false; then :
9656 $as_echo_n "(cached) " >&6
9658 if test -n "$AS"; then
9659 ac_cv_prog_AS="$AS" # Let the user override the test.
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 test -z "$as_dir" && as_dir=.
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9668 ac_cv_prog_AS="${ac_tool_prefix}as"
9669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 if test -n "$AS"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9681 $as_echo "$AS" >&6; }
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9689 if test -z "$ac_cv_prog_AS"; then
9691 # Extract the first word of "as", so it can be a program name with args.
9692 set dummy as; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9696 $as_echo_n "(cached) " >&6
9698 if test -n "$ac_ct_AS"; then
9699 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708 ac_cv_prog_ac_ct_AS="as"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9719 if test -n "$ac_ct_AS"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9721 $as_echo "$ac_ct_AS" >&6; }
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9727 if test "x$ac_ct_AS" = x; then
9730 case $cross_compiling:$ac_tool_warned in
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9734 ac_tool_warned=yes ;;
9742 if test -n "$ac_tool_prefix"; then
9743 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9744 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if ${ac_cv_prog_DLLTOOL+:} false; then :
9748 $as_echo_n "(cached) " >&6
9750 if test -n "$DLLTOOL"; then
9751 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 DLLTOOL=$ac_cv_prog_DLLTOOL
9771 if test -n "$DLLTOOL"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9773 $as_echo "$DLLTOOL" >&6; }
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9781 if test -z "$ac_cv_prog_DLLTOOL"; then
9782 ac_ct_DLLTOOL=$DLLTOOL
9783 # Extract the first word of "dlltool", so it can be a program name with args.
9784 set dummy dlltool; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9788 $as_echo_n "(cached) " >&6
9790 if test -n "$ac_ct_DLLTOOL"; then
9791 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797 test -z "$as_dir" && as_dir=.
9798 for ac_exec_ext in '' $ac_executable_extensions; do
9799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9800 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9811 if test -n "$ac_ct_DLLTOOL"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9813 $as_echo "$ac_ct_DLLTOOL" >&6; }
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9819 if test "x$ac_ct_DLLTOOL" = x; then
9822 case $cross_compiling:$ac_tool_warned in
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9826 ac_tool_warned=yes ;;
9828 DLLTOOL=$ac_ct_DLLTOOL
9831 DLLTOOL="$ac_cv_prog_DLLTOOL"
9834 if test -n "$ac_tool_prefix"; then
9835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9836 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_prog_OBJDUMP+:} false; then :
9840 $as_echo_n "(cached) " >&6
9842 if test -n "$OBJDUMP"; then
9843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 OBJDUMP=$ac_cv_prog_OBJDUMP
9863 if test -n "$OBJDUMP"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9865 $as_echo "$OBJDUMP" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9873 if test -z "$ac_cv_prog_OBJDUMP"; then
9874 ac_ct_OBJDUMP=$OBJDUMP
9875 # Extract the first word of "objdump", so it can be a program name with args.
9876 set dummy objdump; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9880 $as_echo_n "(cached) " >&6
9882 if test -n "$ac_ct_OBJDUMP"; then
9883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9903 if test -n "$ac_ct_OBJDUMP"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9905 $as_echo "$ac_ct_OBJDUMP" >&6; }
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9911 if test "x$ac_ct_OBJDUMP" = x; then
9914 case $cross_compiling:$ac_tool_warned in
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9918 ac_tool_warned=yes ;;
9920 OBJDUMP=$ac_ct_OBJDUMP
9923 OBJDUMP="$ac_cv_prog_OBJDUMP"
9929 test -z "$AS" && AS=as
9935 test -z "$DLLTOOL" && DLLTOOL=dlltool
9941 test -z "$OBJDUMP" && OBJDUMP=objdump
9946 # Check whether --enable-static was given.
9947 if test "${enable_static+set}" = set; then :
9948 enableval=$enable_static; p=${PACKAGE-default}
9950 yes) enable_static=yes ;;
9951 no) enable_static=no ;;
9954 # Look at the argument we got. We use all the common list separators.
9955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9956 for pkg in $enableval; do
9958 if test "X$pkg" = "X$p"; then
9982 # Check whether --enable-shared was given.
9983 if test "${enable_shared+set}" = set; then :
9984 enableval=$enable_shared; p=${PACKAGE-default}
9986 yes) enable_shared=yes ;;
9987 no) enable_shared=no ;;
9990 # Look at the argument we got. We use all the common list separators.
9991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9992 for pkg in $enableval; do
9994 if test "X$pkg" = "X$p"; then
10015 # Check whether --with-pic was given.
10016 if test "${with_pic+set}" = set; then :
10017 withval=$with_pic; lt_p=${PACKAGE-default}
10019 yes|no) pic_mode=$withval ;;
10022 # Look at the argument we got. We use all the common list separators.
10023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10024 for lt_pkg in $withval; do
10026 if test "X$lt_pkg" = "X$lt_p"; then
10038 test -z "$pic_mode" && pic_mode=default
10046 # Check whether --enable-fast-install was given.
10047 if test "${enable_fast_install+set}" = set; then :
10048 enableval=$enable_fast_install; p=${PACKAGE-default}
10050 yes) enable_fast_install=yes ;;
10051 no) enable_fast_install=no ;;
10053 enable_fast_install=no
10054 # Look at the argument we got. We use all the common list separators.
10055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10056 for pkg in $enableval; do
10058 if test "X$pkg" = "X$p"; then
10059 enable_fast_install=yes
10066 enable_fast_install=yes
10079 # This can be used to rebuild libtool when needed
10080 LIBTOOL_DEPS="$ltmain"
10082 # Always use our own libtool.
10083 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10114 test -z "$LN_S" && LN_S="ln -s"
10129 if test -n "${ZSH_VERSION+set}" ; then
10130 setopt NO_GLOB_SUBST
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10134 $as_echo_n "checking for objdir... " >&6; }
10135 if ${lt_cv_objdir+:} false; then :
10136 $as_echo_n "(cached) " >&6
10138 rm -f .libs 2>/dev/null
10139 mkdir .libs 2>/dev/null
10140 if test -d .libs; then
10143 # MS-DOS does not allow filenames that begin with a dot.
10146 rmdir .libs 2>/dev/null
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10149 $as_echo "$lt_cv_objdir" >&6; }
10150 objdir=$lt_cv_objdir
10156 cat >>confdefs.h <<_ACEOF
10157 #define LT_OBJDIR "$lt_cv_objdir/"
10165 # AIX sometimes has problems with the GCC collect2 program. For some
10166 # reason, if we set the COLLECT_NAMES environment variable, the problems
10167 # vanish in a puff of smoke.
10168 if test "X${COLLECT_NAMES+set}" != Xset; then
10170 export COLLECT_NAMES
10175 # Global variables:
10177 can_build_shared=yes
10179 # All known linkers require a `.a' archive for static linking (except MSVC,
10180 # which needs '.lib').
10183 with_gnu_ld="$lt_cv_prog_gnu_ld"
10186 old_CFLAGS="$CFLAGS"
10188 # Set sane defaults for various variables
10189 test -z "$CC" && CC=cc
10190 test -z "$LTCC" && LTCC=$CC
10191 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10192 test -z "$LD" && LD=ld
10193 test -z "$ac_objext" && ac_objext=o
10195 for cc_temp in $compiler""; do
10197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10203 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10206 # Only perform the check for file, if the check method requires it
10207 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10208 case $deplibs_check_method in
10210 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10212 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10213 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10214 $as_echo_n "(cached) " >&6
10218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10221 lt_save_MAGIC_CMD="$MAGIC_CMD"
10222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10224 for ac_dir in $ac_dummy; do
10226 test -z "$ac_dir" && ac_dir=.
10227 if test -f $ac_dir/${ac_tool_prefix}file; then
10228 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10229 if test -n "$file_magic_test_file"; then
10230 case $deplibs_check_method in
10232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10235 $EGREP "$file_magic_regex" > /dev/null; then
10240 *** Warning: the command libtool uses to detect shared libraries,
10241 *** $file_magic_cmd, produces output that libtool cannot recognize.
10242 *** The result is that libtool may fail to recognize shared libraries
10243 *** as such. This will affect the creation of libtool libraries that
10244 *** depend on shared libraries, but programs linked with such libtool
10245 *** libraries will work regardless of this problem. Nevertheless, you
10246 *** may want to report the problem to your system manager and/or to
10247 *** bug-libtool@gnu.org
10257 MAGIC_CMD="$lt_save_MAGIC_CMD"
10262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10263 if test -n "$MAGIC_CMD"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10265 $as_echo "$MAGIC_CMD" >&6; }
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10275 if test -z "$lt_cv_path_MAGIC_CMD"; then
10276 if test -n "$ac_tool_prefix"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10278 $as_echo_n "checking for file... " >&6; }
10279 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10280 $as_echo_n "(cached) " >&6
10284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10287 lt_save_MAGIC_CMD="$MAGIC_CMD"
10288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10290 for ac_dir in $ac_dummy; do
10292 test -z "$ac_dir" && ac_dir=.
10293 if test -f $ac_dir/file; then
10294 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10295 if test -n "$file_magic_test_file"; then
10296 case $deplibs_check_method in
10298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10301 $EGREP "$file_magic_regex" > /dev/null; then
10306 *** Warning: the command libtool uses to detect shared libraries,
10307 *** $file_magic_cmd, produces output that libtool cannot recognize.
10308 *** The result is that libtool may fail to recognize shared libraries
10309 *** as such. This will affect the creation of libtool libraries that
10310 *** depend on shared libraries, but programs linked with such libtool
10311 *** libraries will work regardless of this problem. Nevertheless, you
10312 *** may want to report the problem to your system manager and/or to
10313 *** bug-libtool@gnu.org
10323 MAGIC_CMD="$lt_save_MAGIC_CMD"
10328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10329 if test -n "$MAGIC_CMD"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10331 $as_echo "$MAGIC_CMD" >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10347 # Use C for the default configuration in the libtool script
10351 ac_cpp='$CPP $CPPFLAGS'
10352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10357 # Source file extension for C test sources.
10360 # Object file extension for compiled C test sources.
10364 # Code to be used in simple compile tests
10365 lt_simple_compile_test_code="int some_variable = 0;"
10367 # Code to be used in simple link tests
10368 lt_simple_link_test_code='int main(){return(0);}'
10376 # If no C compiler was specified, use CC.
10379 # If no C compiler flags were specified, use CFLAGS.
10380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10382 # Allow CC to be a program name with arguments.
10385 # Save the default compiler, since it gets overwritten when the other
10386 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10387 compiler_DEFAULT=$CC
10389 # save warnings/boilerplate of simple test code
10390 ac_outfile=conftest.$ac_objext
10391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10393 _lt_compiler_boilerplate=`cat conftest.err`
10396 ac_outfile=conftest.$ac_objext
10397 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10399 _lt_linker_boilerplate=`cat conftest.err`
10404 ## There is no encapsulation within the following macros, do not change
10405 ## the running order or otherwise move them around unless you know exactly
10406 ## what you are doing...
10407 if test -n "$compiler"; then
10409 lt_prog_compiler_no_builtin_flag=
10411 if test "$GCC" = yes; then
10412 case $cc_basename in
10414 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10416 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10420 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10421 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10422 $as_echo_n "(cached) " >&6
10424 lt_cv_prog_compiler_rtti_exceptions=no
10425 ac_outfile=conftest.$ac_objext
10426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10427 lt_compiler_flag="-fno-rtti -fno-exceptions"
10428 # Insert the option either (1) after the last *FLAGS variable, or
10429 # (2) before a word containing "conftest.", or (3) at the end.
10430 # Note that $ac_compile itself does not contain backslashes and begins
10431 # with a dollar sign (not a hyphen), so the echo should work correctly.
10432 # The option is referenced via a variable to avoid confusing sed.
10433 lt_compile=`echo "$ac_compile" | $SED \
10434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10436 -e 's:$: $lt_compiler_flag:'`
10437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10438 (eval "$lt_compile" 2>conftest.err)
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 if (exit $ac_status) && test -s "$ac_outfile"; then
10443 # The compiler can only warn and ignore the option if not recognized
10444 # So say no if there are warnings other than the usual output.
10445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10448 lt_cv_prog_compiler_rtti_exceptions=yes
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10455 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10458 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10470 lt_prog_compiler_wl=
10471 lt_prog_compiler_pic=
10472 lt_prog_compiler_static=
10475 if test "$GCC" = yes; then
10476 lt_prog_compiler_wl='-Wl,'
10477 lt_prog_compiler_static='-static'
10481 # All AIX code is PIC.
10482 if test "$host_cpu" = ia64; then
10483 # AIX 5 now supports IA64 processor
10484 lt_prog_compiler_static='-Bstatic'
10491 # see comment about AmigaOS4 .so support
10492 lt_prog_compiler_pic='-fPIC'
10495 # FIXME: we need at least 68020 code to build shared libraries, but
10496 # adding the `-m68020' flag to GCC prevents building anything better,
10498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10504 # PIC is the default for these OSes.
10507 mingw* | cygwin* | pw32* | os2* | cegcc*)
10508 # This hack is so that the source file can tell whether it is being
10509 # built for inclusion in a dll (and should export symbols for example).
10510 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10511 # (--disable-auto-import) libraries
10512 lt_prog_compiler_pic='-DDLL_EXPORT'
10515 darwin* | rhapsody*)
10516 # PIC is the default on this platform
10517 # Common symbols not allowed in MH_DYLIB files
10518 lt_prog_compiler_pic='-fno-common'
10522 # PIC is the default for Haiku.
10523 # The "-static" flag exists, but is broken.
10524 lt_prog_compiler_static=
10528 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10529 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10530 # sets the default TLS model and affects inlining.
10536 lt_prog_compiler_pic='-fPIC'
10542 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10543 # Instead, we relocate shared libraries at runtime.
10547 # Just because we use GCC doesn't mean we suddenly get shared libraries
10548 # on systems that don't support them.
10549 lt_prog_compiler_can_build_shared=no
10554 # QNX uses GNU C++, but need to define -shared option too, otherwise
10555 # it will coredump.
10556 lt_prog_compiler_pic='-fPIC -shared'
10560 if test -d /usr/nec; then
10561 lt_prog_compiler_pic=-Kconform_pic
10566 lt_prog_compiler_pic='-fPIC'
10570 case $cc_basename in
10571 nvcc*) # Cuda Compiler Driver 2.2
10572 lt_prog_compiler_wl='-Xlinker '
10573 if test -n "$lt_prog_compiler_pic"; then
10574 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10579 # PORTME Check for flag to pass linker flags through the system compiler.
10582 lt_prog_compiler_wl='-Wl,'
10583 if test "$host_cpu" = ia64; then
10584 # AIX 5 now supports IA64 processor
10585 lt_prog_compiler_static='-Bstatic'
10587 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10591 mingw* | cygwin* | pw32* | os2* | cegcc*)
10592 # This hack is so that the source file can tell whether it is being
10593 # built for inclusion in a dll (and should export symbols for example).
10594 lt_prog_compiler_pic='-DDLL_EXPORT'
10597 hpux9* | hpux10* | hpux11*)
10598 lt_prog_compiler_wl='-Wl,'
10599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10600 # not for PA HP-UX.
10606 lt_prog_compiler_pic='+Z'
10609 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10610 lt_prog_compiler_static='${wl}-a ${wl}archive'
10613 irix5* | irix6* | nonstopux*)
10614 lt_prog_compiler_wl='-Wl,'
10615 # PIC (with -KPIC) is the default.
10616 lt_prog_compiler_static='-non_shared'
10619 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10620 case $cc_basename in
10621 # old Intel for x86_64 which still supported -KPIC.
10623 lt_prog_compiler_wl='-Wl,'
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-static'
10627 # icc used to be incompatible with GCC.
10628 # ICC 10 doesn't accept -KPIC any more.
10630 lt_prog_compiler_wl='-Wl,'
10631 lt_prog_compiler_pic='-fPIC'
10632 lt_prog_compiler_static='-static'
10634 # Lahey Fortran 8.1.
10636 lt_prog_compiler_wl='-Wl,'
10637 lt_prog_compiler_pic='--shared'
10638 lt_prog_compiler_static='--static'
10641 # NAG Fortran compiler
10642 lt_prog_compiler_wl='-Wl,-Wl,,'
10643 lt_prog_compiler_pic='-PIC'
10644 lt_prog_compiler_static='-Bstatic'
10646 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10647 # Portland Group compilers (*not* the Pentium gcc compiler,
10648 # which looks to be a dead project)
10649 lt_prog_compiler_wl='-Wl,'
10650 lt_prog_compiler_pic='-fpic'
10651 lt_prog_compiler_static='-Bstatic'
10654 lt_prog_compiler_wl='-Wl,'
10655 # All Alpha code is PIC.
10656 lt_prog_compiler_static='-non_shared'
10658 xl* | bgxl* | bgf* | mpixl*)
10659 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10660 lt_prog_compiler_wl='-Wl,'
10661 lt_prog_compiler_pic='-qpic'
10662 lt_prog_compiler_static='-qstaticlink'
10665 case `$CC -V 2>&1 | sed 5q` in
10666 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10667 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10668 lt_prog_compiler_pic='-KPIC'
10669 lt_prog_compiler_static='-Bstatic'
10670 lt_prog_compiler_wl=''
10672 *Sun\ F* | *Sun*Fortran*)
10673 lt_prog_compiler_pic='-KPIC'
10674 lt_prog_compiler_static='-Bstatic'
10675 lt_prog_compiler_wl='-Qoption ld '
10679 lt_prog_compiler_pic='-KPIC'
10680 lt_prog_compiler_static='-Bstatic'
10681 lt_prog_compiler_wl='-Wl,'
10683 *Intel*\ [CF]*Compiler*)
10684 lt_prog_compiler_wl='-Wl,'
10685 lt_prog_compiler_pic='-fPIC'
10686 lt_prog_compiler_static='-static'
10689 lt_prog_compiler_wl='-Wl,'
10690 lt_prog_compiler_pic='-fpic'
10691 lt_prog_compiler_static='-Bstatic'
10699 lt_prog_compiler_pic='-KPIC'
10700 lt_prog_compiler_static='-Bstatic'
10704 # QNX uses GNU C++, but need to define -shared option too, otherwise
10705 # it will coredump.
10706 lt_prog_compiler_pic='-fPIC -shared'
10709 osf3* | osf4* | osf5*)
10710 lt_prog_compiler_wl='-Wl,'
10711 # All OSF/1 code is PIC.
10712 lt_prog_compiler_static='-non_shared'
10716 lt_prog_compiler_static='-non_shared'
10720 lt_prog_compiler_pic='-KPIC'
10721 lt_prog_compiler_static='-Bstatic'
10722 case $cc_basename in
10723 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10724 lt_prog_compiler_wl='-Qoption ld ';;
10726 lt_prog_compiler_wl='-Wl,';;
10731 lt_prog_compiler_wl='-Qoption ld '
10732 lt_prog_compiler_pic='-PIC'
10733 lt_prog_compiler_static='-Bstatic'
10736 sysv4 | sysv4.2uw2* | sysv4.3*)
10737 lt_prog_compiler_wl='-Wl,'
10738 lt_prog_compiler_pic='-KPIC'
10739 lt_prog_compiler_static='-Bstatic'
10743 if test -d /usr/nec ;then
10744 lt_prog_compiler_pic='-Kconform_pic'
10745 lt_prog_compiler_static='-Bstatic'
10749 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10750 lt_prog_compiler_wl='-Wl,'
10751 lt_prog_compiler_pic='-KPIC'
10752 lt_prog_compiler_static='-Bstatic'
10756 lt_prog_compiler_wl='-Wl,'
10757 lt_prog_compiler_can_build_shared=no
10761 lt_prog_compiler_pic='-pic'
10762 lt_prog_compiler_static='-Bstatic'
10766 lt_prog_compiler_can_build_shared=no
10772 # For platforms which do not support PIC, -DPIC is meaningless:
10774 lt_prog_compiler_pic=
10777 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10782 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10783 if ${lt_cv_prog_compiler_pic+:} false; then :
10784 $as_echo_n "(cached) " >&6
10786 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10789 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10790 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10793 # Check to make sure the PIC flag actually works.
10795 if test -n "$lt_prog_compiler_pic"; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10797 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10798 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10799 $as_echo_n "(cached) " >&6
10801 lt_cv_prog_compiler_pic_works=no
10802 ac_outfile=conftest.$ac_objext
10803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10804 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10805 # Insert the option either (1) after the last *FLAGS variable, or
10806 # (2) before a word containing "conftest.", or (3) at the end.
10807 # Note that $ac_compile itself does not contain backslashes and begins
10808 # with a dollar sign (not a hyphen), so the echo should work correctly.
10809 # The option is referenced via a variable to avoid confusing sed.
10810 lt_compile=`echo "$ac_compile" | $SED \
10811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10813 -e 's:$: $lt_compiler_flag:'`
10814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10815 (eval "$lt_compile" 2>conftest.err)
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 if (exit $ac_status) && test -s "$ac_outfile"; then
10820 # The compiler can only warn and ignore the option if not recognized
10821 # So say no if there are warnings other than the usual output.
10822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10825 lt_cv_prog_compiler_pic_works=yes
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10832 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10834 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10835 case $lt_prog_compiler_pic in
10837 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10840 lt_prog_compiler_pic=
10841 lt_prog_compiler_can_build_shared=no
10857 # Check to make sure the static flag actually works.
10859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10862 if ${lt_cv_prog_compiler_static_works+:} false; then :
10863 $as_echo_n "(cached) " >&6
10865 lt_cv_prog_compiler_static_works=no
10866 save_LDFLAGS="$LDFLAGS"
10867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10870 # The linker can only warn and ignore the option if not recognized
10871 # So say no if there are warnings
10872 if test -s conftest.err; then
10873 # Append any errors to the config.log.
10874 cat conftest.err 1>&5
10875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10877 if diff conftest.exp conftest.er2 >/dev/null; then
10878 lt_cv_prog_compiler_static_works=yes
10881 lt_cv_prog_compiler_static_works=yes
10885 LDFLAGS="$save_LDFLAGS"
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10894 lt_prog_compiler_static=
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10905 if ${lt_cv_prog_compiler_c_o+:} false; then :
10906 $as_echo_n "(cached) " >&6
10908 lt_cv_prog_compiler_c_o=no
10909 $RM -r conftest 2>/dev/null
10913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10915 lt_compiler_flag="-o out/conftest2.$ac_objext"
10916 # Insert the option either (1) after the last *FLAGS variable, or
10917 # (2) before a word containing "conftest.", or (3) at the end.
10918 # Note that $ac_compile itself does not contain backslashes and begins
10919 # with a dollar sign (not a hyphen), so the echo should work correctly.
10920 lt_compile=`echo "$ac_compile" | $SED \
10921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10923 -e 's:$: $lt_compiler_flag:'`
10924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10925 (eval "$lt_compile" 2>out/conftest.err)
10927 cat out/conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10931 # The compiler can only warn and ignore the option if not recognized
10932 # So say no if there are warnings
10933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10936 lt_cv_prog_compiler_c_o=yes
10941 # SGI C++ compiler will create directory out/ii_files/ for
10942 # template instantiation
10943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10944 $RM out/* && rmdir out
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10960 if ${lt_cv_prog_compiler_c_o+:} false; then :
10961 $as_echo_n "(cached) " >&6
10963 lt_cv_prog_compiler_c_o=no
10964 $RM -r conftest 2>/dev/null
10968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10970 lt_compiler_flag="-o out/conftest2.$ac_objext"
10971 # Insert the option either (1) after the last *FLAGS variable, or
10972 # (2) before a word containing "conftest.", or (3) at the end.
10973 # Note that $ac_compile itself does not contain backslashes and begins
10974 # with a dollar sign (not a hyphen), so the echo should work correctly.
10975 lt_compile=`echo "$ac_compile" | $SED \
10976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10978 -e 's:$: $lt_compiler_flag:'`
10979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10980 (eval "$lt_compile" 2>out/conftest.err)
10982 cat out/conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10986 # The compiler can only warn and ignore the option if not recognized
10987 # So say no if there are warnings
10988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10991 lt_cv_prog_compiler_c_o=yes
10996 # SGI C++ compiler will create directory out/ii_files/ for
10997 # template instantiation
10998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10999 $RM out/* && rmdir out
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11011 hard_links="nottested"
11012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11013 # do not overwrite the value of need_locks provided by the user
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11015 $as_echo_n "checking if we can lock with hard links... " >&6; }
11018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11020 ln conftest.a conftest.b 2>&5 || hard_links=no
11021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11023 $as_echo "$hard_links" >&6; }
11024 if test "$hard_links" = no; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11042 allow_undefined_flag=
11043 always_export_symbols=no
11045 archive_expsym_cmds=
11046 compiler_needs_object=no
11047 enable_shared_with_static_runtimes=no
11048 export_dynamic_flag_spec=
11049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11050 hardcode_automatic=no
11052 hardcode_direct_absolute=no
11053 hardcode_libdir_flag_spec=
11054 hardcode_libdir_separator=
11055 hardcode_minus_L=no
11056 hardcode_shlibpath_var=unsupported
11058 link_all_deplibs=unknown
11060 module_expsym_cmds=
11061 old_archive_from_new_cmds=
11062 old_archive_from_expsyms_cmds=
11063 thread_safe_flag_spec=
11064 whole_archive_flag_spec=
11065 # include_expsyms should be a list of space-separated symbols to be *always*
11066 # included in the symbol list
11068 # exclude_expsyms can be an extended regexp of symbols to exclude
11069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11071 # as well as any symbol that contains `d'.
11072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11074 # platforms (ab)use it in PIC code, but their linkers get confused if
11075 # the symbol is explicitly referenced. Since portable code cannot
11076 # rely on this symbol name, it's probably fine to never include it in
11077 # preloaded symbol tables.
11078 # Exclude shared library initialization/finalization symbols.
11079 extract_expsyms_cmds=
11082 cygwin* | mingw* | pw32* | cegcc*)
11083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11084 # When not using gcc, we currently assume that we are using
11085 # Microsoft Visual C++.
11086 if test "$GCC" != yes; then
11091 # we just hope/assume this is gcc and not c89 (= MSVC++)
11097 linux* | k*bsd*-gnu | gnu*)
11098 link_all_deplibs=no
11104 # On some targets, GNU ld is compatible enough with the native linker
11105 # that we're better off using the native interface for both.
11106 lt_use_gnu_ld_interface=no
11107 if test "$with_gnu_ld" = yes; then
11110 # The AIX port of GNU ld has always aspired to compatibility
11111 # with the native linker. However, as the warning in the GNU ld
11112 # block says, versions before 2.19.5* couldn't really create working
11113 # shared libraries, regardless of the interface used.
11114 case `$LD -v 2>&1` in
11115 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11116 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11117 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11119 lt_use_gnu_ld_interface=yes
11124 lt_use_gnu_ld_interface=yes
11129 if test "$lt_use_gnu_ld_interface" = yes; then
11130 # If archive_cmds runs LD, not CC, wlarc should be empty
11133 # Set some defaults for GNU ld with shared library support. These
11134 # are reset later if shared libraries are not supported. Putting them
11135 # here allows them to be overridden if necessary.
11136 runpath_var=LD_RUN_PATH
11137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11138 export_dynamic_flag_spec='${wl}--export-dynamic'
11139 # ancient GNU ld didn't support --whole-archive et. al.
11140 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11141 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11143 whole_archive_flag_spec=
11145 supports_anon_versioning=no
11146 case `$LD -v 2>&1` in
11147 *GNU\ gold*) supports_anon_versioning=yes ;;
11148 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11149 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11150 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11151 *\ 2.11.*) ;; # other 2.11 versions
11152 *) supports_anon_versioning=yes ;;
11155 # See if GNU ld supports shared libraries.
11158 # On AIX/PPC, the GNU linker is very broken
11159 if test "$host_cpu" != ia64; then
11163 *** Warning: the GNU linker, at least up to release 2.19, is reported
11164 *** to be unable to reliably create shared libraries on AIX.
11165 *** Therefore, libtool is disabling shared libraries support. If you
11166 *** really care for shared libraries, you may want to install binutils
11167 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11168 *** You will then need to restart the configuration process.
11177 # see comment about AmigaOS4 .so support
11178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11179 archive_expsym_cmds=''
11182 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)'
11183 hardcode_libdir_flag_spec='-L$libdir'
11184 hardcode_minus_L=yes
11190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11191 allow_undefined_flag=unsupported
11192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11193 # support --undefined. This deserves some investigation. FIXME
11194 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11200 cygwin* | mingw* | pw32* | cegcc*)
11201 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11202 # as there is no search path for DLLs.
11203 hardcode_libdir_flag_spec='-L$libdir'
11204 export_dynamic_flag_spec='${wl}--export-all-symbols'
11205 allow_undefined_flag=unsupported
11206 always_export_symbols=no
11207 enable_shared_with_static_runtimes=yes
11208 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'
11209 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11211 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11213 # If the export-symbols file already is a .def file (1st line
11214 # is EXPORTS), use it as is; otherwise, prepend...
11215 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11216 cp $export_symbols $output_objdir/$soname.def;
11218 echo EXPORTS > $output_objdir/$soname.def;
11219 cat $export_symbols >> $output_objdir/$soname.def;
11221 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229 link_all_deplibs=yes
11234 hardcode_shlibpath_var=no
11235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11236 export_dynamic_flag_spec='${wl}-E'
11237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11238 # Instead, shared libraries are loaded at an image base (0x10000000 by
11239 # default) and relocated if they conflict, which is a slow very memory
11240 # consuming and fragmenting process. To avoid this, we pick a random,
11241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11244 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'
11247 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11249 if test "$host_os" = linux-dietlibc; then
11250 case $cc_basename in
11251 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11254 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11255 && test "$tmp_diet" = no
11257 tmp_addflag=' $pic_flag'
11258 tmp_sharedflag='-shared'
11259 case $cc_basename,$host_cpu in
11260 pgcc*) # Portland Group C compiler
11261 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'
11262 tmp_addflag=' $pic_flag'
11264 pgf77* | pgf90* | pgf95* | pgfortran*)
11265 # Portland Group f77 and f90 compilers
11266 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'
11267 tmp_addflag=' $pic_flag -Mnomain' ;;
11268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11269 tmp_addflag=' -i_dynamic' ;;
11270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11271 tmp_addflag=' -i_dynamic -nofor_main' ;;
11272 ifc* | ifort*) # Intel Fortran compiler
11273 tmp_addflag=' -nofor_main' ;;
11274 lf95*) # Lahey Fortran 8.1
11275 whole_archive_flag_spec=
11276 tmp_sharedflag='--shared' ;;
11277 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11278 tmp_sharedflag='-qmkshrobj'
11280 nvcc*) # Cuda Compiler Driver 2.2
11281 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'
11282 compiler_needs_object=yes
11285 case `$CC -V 2>&1 | sed 5q` in
11286 *Sun\ C*) # Sun C 5.9
11287 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'
11288 compiler_needs_object=yes
11289 tmp_sharedflag='-G' ;;
11290 *Sun\ F*) # Sun Fortran 8.3
11291 tmp_sharedflag='-G' ;;
11293 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11295 if test "x$supports_anon_versioning" = xyes; then
11296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11298 echo "local: *; };" >> $output_objdir/$libname.ver~
11299 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11302 case $cc_basename in
11303 xlf* | bgf* | bgxlf* | mpixlf*)
11304 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11305 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11307 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11308 if test "x$supports_anon_versioning" = xyes; then
11309 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11311 echo "local: *; };" >> $output_objdir/$libname.ver~
11312 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11321 netbsd* | netbsdelf*-gnu)
11322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11323 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11332 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11337 *** create shared libraries on Solaris systems. Therefore, libtool
11338 *** is disabling shared libraries support. We urge you to upgrade GNU
11339 *** binutils to release 2.9.1 or newer. Another option is to modify
11340 *** your PATH or compiler configuration so that the native linker is
11341 *** used, and then restart.
11344 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11346 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11353 case `$LD -v 2>&1` in
11354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11359 *** reliably create shared libraries on SCO systems. Therefore, libtool
11360 *** is disabling shared libraries support. We urge you to upgrade GNU
11361 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11362 *** your PATH or compiler configuration so that the native linker is
11363 *** used, and then restart.
11368 # For security reasons, it is highly recommended that you always
11369 # use absolute paths for naming shared libraries, and exclude the
11370 # DT_RUNPATH tag from executables and libraries. But doing so
11371 # requires that you compile everything twice, which is a pain.
11372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11386 hardcode_direct=yes
11387 hardcode_shlibpath_var=no
11391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11393 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11400 if test "$ld_shlibs" = no; then
11402 hardcode_libdir_flag_spec=
11403 export_dynamic_flag_spec=
11404 whole_archive_flag_spec=
11407 # PORTME fill in a description of your system's linker (not GNU ld)
11410 allow_undefined_flag=unsupported
11411 always_export_symbols=yes
11412 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'
11413 # Note: this linker hardcodes the directories in LIBPATH if there
11414 # are no directories specified by -L.
11415 hardcode_minus_L=yes
11416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11417 # Neither direct hardcoding nor static linking is supported with a
11419 hardcode_direct=unsupported
11424 if test "$host_cpu" = ia64; then
11425 # On IA64, the linker does run time linking by default, so we don't
11426 # have to do anything special.
11427 aix_use_runtimelinking=no
11428 exp_sym_flag='-Bexport'
11431 # If we're using GNU nm, then we don't want the "-C" option.
11432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11433 # Also, AIX nm treats weak defined symbols like other global
11434 # defined symbols, whereas GNU nm marks them as "W".
11435 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11436 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'
11438 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'
11440 aix_use_runtimelinking=no
11442 # Test if we are trying to use run time linking or normal
11443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11444 # need to do runtime linking.
11445 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11446 for ld_flag in $LDFLAGS; do
11447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11448 aix_use_runtimelinking=yes
11455 exp_sym_flag='-bexport'
11456 no_entry_flag='-bnoentry'
11459 # When large executables or shared objects are built, AIX ld can
11460 # have problems creating the table of contents. If linking a library
11461 # or program results in "error TOC overflow" add -mminimal-toc to
11462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11466 hardcode_direct=yes
11467 hardcode_direct_absolute=yes
11468 hardcode_libdir_separator=':'
11469 link_all_deplibs=yes
11470 file_list_spec='${wl}-f,'
11472 if test "$GCC" = yes; then
11473 case $host_os in aix4.[012]|aix4.[012].*)
11474 # We only want to do this on AIX 4.2 and lower, the check
11475 # below for broken collect2 doesn't work under 4.3+
11476 collect2name=`${CC} -print-prog-name=collect2`
11477 if test -f "$collect2name" &&
11478 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11480 # We have reworked collect2
11483 # We have old collect2
11484 hardcode_direct=unsupported
11485 # It fails to find uninstalled libraries when the uninstalled
11486 # path is not listed in the libpath. Setting hardcode_minus_L
11487 # to unsupported forces relinking
11488 hardcode_minus_L=yes
11489 hardcode_libdir_flag_spec='-L$libdir'
11490 hardcode_libdir_separator=
11494 shared_flag='-shared'
11495 if test "$aix_use_runtimelinking" = yes; then
11496 shared_flag="$shared_flag "'${wl}-G'
11498 link_all_deplibs=no
11501 if test "$host_cpu" = ia64; then
11502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11503 # chokes on -Wl,-G. The following line is correct:
11506 if test "$aix_use_runtimelinking" = yes; then
11507 shared_flag='${wl}-G'
11509 shared_flag='${wl}-bM:SRE'
11514 export_dynamic_flag_spec='${wl}-bexpall'
11515 # It seems that -bexpall does not export symbols beginning with
11516 # underscore (_), so it is better to generate a list of symbols to export.
11517 always_export_symbols=yes
11518 if test "$aix_use_runtimelinking" = yes; then
11519 # Warning - without using the other runtime loading flags (-brtl),
11520 # -berok will link without error, but may produce a broken library.
11521 allow_undefined_flag='-berok'
11522 # Determine the default libpath from the value encoded in an
11523 # empty executable.
11524 if test "${lt_cv_aix_libpath+set}" = set; then
11525 aix_libpath=$lt_cv_aix_libpath
11527 if ${lt_cv_aix_libpath_+:} false; then :
11528 $as_echo_n "(cached) " >&6
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11541 if ac_fn_c_try_link "$LINENO"; then :
11543 lt_aix_libpath_sed='
11544 /Import File Strings/,/^$/ {
11546 s/^0 *\([^ ]*\) *$/\1/
11550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11551 # Check for a 64-bit object if we didn't find anything.
11552 if test -z "$lt_cv_aix_libpath_"; then
11553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 if test -z "$lt_cv_aix_libpath_"; then
11559 lt_cv_aix_libpath_="/usr/lib:/lib"
11564 aix_libpath=$lt_cv_aix_libpath_
11567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11568 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"
11570 if test "$host_cpu" = ia64; then
11571 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11572 allow_undefined_flag="-z nodefs"
11573 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"
11575 # Determine the default libpath from the value encoded in an
11576 # empty executable.
11577 if test "${lt_cv_aix_libpath+set}" = set; then
11578 aix_libpath=$lt_cv_aix_libpath
11580 if ${lt_cv_aix_libpath_+:} false; then :
11581 $as_echo_n "(cached) " >&6
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11594 if ac_fn_c_try_link "$LINENO"; then :
11596 lt_aix_libpath_sed='
11597 /Import File Strings/,/^$/ {
11599 s/^0 *\([^ ]*\) *$/\1/
11603 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11604 # Check for a 64-bit object if we didn't find anything.
11605 if test -z "$lt_cv_aix_libpath_"; then
11606 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 if test -z "$lt_cv_aix_libpath_"; then
11612 lt_cv_aix_libpath_="/usr/lib:/lib"
11617 aix_libpath=$lt_cv_aix_libpath_
11620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11621 # Warning - without using the other run time loading flags,
11622 # -berok will link without error, but may produce a broken library.
11623 no_undefined_flag=' ${wl}-bernotok'
11624 allow_undefined_flag=' ${wl}-berok'
11625 if test "$with_gnu_ld" = yes; then
11626 # We only use this code for GNU lds that support --whole-archive.
11627 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11629 # Exported symbols can be pulled into shared objects from archives
11630 whole_archive_flag_spec='$convenience'
11632 archive_cmds_need_lc=yes
11633 # This is similar to how AIX traditionally builds its shared libraries.
11634 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'
11642 # see comment about AmigaOS4 .so support
11643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644 archive_expsym_cmds=''
11647 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)'
11648 hardcode_libdir_flag_spec='-L$libdir'
11649 hardcode_minus_L=yes
11655 export_dynamic_flag_spec=-rdynamic
11658 cygwin* | mingw* | pw32* | cegcc*)
11659 # When not using gcc, we currently assume that we are using
11660 # Microsoft Visual C++.
11661 # hardcode_libdir_flag_spec is actually meaningless, as there is
11662 # no search path for DLLs.
11663 case $cc_basename in
11666 hardcode_libdir_flag_spec=' '
11667 allow_undefined_flag=unsupported
11668 always_export_symbols=yes
11670 # Tell ltmain to make .lib files, not .a files.
11672 # Tell ltmain to make .dll files, not .so files.
11674 # FIXME: Setting linknames here is a bad hack.
11675 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11676 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11677 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11679 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11681 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11683 # The linker will not automatically build a static lib if we build a DLL.
11684 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11685 enable_shared_with_static_runtimes=yes
11686 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11689 old_postinstall_cmds='chmod 644 $oldlib'
11690 postlink_cmds='lt_outputfile="@OUTPUT@"~
11691 lt_tool_outputfile="@TOOL_OUTPUT@"~
11692 case $lt_outputfile in
11695 lt_outputfile="$lt_outputfile.exe"
11696 lt_tool_outputfile="$lt_tool_outputfile.exe"
11699 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11700 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11701 $RM "$lt_outputfile.manifest";
11705 # Assume MSVC wrapper
11706 hardcode_libdir_flag_spec=' '
11707 allow_undefined_flag=unsupported
11708 # Tell ltmain to make .lib files, not .a files.
11710 # Tell ltmain to make .dll files, not .so files.
11712 # FIXME: Setting linknames here is a bad hack.
11713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11714 # The linker will automatically build a .lib file if we build a DLL.
11715 old_archive_from_new_cmds='true'
11716 # FIXME: Should let the user specify the lib program.
11717 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11718 enable_shared_with_static_runtimes=yes
11723 darwin* | rhapsody*)
11726 archive_cmds_need_lc=no
11728 hardcode_automatic=yes
11729 hardcode_shlibpath_var=unsupported
11730 if test "$lt_cv_ld_force_load" = "yes"; then
11731 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\"`'
11734 whole_archive_flag_spec=''
11736 link_all_deplibs=yes
11737 allow_undefined_flag="$_lt_dar_allow_undefined"
11738 case $cc_basename in
11739 ifort*) _lt_dar_can_shared=yes ;;
11740 *) _lt_dar_can_shared=$GCC ;;
11742 if test "$_lt_dar_can_shared" = "yes"; then
11743 output_verbose_link_cmd=func_echo_all
11744 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11745 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11746 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}"
11747 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}"
11756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11757 hardcode_libdir_flag_spec='-L$libdir'
11758 hardcode_shlibpath_var=no
11761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11762 # support. Future versions do this automatically, but an explicit c++rt0.o
11763 # does not break anything, and helps significantly (at the cost of a little
11766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11767 hardcode_libdir_flag_spec='-R$libdir'
11768 hardcode_direct=yes
11769 hardcode_shlibpath_var=no
11772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11775 hardcode_direct=yes
11776 hardcode_minus_L=yes
11777 hardcode_shlibpath_var=no
11780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11781 freebsd* | dragonfly*)
11782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11783 hardcode_libdir_flag_spec='-R$libdir'
11784 hardcode_direct=yes
11785 hardcode_shlibpath_var=no
11789 if test "$GCC" = yes; then
11790 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'
11792 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'
11794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11795 hardcode_libdir_separator=:
11796 hardcode_direct=yes
11798 # hardcode_minus_L: Not really in the search PATH,
11799 # but as the default location of the library.
11800 hardcode_minus_L=yes
11801 export_dynamic_flag_spec='${wl}-E'
11805 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11806 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11810 if test "$with_gnu_ld" = no; then
11811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11812 hardcode_libdir_separator=:
11813 hardcode_direct=yes
11814 hardcode_direct_absolute=yes
11815 export_dynamic_flag_spec='${wl}-E'
11816 # hardcode_minus_L: Not really in the search PATH,
11817 # but as the default location of the library.
11818 hardcode_minus_L=yes
11823 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11826 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11832 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11838 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11845 # Older versions of the 11.00 compiler do not understand -b yet
11846 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11848 $as_echo_n "checking if $CC understands -b... " >&6; }
11849 if ${lt_cv_prog_compiler__b+:} false; then :
11850 $as_echo_n "(cached) " >&6
11852 lt_cv_prog_compiler__b=no
11853 save_LDFLAGS="$LDFLAGS"
11854 LDFLAGS="$LDFLAGS -b"
11855 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11857 # The linker can only warn and ignore the option if not recognized
11858 # So say no if there are warnings
11859 if test -s conftest.err; then
11860 # Append any errors to the config.log.
11861 cat conftest.err 1>&5
11862 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11864 if diff conftest.exp conftest.er2 >/dev/null; then
11865 lt_cv_prog_compiler__b=yes
11868 lt_cv_prog_compiler__b=yes
11872 LDFLAGS="$save_LDFLAGS"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11876 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11878 if test x"$lt_cv_prog_compiler__b" = xyes; then
11879 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11887 if test "$with_gnu_ld" = no; then
11888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11889 hardcode_libdir_separator=:
11894 hardcode_shlibpath_var=no
11897 hardcode_direct=yes
11898 hardcode_direct_absolute=yes
11899 export_dynamic_flag_spec='${wl}-E'
11901 # hardcode_minus_L: Not really in the search PATH,
11902 # but as the default location of the library.
11903 hardcode_minus_L=yes
11909 irix5* | irix6* | nonstopux*)
11910 if test "$GCC" = yes; then
11911 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'
11912 # Try to use the -exported_symbol ld option, if it does not
11913 # work, assume that -exports_file does not work either and
11914 # implicitly export all symbols.
11915 # This should be the same for all languages, so no per-tag cache variable.
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11917 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11918 if ${lt_cv_irix_exported_symbol+:} false; then :
11919 $as_echo_n "(cached) " >&6
11921 save_LDFLAGS="$LDFLAGS"
11922 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 int foo (void) { return 0; }
11927 if ac_fn_c_try_link "$LINENO"; then :
11928 lt_cv_irix_exported_symbol=yes
11930 lt_cv_irix_exported_symbol=no
11932 rm -f core conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LDFLAGS="$save_LDFLAGS"
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11937 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11938 if test "$lt_cv_irix_exported_symbol" = yes; then
11939 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'
11942 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'
11943 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'
11945 archive_cmds_need_lc='no'
11946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11947 hardcode_libdir_separator=:
11949 link_all_deplibs=yes
11952 netbsd* | netbsdelf*-gnu)
11953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11958 hardcode_libdir_flag_spec='-R$libdir'
11959 hardcode_direct=yes
11960 hardcode_shlibpath_var=no
11964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965 hardcode_direct=yes
11966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11967 hardcode_libdir_separator=:
11968 hardcode_shlibpath_var=no
11975 if test -f /usr/libexec/ld.so; then
11976 hardcode_direct=yes
11977 hardcode_shlibpath_var=no
11978 hardcode_direct_absolute=yes
11979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11983 export_dynamic_flag_spec='${wl}-E'
11986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11988 hardcode_libdir_flag_spec='-R$libdir'
11991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12002 hardcode_libdir_flag_spec='-L$libdir'
12003 hardcode_minus_L=yes
12004 allow_undefined_flag=unsupported
12005 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'
12006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12010 if test "$GCC" = yes; then
12011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12012 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'
12014 allow_undefined_flag=' -expect_unresolved \*'
12015 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'
12017 archive_cmds_need_lc='no'
12018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12019 hardcode_libdir_separator=:
12022 osf4* | osf5*) # as osf3* with the addition of -msym flag
12023 if test "$GCC" = yes; then
12024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12025 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'
12026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12028 allow_undefined_flag=' -expect_unresolved \*'
12029 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'
12030 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~
12031 $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'
12033 # Both c and cxx compiler support -rpath directly
12034 hardcode_libdir_flag_spec='-rpath $libdir'
12036 archive_cmds_need_lc='no'
12037 hardcode_libdir_separator=:
12041 no_undefined_flag=' -z defs'
12042 if test "$GCC" = yes; then
12044 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12046 $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'
12048 case `$CC -V 2>&1` in
12051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12063 hardcode_libdir_flag_spec='-R$libdir'
12064 hardcode_shlibpath_var=no
12066 solaris2.[0-5] | solaris2.[0-5].*) ;;
12068 # The compiler driver will combine and reorder linker options,
12069 # but understands `-z linker_flag'. GCC discards it without `$wl',
12070 # but is careful enough not to reorder.
12071 # Supported since Solaris 2.6 (maybe 2.5.1?)
12072 if test "$GCC" = yes; then
12073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12079 link_all_deplibs=yes
12083 if test "x$host_vendor" = xsequent; then
12084 # Use $CC to link under sequent, because it throws in some extra .o
12085 # files that make .init and .fini sections work.
12086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12090 hardcode_libdir_flag_spec='-L$libdir'
12091 hardcode_direct=yes
12092 hardcode_minus_L=yes
12093 hardcode_shlibpath_var=no
12097 case $host_vendor in
12099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12100 hardcode_direct=yes # is this really true???
12103 ## LD is ld it makes a PLAMLIB
12104 ## CC just makes a GrossModule.
12105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12106 reload_cmds='$CC -r -o $output$reload_objs'
12110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12114 runpath_var='LD_RUN_PATH'
12115 hardcode_shlibpath_var=no
12119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12120 hardcode_shlibpath_var=no
12121 export_dynamic_flag_spec='-Bexport'
12125 if test -d /usr/nec; then
12126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12127 hardcode_shlibpath_var=no
12128 runpath_var=LD_RUN_PATH
12129 hardcode_runpath_var=yes
12134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12135 no_undefined_flag='${wl}-z,text'
12136 archive_cmds_need_lc=no
12137 hardcode_shlibpath_var=no
12138 runpath_var='LD_RUN_PATH'
12140 if test "$GCC" = yes; then
12141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 sysv5* | sco3.2v5* | sco5v6*)
12150 # Note: We can NOT use -z defs as we might desire, because we do not
12151 # link with -lc, and that would cause any symbols used from libc to
12152 # always be unresolved, which means just about no library would
12153 # ever link correctly. If we're not using GNU ld we use -z text
12154 # though, which does catch some bad symbols but isn't as heavy-handed
12156 no_undefined_flag='${wl}-z,text'
12157 allow_undefined_flag='${wl}-z,nodefs'
12158 archive_cmds_need_lc=no
12159 hardcode_shlibpath_var=no
12160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12161 hardcode_libdir_separator=':'
12162 link_all_deplibs=yes
12163 export_dynamic_flag_spec='${wl}-Bexport'
12164 runpath_var='LD_RUN_PATH'
12166 if test "$GCC" = yes; then
12167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12177 hardcode_libdir_flag_spec='-L$libdir'
12178 hardcode_shlibpath_var=no
12186 if test x$host_vendor = xsni; then
12188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12189 export_dynamic_flag_spec='${wl}-Blargedynsym'
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12196 $as_echo "$ld_shlibs" >&6; }
12197 test "$ld_shlibs" = no && can_build_shared=no
12199 with_gnu_ld=$with_gnu_ld
12216 # Do we need to explicitly link libc?
12218 case "x$archive_cmds_need_lc" in
12220 # Assume -lc should be added
12221 archive_cmds_need_lc=yes
12223 if test "$enable_shared" = yes && test "$GCC" = yes; then
12224 case $archive_cmds in
12226 # FIXME: we may have to deal with multi-command sequences.
12229 # Test whether the compiler implicitly links with -lc since on some
12230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12231 # to ld, don't add -lc before -lgcc.
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12234 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12235 $as_echo_n "(cached) " >&6
12238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241 (eval $ac_compile) 2>&5
12243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244 test $ac_status = 0; } 2>conftest.err; then
12247 libobjs=conftest.$ac_objext
12249 wl=$lt_prog_compiler_wl
12250 pic_flag=$lt_prog_compiler_pic
12256 lt_save_allow_undefined_flag=$allow_undefined_flag
12257 allow_undefined_flag=
12258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262 test $ac_status = 0; }
12264 lt_cv_archive_cmds_need_lc=no
12266 lt_cv_archive_cmds_need_lc=yes
12268 allow_undefined_flag=$lt_save_allow_undefined_flag
12270 cat conftest.err 1>&5
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12277 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12436 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12438 if test "$GCC" = yes; then
12440 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12441 *) lt_awk_arg="/^libraries:/" ;;
12444 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12445 *) lt_sed_strip_eq="s,=/,/,g" ;;
12447 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12448 case $lt_search_path_spec in
12450 # if the path contains ";" then we assume it to be the separator
12451 # otherwise default to the standard path separator (i.e. ":") - it is
12452 # assumed that no part of a normal pathname contains ";" but that should
12453 # okay in the real world where ";" in dirpaths is itself problematic.
12454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12457 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12460 # Ok, now we have the path, separated by spaces, we can step through it
12461 # and add multilib dir if necessary.
12462 lt_tmp_lt_search_path_spec=
12463 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12464 for lt_sys_path in $lt_search_path_spec; do
12465 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12468 test -d "$lt_sys_path" && \
12469 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12472 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12473 BEGIN {RS=" "; FS="/|\n";} {
12476 for (lt_i = NF; lt_i > 0; lt_i--) {
12477 if ($lt_i != "" && $lt_i != ".") {
12478 if ($lt_i == "..") {
12481 if (lt_count == 0) {
12482 lt_foo="/" $lt_i lt_foo;
12489 if (lt_foo != "") { lt_freq[lt_foo]++; }
12490 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12492 # AWK program above erroneously prepends '/' to C:/dos/paths
12495 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12496 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12498 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12502 library_names_spec=
12503 libname_spec='lib$name'
12507 postuninstall_cmds=
12511 shlibpath_overrides_runpath=unknown
12513 dynamic_linker="$host_os ld.so"
12514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12515 need_lib_prefix=unknown
12516 hardcode_into_libs=no
12518 # when you set need_version to no, make sure it does not cause -set_version
12519 # flags to be left without arguments
12520 need_version=unknown
12524 version_type=linux # correct to gnu/linux during the next big refactor
12525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12526 shlibpath_var=LIBPATH
12528 # AIX 3 has no versioning support, so we append a major version to the name.
12529 soname_spec='${libname}${release}${shared_ext}$major'
12533 version_type=linux # correct to gnu/linux during the next big refactor
12536 hardcode_into_libs=yes
12537 if test "$host_cpu" = ia64; then
12538 # AIX 5 supports IA64
12539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12540 shlibpath_var=LD_LIBRARY_PATH
12542 # With GCC up to 2.95.x, collect2 would create an import file
12543 # for dependence libraries. The import file would start with
12544 # the line `#! .'. This would cause the generated library to
12545 # depend on `.', always an invalid library. This was fixed in
12546 # development snapshots of GCC prior to 3.0.
12548 aix4 | aix4.[01] | aix4.[01].*)
12549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12551 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12554 can_build_shared=no
12558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12559 # soname into executable. Probably we can add versioning support to
12560 # collect2, so additional links can be useful in future.
12561 if test "$aix_use_runtimelinking" = yes; then
12562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12563 # instead of lib<name>.a to let people know that these are not
12564 # typical AIX shared libraries.
12565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567 # We preserve .a as extension for shared libraries through AIX4.2
12568 # and later when we are not doing run time linking.
12569 library_names_spec='${libname}${release}.a $libname.a'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12572 shlibpath_var=LIBPATH
12579 # Since July 2007 AmigaOS4 officially supports .so libraries.
12580 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12584 library_names_spec='$libname.ixlibrary $libname.a'
12585 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12586 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'
12592 library_names_spec='${libname}${shared_ext}'
12593 dynamic_linker="$host_os ld.so"
12594 shlibpath_var=LIBRARY_PATH
12598 version_type=linux # correct to gnu/linux during the next big refactor
12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601 soname_spec='${libname}${release}${shared_ext}$major'
12602 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12605 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12606 # the default ld.so.conf also contains /usr/contrib/lib and
12607 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12608 # libtool to hard-code these into programs
12611 cygwin* | mingw* | pw32* | cegcc*)
12612 version_type=windows
12617 case $GCC,$cc_basename in
12620 library_names_spec='$libname.dll.a'
12621 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12622 postinstall_cmds='base_file=`basename \${file}`~
12623 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12624 dldir=$destdir/`dirname \$dlpath`~
12625 test -d \$dldir || mkdir -p \$dldir~
12626 $install_prog $dir/$dlname \$dldir/$dlname~
12627 chmod a+x \$dldir/$dlname~
12628 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12629 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12632 dlpath=$dir/\$dldll~
12634 shlibpath_overrides_runpath=yes
12638 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12639 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12641 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12644 # MinGW DLLs use traditional 'lib' prefix
12645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12648 # pw32 DLLs use 'pw' prefix rather than 'lib'
12649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12652 dynamic_linker='Win32 ld.exe'
12657 libname_spec='$name'
12658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12659 library_names_spec='${libname}.dll.lib'
12663 sys_lib_search_path_spec=
12666 for lt_path in $LIB
12669 # Let DOS variable expansion print the short 8.3 style file name.
12670 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12671 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12674 # Convert to MSYS style.
12675 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12678 # Convert to unix form, then to dos form, then back to unix form
12679 # but this time dos style (no spaces!) so that the unix form looks
12680 # like /cygdrive/c/PROGRA~1:/cygdr...
12681 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12682 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12683 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12686 sys_lib_search_path_spec="$LIB"
12687 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12688 # It is most probably a Windows format PATH.
12689 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12693 # FIXME: find the short name or the path components, as spaces are
12694 # common. (e.g. "Program Files" -> "PROGRA~1")
12698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12699 postinstall_cmds='base_file=`basename \${file}`~
12700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12701 dldir=$destdir/`dirname \$dlpath`~
12702 test -d \$dldir || mkdir -p \$dldir~
12703 $install_prog $dir/$dlname \$dldir/$dlname'
12704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12705 dlpath=$dir/\$dldll~
12707 shlibpath_overrides_runpath=yes
12708 dynamic_linker='Win32 link.exe'
12712 # Assume MSVC wrapper
12713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12714 dynamic_linker='Win32 ld.exe'
12717 # FIXME: first we should search . and the directory the executable is in
12721 darwin* | rhapsody*)
12722 dynamic_linker="$host_os dyld"
12723 version_type=darwin
12726 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12727 soname_spec='${libname}${release}${major}$shared_ext'
12728 shlibpath_overrides_runpath=yes
12729 shlibpath_var=DYLD_LIBRARY_PATH
12730 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12732 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12737 version_type=linux # correct to gnu/linux during the next big refactor
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12741 soname_spec='${libname}${release}${shared_ext}$major'
12742 shlibpath_var=LD_LIBRARY_PATH
12745 freebsd* | dragonfly*)
12746 # DragonFly does not have aout. When/if they implement a new
12747 # versioning mechanism, adjust this.
12748 if test -x /usr/bin/objformat; then
12749 objformat=`/usr/bin/objformat`
12752 freebsd[23].*) objformat=aout ;;
12753 *) objformat=elf ;;
12756 version_type=freebsd-$objformat
12757 case $version_type in
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12768 shlibpath_var=LD_LIBRARY_PATH
12771 shlibpath_overrides_runpath=yes
12773 freebsd3.[01]* | freebsdelf3.[01]*)
12774 shlibpath_overrides_runpath=yes
12775 hardcode_into_libs=yes
12777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12779 shlibpath_overrides_runpath=no
12780 hardcode_into_libs=yes
12782 *) # from 4.6 on, and DragonFly
12783 shlibpath_overrides_runpath=yes
12784 hardcode_into_libs=yes
12790 version_type=linux # correct to gnu/linux during the next big refactor
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=no
12797 hardcode_into_libs=yes
12801 version_type=linux # correct to gnu/linux during the next big refactor
12804 dynamic_linker="$host_os runtime_loader"
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12806 soname_spec='${libname}${release}${shared_ext}$major'
12807 shlibpath_var=LIBRARY_PATH
12808 shlibpath_overrides_runpath=yes
12809 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12810 hardcode_into_libs=yes
12813 hpux9* | hpux10* | hpux11*)
12814 # Give a soname corresponding to the major version so that dld.sl refuses to
12815 # link against other versions.
12822 hardcode_into_libs=yes
12823 dynamic_linker="$host_os dld.so"
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 if test "X$HPUX_IA64_MODE" = X32; then
12829 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12831 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12837 hardcode_into_libs=yes
12838 dynamic_linker="$host_os dld.sl"
12839 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848 dynamic_linker="$host_os dld.sl"
12849 shlibpath_var=SHLIB_PATH
12850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852 soname_spec='${libname}${release}${shared_ext}$major'
12855 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12856 postinstall_cmds='chmod 555 $lib'
12857 # or fails outright, so override atomically:
12858 install_override_mode=555
12862 version_type=linux # correct to gnu/linux during the next big refactor
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 shlibpath_overrides_runpath=no
12870 hardcode_into_libs=yes
12873 irix5* | irix6* | nonstopux*)
12875 nonstopux*) version_type=nonstopux ;;
12877 if test "$lt_cv_prog_gnu_ld" = yes; then
12878 version_type=linux # correct to gnu/linux during the next big refactor
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12888 irix5* | nonstopux*)
12889 libsuff= shlibsuff=
12892 case $LD in # libtool.m4 will add one of these switches to LD
12893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12894 libsuff= shlibsuff= libmagic=32-bit;;
12895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12896 libsuff=32 shlibsuff=N32 libmagic=N32;;
12897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12899 *) libsuff= shlibsuff= libmagic=never-match;;
12903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12904 shlibpath_overrides_runpath=no
12905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12907 hardcode_into_libs=yes
12910 # No shared lib support for Linux oldld, aout, or coff.
12911 linux*oldld* | linux*aout* | linux*coff*)
12915 # This must be glibc/ELF.
12916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12917 version_type=linux # correct to gnu/linux during the next big refactor
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921 soname_spec='${libname}${release}${shared_ext}$major'
12922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12923 shlibpath_var=LD_LIBRARY_PATH
12924 shlibpath_overrides_runpath=no
12926 # Some binutils ld are patched to set DT_RUNPATH
12927 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12928 $as_echo_n "(cached) " >&6
12930 lt_cv_shlibpath_overrides_runpath=no
12931 save_LDFLAGS=$LDFLAGS
12932 save_libdir=$libdir
12933 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12934 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12946 if ac_fn_c_try_link "$LINENO"; then :
12947 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12948 lt_cv_shlibpath_overrides_runpath=yes
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LDFLAGS=$save_LDFLAGS
12954 libdir=$save_libdir
12958 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12960 # This implies no fast_install, which is unacceptable.
12961 # Some rework will be needed to allow for fast_install
12962 # before this can be enabled.
12963 hardcode_into_libs=yes
12965 # Append ld.so.conf contents to the search path
12966 if test -f /etc/ld.so.conf; then
12967 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' ' '`
12968 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12971 # We used to test for /lib/ld.so.1 and disable shared libraries on
12972 # powerpc, because MkLinux only supported shared libraries with the
12973 # GNU dynamic linker. Since this was broken with cross compilers,
12974 # most powerpc-linux boxes support dynamic linking these days and
12975 # people can always --disable-shared, the test was removed, and we
12976 # assume the GNU/Linux dynamic linker is in use.
12977 dynamic_linker='GNU/Linux ld.so'
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=no
12988 hardcode_into_libs=yes
12989 dynamic_linker='NetBSD ld.elf_so'
12996 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999 dynamic_linker='NetBSD (a.out) ld.so'
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 dynamic_linker='NetBSD ld.elf_so'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=yes
13007 hardcode_into_libs=yes
13011 version_type=linux # correct to gnu/linux during the next big refactor
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=yes
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=no
13025 hardcode_into_libs=yes
13026 dynamic_linker='ldqnx.so'
13031 sys_lib_dlsearch_path_spec="/usr/lib"
13033 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13035 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13036 *) need_version=no ;;
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13043 openbsd2.[89] | openbsd2.[89].*)
13044 shlibpath_overrides_runpath=no
13047 shlibpath_overrides_runpath=yes
13051 shlibpath_overrides_runpath=yes
13056 libname_spec='$name'
13059 library_names_spec='$libname${shared_ext} $libname.a'
13060 dynamic_linker='OS/2 ld.exe'
13061 shlibpath_var=LIBPATH
13064 osf3* | osf4* | osf5*)
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13080 version_type=linux # correct to gnu/linux during the next big refactor
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 shlibpath_overrides_runpath=yes
13087 hardcode_into_libs=yes
13088 # ldd complains unless libraries are executable
13089 postinstall_cmds='chmod +x $lib'
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 shlibpath_overrides_runpath=yes
13098 if test "$with_gnu_ld" = yes; then
13105 version_type=linux # correct to gnu/linux during the next big refactor
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107 soname_spec='${libname}${release}${shared_ext}$major'
13108 shlibpath_var=LD_LIBRARY_PATH
13109 case $host_vendor in
13111 shlibpath_overrides_runpath=no
13113 runpath_var=LD_RUN_PATH
13121 shlibpath_overrides_runpath=no
13122 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13128 if test -d /usr/nec ;then
13129 version_type=linux # correct to gnu/linux during the next big refactor
13130 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13131 soname_spec='$libname${shared_ext}.$major'
13132 shlibpath_var=LD_LIBRARY_PATH
13136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13137 version_type=freebsd-elf
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=yes
13144 hardcode_into_libs=yes
13145 if test "$with_gnu_ld" = yes; then
13146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13148 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13151 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13155 sys_lib_dlsearch_path_spec='/usr/lib'
13159 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13160 version_type=linux # correct to gnu/linux during the next big refactor
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 shlibpath_overrides_runpath=no
13166 hardcode_into_libs=yes
13170 version_type=linux # correct to gnu/linux during the next big refactor
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172 soname_spec='${libname}${release}${shared_ext}$major'
13173 shlibpath_var=LD_LIBRARY_PATH
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13181 $as_echo "$dynamic_linker" >&6; }
13182 test "$dynamic_linker" = no && can_build_shared=no
13184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13185 if test "$GCC" = yes; then
13186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13189 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13190 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13192 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13193 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13290 if test -n "$hardcode_libdir_flag_spec" ||
13291 test -n "$runpath_var" ||
13292 test "X$hardcode_automatic" = "Xyes" ; then
13294 # We can hardcode non-existent directories.
13295 if test "$hardcode_direct" != no &&
13296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13297 # have to relink, otherwise we might link with an installed library
13298 # when we should be linking with a yet-to-be-installed one
13299 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13300 test "$hardcode_minus_L" != no; then
13301 # Linking always hardcodes the temporary library directory.
13302 hardcode_action=relink
13304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13305 hardcode_action=immediate
13308 # We cannot hardcode anything, or else we can only hardcode existing
13310 hardcode_action=unsupported
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13313 $as_echo "$hardcode_action" >&6; }
13315 if test "$hardcode_action" = relink ||
13316 test "$inherit_rpath" = yes; then
13317 # Fast installation is not supported
13318 enable_fast_install=no
13319 elif test "$shlibpath_overrides_runpath" = yes ||
13320 test "$enable_shared" = no; then
13321 # Fast installation is not necessary
13322 enable_fast_install=needless
13330 if test "x$enable_dlopen" != xyes; then
13331 enable_dlopen=unknown
13332 enable_dlopen_self=unknown
13333 enable_dlopen_self_static=unknown
13340 lt_cv_dlopen="load_add_on"
13342 lt_cv_dlopen_self=yes
13345 mingw* | pw32* | cegcc*)
13346 lt_cv_dlopen="LoadLibrary"
13351 lt_cv_dlopen="dlopen"
13356 # if libdl is installed we need to link against it
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13358 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13359 if ${ac_cv_lib_dl_dlopen+:} false; then :
13360 $as_echo_n "(cached) " >&6
13362 ac_check_lib_save_LIBS=$LIBS
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13367 /* Override any GCC internal prototype to avoid an error.
13368 Use char because int might match the return type of a GCC
13369 builtin and then its argument prototype would still apply. */
13382 if ac_fn_c_try_link "$LINENO"; then :
13383 ac_cv_lib_dl_dlopen=yes
13385 ac_cv_lib_dl_dlopen=no
13387 rm -f core conftest.err conftest.$ac_objext \
13388 conftest$ac_exeext conftest.$ac_ext
13389 LIBS=$ac_check_lib_save_LIBS
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13392 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13393 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13397 lt_cv_dlopen="dyld"
13399 lt_cv_dlopen_self=yes
13406 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13407 if test "x$ac_cv_func_shl_load" = xyes; then :
13408 lt_cv_dlopen="shl_load"
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13411 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13412 if ${ac_cv_lib_dld_shl_load+:} false; then :
13413 $as_echo_n "(cached) " >&6
13415 ac_check_lib_save_LIBS=$LIBS
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13420 /* Override any GCC internal prototype to avoid an error.
13421 Use char because int might match the return type of a GCC
13422 builtin and then its argument prototype would still apply. */
13430 return shl_load ();
13435 if ac_fn_c_try_link "$LINENO"; then :
13436 ac_cv_lib_dld_shl_load=yes
13438 ac_cv_lib_dld_shl_load=no
13440 rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13442 LIBS=$ac_check_lib_save_LIBS
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13445 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13446 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13447 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13449 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13450 if test "x$ac_cv_func_dlopen" = xyes; then :
13451 lt_cv_dlopen="dlopen"
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13454 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13455 if ${ac_cv_lib_dl_dlopen+:} false; then :
13456 $as_echo_n "(cached) " >&6
13458 ac_check_lib_save_LIBS=$LIBS
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13463 /* Override any GCC internal prototype to avoid an error.
13464 Use char because int might match the return type of a GCC
13465 builtin and then its argument prototype would still apply. */
13478 if ac_fn_c_try_link "$LINENO"; then :
13479 ac_cv_lib_dl_dlopen=yes
13481 ac_cv_lib_dl_dlopen=no
13483 rm -f core conftest.err conftest.$ac_objext \
13484 conftest$ac_exeext conftest.$ac_ext
13485 LIBS=$ac_check_lib_save_LIBS
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13488 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13489 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13493 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13494 if ${ac_cv_lib_svld_dlopen+:} false; then :
13495 $as_echo_n "(cached) " >&6
13497 ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lsvld $LIBS"
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13502 /* Override any GCC internal prototype to avoid an error.
13503 Use char because int might match the return type of a GCC
13504 builtin and then its argument prototype would still apply. */
13517 if ac_fn_c_try_link "$LINENO"; then :
13518 ac_cv_lib_svld_dlopen=yes
13520 ac_cv_lib_svld_dlopen=no
13522 rm -f core conftest.err conftest.$ac_objext \
13523 conftest$ac_exeext conftest.$ac_ext
13524 LIBS=$ac_check_lib_save_LIBS
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13527 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13528 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13532 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13533 if ${ac_cv_lib_dld_dld_link+:} false; then :
13534 $as_echo_n "(cached) " >&6
13536 ac_check_lib_save_LIBS=$LIBS
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13551 return dld_link ();
13556 if ac_fn_c_try_link "$LINENO"; then :
13557 ac_cv_lib_dld_dld_link=yes
13559 ac_cv_lib_dld_dld_link=no
13561 rm -f core conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13566 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13567 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13568 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13589 if test "x$lt_cv_dlopen" != xno; then
13595 case $lt_cv_dlopen in
13597 save_CPPFLAGS="$CPPFLAGS"
13598 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13600 save_LDFLAGS="$LDFLAGS"
13601 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13604 LIBS="$lt_cv_dlopen_libs $LIBS"
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13607 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13608 if ${lt_cv_dlopen_self+:} false; then :
13609 $as_echo_n "(cached) " >&6
13611 if test "$cross_compiling" = yes; then :
13612 lt_cv_dlopen_self=cross
13614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13615 lt_status=$lt_dlunknown
13616 cat > conftest.$ac_ext <<_LT_EOF
13617 #line $LINENO "configure"
13618 #include "confdefs.h"
13627 # define LT_DLGLOBAL RTLD_GLOBAL
13630 # define LT_DLGLOBAL DL_GLOBAL
13632 # define LT_DLGLOBAL 0
13636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13637 find out it does not work in some platform. */
13638 #ifndef LT_DLLAZY_OR_NOW
13640 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13643 # define LT_DLLAZY_OR_NOW DL_LAZY
13646 # define LT_DLLAZY_OR_NOW RTLD_NOW
13649 # define LT_DLLAZY_OR_NOW DL_NOW
13651 # define LT_DLLAZY_OR_NOW 0
13658 /* When -fvisbility=hidden is used, assume the code has been annotated
13659 correspondingly for the symbols needed. */
13660 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13661 int fnord () __attribute__((visibility("default")));
13664 int fnord () { return 42; }
13667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13668 int status = $lt_dlunknown;
13672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13675 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13676 else puts (dlerror ());
13678 /* dlclose (self); */
13686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13687 (eval $ac_link) 2>&5
13689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13691 (./conftest; exit; ) >&5 2>/dev/null
13693 case x$lt_status in
13694 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13695 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13696 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13699 # compilation failed
13700 lt_cv_dlopen_self=no
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13708 $as_echo "$lt_cv_dlopen_self" >&6; }
13710 if test "x$lt_cv_dlopen_self" = xyes; then
13711 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13713 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13714 if ${lt_cv_dlopen_self_static+:} false; then :
13715 $as_echo_n "(cached) " >&6
13717 if test "$cross_compiling" = yes; then :
13718 lt_cv_dlopen_self_static=cross
13720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13721 lt_status=$lt_dlunknown
13722 cat > conftest.$ac_ext <<_LT_EOF
13723 #line $LINENO "configure"
13724 #include "confdefs.h"
13733 # define LT_DLGLOBAL RTLD_GLOBAL
13736 # define LT_DLGLOBAL DL_GLOBAL
13738 # define LT_DLGLOBAL 0
13742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13743 find out it does not work in some platform. */
13744 #ifndef LT_DLLAZY_OR_NOW
13746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13749 # define LT_DLLAZY_OR_NOW DL_LAZY
13752 # define LT_DLLAZY_OR_NOW RTLD_NOW
13755 # define LT_DLLAZY_OR_NOW DL_NOW
13757 # define LT_DLLAZY_OR_NOW 0
13764 /* When -fvisbility=hidden is used, assume the code has been annotated
13765 correspondingly for the symbols needed. */
13766 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13767 int fnord () __attribute__((visibility("default")));
13770 int fnord () { return 42; }
13773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13774 int status = $lt_dlunknown;
13778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13782 else puts (dlerror ());
13784 /* dlclose (self); */
13792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13793 (eval $ac_link) 2>&5
13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13797 (./conftest; exit; ) >&5 2>/dev/null
13799 case x$lt_status in
13800 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13801 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13802 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13805 # compilation failed
13806 lt_cv_dlopen_self_static=no
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13814 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13817 CPPFLAGS="$save_CPPFLAGS"
13818 LDFLAGS="$save_LDFLAGS"
13823 case $lt_cv_dlopen_self in
13824 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13825 *) enable_dlopen_self=unknown ;;
13828 case $lt_cv_dlopen_self_static in
13829 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13830 *) enable_dlopen_self_static=unknown ;;
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13853 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13854 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13855 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13856 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13858 $as_echo "yes" >&6; }
13860 # FIXME - insert some real tests, host_os isn't really good enough
13863 if test -n "$STRIP" ; then
13864 striplib="$STRIP -x"
13865 old_striplib="$STRIP -S"
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13867 $as_echo "yes" >&6; }
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13891 # Report which library types will actually be built
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13893 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13895 $as_echo "$can_build_shared" >&6; }
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13898 $as_echo_n "checking whether to build shared libraries... " >&6; }
13899 test "$can_build_shared" = "no" && enable_shared=no
13901 # On AIX, shared libraries and static libraries use the same namespace, and
13902 # are all built from PIC.
13905 test "$enable_shared" = yes && enable_static=no
13906 if test -n "$RANLIB"; then
13907 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13908 postinstall_cmds='$RANLIB $lib'
13913 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13914 test "$enable_shared" = yes && enable_static=no
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13919 $as_echo "$enable_shared" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13922 $as_echo_n "checking whether to build static libraries... " >&6; }
13923 # Make sure either enable_shared or enable_static is yes.
13924 test "$enable_shared" = yes || enable_static=yes
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13926 $as_echo "$enable_static" >&6; }
13933 ac_cpp='$CPP $CPPFLAGS'
13934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13940 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13941 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13942 (test "X$CXX" != "Xg++"))) ; then
13944 ac_cpp='$CXXCPP $CPPFLAGS'
13945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13949 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13950 if test -z "$CXXCPP"; then
13951 if ${ac_cv_prog_CXXCPP+:} false; then :
13952 $as_echo_n "(cached) " >&6
13954 # Double quotes because CXXCPP needs to be expanded
13955 for CXXCPP in "$CXX -E" "/lib/cpp"
13957 ac_preproc_ok=false
13958 for ac_cxx_preproc_warn_flag in '' yes
13960 # Use a header file that comes with gcc, so configuring glibc
13961 # with a fresh cross-compiler works.
13962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13963 # <limits.h> exists even on freestanding compilers.
13964 # On the NeXT, cc -E runs the code through the compiler's parser,
13965 # not just through cpp. "Syntax error" is here to catch this case.
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13969 # include <limits.h>
13971 # include <assert.h>
13975 if ac_fn_cxx_try_cpp "$LINENO"; then :
13978 # Broken: fails on valid input.
13981 rm -f conftest.err conftest.i conftest.$ac_ext
13983 # OK, works on sane cases. Now check whether nonexistent headers
13984 # can be detected and how.
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 #include <ac_nonexistent.h>
13989 if ac_fn_cxx_try_cpp "$LINENO"; then :
13990 # Broken: success on invalid input.
13993 # Passes both tests.
13997 rm -f conftest.err conftest.i conftest.$ac_ext
14000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14001 rm -f conftest.i conftest.err conftest.$ac_ext
14002 if $ac_preproc_ok; then :
14007 ac_cv_prog_CXXCPP=$CXXCPP
14010 CXXCPP=$ac_cv_prog_CXXCPP
14012 ac_cv_prog_CXXCPP=$CXXCPP
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14015 $as_echo "$CXXCPP" >&6; }
14016 ac_preproc_ok=false
14017 for ac_cxx_preproc_warn_flag in '' yes
14019 # Use a header file that comes with gcc, so configuring glibc
14020 # with a fresh cross-compiler works.
14021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14022 # <limits.h> exists even on freestanding compilers.
14023 # On the NeXT, cc -E runs the code through the compiler's parser,
14024 # not just through cpp. "Syntax error" is here to catch this case.
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14028 # include <limits.h>
14030 # include <assert.h>
14034 if ac_fn_cxx_try_cpp "$LINENO"; then :
14037 # Broken: fails on valid input.
14040 rm -f conftest.err conftest.i conftest.$ac_ext
14042 # OK, works on sane cases. Now check whether nonexistent headers
14043 # can be detected and how.
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 #include <ac_nonexistent.h>
14048 if ac_fn_cxx_try_cpp "$LINENO"; then :
14049 # Broken: success on invalid input.
14052 # Passes both tests.
14056 rm -f conftest.err conftest.i conftest.$ac_ext
14059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14060 rm -f conftest.i conftest.err conftest.$ac_ext
14061 if $ac_preproc_ok; then :
14064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14066 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14067 See \`config.log' for more details" "$LINENO" 5; }
14071 ac_cpp='$CPP $CPPFLAGS'
14072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077 _lt_caught_CXX_error=yes
14081 ac_cpp='$CXXCPP $CPPFLAGS'
14082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14086 archive_cmds_need_lc_CXX=no
14087 allow_undefined_flag_CXX=
14088 always_export_symbols_CXX=no
14089 archive_expsym_cmds_CXX=
14090 compiler_needs_object_CXX=no
14091 export_dynamic_flag_spec_CXX=
14092 hardcode_direct_CXX=no
14093 hardcode_direct_absolute_CXX=no
14094 hardcode_libdir_flag_spec_CXX=
14095 hardcode_libdir_separator_CXX=
14096 hardcode_minus_L_CXX=no
14097 hardcode_shlibpath_var_CXX=unsupported
14098 hardcode_automatic_CXX=no
14099 inherit_rpath_CXX=no
14101 module_expsym_cmds_CXX=
14102 link_all_deplibs_CXX=unknown
14103 old_archive_cmds_CXX=$old_archive_cmds
14104 reload_flag_CXX=$reload_flag
14105 reload_cmds_CXX=$reload_cmds
14106 no_undefined_flag_CXX=
14107 whole_archive_flag_spec_CXX=
14108 enable_shared_with_static_runtimes_CXX=no
14110 # Source file extension for C++ test sources.
14113 # Object file extension for compiled C++ test sources.
14117 # No sense in running all these tests if we already determined that
14118 # the CXX compiler isn't working. Some variables (like enable_shared)
14119 # are currently assumed to apply to all compilers on this platform,
14120 # and will be corrupted by setting them based on a non-working compiler.
14121 if test "$_lt_caught_CXX_error" != yes; then
14122 # Code to be used in simple compile tests
14123 lt_simple_compile_test_code="int some_variable = 0;"
14125 # Code to be used in simple link tests
14126 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14135 # If no C compiler was specified, use CC.
14138 # If no C compiler flags were specified, use CFLAGS.
14139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14141 # Allow CC to be a program name with arguments.
14145 # save warnings/boilerplate of simple test code
14146 ac_outfile=conftest.$ac_objext
14147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14149 _lt_compiler_boilerplate=`cat conftest.err`
14152 ac_outfile=conftest.$ac_objext
14153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14155 _lt_linker_boilerplate=`cat conftest.err`
14159 # Allow CC to be a program name with arguments.
14161 lt_save_CFLAGS=$CFLAGS
14165 lt_save_with_gnu_ld=$with_gnu_ld
14166 lt_save_path_LD=$lt_cv_path_LD
14167 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14168 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14170 $as_unset lt_cv_prog_gnu_ld
14172 if test -n "${lt_cv_path_LDCXX+set}"; then
14173 lt_cv_path_LD=$lt_cv_path_LDCXX
14175 $as_unset lt_cv_path_LD
14177 test -z "${LDCXX+set}" || LD=$LDCXX
14182 for cc_temp in $compiler""; do
14184 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14185 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14190 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14193 if test -n "$compiler"; then
14194 # We don't want -fno-exception when compiling C++ code, so set the
14195 # no_builtin_flag separately
14196 if test "$GXX" = yes; then
14197 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14199 lt_prog_compiler_no_builtin_flag_CXX=
14202 if test "$GXX" = yes; then
14203 # Set up default GNU C++ configuration
14207 # Check whether --with-gnu-ld was given.
14208 if test "${with_gnu_ld+set}" = set; then :
14209 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14215 if test "$GCC" = yes; then
14216 # Check if gcc -print-prog-name=ld gives a path.
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14218 $as_echo_n "checking for ld used by $CC... " >&6; }
14221 # gcc leaves a trailing carriage return which upsets mingw
14222 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14224 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14227 # Accept absolute paths.
14229 re_direlt='/[^/][^/]*/\.\./'
14230 # Canonicalize the pathname of ld
14231 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14232 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14233 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14235 test -z "$LD" && LD="$ac_prog"
14238 # If it fails, then pretend we aren't using GCC.
14242 # If it is relative, then search for the first ld in PATH.
14243 with_gnu_ld=unknown
14246 elif test "$with_gnu_ld" = yes; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14248 $as_echo_n "checking for GNU ld... " >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14251 $as_echo_n "checking for non-GNU ld... " >&6; }
14253 if ${lt_cv_path_LD+:} false; then :
14254 $as_echo_n "(cached) " >&6
14256 if test -z "$LD"; then
14257 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14258 for ac_dir in $PATH; do
14260 test -z "$ac_dir" && ac_dir=.
14261 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14262 lt_cv_path_LD="$ac_dir/$ac_prog"
14263 # Check to see if the program is GNU ld. I'd rather use --version,
14264 # but apparently some variants of GNU ld only accept -v.
14265 # Break only if it was the GNU/non-GNU ld that we prefer.
14266 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14267 *GNU* | *'with BFD'*)
14268 test "$with_gnu_ld" != no && break
14271 test "$with_gnu_ld" != yes && break
14278 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14282 LD="$lt_cv_path_LD"
14283 if test -n "$LD"; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14285 $as_echo "$LD" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14290 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14292 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14293 if ${lt_cv_prog_gnu_ld+:} false; then :
14294 $as_echo_n "(cached) " >&6
14296 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14297 case `$LD -v 2>&1 </dev/null` in
14298 *GNU* | *'with BFD'*)
14299 lt_cv_prog_gnu_ld=yes
14302 lt_cv_prog_gnu_ld=no
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14307 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14308 with_gnu_ld=$lt_cv_prog_gnu_ld
14316 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14317 # archiving commands below assume that GNU ld is being used.
14318 if test "$with_gnu_ld" = yes; then
14319 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320 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'
14322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14325 # If archive_cmds runs LD, not CC, wlarc should be empty
14326 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14327 # investigate it a little bit more. (MM)
14330 # ancient GNU ld didn't support --whole-archive et. al.
14331 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14332 $GREP 'no-whole-archive' > /dev/null; then
14333 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14335 whole_archive_flag_spec_CXX=
14341 # A generic and very simple default shared library creation
14342 # command for GNU C++ for the case where it uses the native
14343 # linker, instead of GNU ld. If possible, this setting should
14344 # overridden to take advantage of the native linker features on
14345 # the platform it is being used on.
14346 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14349 # Commands to make compiler produce verbose output that lists
14350 # what "hidden" libraries, object files and flags are used when
14351 # linking a shared library.
14352 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14360 # PORTME: fill in a description of your system's C++ link characteristics
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14362 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14366 # FIXME: insert proper C++ library support
14370 if test "$host_cpu" = ia64; then
14371 # On IA64, the linker does run time linking by default, so we don't
14372 # have to do anything special.
14373 aix_use_runtimelinking=no
14374 exp_sym_flag='-Bexport'
14377 aix_use_runtimelinking=no
14379 # Test if we are trying to use run time linking or normal
14380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14381 # need to do runtime linking.
14382 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14383 for ld_flag in $LDFLAGS; do
14386 aix_use_runtimelinking=yes
14394 exp_sym_flag='-bexport'
14395 no_entry_flag='-bnoentry'
14398 # When large executables or shared objects are built, AIX ld can
14399 # have problems creating the table of contents. If linking a library
14400 # or program results in "error TOC overflow" add -mminimal-toc to
14401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14404 archive_cmds_CXX=''
14405 hardcode_direct_CXX=yes
14406 hardcode_direct_absolute_CXX=yes
14407 hardcode_libdir_separator_CXX=':'
14408 link_all_deplibs_CXX=yes
14409 file_list_spec_CXX='${wl}-f,'
14411 if test "$GXX" = yes; then
14412 case $host_os in aix4.[012]|aix4.[012].*)
14413 # We only want to do this on AIX 4.2 and lower, the check
14414 # below for broken collect2 doesn't work under 4.3+
14415 collect2name=`${CC} -print-prog-name=collect2`
14416 if test -f "$collect2name" &&
14417 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14419 # We have reworked collect2
14422 # We have old collect2
14423 hardcode_direct_CXX=unsupported
14424 # It fails to find uninstalled libraries when the uninstalled
14425 # path is not listed in the libpath. Setting hardcode_minus_L
14426 # to unsupported forces relinking
14427 hardcode_minus_L_CXX=yes
14428 hardcode_libdir_flag_spec_CXX='-L$libdir'
14429 hardcode_libdir_separator_CXX=
14432 shared_flag='-shared'
14433 if test "$aix_use_runtimelinking" = yes; then
14434 shared_flag="$shared_flag "'${wl}-G'
14438 if test "$host_cpu" = ia64; then
14439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14440 # chokes on -Wl,-G. The following line is correct:
14443 if test "$aix_use_runtimelinking" = yes; then
14444 shared_flag='${wl}-G'
14446 shared_flag='${wl}-bM:SRE'
14451 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14452 # It seems that -bexpall does not export symbols beginning with
14453 # underscore (_), so it is better to generate a list of symbols to
14455 always_export_symbols_CXX=yes
14456 if test "$aix_use_runtimelinking" = yes; then
14457 # Warning - without using the other runtime loading flags (-brtl),
14458 # -berok will link without error, but may produce a broken library.
14459 allow_undefined_flag_CXX='-berok'
14460 # Determine the default libpath from the value encoded in an empty
14462 if test "${lt_cv_aix_libpath+set}" = set; then
14463 aix_libpath=$lt_cv_aix_libpath
14465 if ${lt_cv_aix_libpath__CXX+:} false; then :
14466 $as_echo_n "(cached) " >&6
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14479 if ac_fn_cxx_try_link "$LINENO"; then :
14481 lt_aix_libpath_sed='
14482 /Import File Strings/,/^$/ {
14484 s/^0 *\([^ ]*\) *$/\1/
14488 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14489 # Check for a 64-bit object if we didn't find anything.
14490 if test -z "$lt_cv_aix_libpath__CXX"; then
14491 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14496 if test -z "$lt_cv_aix_libpath__CXX"; then
14497 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14502 aix_libpath=$lt_cv_aix_libpath__CXX
14505 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14507 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"
14509 if test "$host_cpu" = ia64; then
14510 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14511 allow_undefined_flag_CXX="-z nodefs"
14512 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"
14514 # Determine the default libpath from the value encoded in an
14515 # empty executable.
14516 if test "${lt_cv_aix_libpath+set}" = set; then
14517 aix_libpath=$lt_cv_aix_libpath
14519 if ${lt_cv_aix_libpath__CXX+:} false; then :
14520 $as_echo_n "(cached) " >&6
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14533 if ac_fn_cxx_try_link "$LINENO"; then :
14535 lt_aix_libpath_sed='
14536 /Import File Strings/,/^$/ {
14538 s/^0 *\([^ ]*\) *$/\1/
14542 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14543 # Check for a 64-bit object if we didn't find anything.
14544 if test -z "$lt_cv_aix_libpath__CXX"; then
14545 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 if test -z "$lt_cv_aix_libpath__CXX"; then
14551 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14556 aix_libpath=$lt_cv_aix_libpath__CXX
14559 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14560 # Warning - without using the other run time loading flags,
14561 # -berok will link without error, but may produce a broken library.
14562 no_undefined_flag_CXX=' ${wl}-bernotok'
14563 allow_undefined_flag_CXX=' ${wl}-berok'
14564 if test "$with_gnu_ld" = yes; then
14565 # We only use this code for GNU lds that support --whole-archive.
14566 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14568 # Exported symbols can be pulled into shared objects from archives
14569 whole_archive_flag_spec_CXX='$convenience'
14571 archive_cmds_need_lc_CXX=yes
14572 # This is similar to how AIX traditionally builds its shared
14574 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'
14580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14581 allow_undefined_flag_CXX=unsupported
14582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14583 # support --undefined. This deserves some investigation. FIXME
14584 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14591 case $cc_basename in
14593 # FIXME: insert proper C++ library support
14599 cygwin* | mingw* | pw32* | cegcc*)
14600 case $GXX,$cc_basename in
14603 # hardcode_libdir_flag_spec is actually meaningless, as there is
14604 # no search path for DLLs.
14605 hardcode_libdir_flag_spec_CXX=' '
14606 allow_undefined_flag_CXX=unsupported
14607 always_export_symbols_CXX=yes
14608 file_list_spec_CXX='@'
14609 # Tell ltmain to make .lib files, not .a files.
14611 # Tell ltmain to make .dll files, not .so files.
14613 # FIXME: Setting linknames here is a bad hack.
14614 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14615 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14616 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14618 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14620 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14622 # The linker will not automatically build a static lib if we build a DLL.
14623 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14624 enable_shared_with_static_runtimes_CXX=yes
14626 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14627 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14628 lt_tool_outputfile="@TOOL_OUTPUT@"~
14629 case $lt_outputfile in
14632 lt_outputfile="$lt_outputfile.exe"
14633 lt_tool_outputfile="$lt_tool_outputfile.exe"
14636 func_to_tool_file "$lt_outputfile"~
14637 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14638 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14639 $RM "$lt_outputfile.manifest";
14644 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14645 # as there is no search path for DLLs.
14646 hardcode_libdir_flag_spec_CXX='-L$libdir'
14647 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14648 allow_undefined_flag_CXX=unsupported
14649 always_export_symbols_CXX=no
14650 enable_shared_with_static_runtimes_CXX=yes
14652 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14653 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'
14654 # If the export-symbols file already is a .def file (1st line
14655 # is EXPORTS), use it as is; otherwise, prepend...
14656 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14657 cp $export_symbols $output_objdir/$soname.def;
14659 echo EXPORTS > $output_objdir/$soname.def;
14660 cat $export_symbols >> $output_objdir/$soname.def;
14662 $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'
14669 darwin* | rhapsody*)
14672 archive_cmds_need_lc_CXX=no
14673 hardcode_direct_CXX=no
14674 hardcode_automatic_CXX=yes
14675 hardcode_shlibpath_var_CXX=unsupported
14676 if test "$lt_cv_ld_force_load" = "yes"; then
14677 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\"`'
14680 whole_archive_flag_spec_CXX=''
14682 link_all_deplibs_CXX=yes
14683 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14684 case $cc_basename in
14685 ifort*) _lt_dar_can_shared=yes ;;
14686 *) _lt_dar_can_shared=$GCC ;;
14688 if test "$_lt_dar_can_shared" = "yes"; then
14689 output_verbose_link_cmd=func_echo_all
14690 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}"
14691 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14692 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}"
14693 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}"
14694 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14695 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}"
14696 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}"
14706 case $cc_basename in
14708 # FIXME: insert proper C++ library support
14712 # Green Hills C++ Compiler
14713 # FIXME: insert proper C++ library support
14717 # FIXME: insert proper C++ library support
14724 # C++ shared libraries reported to be fairly broken before
14730 archive_cmds_need_lc_CXX=no
14733 freebsd* | dragonfly*)
14734 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14743 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14744 link_all_deplibs_CXX=yes
14748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14749 hardcode_libdir_separator_CXX=:
14750 export_dynamic_flag_spec_CXX='${wl}-E'
14751 hardcode_direct_CXX=yes
14752 hardcode_minus_L_CXX=yes # Not in the search PATH,
14753 # but as the default
14754 # location of the library.
14756 case $cc_basename in
14758 # FIXME: insert proper C++ library support
14762 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'
14763 # Commands to make compiler produce verbose output that lists
14764 # what "hidden" libraries, object files and flags are used when
14765 # linking a shared library.
14767 # There doesn't appear to be a way to prevent this compiler from
14768 # explicitly linking system object files so we need to strip them
14769 # from the output so that they don't get included in the library
14771 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"'
14774 if test "$GXX" = yes; then
14775 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'
14777 # FIXME: insert proper C++ library support
14785 if test $with_gnu_ld = no; then
14786 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14787 hardcode_libdir_separator_CXX=:
14793 export_dynamic_flag_spec_CXX='${wl}-E'
14799 hardcode_direct_CXX=no
14800 hardcode_shlibpath_var_CXX=no
14803 hardcode_direct_CXX=yes
14804 hardcode_direct_absolute_CXX=yes
14805 hardcode_minus_L_CXX=yes # Not in the search PATH,
14806 # but as the default
14807 # location of the library.
14811 case $cc_basename in
14813 # FIXME: insert proper C++ library support
14819 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14822 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14825 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14828 # Commands to make compiler produce verbose output that lists
14829 # what "hidden" libraries, object files and flags are used when
14830 # linking a shared library.
14832 # There doesn't appear to be a way to prevent this compiler from
14833 # explicitly linking system object files so we need to strip them
14834 # from the output so that they don't get included in the library
14836 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"'
14839 if test "$GXX" = yes; then
14840 if test $with_gnu_ld = no; then
14843 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14846 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14849 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'
14854 # FIXME: insert proper C++ library support
14862 hardcode_direct_CXX=no
14863 hardcode_shlibpath_var_CXX=no
14864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14865 export_dynamic_flag_spec_CXX='${wl}-E'
14866 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14867 # Instead, shared libraries are loaded at an image base (0x10000000 by
14868 # default) and relocated if they conflict, which is a slow very memory
14869 # consuming and fragmenting process. To avoid this, we pick a random,
14870 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14871 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14872 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'
14873 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'
14876 case $cc_basename in
14879 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'
14881 # Archives containing C++ object files must be created using
14882 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14883 # necessary to make sure instantiated templates are included
14885 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14888 if test "$GXX" = yes; then
14889 if test "$with_gnu_ld" = no; then
14890 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'
14892 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'
14895 link_all_deplibs_CXX=yes
14898 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14899 hardcode_libdir_separator_CXX=:
14900 inherit_rpath_CXX=yes
14903 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14904 case $cc_basename in
14906 # Kuck and Associates, Inc. (KAI) C++ Compiler
14908 # KCC will only create a shared library if the output file
14909 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14910 # to its proper name (with version) after linking.
14911 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'
14912 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'
14913 # Commands to make compiler produce verbose output that lists
14914 # what "hidden" libraries, object files and flags are used when
14915 # linking a shared library.
14917 # There doesn't appear to be a way to prevent this compiler from
14918 # explicitly linking system object files so we need to strip them
14919 # from the output so that they don't get included in the library
14921 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"'
14923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14926 # Archives containing C++ object files must be created using
14927 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14928 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14933 # version 8.0 and above of icpc choke on multiply defined symbols
14934 # if we add $predep_objects and $postdep_objects, however 7.1 and
14935 # earlier do not add the objects themselves.
14936 case `$CC -V 2>&1` in
14938 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939 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'
14941 *) # Version 8.0 or newer
14944 ia64*) tmp_idyn=' -i_dynamic';;
14946 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947 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'
14950 archive_cmds_need_lc_CXX=no
14951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14953 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14956 # Portland Group C++ compiler
14958 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14959 prelink_cmds_CXX='tpldir=Template.dir~
14961 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14962 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14963 old_archive_cmds_CXX='tpldir=Template.dir~
14965 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14966 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14968 archive_cmds_CXX='tpldir=Template.dir~
14970 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14971 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14972 archive_expsym_cmds_CXX='tpldir=Template.dir~
14974 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14975 $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'
14977 *) # Version 6 and above use weak symbols
14978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14979 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'
14983 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14985 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'
14989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14990 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'
14992 runpath_var=LD_RUN_PATH
14993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14994 hardcode_libdir_separator_CXX=:
14996 # Commands to make compiler produce verbose output that lists
14997 # what "hidden" libraries, object files and flags are used when
14998 # linking a shared library.
15000 # There doesn't appear to be a way to prevent this compiler from
15001 # explicitly linking system object files so we need to strip them
15002 # from the output so that they don't get included in the library
15004 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'
15006 xl* | mpixl* | bgxl*)
15007 # IBM XL 8.0 on PPC, with GNU ld
15008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15010 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011 if test "x$supports_anon_versioning" = xyes; then
15012 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15014 echo "local: *; };" >> $output_objdir/$libname.ver~
15015 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15019 case `$CC -V 2>&1 | sed 5q` in
15022 no_undefined_flag_CXX=' -zdefs'
15023 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15024 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'
15025 hardcode_libdir_flag_spec_CXX='-R$libdir'
15026 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'
15027 compiler_needs_object_CXX=yes
15029 # Not sure whether something based on
15030 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15032 output_verbose_link_cmd='func_echo_all'
15034 # Archives containing C++ object files must be created using
15035 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15036 # necessary to make sure instantiated templates are included
15038 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15046 # FIXME: insert proper C++ library support
15051 # FIXME: insert proper C++ library support
15056 case $cc_basename in
15058 # FIXME: insert proper C++ library support
15062 # FIXME: insert proper C++ library support
15069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15070 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15072 hardcode_libdir_flag_spec_CXX='-R$libdir'
15073 hardcode_direct_CXX=yes
15074 hardcode_shlibpath_var_CXX=no
15076 # Workaround some broken pre-1.5 toolchains
15077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15085 # C++ shared libraries are fairly broken
15090 if test -f /usr/libexec/ld.so; then
15091 hardcode_direct_CXX=yes
15092 hardcode_shlibpath_var_CXX=no
15093 hardcode_direct_absolute_CXX=yes
15094 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15095 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15097 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15098 export_dynamic_flag_spec_CXX='${wl}-E'
15099 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15101 output_verbose_link_cmd=func_echo_all
15107 osf3* | osf4* | osf5*)
15108 case $cc_basename in
15110 # Kuck and Associates, Inc. (KAI) C++ Compiler
15112 # KCC will only create a shared library if the output file
15113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15114 # to its proper name (with version) after linking.
15115 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'
15117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15118 hardcode_libdir_separator_CXX=:
15120 # Archives containing C++ object files must be created using
15121 # the KAI C++ compiler.
15123 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15124 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15128 # Rational C++ 2.4.1
15129 # FIXME: insert proper C++ library support
15135 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15136 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'
15137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15140 allow_undefined_flag_CXX=' -expect_unresolved \*'
15141 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'
15142 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15143 echo "-hidden">> $lib.exp~
15144 $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~
15146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15150 hardcode_libdir_separator_CXX=:
15152 # Commands to make compiler produce verbose output that lists
15153 # what "hidden" libraries, object files and flags are used when
15154 # linking a shared library.
15156 # There doesn't appear to be a way to prevent this compiler from
15157 # explicitly linking system object files so we need to strip them
15158 # from the output so that they don't get included in the library
15160 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"'
15163 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15167 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'
15170 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'
15174 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15175 hardcode_libdir_separator_CXX=:
15177 # Commands to make compiler produce verbose output that lists
15178 # what "hidden" libraries, object files and flags are used when
15179 # linking a shared library.
15180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15183 # FIXME: insert proper C++ library support
15191 # FIXME: insert proper C++ library support
15196 case $cc_basename in
15199 # FIXME: insert proper C++ library support
15204 # FIXME: insert proper C++ library support
15208 # FIXME: insert proper C++ library support
15215 case $cc_basename in
15217 # Sun C++ 4.2, 5.x and Centerline C++
15218 archive_cmds_need_lc_CXX=yes
15219 no_undefined_flag_CXX=' -zdefs'
15220 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15222 $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'
15224 hardcode_libdir_flag_spec_CXX='-R$libdir'
15225 hardcode_shlibpath_var_CXX=no
15227 solaris2.[0-5] | solaris2.[0-5].*) ;;
15229 # The compiler driver will combine and reorder linker options,
15230 # but understands `-z linker_flag'.
15231 # Supported since Solaris 2.6 (maybe 2.5.1?)
15232 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15235 link_all_deplibs_CXX=yes
15237 output_verbose_link_cmd='func_echo_all'
15239 # Archives containing C++ object files must be created using
15240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15241 # necessary to make sure instantiated templates are included
15243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15246 # Green Hills C++ Compiler
15247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15249 # The C++ compiler must be used to create the archive.
15250 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15253 # GNU C++ compiler with Solaris linker
15254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15255 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15256 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15257 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15258 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15259 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15261 # Commands to make compiler produce verbose output that lists
15262 # what "hidden" libraries, object files and flags are used when
15263 # linking a shared library.
15264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15266 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15268 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15270 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15272 # Commands to make compiler produce verbose output that lists
15273 # what "hidden" libraries, object files and flags are used when
15274 # linking a shared library.
15275 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15278 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15280 solaris2.[0-5] | solaris2.[0-5].*) ;;
15282 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15291 no_undefined_flag_CXX='${wl}-z,text'
15292 archive_cmds_need_lc_CXX=no
15293 hardcode_shlibpath_var_CXX=no
15294 runpath_var='LD_RUN_PATH'
15296 case $cc_basename in
15298 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15299 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15302 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15303 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15308 sysv5* | sco3.2v5* | sco5v6*)
15309 # Note: We can NOT use -z defs as we might desire, because we do not
15310 # link with -lc, and that would cause any symbols used from libc to
15311 # always be unresolved, which means just about no library would
15312 # ever link correctly. If we're not using GNU ld we use -z text
15313 # though, which does catch some bad symbols but isn't as heavy-handed
15315 no_undefined_flag_CXX='${wl}-z,text'
15316 allow_undefined_flag_CXX='${wl}-z,nodefs'
15317 archive_cmds_need_lc_CXX=no
15318 hardcode_shlibpath_var_CXX=no
15319 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15320 hardcode_libdir_separator_CXX=':'
15321 link_all_deplibs_CXX=yes
15322 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15323 runpath_var='LD_RUN_PATH'
15325 case $cc_basename in
15327 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15329 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15330 '"$old_archive_cmds_CXX"
15331 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15332 '"$reload_cmds_CXX"
15335 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15336 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15342 case $cc_basename in
15344 # NonStop-UX NCC 3.20
15345 # FIXME: insert proper C++ library support
15349 # FIXME: insert proper C++ library support
15356 # FIXME: insert proper C++ library support
15361 # FIXME: insert proper C++ library support
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15367 $as_echo "$ld_shlibs_CXX" >&6; }
15368 test "$ld_shlibs_CXX" = no && can_build_shared=no
15374 ## There is no encapsulation within the following macros, do not change
15375 ## the running order or otherwise move them around unless you know exactly
15376 ## what you are doing...
15377 # Dependencies to place before and after the object being linked:
15378 predep_objects_CXX=
15379 postdep_objects_CXX=
15382 compiler_lib_search_path_CXX=
15384 cat > conftest.$ac_ext <<_LT_EOF
15388 Foo (void) { a = 0; }
15395 _lt_libdeps_save_CFLAGS=$CFLAGS
15396 case "$CC $CFLAGS " in #(
15397 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15398 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15399 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15403 (eval $ac_compile) 2>&5
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406 test $ac_status = 0; }; then
15407 # Parse the compiler output and extract the necessary
15408 # objects, libraries and library flags.
15410 # Sentinel used to keep track of whether or not we are before
15411 # the conftest object file.
15412 pre_test_object_deps_done=no
15414 for p in `eval "$output_verbose_link_cmd"`; do
15415 case ${prev}${p} in
15418 # Some compilers place space between "-{L,R}" and the path.
15419 # Remove the space.
15420 if test $p = "-L" ||
15421 test $p = "-R"; then
15426 # Expand the sysroot to ease extracting the directories later.
15427 if test -z "$prev"; then
15429 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15430 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15431 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15435 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15437 if test "$pre_test_object_deps_done" = no; then
15440 # Internal compiler library paths should come after those
15441 # provided the user. The postdeps already come after the
15442 # user supplied libs so there is no need to process them.
15443 if test -z "$compiler_lib_search_path_CXX"; then
15444 compiler_lib_search_path_CXX="${prev}${p}"
15446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15449 # The "-l" case would never come before the object being
15450 # linked, so don't bother handling this case.
15453 if test -z "$postdeps_CXX"; then
15454 postdeps_CXX="${prev}${p}"
15456 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15462 *.lto.$objext) ;; # Ignore GCC LTO objects
15464 # This assumes that the test object file only shows up
15465 # once in the compiler output.
15466 if test "$p" = "conftest.$objext"; then
15467 pre_test_object_deps_done=yes
15471 if test "$pre_test_object_deps_done" = no; then
15472 if test -z "$predep_objects_CXX"; then
15473 predep_objects_CXX="$p"
15475 predep_objects_CXX="$predep_objects_CXX $p"
15478 if test -z "$postdep_objects_CXX"; then
15479 postdep_objects_CXX="$p"
15481 postdep_objects_CXX="$postdep_objects_CXX $p"
15486 *) ;; # Ignore the rest.
15494 echo "libtool.m4: error: problem compiling CXX test program"
15497 $RM -f confest.$objext
15498 CFLAGS=$_lt_libdeps_save_CFLAGS
15500 # PORTME: override above test on systems where it is broken
15503 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15504 # hack all around it, let's just trust "g++" to DTRT.
15505 predep_objects_CXX=
15506 postdep_objects_CXX=
15511 case `$CC -V 2>&1 | sed 5q` in
15515 # The more standards-conforming stlport4 library is
15516 # incompatible with the Cstd library. Avoid specifying
15517 # it if it's in CXXFLAGS. Ignore libCrun as
15518 # -library=stlport4 depends on it.
15519 case " $CXX $CXXFLAGS " in
15520 *" -library=stlport4 "*)
15521 solaris_use_stlport4=yes
15525 if test "$solaris_use_stlport4" != yes; then
15526 postdeps_CXX='-library=Cstd -library=Crun'
15533 case $cc_basename in
15535 # The more standards-conforming stlport4 library is
15536 # incompatible with the Cstd library. Avoid specifying
15537 # it if it's in CXXFLAGS. Ignore libCrun as
15538 # -library=stlport4 depends on it.
15539 case " $CXX $CXXFLAGS " in
15540 *" -library=stlport4 "*)
15541 solaris_use_stlport4=yes
15545 # Adding this requires a known-good setup of shared libraries for
15546 # Sun compiler versions before 5.6, else PIC objects from an old
15547 # archive will be linked into the output, leading to subtle bugs.
15548 if test "$solaris_use_stlport4" != yes; then
15549 postdeps_CXX='-library=Cstd -library=Crun'
15557 case " $postdeps_CXX " in
15558 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15560 compiler_lib_search_dirs_CXX=
15561 if test -n "${compiler_lib_search_path_CXX}"; then
15562 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15595 lt_prog_compiler_wl_CXX=
15596 lt_prog_compiler_pic_CXX=
15597 lt_prog_compiler_static_CXX=
15600 # C++ specific cases for pic, static, wl, etc.
15601 if test "$GXX" = yes; then
15602 lt_prog_compiler_wl_CXX='-Wl,'
15603 lt_prog_compiler_static_CXX='-static'
15607 # All AIX code is PIC.
15608 if test "$host_cpu" = ia64; then
15609 # AIX 5 now supports IA64 processor
15610 lt_prog_compiler_static_CXX='-Bstatic'
15617 # see comment about AmigaOS4 .so support
15618 lt_prog_compiler_pic_CXX='-fPIC'
15621 # FIXME: we need at least 68020 code to build shared libraries, but
15622 # adding the `-m68020' flag to GCC prevents building anything better,
15624 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15629 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15630 # PIC is the default for these OSes.
15632 mingw* | cygwin* | os2* | pw32* | cegcc*)
15633 # This hack is so that the source file can tell whether it is being
15634 # built for inclusion in a dll (and should export symbols for example).
15635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15636 # (--disable-auto-import) libraries
15637 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15639 darwin* | rhapsody*)
15640 # PIC is the default on this platform
15641 # Common symbols not allowed in MH_DYLIB files
15642 lt_prog_compiler_pic_CXX='-fno-common'
15645 # DJGPP does not support shared libraries at all
15646 lt_prog_compiler_pic_CXX=
15649 # PIC is the default for Haiku.
15650 # The "-static" flag exists, but is broken.
15651 lt_prog_compiler_static_CXX=
15654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15655 # Instead, we relocate shared libraries at runtime.
15658 if test -d /usr/nec; then
15659 lt_prog_compiler_pic_CXX=-Kconform_pic
15663 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15664 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15665 # sets the default TLS model and affects inlining.
15670 lt_prog_compiler_pic_CXX='-fPIC'
15675 # QNX uses GNU C++, but need to define -shared option too, otherwise
15676 # it will coredump.
15677 lt_prog_compiler_pic_CXX='-fPIC -shared'
15680 lt_prog_compiler_pic_CXX='-fPIC'
15686 # All AIX code is PIC.
15687 if test "$host_cpu" = ia64; then
15688 # AIX 5 now supports IA64 processor
15689 lt_prog_compiler_static_CXX='-Bstatic'
15691 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15695 case $cc_basename in
15697 # Green Hills C++ Compiler
15698 # _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"
15702 mingw* | cygwin* | os2* | pw32* | cegcc*)
15703 # This hack is so that the source file can tell whether it is being
15704 # built for inclusion in a dll (and should export symbols for example).
15705 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15708 case $cc_basename in
15710 lt_prog_compiler_pic_CXX='-KPIC'
15713 # Green Hills C++ Compiler
15714 lt_prog_compiler_pic_CXX='-pic'
15720 freebsd* | dragonfly*)
15721 # FreeBSD uses GNU C++
15723 hpux9* | hpux10* | hpux11*)
15724 case $cc_basename in
15726 lt_prog_compiler_wl_CXX='-Wl,'
15727 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15728 if test "$host_cpu" != ia64; then
15729 lt_prog_compiler_pic_CXX='+Z'
15733 lt_prog_compiler_wl_CXX='-Wl,'
15734 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15740 lt_prog_compiler_pic_CXX='+Z'
15749 # This is c89, which is MS Visual C++ (no shared libs)
15750 # Anyone wants to do a port?
15752 irix5* | irix6* | nonstopux*)
15753 case $cc_basename in
15755 lt_prog_compiler_wl_CXX='-Wl,'
15756 lt_prog_compiler_static_CXX='-non_shared'
15757 # CC pic flag -KPIC is the default.
15763 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15764 case $cc_basename in
15767 lt_prog_compiler_wl_CXX='--backend -Wl,'
15768 lt_prog_compiler_pic_CXX='-fPIC'
15771 # old Intel C++ for x86_64 which still supported -KPIC.
15772 lt_prog_compiler_wl_CXX='-Wl,'
15773 lt_prog_compiler_pic_CXX='-KPIC'
15774 lt_prog_compiler_static_CXX='-static'
15777 # Intel C++, used to be incompatible with GCC.
15778 # ICC 10 doesn't accept -KPIC any more.
15779 lt_prog_compiler_wl_CXX='-Wl,'
15780 lt_prog_compiler_pic_CXX='-fPIC'
15781 lt_prog_compiler_static_CXX='-static'
15784 # Portland Group C++ compiler
15785 lt_prog_compiler_wl_CXX='-Wl,'
15786 lt_prog_compiler_pic_CXX='-fpic'
15787 lt_prog_compiler_static_CXX='-Bstatic'
15791 # Make sure the PIC flag is empty. It appears that all Alpha
15792 # Linux and Compaq Tru64 Unix objects are PIC.
15793 lt_prog_compiler_pic_CXX=
15794 lt_prog_compiler_static_CXX='-non_shared'
15796 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15797 # IBM XL 8.0, 9.0 on PPC and BlueGene
15798 lt_prog_compiler_wl_CXX='-Wl,'
15799 lt_prog_compiler_pic_CXX='-qpic'
15800 lt_prog_compiler_static_CXX='-qstaticlink'
15803 case `$CC -V 2>&1 | sed 5q` in
15806 lt_prog_compiler_pic_CXX='-KPIC'
15807 lt_prog_compiler_static_CXX='-Bstatic'
15808 lt_prog_compiler_wl_CXX='-Qoption ld '
15819 case $cc_basename in
15821 lt_prog_compiler_pic_CXX='-W c,exportall'
15827 netbsd* | netbsdelf*-gnu)
15830 # QNX uses GNU C++, but need to define -shared option too, otherwise
15831 # it will coredump.
15832 lt_prog_compiler_pic_CXX='-fPIC -shared'
15834 osf3* | osf4* | osf5*)
15835 case $cc_basename in
15837 lt_prog_compiler_wl_CXX='--backend -Wl,'
15840 # Rational C++ 2.4.1
15841 lt_prog_compiler_pic_CXX='-pic'
15844 # Digital/Compaq C++
15845 lt_prog_compiler_wl_CXX='-Wl,'
15846 # Make sure the PIC flag is empty. It appears that all Alpha
15847 # Linux and Compaq Tru64 Unix objects are PIC.
15848 lt_prog_compiler_pic_CXX=
15849 lt_prog_compiler_static_CXX='-non_shared'
15858 case $cc_basename in
15860 # Sun C++ 4.2, 5.x and Centerline C++
15861 lt_prog_compiler_pic_CXX='-KPIC'
15862 lt_prog_compiler_static_CXX='-Bstatic'
15863 lt_prog_compiler_wl_CXX='-Qoption ld '
15866 # Green Hills C++ Compiler
15867 lt_prog_compiler_pic_CXX='-PIC'
15874 case $cc_basename in
15877 lt_prog_compiler_pic_CXX='-pic'
15878 lt_prog_compiler_static_CXX='-Bstatic'
15882 lt_prog_compiler_pic_CXX='-pic'
15888 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15889 case $cc_basename in
15891 lt_prog_compiler_wl_CXX='-Wl,'
15892 lt_prog_compiler_pic_CXX='-KPIC'
15893 lt_prog_compiler_static_CXX='-Bstatic'
15898 case $cc_basename in
15900 # NonStop-UX NCC 3.20
15901 lt_prog_compiler_pic_CXX='-KPIC'
15910 lt_prog_compiler_can_build_shared_CXX=no
15916 # For platforms which do not support PIC, -DPIC is meaningless:
15918 lt_prog_compiler_pic_CXX=
15921 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15926 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15927 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15928 $as_echo_n "(cached) " >&6
15930 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15933 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15934 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15937 # Check to make sure the PIC flag actually works.
15939 if test -n "$lt_prog_compiler_pic_CXX"; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15942 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15943 $as_echo_n "(cached) " >&6
15945 lt_cv_prog_compiler_pic_works_CXX=no
15946 ac_outfile=conftest.$ac_objext
15947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15948 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15949 # Insert the option either (1) after the last *FLAGS variable, or
15950 # (2) before a word containing "conftest.", or (3) at the end.
15951 # Note that $ac_compile itself does not contain backslashes and begins
15952 # with a dollar sign (not a hyphen), so the echo should work correctly.
15953 # The option is referenced via a variable to avoid confusing sed.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>conftest.err)
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 if (exit $ac_status) && test -s "$ac_outfile"; then
15964 # The compiler can only warn and ignore the option if not recognized
15965 # So say no if there are warnings other than the usual output.
15966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15969 lt_cv_prog_compiler_pic_works_CXX=yes
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15976 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15978 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15979 case $lt_prog_compiler_pic_CXX in
15981 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15984 lt_prog_compiler_pic_CXX=
15985 lt_prog_compiler_can_build_shared_CXX=no
15995 # Check to make sure the static flag actually works.
15997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16000 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16001 $as_echo_n "(cached) " >&6
16003 lt_cv_prog_compiler_static_works_CXX=no
16004 save_LDFLAGS="$LDFLAGS"
16005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16008 # The linker can only warn and ignore the option if not recognized
16009 # So say no if there are warnings
16010 if test -s conftest.err; then
16011 # Append any errors to the config.log.
16012 cat conftest.err 1>&5
16013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16015 if diff conftest.exp conftest.er2 >/dev/null; then
16016 lt_cv_prog_compiler_static_works_CXX=yes
16019 lt_cv_prog_compiler_static_works_CXX=yes
16023 LDFLAGS="$save_LDFLAGS"
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16027 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16032 lt_prog_compiler_static_CXX=
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16040 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16041 $as_echo_n "(cached) " >&6
16043 lt_cv_prog_compiler_c_o_CXX=no
16044 $RM -r conftest 2>/dev/null
16048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16050 lt_compiler_flag="-o out/conftest2.$ac_objext"
16051 # Insert the option either (1) after the last *FLAGS variable, or
16052 # (2) before a word containing "conftest.", or (3) at the end.
16053 # Note that $ac_compile itself does not contain backslashes and begins
16054 # with a dollar sign (not a hyphen), so the echo should work correctly.
16055 lt_compile=`echo "$ac_compile" | $SED \
16056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16058 -e 's:$: $lt_compiler_flag:'`
16059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16060 (eval "$lt_compile" 2>out/conftest.err)
16062 cat out/conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16066 # The compiler can only warn and ignore the option if not recognized
16067 # So say no if there are warnings
16068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16071 lt_cv_prog_compiler_c_o_CXX=yes
16076 # SGI C++ compiler will create directory out/ii_files/ for
16077 # template instantiation
16078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16079 $RM out/* && rmdir out
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16086 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16092 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16093 $as_echo_n "(cached) " >&6
16095 lt_cv_prog_compiler_c_o_CXX=no
16096 $RM -r conftest 2>/dev/null
16100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16102 lt_compiler_flag="-o out/conftest2.$ac_objext"
16103 # Insert the option either (1) after the last *FLAGS variable, or
16104 # (2) before a word containing "conftest.", or (3) at the end.
16105 # Note that $ac_compile itself does not contain backslashes and begins
16106 # with a dollar sign (not a hyphen), so the echo should work correctly.
16107 lt_compile=`echo "$ac_compile" | $SED \
16108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16110 -e 's:$: $lt_compiler_flag:'`
16111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16112 (eval "$lt_compile" 2>out/conftest.err)
16114 cat out/conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16118 # The compiler can only warn and ignore the option if not recognized
16119 # So say no if there are warnings
16120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16123 lt_cv_prog_compiler_c_o_CXX=yes
16128 # SGI C++ compiler will create directory out/ii_files/ for
16129 # template instantiation
16130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16131 $RM out/* && rmdir out
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16138 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16143 hard_links="nottested"
16144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16145 # do not overwrite the value of need_locks provided by the user
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16147 $as_echo_n "checking if we can lock with hard links... " >&6; }
16150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16152 ln conftest.a conftest.b 2>&5 || hard_links=no
16153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16155 $as_echo "$hard_links" >&6; }
16156 if test "$hard_links" = no; then
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16158 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16168 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16170 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16171 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16174 # If we're using GNU nm, then we don't want the "-C" option.
16175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16176 # Also, AIX nm treats weak defined symbols like other global defined
16177 # symbols, whereas GNU nm marks them as "W".
16178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16179 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'
16181 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'
16185 export_symbols_cmds_CXX="$ltdll_cmds"
16187 cygwin* | mingw* | cegcc*)
16188 case $cc_basename in
16190 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16193 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'
16194 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16198 linux* | k*bsd*-gnu | gnu*)
16199 link_all_deplibs_CXX=no
16202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16207 $as_echo "$ld_shlibs_CXX" >&6; }
16208 test "$ld_shlibs_CXX" = no && can_build_shared=no
16210 with_gnu_ld_CXX=$with_gnu_ld
16218 # Do we need to explicitly link libc?
16220 case "x$archive_cmds_need_lc_CXX" in
16222 # Assume -lc should be added
16223 archive_cmds_need_lc_CXX=yes
16225 if test "$enable_shared" = yes && test "$GCC" = yes; then
16226 case $archive_cmds_CXX in
16228 # FIXME: we may have to deal with multi-command sequences.
16231 # Test whether the compiler implicitly links with -lc since on some
16232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16233 # to ld, don't add -lc before -lgcc.
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16235 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16236 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16237 $as_echo_n "(cached) " >&6
16240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16243 (eval $ac_compile) 2>&5
16245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16246 test $ac_status = 0; } 2>conftest.err; then
16249 libobjs=conftest.$ac_objext
16251 wl=$lt_prog_compiler_wl_CXX
16252 pic_flag=$lt_prog_compiler_pic_CXX
16258 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16259 allow_undefined_flag_CXX=
16260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16261 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16264 test $ac_status = 0; }
16266 lt_cv_archive_cmds_need_lc_CXX=no
16268 lt_cv_archive_cmds_need_lc_CXX=yes
16270 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16272 cat conftest.err 1>&5
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16278 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16279 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16348 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16350 library_names_spec=
16351 libname_spec='lib$name'
16355 postuninstall_cmds=
16359 shlibpath_overrides_runpath=unknown
16361 dynamic_linker="$host_os ld.so"
16362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16363 need_lib_prefix=unknown
16364 hardcode_into_libs=no
16366 # when you set need_version to no, make sure it does not cause -set_version
16367 # flags to be left without arguments
16368 need_version=unknown
16372 version_type=linux # correct to gnu/linux during the next big refactor
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16374 shlibpath_var=LIBPATH
16376 # AIX 3 has no versioning support, so we append a major version to the name.
16377 soname_spec='${libname}${release}${shared_ext}$major'
16381 version_type=linux # correct to gnu/linux during the next big refactor
16384 hardcode_into_libs=yes
16385 if test "$host_cpu" = ia64; then
16386 # AIX 5 supports IA64
16387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16388 shlibpath_var=LD_LIBRARY_PATH
16390 # With GCC up to 2.95.x, collect2 would create an import file
16391 # for dependence libraries. The import file would start with
16392 # the line `#! .'. This would cause the generated library to
16393 # depend on `.', always an invalid library. This was fixed in
16394 # development snapshots of GCC prior to 3.0.
16396 aix4 | aix4.[01] | aix4.[01].*)
16397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16399 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16402 can_build_shared=no
16406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16407 # soname into executable. Probably we can add versioning support to
16408 # collect2, so additional links can be useful in future.
16409 if test "$aix_use_runtimelinking" = yes; then
16410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16411 # instead of lib<name>.a to let people know that these are not
16412 # typical AIX shared libraries.
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 # We preserve .a as extension for shared libraries through AIX4.2
16416 # and later when we are not doing run time linking.
16417 library_names_spec='${libname}${release}.a $libname.a'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16420 shlibpath_var=LIBPATH
16427 # Since July 2007 AmigaOS4 officially supports .so libraries.
16428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 library_names_spec='$libname.ixlibrary $libname.a'
16433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16434 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'
16440 library_names_spec='${libname}${shared_ext}'
16441 dynamic_linker="$host_os ld.so"
16442 shlibpath_var=LIBRARY_PATH
16446 version_type=linux # correct to gnu/linux during the next big refactor
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16451 shlibpath_var=LD_LIBRARY_PATH
16452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16454 # the default ld.so.conf also contains /usr/contrib/lib and
16455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16456 # libtool to hard-code these into programs
16459 cygwin* | mingw* | pw32* | cegcc*)
16460 version_type=windows
16465 case $GCC,$cc_basename in
16468 library_names_spec='$libname.dll.a'
16469 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16470 postinstall_cmds='base_file=`basename \${file}`~
16471 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16472 dldir=$destdir/`dirname \$dlpath`~
16473 test -d \$dldir || mkdir -p \$dldir~
16474 $install_prog $dir/$dlname \$dldir/$dlname~
16475 chmod a+x \$dldir/$dlname~
16476 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16477 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16480 dlpath=$dir/\$dldll~
16482 shlibpath_overrides_runpath=yes
16486 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16487 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16491 # MinGW DLLs use traditional 'lib' prefix
16492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16495 # pw32 DLLs use 'pw' prefix rather than 'lib'
16496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16499 dynamic_linker='Win32 ld.exe'
16504 libname_spec='$name'
16505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16506 library_names_spec='${libname}.dll.lib'
16510 sys_lib_search_path_spec=
16513 for lt_path in $LIB
16516 # Let DOS variable expansion print the short 8.3 style file name.
16517 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16518 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16521 # Convert to MSYS style.
16522 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16525 # Convert to unix form, then to dos form, then back to unix form
16526 # but this time dos style (no spaces!) so that the unix form looks
16527 # like /cygdrive/c/PROGRA~1:/cygdr...
16528 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16529 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16530 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16533 sys_lib_search_path_spec="$LIB"
16534 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16535 # It is most probably a Windows format PATH.
16536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16540 # FIXME: find the short name or the path components, as spaces are
16541 # common. (e.g. "Program Files" -> "PROGRA~1")
16545 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16546 postinstall_cmds='base_file=`basename \${file}`~
16547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16548 dldir=$destdir/`dirname \$dlpath`~
16549 test -d \$dldir || mkdir -p \$dldir~
16550 $install_prog $dir/$dlname \$dldir/$dlname'
16551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16552 dlpath=$dir/\$dldll~
16554 shlibpath_overrides_runpath=yes
16555 dynamic_linker='Win32 link.exe'
16559 # Assume MSVC wrapper
16560 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16561 dynamic_linker='Win32 ld.exe'
16564 # FIXME: first we should search . and the directory the executable is in
16568 darwin* | rhapsody*)
16569 dynamic_linker="$host_os dyld"
16570 version_type=darwin
16573 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16574 soname_spec='${libname}${release}${major}$shared_ext'
16575 shlibpath_overrides_runpath=yes
16576 shlibpath_var=DYLD_LIBRARY_PATH
16577 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16579 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16583 version_type=linux # correct to gnu/linux during the next big refactor
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 shlibpath_var=LD_LIBRARY_PATH
16591 freebsd* | dragonfly*)
16592 # DragonFly does not have aout. When/if they implement a new
16593 # versioning mechanism, adjust this.
16594 if test -x /usr/bin/objformat; then
16595 objformat=`/usr/bin/objformat`
16598 freebsd[23].*) objformat=aout ;;
16599 *) objformat=elf ;;
16602 version_type=freebsd-$objformat
16603 case $version_type in
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16614 shlibpath_var=LD_LIBRARY_PATH
16617 shlibpath_overrides_runpath=yes
16619 freebsd3.[01]* | freebsdelf3.[01]*)
16620 shlibpath_overrides_runpath=yes
16621 hardcode_into_libs=yes
16623 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16624 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16625 shlibpath_overrides_runpath=no
16626 hardcode_into_libs=yes
16628 *) # from 4.6 on, and DragonFly
16629 shlibpath_overrides_runpath=yes
16630 hardcode_into_libs=yes
16636 version_type=linux # correct to gnu/linux during the next big refactor
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 shlibpath_var=LD_LIBRARY_PATH
16642 shlibpath_overrides_runpath=no
16643 hardcode_into_libs=yes
16647 version_type=linux # correct to gnu/linux during the next big refactor
16650 dynamic_linker="$host_os runtime_loader"
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 shlibpath_var=LIBRARY_PATH
16654 shlibpath_overrides_runpath=yes
16655 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16656 hardcode_into_libs=yes
16659 hpux9* | hpux10* | hpux11*)
16660 # Give a soname corresponding to the major version so that dld.sl refuses to
16661 # link against other versions.
16668 hardcode_into_libs=yes
16669 dynamic_linker="$host_os dld.so"
16670 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 if test "X$HPUX_IA64_MODE" = X32; then
16675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16683 hardcode_into_libs=yes
16684 dynamic_linker="$host_os dld.sl"
16685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16694 dynamic_linker="$host_os dld.sl"
16695 shlibpath_var=SHLIB_PATH
16696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16701 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16702 postinstall_cmds='chmod 555 $lib'
16703 # or fails outright, so override atomically:
16704 install_override_mode=555
16708 version_type=linux # correct to gnu/linux during the next big refactor
16711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=no
16716 hardcode_into_libs=yes
16719 irix5* | irix6* | nonstopux*)
16721 nonstopux*) version_type=nonstopux ;;
16723 if test "$lt_cv_prog_gnu_ld" = yes; then
16724 version_type=linux # correct to gnu/linux during the next big refactor
16731 soname_spec='${libname}${release}${shared_ext}$major'
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16734 irix5* | nonstopux*)
16735 libsuff= shlibsuff=
16738 case $LD in # libtool.m4 will add one of these switches to LD
16739 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16740 libsuff= shlibsuff= libmagic=32-bit;;
16741 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16742 libsuff=32 shlibsuff=N32 libmagic=N32;;
16743 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16744 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16745 *) libsuff= shlibsuff= libmagic=never-match;;
16749 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16750 shlibpath_overrides_runpath=no
16751 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16752 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16753 hardcode_into_libs=yes
16756 # No shared lib support for Linux oldld, aout, or coff.
16757 linux*oldld* | linux*aout* | linux*coff*)
16761 # This must be glibc/ELF.
16762 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16763 version_type=linux # correct to gnu/linux during the next big refactor
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 shlibpath_overrides_runpath=no
16772 # Some binutils ld are patched to set DT_RUNPATH
16773 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16774 $as_echo_n "(cached) " >&6
16776 lt_cv_shlibpath_overrides_runpath=no
16777 save_LDFLAGS=$LDFLAGS
16778 save_libdir=$libdir
16779 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16780 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16792 if ac_fn_cxx_try_link "$LINENO"; then :
16793 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16794 lt_cv_shlibpath_overrides_runpath=yes
16797 rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
16799 LDFLAGS=$save_LDFLAGS
16800 libdir=$save_libdir
16804 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16806 # This implies no fast_install, which is unacceptable.
16807 # Some rework will be needed to allow for fast_install
16808 # before this can be enabled.
16809 hardcode_into_libs=yes
16811 # Append ld.so.conf contents to the search path
16812 if test -f /etc/ld.so.conf; then
16813 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' ' '`
16814 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16817 # We used to test for /lib/ld.so.1 and disable shared libraries on
16818 # powerpc, because MkLinux only supported shared libraries with the
16819 # GNU dynamic linker. Since this was broken with cross compilers,
16820 # most powerpc-linux boxes support dynamic linking these days and
16821 # people can always --disable-shared, the test was removed, and we
16822 # assume the GNU/Linux dynamic linker is in use.
16823 dynamic_linker='GNU/Linux ld.so'
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=no
16834 hardcode_into_libs=yes
16835 dynamic_linker='NetBSD ld.elf_so'
16842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16845 dynamic_linker='NetBSD (a.out) ld.so'
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 dynamic_linker='NetBSD ld.elf_so'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 shlibpath_overrides_runpath=yes
16853 hardcode_into_libs=yes
16857 version_type=linux # correct to gnu/linux during the next big refactor
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 shlibpath_overrides_runpath=yes
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 shlibpath_overrides_runpath=no
16871 hardcode_into_libs=yes
16872 dynamic_linker='ldqnx.so'
16877 sys_lib_dlsearch_path_spec="/usr/lib"
16879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16882 *) need_version=no ;;
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16889 openbsd2.[89] | openbsd2.[89].*)
16890 shlibpath_overrides_runpath=no
16893 shlibpath_overrides_runpath=yes
16897 shlibpath_overrides_runpath=yes
16902 libname_spec='$name'
16905 library_names_spec='$libname${shared_ext} $libname.a'
16906 dynamic_linker='OS/2 ld.exe'
16907 shlibpath_var=LIBPATH
16910 osf3* | osf4* | osf5*)
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 shlibpath_var=LD_LIBRARY_PATH
16917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16926 version_type=linux # correct to gnu/linux during the next big refactor
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes
16933 hardcode_into_libs=yes
16934 # ldd complains unless libraries are executable
16935 postinstall_cmds='chmod +x $lib'
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16942 shlibpath_var=LD_LIBRARY_PATH
16943 shlibpath_overrides_runpath=yes
16944 if test "$with_gnu_ld" = yes; then
16951 version_type=linux # correct to gnu/linux during the next big refactor
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 shlibpath_var=LD_LIBRARY_PATH
16955 case $host_vendor in
16957 shlibpath_overrides_runpath=no
16959 runpath_var=LD_RUN_PATH
16967 shlibpath_overrides_runpath=no
16968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16974 if test -d /usr/nec ;then
16975 version_type=linux # correct to gnu/linux during the next big refactor
16976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16977 soname_spec='$libname${shared_ext}.$major'
16978 shlibpath_var=LD_LIBRARY_PATH
16982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16983 version_type=freebsd-elf
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath=yes
16990 hardcode_into_libs=yes
16991 if test "$with_gnu_ld" = yes; then
16992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16997 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17001 sys_lib_dlsearch_path_spec='/usr/lib'
17005 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17006 version_type=linux # correct to gnu/linux during the next big refactor
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 shlibpath_var=LD_LIBRARY_PATH
17011 shlibpath_overrides_runpath=no
17012 hardcode_into_libs=yes
17016 version_type=linux # correct to gnu/linux during the next big refactor
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018 soname_spec='${libname}${release}${shared_ext}$major'
17019 shlibpath_var=LD_LIBRARY_PATH
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17027 $as_echo "$dynamic_linker" >&6; }
17028 test "$dynamic_linker" = no && can_build_shared=no
17030 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17031 if test "$GCC" = yes; then
17032 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17036 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17038 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17039 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17081 hardcode_action_CXX=
17082 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17083 test -n "$runpath_var_CXX" ||
17084 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17086 # We can hardcode non-existent directories.
17087 if test "$hardcode_direct_CXX" != no &&
17088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17089 # have to relink, otherwise we might link with an installed library
17090 # when we should be linking with a yet-to-be-installed one
17091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17092 test "$hardcode_minus_L_CXX" != no; then
17093 # Linking always hardcodes the temporary library directory.
17094 hardcode_action_CXX=relink
17096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17097 hardcode_action_CXX=immediate
17100 # We cannot hardcode anything, or else we can only hardcode existing
17102 hardcode_action_CXX=unsupported
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17105 $as_echo "$hardcode_action_CXX" >&6; }
17107 if test "$hardcode_action_CXX" = relink ||
17108 test "$inherit_rpath_CXX" = yes; then
17109 # Fast installation is not supported
17110 enable_fast_install=no
17111 elif test "$shlibpath_overrides_runpath" = yes ||
17112 test "$enable_shared" = no; then
17113 # Fast installation is not necessary
17114 enable_fast_install=needless
17123 fi # test -n "$compiler"
17126 CFLAGS=$lt_save_CFLAGS
17130 with_gnu_ld=$lt_save_with_gnu_ld
17131 lt_cv_path_LDCXX=$lt_cv_path_LD
17132 lt_cv_path_LD=$lt_save_path_LD
17133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17135 fi # test "$_lt_caught_CXX_error" != yes
17138 ac_cpp='$CPP $CPPFLAGS'
17139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17157 ac_config_commands="$ac_config_commands libtool"
17162 # Only expand once:
17165 if test -n "$ac_tool_prefix"; then
17166 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17167 set dummy ${ac_tool_prefix}windres; ac_word=$2
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17169 $as_echo_n "checking for $ac_word... " >&6; }
17170 if ${ac_cv_prog_RC+:} false; then :
17171 $as_echo_n "(cached) " >&6
17173 if test -n "$RC"; then
17174 ac_cv_prog_RC="$RC" # Let the user override the test.
17176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17177 for as_dir in $PATH
17180 test -z "$as_dir" && as_dir=.
17181 for ac_exec_ext in '' $ac_executable_extensions; do
17182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17183 ac_cv_prog_RC="${ac_tool_prefix}windres"
17184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17194 if test -n "$RC"; then
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17196 $as_echo "$RC" >&6; }
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17199 $as_echo "no" >&6; }
17204 if test -z "$ac_cv_prog_RC"; then
17206 # Extract the first word of "windres", so it can be a program name with args.
17207 set dummy windres; ac_word=$2
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17209 $as_echo_n "checking for $ac_word... " >&6; }
17210 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17211 $as_echo_n "(cached) " >&6
17213 if test -n "$ac_ct_RC"; then
17214 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17217 for as_dir in $PATH
17220 test -z "$as_dir" && as_dir=.
17221 for ac_exec_ext in '' $ac_executable_extensions; do
17222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17223 ac_cv_prog_ac_ct_RC="windres"
17224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17233 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17234 if test -n "$ac_ct_RC"; then
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17236 $as_echo "$ac_ct_RC" >&6; }
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17242 if test "x$ac_ct_RC" = x; then
17245 case $cross_compiling:$ac_tool_warned in
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17249 ac_tool_warned=yes ;;
17254 RC="$ac_cv_prog_RC"
17260 # Source file extension for RC test sources.
17263 # Object file extension for compiled RC test sources.
17267 # Code to be used in simple compile tests
17268 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17270 # Code to be used in simple link tests
17271 lt_simple_link_test_code="$lt_simple_compile_test_code"
17273 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17280 # If no C compiler was specified, use CC.
17283 # If no C compiler flags were specified, use CFLAGS.
17284 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17286 # Allow CC to be a program name with arguments.
17290 # save warnings/boilerplate of simple test code
17291 ac_outfile=conftest.$ac_objext
17292 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17293 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17294 _lt_compiler_boilerplate=`cat conftest.err`
17297 ac_outfile=conftest.$ac_objext
17298 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17299 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17300 _lt_linker_boilerplate=`cat conftest.err`
17304 # Allow CC to be a program name with arguments.
17306 lt_save_CFLAGS=$CFLAGS
17313 for cc_temp in $compiler""; do
17315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17321 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17323 lt_cv_prog_compiler_c_o_RC=yes
17325 if test -n "$compiler"; then
17334 ac_cpp='$CPP $CPPFLAGS'
17335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17340 CFLAGS=$lt_save_CFLAGS
17343 # For now we hardcode the use of version scripts. It would be better
17344 # to write a test for this or even implement this within libtool.
17345 have_ld_version_script=no
17348 have_ld_version_script=yes
17351 have_ld_version_script=yes
17355 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
17358 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17363 if test "$have_ld_version_script" = "yes"; then
17364 HAVE_LD_VERSION_SCRIPT_TRUE=
17365 HAVE_LD_VERSION_SCRIPT_FALSE='#'
17367 HAVE_LD_VERSION_SCRIPT_TRUE='#'
17368 HAVE_LD_VERSION_SCRIPT_FALSE=
17376 component_system=None
17377 have_dosish_system=no
17378 have_android_system=no
17381 have_macos_system=no
17384 available_languages="cl cpp python qt"
17385 default_languages="cl cpp python qt"
17388 have_w64_system=yes
17390 *-linux-androideabi)
17391 have_android_system=yes
17394 have_macos_system=yes
17399 have_dosish_system=yes
17400 have_w32_system=yes
17401 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17402 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17403 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17404 G13_DEFAULT='c:\\gnupg\\g13.exe'
17405 #component_system='COM+'
17407 # Check whether --enable-glibtest was given.
17408 if test "${enable_glibtest+set}" = set; then :
17409 enableval=$enable_glibtest;
17411 enable_glibtest=yes
17415 pkg_config_args=glib-2.0
17420 pkg_config_args="$pkg_config_args gmodule-2.0"
17423 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17426 pkg_config_args="$pkg_config_args gobject-2.0"
17429 pkg_config_args="$pkg_config_args gthread-2.0"
17434 # Extract the first word of "pkg-config", so it can be a program name with args.
17435 set dummy pkg-config; ac_word=$2
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17437 $as_echo_n "checking for $ac_word... " >&6; }
17438 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17439 $as_echo_n "(cached) " >&6
17441 case $PKG_CONFIG in
17443 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17447 for as_dir in $PATH
17450 test -z "$as_dir" && as_dir=.
17451 for ac_exec_ext in '' $ac_executable_extensions; do
17452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17453 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17461 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17465 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17466 if test -n "$PKG_CONFIG"; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17468 $as_echo "$PKG_CONFIG" >&6; }
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17471 $as_echo "no" >&6; }
17478 if test x$PKG_CONFIG != xno ; then
17479 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17482 echo *** pkg-config too old; version 0.7 or better required.
17490 min_glib_version=2.0.0
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17492 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17494 if test x$PKG_CONFIG != xno ; then
17495 ## don't try to run the test against uninstalled libtool libs
17496 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17497 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17501 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17508 if test x"$no_glib" = x ; then
17509 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17510 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17511 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17513 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17514 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17515 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17517 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17519 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17521 if test "x$enable_glibtest" = "xyes" ; then
17522 ac_save_CFLAGS="$CFLAGS"
17523 ac_save_LIBS="$LIBS"
17524 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17525 LIBS="$GLIB_LIBS $LIBS"
17526 rm -f conf.glibtest
17527 if test "$cross_compiling" = yes; then :
17528 echo $ac_n "cross compiling; assumed OK... $ac_c"
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17535 #include <stdlib.h>
17540 int major, minor, micro;
17543 system ("touch conf.glibtest");
17545 /* HP/UX 9 (%@#!) writes to sscanf strings */
17546 tmp_version = g_strdup("$min_glib_version");
17547 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17548 printf("%s, bad version string\n", "$min_glib_version");
17552 if ((glib_major_version != $glib_config_major_version) ||
17553 (glib_minor_version != $glib_config_minor_version) ||
17554 (glib_micro_version != $glib_config_micro_version))
17556 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17557 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17558 glib_major_version, glib_minor_version, glib_micro_version);
17559 printf ("*** was found! If pkg-config was correct, then it is best\n");
17560 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17561 printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
17562 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17563 printf("*** required on your system.\n");
17564 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17565 printf("*** to point to the correct configuration files\n");
17567 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17568 (glib_minor_version != GLIB_MINOR_VERSION) ||
17569 (glib_micro_version != GLIB_MICRO_VERSION))
17571 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17572 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17573 printf("*** library (version %d.%d.%d)\n",
17574 glib_major_version, glib_minor_version, glib_micro_version);
17578 if ((glib_major_version > major) ||
17579 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17580 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17586 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17587 glib_major_version, glib_minor_version, glib_micro_version);
17588 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17589 major, minor, micro);
17590 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17592 printf("*** If you have already installed a sufficiently new version, this error\n");
17593 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17594 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17595 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17596 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17597 printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
17598 printf("*** so that the correct libraries are found at run-time))\n");
17605 if ac_fn_c_try_run "$LINENO"; then :
17610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17611 conftest.$ac_objext conftest.beam conftest.$ac_ext
17614 CFLAGS="$ac_save_CFLAGS"
17615 LIBS="$ac_save_LIBS"
17618 if test "x$no_glib" = x ; then
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17620 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17624 $as_echo "no" >&6; }
17625 if test "$PKG_CONFIG" = "no" ; then
17626 echo "*** A new enough version of pkg-config was not found."
17627 echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17629 if test -f conf.glibtest ; then
17632 echo "*** Could not run GLIB test program, checking why..."
17633 ac_save_CFLAGS="$CFLAGS"
17634 ac_save_LIBS="$LIBS"
17635 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17636 LIBS="$LIBS $GLIB_LIBS"
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17646 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17651 if ac_fn_c_try_link "$LINENO"; then :
17652 echo "*** The test program compiled, but did not run. This usually means"
17653 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17654 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17655 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17656 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17657 echo "*** is required on your system"
17659 echo "*** If you have an old version installed, it is best to remove it, although"
17660 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17662 echo "*** The test program failed to compile or link. See the file config.log for the"
17663 echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."
17665 rm -f core conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17667 CFLAGS="$ac_save_CFLAGS"
17668 LIBS="$ac_save_LIBS"
17683 rm -f conf.glibtest
17685 # Check whether --enable-w32-glib was given.
17686 if test "${enable_w32_glib+set}" = set; then :
17687 enableval=$enable_w32_glib; build_w32_glib=$enableval
17693 # XXX: Probably use exec-prefix here?
17694 # GPG_DEFAULT='/usr/bin/gpg'
17695 # GPGSM_DEFAULT='/usr/bin/gpgsm'
17696 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
17697 # G13_DEFAULT='/usr/bin/g13'
17701 if test "$have_dosish_system" = yes; then
17703 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17706 if test "$have_dosish_system" = yes; then
17707 HAVE_DOSISH_SYSTEM_TRUE=
17708 HAVE_DOSISH_SYSTEM_FALSE='#'
17710 HAVE_DOSISH_SYSTEM_TRUE='#'
17711 HAVE_DOSISH_SYSTEM_FALSE=
17715 if test "$have_w32_system" = yes; then
17717 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17720 if test "$have_w32_system" = yes; then
17721 HAVE_W32_SYSTEM_TRUE=
17722 HAVE_W32_SYSTEM_FALSE='#'
17724 HAVE_W32_SYSTEM_TRUE='#'
17725 HAVE_W32_SYSTEM_FALSE=
17729 if test "$have_w64_system" = yes; then
17731 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17734 if test "$have_w64_system" = yes; then
17735 HAVE_W64_SYSTEM_TRUE=
17736 HAVE_W64_SYSTEM_FALSE='#'
17738 HAVE_W64_SYSTEM_TRUE='#'
17739 HAVE_W64_SYSTEM_FALSE=
17743 if test "$have_android_system" = yes; then
17745 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17748 if test "$have_android_system" = yes; then
17749 HAVE_ANDROID_SYSTEM_TRUE=
17750 HAVE_ANDROID_SYSTEM_FALSE='#'
17752 HAVE_ANDROID_SYSTEM_TRUE='#'
17753 HAVE_ANDROID_SYSTEM_FALSE=
17757 if test "$have_macos_system" = yes; then
17759 $as_echo "#define HAVE_MACOS_SYSTEM 1" >>confdefs.h
17762 if test "$have_macos_system" = yes; then
17763 HAVE_MACOS_SYSTEM_TRUE=
17764 HAVE_MACOS_SYSTEM_FALSE='#'
17766 HAVE_MACOS_SYSTEM_TRUE='#'
17767 HAVE_MACOS_SYSTEM_FALSE=
17771 if test "$build_w32_glib" = yes; then
17772 BUILD_W32_GLIB_TRUE=
17773 BUILD_W32_GLIB_FALSE='#'
17775 BUILD_W32_GLIB_TRUE='#'
17776 BUILD_W32_GLIB_FALSE=
17781 # Check whether --enable-fixed-path was given.
17782 if test "${enable_fixed_path+set}" = set; then :
17783 enableval=$enable_fixed_path; fixed_search_path="$enableval"
17785 fixed_search_path=""
17788 if test x$fixed_search_path != x ; then
17790 cat >>confdefs.h <<_ACEOF
17791 #define FIXED_SEARCH_PATH "$fixed_search_path"
17797 # Note: You need to declare all possible languages also in
17798 # lang/Makefile.am's DIST_SUBDIRS.
17799 # Check whether --enable-languages was given.
17800 if test "${enable_languages+set}" = set; then :
17801 enableval=$enable_languages; enabled_languages=`echo $enableval | \
17802 tr ',:' ' ' | tr 'A-Z' 'a-z' | \
17805 enabled_languages="maybe"
17808 if test "x$enabled_languages" = "x" \
17809 -o "$enabled_languages" = "no"; then
17813 # If languages are explicitly set missing requirements
17814 # for the languages are treated as errors otherwise
17815 # there will be a warning.
17816 explicit_languages=1
17817 if test "x$enabled_languages" = "xmaybe"; then
17818 explicit_languages=0
17819 enabled_languages="$default_languages"
17822 for language in $enabled_languages; do
17825 list=$available_languages
17829 if test "x$name" = "x$n"; then
17834 if test "$found" = "0"; then
17835 as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17841 # Enable C++ 11 if cpp language is requested
17844 list=$enabled_languages
17848 if test "x$name" = "x$n"; then
17853 if test "$found" = "1"; then
17854 ax_cxx_compile_cxx11_required=false
17856 ac_cpp='$CXXCPP $CPPFLAGS'
17857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17862 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17863 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17864 $as_echo_n "(cached) " >&6
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17870 // If the compiler admits that it is not ready for C++11, why torture it?
17871 // Hopefully, this will speed up the test.
17873 #ifndef __cplusplus
17875 #error "This is not a C++ compiler"
17877 #elif __cplusplus < 201103L
17879 #error "This is not a C++11 compiler"
17886 namespace test_static_assert
17889 template <typename T>
17892 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17897 namespace test_final_override
17902 virtual void f() {}
17905 struct Derived : public Base
17907 virtual void f() override {}
17912 namespace test_double_right_angle_brackets
17915 template < typename T >
17918 typedef check<void> single_type;
17919 typedef check<check<void>> double_type;
17920 typedef check<check<check<void>>> triple_type;
17921 typedef check<check<check<check<void>>>> quadruple_type;
17925 namespace test_decltype
17938 namespace test_type_deduction
17941 template < typename T1, typename T2 >
17944 static const bool value = false;
17947 template < typename T >
17948 struct is_same<T, T>
17950 static const bool value = true;
17953 template < typename T1, typename T2 >
17955 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17961 test(const int c, volatile int v)
17963 static_assert(is_same<int, decltype(0)>::value == true, "");
17964 static_assert(is_same<int, decltype(c)>::value == false, "");
17965 static_assert(is_same<int, decltype(v)>::value == false, "");
17968 auto sumi = ac + av + 'x';
17969 auto sumf = ac + av + 1.0;
17970 static_assert(is_same<int, decltype(ac)>::value == true, "");
17971 static_assert(is_same<int, decltype(av)>::value == true, "");
17972 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17973 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17974 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17975 return (sumf > 0.0) ? sumi : add(c, v);
17980 namespace test_noexcept
17983 int f() { return 0; }
17984 int g() noexcept { return 0; }
17986 static_assert(noexcept(f()) == false, "");
17987 static_assert(noexcept(g()) == true, "");
17991 namespace test_constexpr
17994 template < typename CharT >
17995 unsigned long constexpr
17996 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17998 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18001 template < typename CharT >
18002 unsigned long constexpr
18003 strlen_c(const CharT *const s) noexcept
18005 return strlen_c_r(s, 0UL);
18008 static_assert(strlen_c("") == 0UL, "");
18009 static_assert(strlen_c("1") == 1UL, "");
18010 static_assert(strlen_c("example") == 7UL, "");
18011 static_assert(strlen_c("another\0example") == 7UL, "");
18015 namespace test_rvalue_references
18021 static constexpr int value = N;
18024 answer<1> f(int&) { return answer<1>(); }
18025 answer<2> f(const int&) { return answer<2>(); }
18026 answer<3> f(int&&) { return answer<3>(); }
18033 static_assert(decltype(f(i))::value == 1, "");
18034 static_assert(decltype(f(c))::value == 2, "");
18035 static_assert(decltype(f(0))::value == 3, "");
18040 namespace test_uniform_initialization
18045 static const int zero {};
18046 static const int one {1};
18049 static_assert(test::zero == 0, "");
18050 static_assert(test::one == 1, "");
18054 namespace test_lambdas
18060 auto lambda1 = [](){};
18061 auto lambda2 = lambda1;
18069 auto a = [](int i, int j){ return i + j; }(1, 2);
18070 auto b = []() -> int { return '0'; }();
18071 auto c = [=](){ return a + b; }();
18072 auto d = [&](){ return c; }();
18073 auto e = [a, &b](int x) mutable {
18074 const auto identity = [](int y){ return y; };
18075 for (auto i = 0; i < a; ++i)
18077 return x + identity(a + b);
18079 return a + b + c + d + e;
18085 const auto nullary = [](){ return 0; };
18086 const auto unary = [](int x){ return x; };
18087 using nullary_t = decltype(nullary);
18088 using unary_t = decltype(unary);
18089 const auto higher1st = [](nullary_t f){ return f(); };
18090 const auto higher2nd = [unary](nullary_t f1){
18091 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18093 return higher1st(nullary) + higher2nd(nullary)(unary);
18098 namespace test_variadic_templates
18104 template <int N0, int... N1toN>
18105 struct sum<N0, N1toN...>
18107 static constexpr auto value = N0 + sum<N1toN...>::value;
18113 static constexpr auto value = 0;
18116 static_assert(sum<>::value == 0, "");
18117 static_assert(sum<1>::value == 1, "");
18118 static_assert(sum<23>::value == 23, "");
18119 static_assert(sum<1, 2>::value == 3, "");
18120 static_assert(sum<5, 5, 11>::value == 21, "");
18121 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18125 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18126 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18127 // because of this.
18128 namespace test_template_alias_sfinae
18133 template<typename T>
18134 using member = typename T::member_type;
18136 template<typename T>
18139 template<typename T>
18140 void func(member<T>*) {}
18144 void test() { func<foo>(0); }
18148 } // namespace cxx11
18150 #endif // __cplusplus >= 201103L
18155 if ac_fn_cxx_try_compile "$LINENO"; then :
18156 ax_cv_cxx_compile_cxx11=yes
18158 ax_cv_cxx_compile_cxx11=no
18160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18163 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18164 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18170 if test x$ac_success = xno; then
18171 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
18172 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18174 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18175 if eval \${$cachevar+:} false; then :
18176 $as_echo_n "(cached) " >&6
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18184 // If the compiler admits that it is not ready for C++11, why torture it?
18185 // Hopefully, this will speed up the test.
18187 #ifndef __cplusplus
18189 #error "This is not a C++ compiler"
18191 #elif __cplusplus < 201103L
18193 #error "This is not a C++11 compiler"
18200 namespace test_static_assert
18203 template <typename T>
18206 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18211 namespace test_final_override
18216 virtual void f() {}
18219 struct Derived : public Base
18221 virtual void f() override {}
18226 namespace test_double_right_angle_brackets
18229 template < typename T >
18232 typedef check<void> single_type;
18233 typedef check<check<void>> double_type;
18234 typedef check<check<check<void>>> triple_type;
18235 typedef check<check<check<check<void>>>> quadruple_type;
18239 namespace test_decltype
18252 namespace test_type_deduction
18255 template < typename T1, typename T2 >
18258 static const bool value = false;
18261 template < typename T >
18262 struct is_same<T, T>
18264 static const bool value = true;
18267 template < typename T1, typename T2 >
18269 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18275 test(const int c, volatile int v)
18277 static_assert(is_same<int, decltype(0)>::value == true, "");
18278 static_assert(is_same<int, decltype(c)>::value == false, "");
18279 static_assert(is_same<int, decltype(v)>::value == false, "");
18282 auto sumi = ac + av + 'x';
18283 auto sumf = ac + av + 1.0;
18284 static_assert(is_same<int, decltype(ac)>::value == true, "");
18285 static_assert(is_same<int, decltype(av)>::value == true, "");
18286 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18287 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18288 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18289 return (sumf > 0.0) ? sumi : add(c, v);
18294 namespace test_noexcept
18297 int f() { return 0; }
18298 int g() noexcept { return 0; }
18300 static_assert(noexcept(f()) == false, "");
18301 static_assert(noexcept(g()) == true, "");
18305 namespace test_constexpr
18308 template < typename CharT >
18309 unsigned long constexpr
18310 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18312 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18315 template < typename CharT >
18316 unsigned long constexpr
18317 strlen_c(const CharT *const s) noexcept
18319 return strlen_c_r(s, 0UL);
18322 static_assert(strlen_c("") == 0UL, "");
18323 static_assert(strlen_c("1") == 1UL, "");
18324 static_assert(strlen_c("example") == 7UL, "");
18325 static_assert(strlen_c("another\0example") == 7UL, "");
18329 namespace test_rvalue_references
18335 static constexpr int value = N;
18338 answer<1> f(int&) { return answer<1>(); }
18339 answer<2> f(const int&) { return answer<2>(); }
18340 answer<3> f(int&&) { return answer<3>(); }
18347 static_assert(decltype(f(i))::value == 1, "");
18348 static_assert(decltype(f(c))::value == 2, "");
18349 static_assert(decltype(f(0))::value == 3, "");
18354 namespace test_uniform_initialization
18359 static const int zero {};
18360 static const int one {1};
18363 static_assert(test::zero == 0, "");
18364 static_assert(test::one == 1, "");
18368 namespace test_lambdas
18374 auto lambda1 = [](){};
18375 auto lambda2 = lambda1;
18383 auto a = [](int i, int j){ return i + j; }(1, 2);
18384 auto b = []() -> int { return '0'; }();
18385 auto c = [=](){ return a + b; }();
18386 auto d = [&](){ return c; }();
18387 auto e = [a, &b](int x) mutable {
18388 const auto identity = [](int y){ return y; };
18389 for (auto i = 0; i < a; ++i)
18391 return x + identity(a + b);
18393 return a + b + c + d + e;
18399 const auto nullary = [](){ return 0; };
18400 const auto unary = [](int x){ return x; };
18401 using nullary_t = decltype(nullary);
18402 using unary_t = decltype(unary);
18403 const auto higher1st = [](nullary_t f){ return f(); };
18404 const auto higher2nd = [unary](nullary_t f1){
18405 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18407 return higher1st(nullary) + higher2nd(nullary)(unary);
18412 namespace test_variadic_templates
18418 template <int N0, int... N1toN>
18419 struct sum<N0, N1toN...>
18421 static constexpr auto value = N0 + sum<N1toN...>::value;
18427 static constexpr auto value = 0;
18430 static_assert(sum<>::value == 0, "");
18431 static_assert(sum<1>::value == 1, "");
18432 static_assert(sum<23>::value == 23, "");
18433 static_assert(sum<1, 2>::value == 3, "");
18434 static_assert(sum<5, 5, 11>::value == 21, "");
18435 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18439 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18440 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18441 // because of this.
18442 namespace test_template_alias_sfinae
18447 template<typename T>
18448 using member = typename T::member_type;
18450 template<typename T>
18453 template<typename T>
18454 void func(member<T>*) {}
18458 void test() { func<foo>(0); }
18462 } // namespace cxx11
18464 #endif // __cplusplus >= 201103L
18469 if ac_fn_cxx_try_compile "$LINENO"; then :
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 eval ac_res=\$$cachevar
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18479 $as_echo "$ac_res" >&6; }
18480 if eval test x\$$cachevar = xyes; then
18482 CXXCPP="$CXXCPP $switch"
18489 ac_cpp='$CPP $CPPFLAGS'
18490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18494 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18495 if test x$ac_success = xno; then
18496 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18499 if test x$ac_success = xno; then
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18502 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18506 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18511 if test "$HAVE_CXX11" != "1"; then
18512 if test "$explicit_languages" = "1"; then
18515 *** A compiler with c++11 support is required for the c++ binding.
18518 enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18519 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18522 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18524 $as_echo "$as_me: WARNING:
18526 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18532 # Check that if qt is enabled cpp also is enabled
18535 list=$enabled_languages
18539 if test "x$name" = "x$n"; then
18544 if test "$found" = "1"; then
18545 # We need to ensure that in the language order qt comes after cpp
18546 # so we remove qt first and explicitly add it as last list member.
18547 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18550 list=$enabled_languages
18554 if test "x$name" = "x$n"; then
18559 if test "$found" = "0"; then
18562 *** Qt language binding depends on cpp binding.
18567 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18568 if test -n "$ac_tool_prefix"; then
18569 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18570 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18572 $as_echo_n "checking for $ac_word... " >&6; }
18573 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18574 $as_echo_n "(cached) " >&6
18576 case $PKG_CONFIG in
18578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18582 for as_dir in $PATH
18585 test -z "$as_dir" && as_dir=.
18586 for ac_exec_ext in '' $ac_executable_extensions; do
18587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18588 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18599 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18600 if test -n "$PKG_CONFIG"; then
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18602 $as_echo "$PKG_CONFIG" >&6; }
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18605 $as_echo "no" >&6; }
18610 if test -z "$ac_cv_path_PKG_CONFIG"; then
18611 ac_pt_PKG_CONFIG=$PKG_CONFIG
18612 # Extract the first word of "pkg-config", so it can be a program name with args.
18613 set dummy pkg-config; ac_word=$2
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615 $as_echo_n "checking for $ac_word... " >&6; }
18616 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18617 $as_echo_n "(cached) " >&6
18619 case $ac_pt_PKG_CONFIG in
18621 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18628 test -z "$as_dir" && as_dir=.
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18631 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18642 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18643 if test -n "$ac_pt_PKG_CONFIG"; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18645 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18651 if test "x$ac_pt_PKG_CONFIG" = x; then
18654 case $cross_compiling:$ac_tool_warned in
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18658 ac_tool_warned=yes ;;
18660 PKG_CONFIG=$ac_pt_PKG_CONFIG
18663 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18667 if test -n "$PKG_CONFIG"; then
18668 _pkg_min_version=0.9.0
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18670 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18671 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18673 $as_echo "yes" >&6; }
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18682 have_qt5_libs="no";
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18687 $as_echo_n "checking for GPGME_QT... " >&6; }
18689 if test -n "$PKG_CONFIG"; then
18690 if test -n "$GPGME_QT_CFLAGS"; then
18691 pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18693 if test -n "$PKG_CONFIG" && \
18694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18695 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18698 test $ac_status = 0; }; then
18699 pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18707 if test -n "$PKG_CONFIG"; then
18708 if test -n "$GPGME_QT_LIBS"; then
18709 pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18711 if test -n "$PKG_CONFIG" && \
18712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18713 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18716 test $ac_status = 0; }; then
18717 pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18728 if test $pkg_failed = yes; then
18730 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18731 _pkg_short_errors_supported=yes
18733 _pkg_short_errors_supported=no
18735 if test $_pkg_short_errors_supported = yes; then
18736 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18738 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18740 # Put the nasty error message in config.log where it belongs
18741 echo "$GPGME_QT_PKG_ERRORS" >&5
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18744 $as_echo "no" >&6; }
18746 elif test $pkg_failed = untried; then
18749 GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18750 GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18752 $as_echo "yes" >&6; }
18753 have_qt5_libs="yes"
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18759 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18761 if test -n "$PKG_CONFIG"; then
18762 if test -n "$GPGME_QTTEST_CFLAGS"; then
18763 pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18765 if test -n "$PKG_CONFIG" && \
18766 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18767 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18770 test $ac_status = 0; }; then
18771 pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18779 if test -n "$PKG_CONFIG"; then
18780 if test -n "$GPGME_QTTEST_LIBS"; then
18781 pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18783 if test -n "$PKG_CONFIG" && \
18784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18785 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788 test $ac_status = 0; }; then
18789 pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18800 if test $pkg_failed = yes; then
18802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18803 _pkg_short_errors_supported=yes
18805 _pkg_short_errors_supported=no
18807 if test $_pkg_short_errors_supported = yes; then
18808 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18810 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18812 # Put the nasty error message in config.log where it belongs
18813 echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 $as_echo "no" >&6; }
18817 have_qt5test_libs="no"
18818 elif test $pkg_failed = untried; then
18819 have_qt5test_libs="no"
18821 GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18822 GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18824 $as_echo "yes" >&6; }
18825 have_qt5test_libs="yes"
18828 if ! test "$have_w32_system" = yes; then
18829 if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18830 GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18833 if test "$have_qt5_libs" = "yes"; then
18834 if test -n "$ac_tool_prefix"; then
18835 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18836 set dummy ${ac_tool_prefix}moc; ac_word=$2
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18838 $as_echo_n "checking for $ac_word... " >&6; }
18839 if ${ac_cv_prog_MOC+:} false; then :
18840 $as_echo_n "(cached) " >&6
18842 if test -n "$MOC"; then
18843 ac_cv_prog_MOC="$MOC" # Let the user override the test.
18845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18846 for as_dir in $PATH
18849 test -z "$as_dir" && as_dir=.
18850 for ac_exec_ext in '' $ac_executable_extensions; do
18851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18852 ac_cv_prog_MOC="${ac_tool_prefix}moc"
18853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18862 MOC=$ac_cv_prog_MOC
18863 if test -n "$MOC"; then
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18865 $as_echo "$MOC" >&6; }
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 $as_echo "no" >&6; }
18873 if test -z "$ac_cv_prog_MOC"; then
18875 # Extract the first word of "moc", so it can be a program name with args.
18876 set dummy moc; ac_word=$2
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18878 $as_echo_n "checking for $ac_word... " >&6; }
18879 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18880 $as_echo_n "(cached) " >&6
18882 if test -n "$ac_ct_MOC"; then
18883 ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18889 test -z "$as_dir" && as_dir=.
18890 for ac_exec_ext in '' $ac_executable_extensions; do
18891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892 ac_cv_prog_ac_ct_MOC="moc"
18893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18902 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18903 if test -n "$ac_ct_MOC"; then
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18905 $as_echo "$ac_ct_MOC" >&6; }
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 $as_echo "no" >&6; }
18911 if test "x$ac_ct_MOC" = x; then
18914 case $cross_compiling:$ac_tool_warned in
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18918 ac_tool_warned=yes ;;
18923 MOC="$ac_cv_prog_MOC"
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18927 $as_echo_n "checking moc version... " >&6; }
18928 mocversion=`$MOC -v 2>&1`
18929 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
18930 if test x"$mocversiongrep" != x"$mocversion"; then
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932 $as_echo "no" >&6; }
18933 # moc was not the qt5 one, try with moc-qt5
18934 if test -n "$ac_tool_prefix"; then
18935 # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18936 set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18938 $as_echo_n "checking for $ac_word... " >&6; }
18939 if ${ac_cv_prog_MOC2+:} false; then :
18940 $as_echo_n "(cached) " >&6
18942 if test -n "$MOC2"; then
18943 ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946 for as_dir in $PATH
18949 test -z "$as_dir" && as_dir=.
18950 for ac_exec_ext in '' $ac_executable_extensions; do
18951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952 ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18962 MOC2=$ac_cv_prog_MOC2
18963 if test -n "$MOC2"; then
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
18965 $as_echo "$MOC2" >&6; }
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968 $as_echo "no" >&6; }
18973 if test -z "$ac_cv_prog_MOC2"; then
18975 # Extract the first word of "moc-qt5", so it can be a program name with args.
18976 set dummy moc-qt5; ac_word=$2
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18978 $as_echo_n "checking for $ac_word... " >&6; }
18979 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
18980 $as_echo_n "(cached) " >&6
18982 if test -n "$ac_ct_MOC2"; then
18983 ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
18985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18986 for as_dir in $PATH
18989 test -z "$as_dir" && as_dir=.
18990 for ac_exec_ext in '' $ac_executable_extensions; do
18991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18992 ac_cv_prog_ac_ct_MOC2="moc-qt5"
18993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19002 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
19003 if test -n "$ac_ct_MOC2"; then
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
19005 $as_echo "$ac_ct_MOC2" >&6; }
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008 $as_echo "no" >&6; }
19011 if test "x$ac_ct_MOC2" = x; then
19014 case $cross_compiling:$ac_tool_warned in
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19018 ac_tool_warned=yes ;;
19023 MOC2="$ac_cv_prog_MOC2"
19026 mocversion=`$MOC2 -v 2>&1`
19027 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
19028 if test x"$mocversiongrep" != x"$mocversion"; then
19029 if test -n "$ac_tool_prefix"; then
19030 # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
19031 set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19033 $as_echo_n "checking for $ac_word... " >&6; }
19034 if ${ac_cv_prog_QTCHOOSER+:} false; then :
19035 $as_echo_n "(cached) " >&6
19037 if test -n "$QTCHOOSER"; then
19038 ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
19040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19041 for as_dir in $PATH
19044 test -z "$as_dir" && as_dir=.
19045 for ac_exec_ext in '' $ac_executable_extensions; do
19046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19047 ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
19048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19057 QTCHOOSER=$ac_cv_prog_QTCHOOSER
19058 if test -n "$QTCHOOSER"; then
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19060 $as_echo "$QTCHOOSER" >&6; }
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19063 $as_echo "no" >&6; }
19068 if test -z "$ac_cv_prog_QTCHOOSER"; then
19069 ac_ct_QTCHOOSER=$QTCHOOSER
19070 # Extract the first word of "qtchooser", so it can be a program name with args.
19071 set dummy qtchooser; ac_word=$2
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19073 $as_echo_n "checking for $ac_word... " >&6; }
19074 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
19075 $as_echo_n "(cached) " >&6
19077 if test -n "$ac_ct_QTCHOOSER"; then
19078 ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
19080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19081 for as_dir in $PATH
19084 test -z "$as_dir" && as_dir=.
19085 for ac_exec_ext in '' $ac_executable_extensions; do
19086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19087 ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
19088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19097 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
19098 if test -n "$ac_ct_QTCHOOSER"; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
19100 $as_echo "$ac_ct_QTCHOOSER" >&6; }
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19106 if test "x$ac_ct_QTCHOOSER" = x; then
19109 case $cross_compiling:$ac_tool_warned in
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19113 ac_tool_warned=yes ;;
19115 QTCHOOSER=$ac_ct_QTCHOOSER
19118 QTCHOOSER="$ac_cv_prog_QTCHOOSER"
19121 qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
19122 mocversion=`$qt5tooldir/moc -v 2>&1`
19123 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
19124 if test x"$mocversiongrep" != x"$mocversion"; then
19125 # no valid moc found
19126 have_qt5_libs="no";
19128 MOC=$qt5tooldir/moc
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
19135 $as_echo "$mocversion" >&6; }
19136 OLDCPPFLAGS=$CPPFLAGS
19137 CPPFLAGS=$GPGME_QT_CFLAGS
19139 LIBS=$GPGME_QT_LIBS
19141 ac_cpp='$CXXCPP $CPPFLAGS'
19142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
19147 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19151 #include <QCoreApplication>
19152 int main (int argc, char **argv) {
19153 QCoreApplication app(argc, argv);
19157 if ac_fn_cxx_try_link "$LINENO"; then :
19158 have_qt5_libs='yes'
19162 rm -f core conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext conftest.$ac_ext
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
19165 $as_echo "$have_qt5_libs" >&6; }
19167 ac_cpp='$CPP $CPPFLAGS'
19168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19172 CPPFLAGS=$OLDCPPFLAGS
19176 if test "$have_qt5_libs" != "yes"; then
19177 if test "$explicit_languages" = "1"; then
19180 *** Qt5 (Qt5Core) is required for Qt binding.
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19185 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19187 $as_echo "$as_me: WARNING:
19189 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19193 enabled_languages=`echo $enabled_languages qt`
19195 for ac_prog in doxygen
19197 # Extract the first word of "$ac_prog", so it can be a program name with args.
19198 set dummy $ac_prog; ac_word=$2
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19200 $as_echo_n "checking for $ac_word... " >&6; }
19201 if ${ac_cv_prog_DOXYGEN+:} false; then :
19202 $as_echo_n "(cached) " >&6
19204 if test -n "$DOXYGEN"; then
19205 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19208 for as_dir in $PATH
19211 test -z "$as_dir" && as_dir=.
19212 for ac_exec_ext in '' $ac_executable_extensions; do
19213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19214 ac_cv_prog_DOXYGEN="$ac_prog"
19215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19224 DOXYGEN=$ac_cv_prog_DOXYGEN
19225 if test -n "$DOXYGEN"; then
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19227 $as_echo "$DOXYGEN" >&6; }
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19234 test -n "$DOXYGEN" && break
19237 if test -z "$DOXYGEN";
19238 # This is not highlighted because it's not really important.
19239 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19240 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19244 # Extract the first word of "$ac_prog", so it can be a program name with args.
19245 set dummy $ac_prog; ac_word=$2
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19247 $as_echo_n "checking for $ac_word... " >&6; }
19248 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19249 $as_echo_n "(cached) " >&6
19251 if test -n "$GRAPHVIZ"; then
19252 ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19255 for as_dir in $PATH
19258 test -z "$as_dir" && as_dir=.
19259 for ac_exec_ext in '' $ac_executable_extensions; do
19260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19261 ac_cv_prog_GRAPHVIZ="$ac_prog"
19262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19271 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19272 if test -n "$GRAPHVIZ"; then
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19274 $as_echo "$GRAPHVIZ" >&6; }
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19277 $as_echo "no" >&6; }
19281 test -n "$GRAPHVIZ" && break
19284 if test -z "$GRAPHVIZ";
19285 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19286 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19290 if test -n "$DOXYGEN"; then
19292 HAVE_DOXYGEN_FALSE='#'
19294 HAVE_DOXYGEN_TRUE='#'
19295 HAVE_DOXYGEN_FALSE=
19298 if test -n "$GRAPHVIZ"; then
19308 list=$enabled_languages
19312 if test "x$name" = "x$n"; then
19318 if test "$found_py" = "1"; then
19320 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19321 for ac_prog in swig swig2.0
19323 # Extract the first word of "$ac_prog", so it can be a program name with args.
19324 set dummy $ac_prog; ac_word=$2
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19326 $as_echo_n "checking for $ac_word... " >&6; }
19327 if ${ac_cv_path_SWIG+:} false; then :
19328 $as_echo_n "(cached) " >&6
19332 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19336 for as_dir in $PATH
19339 test -z "$as_dir" && as_dir=.
19340 for ac_exec_ext in '' $ac_executable_extensions; do
19341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19342 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19353 SWIG=$ac_cv_path_SWIG
19354 if test -n "$SWIG"; then
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19356 $as_echo "$SWIG" >&6; }
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19359 $as_echo "no" >&6; }
19363 test -n "$SWIG" && break
19366 if test -z "$SWIG" ; then
19368 elif test -n "" ; then
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19370 $as_echo_n "checking SWIG version... " >&6; }
19371 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19373 $as_echo "$swig_version" >&6; }
19374 if test -n "$swig_version" ; then
19375 # Calculate the required version number components
19377 required_major=`echo $required | sed 's/[^0-9].*//'`
19378 if test -z "$required_major" ; then
19381 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19382 required_minor=`echo $required | sed 's/[^0-9].*//'`
19383 if test -z "$required_minor" ; then
19386 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19387 required_patch=`echo $required | sed 's/[^0-9].*//'`
19388 if test -z "$required_patch" ; then
19391 # Calculate the available version number components
19392 available=$swig_version
19393 available_major=`echo $available | sed 's/[^0-9].*//'`
19394 if test -z "$available_major" ; then
19397 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19398 available_minor=`echo $available | sed 's/[^0-9].*//'`
19399 if test -z "$available_minor" ; then
19402 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19403 available_patch=`echo $available | sed 's/[^0-9].*//'`
19404 if test -z "$available_patch" ; then
19407 # Convert the version tuple into a single number for easier comparison.
19408 # Using base 100 should be safe since SWIG internally uses BCD values
19409 # to encode its version number.
19410 required_swig_vernum=`expr $required_major \* 10000 \
19411 \+ $required_minor \* 100 \+ $required_patch`
19412 available_swig_vernum=`expr $available_major \* 10000 \
19413 \+ $available_minor \* 100 \+ $available_patch`
19415 if test $available_swig_vernum -lt $required_swig_vernum; then
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
19417 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19422 $as_echo_n "checking for SWIG library... " >&6; }
19423 SWIG_LIB=`$SWIG -swiglib`
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19425 $as_echo "$SWIG_LIB" >&6; }
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19430 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19437 if test -z "$SWIG"; then
19438 if test "$explicit_languages" = "1"; then
19441 *** You need SWIG to build the Python bindings.
19444 enabled_languages=$(echo $enabled_languages | sed 's/python//')
19447 # Reset the version collecting vars.
19451 if test "$found_py" = "1" -o "$found_py3" = "1"; then
19452 # Reset everything, so that we can look for another Python.
19454 unset PYTHON_VERSION
19455 unset PYTHON_CPPFLAGS
19456 unset PYTHON_LDFLAGS
19457 unset PYTHON_SITE_PKG
19458 unset PYTHON_EXTRA_LIBS
19459 unset PYTHON_EXTRA_LDFLAGS
19460 unset ac_cv_path_PYTHON
19461 unset am_cv_pathless_PYTHON
19462 unset am_cv_python_version
19463 unset am_cv_python_platform
19464 unset am_cv_python_pythondir
19465 unset am_cv_python_pyexecdir
19472 if test -n "$PYTHON"; then
19473 # If the user set $PYTHON, use it and don't search something else.
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19475 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19477 # split strings by '.' and convert to numeric. Append some zeros
19478 # because we need at least 4 digits for the hex conversion.
19479 # map returns an iterator in Python 3.0 and a list in 2.x
19480 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19482 # xrange is not present in Python 3.0 and range returns an iterator
19483 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19484 sys.exit(sys.hexversion < minverhex)"
19485 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19486 ($PYTHON -c "$prog") >&5 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; then :
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19491 $as_echo "yes" >&6; }
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19495 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19497 am_display_PYTHON=$PYTHON
19499 # Otherwise, try each interpreter until we find one that satisfies
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19502 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19503 if ${am_cv_pathless_PYTHON+:} false; then :
19504 $as_echo_n "(cached) " >&6
19507 for am_cv_pathless_PYTHON in python2.7 none; do
19508 test "$am_cv_pathless_PYTHON" = none && break
19510 # split strings by '.' and convert to numeric. Append some zeros
19511 # because we need at least 4 digits for the hex conversion.
19512 # map returns an iterator in Python 3.0 and a list in 2.x
19513 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19515 # xrange is not present in Python 3.0 and range returns an iterator
19516 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19517 sys.exit(sys.hexversion < minverhex)"
19518 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19519 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; then :
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19528 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19529 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19530 if test "$am_cv_pathless_PYTHON" = none; then
19533 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19534 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19536 $as_echo_n "checking for $ac_word... " >&6; }
19537 if ${ac_cv_path_PYTHON+:} false; then :
19538 $as_echo_n "(cached) " >&6
19542 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19546 for as_dir in $PATH
19549 test -z "$as_dir" && as_dir=.
19550 for ac_exec_ext in '' $ac_executable_extensions; do
19551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19552 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19563 PYTHON=$ac_cv_path_PYTHON
19564 if test -n "$PYTHON"; then
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19566 $as_echo "$PYTHON" >&6; }
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19574 am_display_PYTHON=$am_cv_pathless_PYTHON
19578 if test "$PYTHON" = :; then
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19584 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19585 if ${am_cv_python_version+:} false; then :
19586 $as_echo_n "(cached) " >&6
19588 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19591 $as_echo "$am_cv_python_version" >&6; }
19592 PYTHON_VERSION=$am_cv_python_version
19596 PYTHON_PREFIX='${prefix}'
19598 PYTHON_EXEC_PREFIX='${exec_prefix}'
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19603 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19604 if ${am_cv_python_platform+:} false; then :
19605 $as_echo_n "(cached) " >&6
19607 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19610 $as_echo "$am_cv_python_platform" >&6; }
19611 PYTHON_PLATFORM=$am_cv_python_platform
19614 # Just factor out some code duplication.
19615 am_python_setup_sysconfig="\
19617 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19618 # with python 3.x. See automake bug#10227.
19621 except ImportError:
19622 can_use_sysconfig = 0
19624 can_use_sysconfig = 1
19625 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19626 # <https://github.com/pypa/virtualenv/issues/118>
19628 from platform import python_implementation
19629 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19630 can_use_sysconfig = 0
19631 except ImportError:
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19636 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19637 if ${am_cv_python_pythondir+:} false; then :
19638 $as_echo_n "(cached) " >&6
19640 if test "x$prefix" = xNONE
19642 am_py_prefix=$ac_default_prefix
19644 am_py_prefix=$prefix
19646 am_cv_python_pythondir=`$PYTHON -c "
19647 $am_python_setup_sysconfig
19648 if can_use_sysconfig:
19649 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19651 from distutils import sysconfig
19652 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19653 sys.stdout.write(sitedir)"`
19654 case $am_cv_python_pythondir in
19656 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19657 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19660 case $am_py_prefix in
19663 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19671 $as_echo "$am_cv_python_pythondir" >&6; }
19672 pythondir=$am_cv_python_pythondir
19676 pkgpythondir=\${pythondir}/$PACKAGE
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19680 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19681 if ${am_cv_python_pyexecdir+:} false; then :
19682 $as_echo_n "(cached) " >&6
19684 if test "x$exec_prefix" = xNONE
19686 am_py_exec_prefix=$am_py_prefix
19688 am_py_exec_prefix=$exec_prefix
19690 am_cv_python_pyexecdir=`$PYTHON -c "
19691 $am_python_setup_sysconfig
19692 if can_use_sysconfig:
19693 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19695 from distutils import sysconfig
19696 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19697 sys.stdout.write(sitedir)"`
19698 case $am_cv_python_pyexecdir in
19699 $am_py_exec_prefix*)
19700 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19701 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19704 case $am_py_exec_prefix in
19707 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19715 $as_echo "$am_cv_python_pyexecdir" >&6; }
19716 pyexecdir=$am_cv_python_pyexecdir
19720 pkgpyexecdir=\${pyexecdir}/$PACKAGE
19726 # Allow the use of a (user set) custom python version
19730 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19731 set dummy python$PYTHON_VERSION; ac_word=$2
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19733 $as_echo_n "checking for $ac_word... " >&6; }
19734 if ${ac_cv_path_PYTHON+:} false; then :
19735 $as_echo_n "(cached) " >&6
19739 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19743 for as_dir in $PATH
19746 test -z "$as_dir" && as_dir=.
19747 for ac_exec_ext in '' $ac_executable_extensions; do
19748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19749 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19760 PYTHON=$ac_cv_path_PYTHON
19761 if test -n "$PYTHON"; then
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19763 $as_echo "$PYTHON" >&6; }
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19766 $as_echo "no" >&6; }
19770 if test -z "$PYTHON"; then
19771 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19776 # Check for a version of Python >= 2.1.0
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19779 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19780 ac_supports_python_ver=`$PYTHON -c "import sys; \
19781 ver = sys.version.split ()[0]; \
19782 print (ver >= '2.1.0')"`
19783 if test "$ac_supports_python_ver" != "True"; then
19784 if test -z "$PYTHON_NOVERSIONCHECK"; then
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786 $as_echo "no" >&6; }
19787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19790 This version of the AC_PYTHON_DEVEL macro
19791 doesn't work properly with versions of Python before
19792 2.1.0. You may need to re-run configure, setting the
19793 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19794 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19795 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19796 to something else than an empty string.
19798 See \`config.log' for more details" "$LINENO" 5; }
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19801 $as_echo "skip at user request" >&6; }
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19805 $as_echo "yes" >&6; }
19809 # if the macro parameter ``version'' is set, honour it
19811 if test -n ""; then
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19813 $as_echo_n "checking for a version of Python ... " >&6; }
19814 ac_supports_python_ver=`$PYTHON -c "import sys; \
19815 ver = sys.version.split ()[0]; \
19817 if test "$ac_supports_python_ver" = "True"; then
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19819 $as_echo "yes" >&6; }
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19822 $as_echo "no" >&6; }
19823 as_fn_error $? "this package requires Python .
19824 If you have it installed, but it isn't the default Python
19825 interpreter in your system path, please pass the PYTHON_VERSION
19826 variable to configure. See \`\`configure --help'' for reference.
19833 # Check if you have distutils, else fail
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19836 $as_echo_n "checking for the distutils Python package... " >&6; }
19837 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19838 if test -z "$ac_distutils_result"; then
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19840 $as_echo "yes" >&6; }
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843 $as_echo "no" >&6; }
19844 as_fn_error $? "cannot import Python module \"distutils\".
19845 Please check your Python installation. The error was:
19846 $ac_distutils_result" "$LINENO" 5
19851 # Check for Python include path
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19854 $as_echo_n "checking for Python include path... " >&6; }
19855 if test -z "$PYTHON_CPPFLAGS"; then
19856 python_path=`$PYTHON -c "import distutils.sysconfig; \
19857 print (distutils.sysconfig.get_python_inc ());"`
19858 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19859 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19860 if test -n "${python_path}"; then
19861 if test "${plat_python_path}" != "${python_path}"; then
19862 python_path="-I$python_path -I$plat_python_path"
19864 python_path="-I$python_path"
19867 PYTHON_CPPFLAGS=$python_path
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19870 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19874 # Check for Python library path
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19877 $as_echo_n "checking for Python library path... " >&6; }
19878 if test -z "$PYTHON_LDFLAGS"; then
19879 # (makes two attempts to ensure we've got a version number
19880 # from the interpreter)
19881 ac_python_version=`cat<<EOD | $PYTHON -
19883 # join all versioning strings, on some systems
19884 # major/minor numbers could be in different list elements
19885 from distutils.sysconfig import *
19886 e = get_config_var('VERSION')
19891 if test -z "$ac_python_version"; then
19892 if test -n "$PYTHON_VERSION"; then
19893 ac_python_version=$PYTHON_VERSION
19895 ac_python_version=`$PYTHON -c "import sys; \
19896 print (sys.version[:3])"`
19900 # Make the versioning information available to the compiler
19902 # JW: We don't need it and it interferes with the hack
19903 # to detect multiple Pyhton versions
19904 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
19905 # [If available, contains the Python version number currently in use.])
19907 # First, the library directory:
19908 ac_python_libdir=`cat<<EOD | $PYTHON -
19910 # There should be only one
19911 import distutils.sysconfig
19912 e = distutils.sysconfig.get_config_var('LIBDIR')
19917 # Now, for the library:
19918 ac_python_library=`cat<<EOD | $PYTHON -
19920 import distutils.sysconfig
19921 c = distutils.sysconfig.get_config_vars()
19922 if 'LDVERSION' in c:
19923 print ('python'+c['LDVERSION'])
19925 print ('python'+c['VERSION'])
19928 # This small piece shamelessly adapted from PostgreSQL python macro;
19929 # credits goes to momjian, I think. I'd like to put the right name
19930 # in the credits, if someone can point me in the right direction... ?
19932 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19934 # use the official shared library
19935 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19936 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19938 # old way: use libpython from python_configdir
19939 ac_python_libdir=`$PYTHON -c \
19940 "from distutils.sysconfig import get_python_lib as f; \
19942 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19943 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19946 if test -z "PYTHON_LDFLAGS"; then
19948 Cannot determine location of your Python DSO. Please check it was installed with
19949 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19954 $as_echo "$PYTHON_LDFLAGS" >&6; }
19958 # Check for site packages
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
19961 $as_echo_n "checking for Python site-packages path... " >&6; }
19962 if test -z "$PYTHON_SITE_PKG"; then
19963 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
19964 print (distutils.sysconfig.get_python_lib(0,0));"`
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
19967 $as_echo "$PYTHON_SITE_PKG" >&6; }
19971 # libraries which must be linked in when embedding
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
19974 $as_echo_n "checking python extra libraries... " >&6; }
19975 if test -z "$PYTHON_EXTRA_LIBS"; then
19976 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
19977 conf = distutils.sysconfig.get_config_var; \
19978 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
19981 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
19985 # linking flags needed when embedding
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
19988 $as_echo_n "checking python extra linking flags... " >&6; }
19989 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
19990 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
19991 conf = distutils.sysconfig.get_config_var; \
19992 print (conf('LINKFORSHARED'))"`
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
19995 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
19999 # final check to see if everything compiles alright
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20002 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20003 # save current global flags
20004 ac_save_LIBS="$LIBS"
20005 ac_save_CPPFLAGS="$CPPFLAGS"
20006 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20007 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20009 ac_cpp='$CPP $CPPFLAGS'
20010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20015 /* end confdefs.h. */
20017 #include <Python.h>
20027 if ac_fn_c_try_link "$LINENO"; then :
20032 rm -f core conftest.err conftest.$ac_objext \
20033 conftest$ac_exeext conftest.$ac_ext
20035 ac_cpp='$CPP $CPPFLAGS'
20036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20040 # turn back to default flags
20041 CPPFLAGS="$ac_save_CPPFLAGS"
20042 LIBS="$ac_save_LIBS"
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20045 $as_echo "$pythonexists" >&6; }
20047 if test ! "x$pythonexists" = "xyes"; then
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20049 Could not link test program to Python. Maybe the main Python library has been
20050 installed in some non-standard library path. If so, pass it to configure,
20051 via the LDFLAGS environment variable.
20052 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20053 ============================================================================
20054 You probably have to install the development version of the Python package
20055 for your distribution. The exact name of this package varies among them.
20056 ============================================================================
20058 $as_echo "$as_me: WARNING:
20059 Could not link test program to Python. Maybe the main Python library has been
20060 installed in some non-standard library path. If so, pass it to configure,
20061 via the LDFLAGS environment variable.
20062 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20063 ============================================================================
20064 You probably have to install the development version of the Python package
20065 for your distribution. The exact name of this package varies among them.
20066 ============================================================================
20075 if test "$PYTHON_VERSION"; then
20076 PYTHONS="$(echo $PYTHONS $PYTHON)"
20077 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20084 unset PYTHON_VERSION
20085 unset PYTHON_CPPFLAGS
20086 unset PYTHON_LDFLAGS
20087 unset PYTHON_SITE_PKG
20088 unset PYTHON_EXTRA_LIBS
20089 unset PYTHON_EXTRA_LDFLAGS
20090 unset ac_cv_path_PYTHON
20091 unset am_cv_pathless_PYTHON
20092 unset am_cv_python_version
20093 unset am_cv_python_platform
20094 unset am_cv_python_pythondir
20095 unset am_cv_python_pyexecdir
20102 if test -n "$PYTHON"; then
20103 # If the user set $PYTHON, use it and don't search something else.
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
20105 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
20107 # split strings by '.' and convert to numeric. Append some zeros
20108 # because we need at least 4 digits for the hex conversion.
20109 # map returns an iterator in Python 3.0 and a list in 2.x
20110 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20112 # xrange is not present in Python 3.0 and range returns an iterator
20113 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20114 sys.exit(sys.hexversion < minverhex)"
20115 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20116 ($PYTHON -c "$prog") >&5 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; then :
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20121 $as_echo "yes" >&6; }
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124 $as_echo "no" >&6; }
20125 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20127 am_display_PYTHON=$PYTHON
20129 # Otherwise, try each interpreter until we find one that satisfies
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
20132 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
20133 if ${am_cv_pathless_PYTHON+:} false; then :
20134 $as_echo_n "(cached) " >&6
20137 for am_cv_pathless_PYTHON in python3.4 none; do
20138 test "$am_cv_pathless_PYTHON" = none && break
20140 # split strings by '.' and convert to numeric. Append some zeros
20141 # because we need at least 4 digits for the hex conversion.
20142 # map returns an iterator in Python 3.0 and a list in 2.x
20143 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20145 # xrange is not present in Python 3.0 and range returns an iterator
20146 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20147 sys.exit(sys.hexversion < minverhex)"
20148 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20149 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; then :
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20158 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20159 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20160 if test "$am_cv_pathless_PYTHON" = none; then
20163 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20164 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166 $as_echo_n "checking for $ac_word... " >&6; }
20167 if ${ac_cv_path_PYTHON+:} false; then :
20168 $as_echo_n "(cached) " >&6
20172 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176 for as_dir in $PATH
20179 test -z "$as_dir" && as_dir=.
20180 for ac_exec_ext in '' $ac_executable_extensions; do
20181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20182 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20193 PYTHON=$ac_cv_path_PYTHON
20194 if test -n "$PYTHON"; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20196 $as_echo "$PYTHON" >&6; }
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20204 am_display_PYTHON=$am_cv_pathless_PYTHON
20208 if test "$PYTHON" = :; then
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20214 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20215 if ${am_cv_python_version+:} false; then :
20216 $as_echo_n "(cached) " >&6
20218 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20221 $as_echo "$am_cv_python_version" >&6; }
20222 PYTHON_VERSION=$am_cv_python_version
20226 PYTHON_PREFIX='${prefix}'
20228 PYTHON_EXEC_PREFIX='${exec_prefix}'
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20233 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20234 if ${am_cv_python_platform+:} false; then :
20235 $as_echo_n "(cached) " >&6
20237 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20240 $as_echo "$am_cv_python_platform" >&6; }
20241 PYTHON_PLATFORM=$am_cv_python_platform
20244 # Just factor out some code duplication.
20245 am_python_setup_sysconfig="\
20247 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20248 # with python 3.x. See automake bug#10227.
20251 except ImportError:
20252 can_use_sysconfig = 0
20254 can_use_sysconfig = 1
20255 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20256 # <https://github.com/pypa/virtualenv/issues/118>
20258 from platform import python_implementation
20259 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20260 can_use_sysconfig = 0
20261 except ImportError:
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20266 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20267 if ${am_cv_python_pythondir+:} false; then :
20268 $as_echo_n "(cached) " >&6
20270 if test "x$prefix" = xNONE
20272 am_py_prefix=$ac_default_prefix
20274 am_py_prefix=$prefix
20276 am_cv_python_pythondir=`$PYTHON -c "
20277 $am_python_setup_sysconfig
20278 if can_use_sysconfig:
20279 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20281 from distutils import sysconfig
20282 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20283 sys.stdout.write(sitedir)"`
20284 case $am_cv_python_pythondir in
20286 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20287 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20290 case $am_py_prefix in
20293 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20301 $as_echo "$am_cv_python_pythondir" >&6; }
20302 pythondir=$am_cv_python_pythondir
20306 pkgpythondir=\${pythondir}/$PACKAGE
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20310 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20311 if ${am_cv_python_pyexecdir+:} false; then :
20312 $as_echo_n "(cached) " >&6
20314 if test "x$exec_prefix" = xNONE
20316 am_py_exec_prefix=$am_py_prefix
20318 am_py_exec_prefix=$exec_prefix
20320 am_cv_python_pyexecdir=`$PYTHON -c "
20321 $am_python_setup_sysconfig
20322 if can_use_sysconfig:
20323 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20325 from distutils import sysconfig
20326 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20327 sys.stdout.write(sitedir)"`
20328 case $am_cv_python_pyexecdir in
20329 $am_py_exec_prefix*)
20330 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20331 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20334 case $am_py_exec_prefix in
20337 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20345 $as_echo "$am_cv_python_pyexecdir" >&6; }
20346 pyexecdir=$am_cv_python_pyexecdir
20350 pkgpyexecdir=\${pyexecdir}/$PACKAGE
20356 # Allow the use of a (user set) custom python version
20360 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20361 set dummy python$PYTHON_VERSION; ac_word=$2
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20363 $as_echo_n "checking for $ac_word... " >&6; }
20364 if ${ac_cv_path_PYTHON+:} false; then :
20365 $as_echo_n "(cached) " >&6
20369 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20373 for as_dir in $PATH
20376 test -z "$as_dir" && as_dir=.
20377 for ac_exec_ext in '' $ac_executable_extensions; do
20378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20379 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20390 PYTHON=$ac_cv_path_PYTHON
20391 if test -n "$PYTHON"; then
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20393 $as_echo "$PYTHON" >&6; }
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20396 $as_echo "no" >&6; }
20400 if test -z "$PYTHON"; then
20401 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20406 # Check for a version of Python >= 2.1.0
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20409 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20410 ac_supports_python_ver=`$PYTHON -c "import sys; \
20411 ver = sys.version.split ()[0]; \
20412 print (ver >= '2.1.0')"`
20413 if test "$ac_supports_python_ver" != "True"; then
20414 if test -z "$PYTHON_NOVERSIONCHECK"; then
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20416 $as_echo "no" >&6; }
20417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20420 This version of the AC_PYTHON_DEVEL macro
20421 doesn't work properly with versions of Python before
20422 2.1.0. You may need to re-run configure, setting the
20423 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20424 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20425 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20426 to something else than an empty string.
20428 See \`config.log' for more details" "$LINENO" 5; }
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20431 $as_echo "skip at user request" >&6; }
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20435 $as_echo "yes" >&6; }
20439 # if the macro parameter ``version'' is set, honour it
20441 if test -n ""; then
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20443 $as_echo_n "checking for a version of Python ... " >&6; }
20444 ac_supports_python_ver=`$PYTHON -c "import sys; \
20445 ver = sys.version.split ()[0]; \
20447 if test "$ac_supports_python_ver" = "True"; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20449 $as_echo "yes" >&6; }
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452 $as_echo "no" >&6; }
20453 as_fn_error $? "this package requires Python .
20454 If you have it installed, but it isn't the default Python
20455 interpreter in your system path, please pass the PYTHON_VERSION
20456 variable to configure. See \`\`configure --help'' for reference.
20463 # Check if you have distutils, else fail
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20466 $as_echo_n "checking for the distutils Python package... " >&6; }
20467 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20468 if test -z "$ac_distutils_result"; then
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20470 $as_echo "yes" >&6; }
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20473 $as_echo "no" >&6; }
20474 as_fn_error $? "cannot import Python module \"distutils\".
20475 Please check your Python installation. The error was:
20476 $ac_distutils_result" "$LINENO" 5
20481 # Check for Python include path
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20484 $as_echo_n "checking for Python include path... " >&6; }
20485 if test -z "$PYTHON_CPPFLAGS"; then
20486 python_path=`$PYTHON -c "import distutils.sysconfig; \
20487 print (distutils.sysconfig.get_python_inc ());"`
20488 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20489 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20490 if test -n "${python_path}"; then
20491 if test "${plat_python_path}" != "${python_path}"; then
20492 python_path="-I$python_path -I$plat_python_path"
20494 python_path="-I$python_path"
20497 PYTHON_CPPFLAGS=$python_path
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20500 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20504 # Check for Python library path
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20507 $as_echo_n "checking for Python library path... " >&6; }
20508 if test -z "$PYTHON_LDFLAGS"; then
20509 # (makes two attempts to ensure we've got a version number
20510 # from the interpreter)
20511 ac_python_version=`cat<<EOD | $PYTHON -
20513 # join all versioning strings, on some systems
20514 # major/minor numbers could be in different list elements
20515 from distutils.sysconfig import *
20516 e = get_config_var('VERSION')
20521 if test -z "$ac_python_version"; then
20522 if test -n "$PYTHON_VERSION"; then
20523 ac_python_version=$PYTHON_VERSION
20525 ac_python_version=`$PYTHON -c "import sys; \
20526 print (sys.version[:3])"`
20530 # Make the versioning information available to the compiler
20532 # JW: We don't need it and it interferes with the hack
20533 # to detect multiple Pyhton versions
20534 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
20535 # [If available, contains the Python version number currently in use.])
20537 # First, the library directory:
20538 ac_python_libdir=`cat<<EOD | $PYTHON -
20540 # There should be only one
20541 import distutils.sysconfig
20542 e = distutils.sysconfig.get_config_var('LIBDIR')
20547 # Now, for the library:
20548 ac_python_library=`cat<<EOD | $PYTHON -
20550 import distutils.sysconfig
20551 c = distutils.sysconfig.get_config_vars()
20552 if 'LDVERSION' in c:
20553 print ('python'+c['LDVERSION'])
20555 print ('python'+c['VERSION'])
20558 # This small piece shamelessly adapted from PostgreSQL python macro;
20559 # credits goes to momjian, I think. I'd like to put the right name
20560 # in the credits, if someone can point me in the right direction... ?
20562 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20564 # use the official shared library
20565 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20566 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20568 # old way: use libpython from python_configdir
20569 ac_python_libdir=`$PYTHON -c \
20570 "from distutils.sysconfig import get_python_lib as f; \
20572 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20573 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20576 if test -z "PYTHON_LDFLAGS"; then
20578 Cannot determine location of your Python DSO. Please check it was installed with
20579 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20584 $as_echo "$PYTHON_LDFLAGS" >&6; }
20588 # Check for site packages
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20591 $as_echo_n "checking for Python site-packages path... " >&6; }
20592 if test -z "$PYTHON_SITE_PKG"; then
20593 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20594 print (distutils.sysconfig.get_python_lib(0,0));"`
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20597 $as_echo "$PYTHON_SITE_PKG" >&6; }
20601 # libraries which must be linked in when embedding
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20604 $as_echo_n "checking python extra libraries... " >&6; }
20605 if test -z "$PYTHON_EXTRA_LIBS"; then
20606 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20607 conf = distutils.sysconfig.get_config_var; \
20608 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20611 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20615 # linking flags needed when embedding
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20618 $as_echo_n "checking python extra linking flags... " >&6; }
20619 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20620 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20621 conf = distutils.sysconfig.get_config_var; \
20622 print (conf('LINKFORSHARED'))"`
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20625 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20629 # final check to see if everything compiles alright
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20632 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20633 # save current global flags
20634 ac_save_LIBS="$LIBS"
20635 ac_save_CPPFLAGS="$CPPFLAGS"
20636 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20637 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20639 ac_cpp='$CPP $CPPFLAGS'
20640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h. */
20647 #include <Python.h>
20657 if ac_fn_c_try_link "$LINENO"; then :
20662 rm -f core conftest.err conftest.$ac_objext \
20663 conftest$ac_exeext conftest.$ac_ext
20665 ac_cpp='$CPP $CPPFLAGS'
20666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670 # turn back to default flags
20671 CPPFLAGS="$ac_save_CPPFLAGS"
20672 LIBS="$ac_save_LIBS"
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20675 $as_echo "$pythonexists" >&6; }
20677 if test ! "x$pythonexists" = "xyes"; then
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20679 Could not link test program to Python. Maybe the main Python library has been
20680 installed in some non-standard library path. If so, pass it to configure,
20681 via the LDFLAGS environment variable.
20682 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20683 ============================================================================
20684 You probably have to install the development version of the Python package
20685 for your distribution. The exact name of this package varies among them.
20686 ============================================================================
20688 $as_echo "$as_me: WARNING:
20689 Could not link test program to Python. Maybe the main Python library has been
20690 installed in some non-standard library path. If so, pass it to configure,
20691 via the LDFLAGS environment variable.
20692 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20693 ============================================================================
20694 You probably have to install the development version of the Python package
20695 for your distribution. The exact name of this package varies among them.
20696 ============================================================================
20705 if test "$PYTHON_VERSION"; then
20706 PYTHONS="$(echo $PYTHONS $PYTHON)"
20707 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20714 unset PYTHON_VERSION
20715 unset PYTHON_CPPFLAGS
20716 unset PYTHON_LDFLAGS
20717 unset PYTHON_SITE_PKG
20718 unset PYTHON_EXTRA_LIBS
20719 unset PYTHON_EXTRA_LDFLAGS
20720 unset ac_cv_path_PYTHON
20721 unset am_cv_pathless_PYTHON
20722 unset am_cv_python_version
20723 unset am_cv_python_platform
20724 unset am_cv_python_pythondir
20725 unset am_cv_python_pyexecdir
20732 if test -n "$PYTHON"; then
20733 # If the user set $PYTHON, use it and don't search something else.
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
20735 $as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
20737 # split strings by '.' and convert to numeric. Append some zeros
20738 # because we need at least 4 digits for the hex conversion.
20739 # map returns an iterator in Python 3.0 and a list in 2.x
20740 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20742 # xrange is not present in Python 3.0 and range returns an iterator
20743 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20744 sys.exit(sys.hexversion < minverhex)"
20745 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20746 ($PYTHON -c "$prog") >&5 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; then :
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20751 $as_echo "yes" >&6; }
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20754 $as_echo "no" >&6; }
20755 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20757 am_display_PYTHON=$PYTHON
20759 # Otherwise, try each interpreter until we find one that satisfies
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
20762 $as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
20763 if ${am_cv_pathless_PYTHON+:} false; then :
20764 $as_echo_n "(cached) " >&6
20767 for am_cv_pathless_PYTHON in python3.5 none; do
20768 test "$am_cv_pathless_PYTHON" = none && break
20770 # split strings by '.' and convert to numeric. Append some zeros
20771 # because we need at least 4 digits for the hex conversion.
20772 # map returns an iterator in Python 3.0 and a list in 2.x
20773 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20775 # xrange is not present in Python 3.0 and range returns an iterator
20776 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20777 sys.exit(sys.hexversion < minverhex)"
20778 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20779 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; then :
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20788 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20789 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20790 if test "$am_cv_pathless_PYTHON" = none; then
20793 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20794 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20796 $as_echo_n "checking for $ac_word... " >&6; }
20797 if ${ac_cv_path_PYTHON+:} false; then :
20798 $as_echo_n "(cached) " >&6
20802 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20806 for as_dir in $PATH
20809 test -z "$as_dir" && as_dir=.
20810 for ac_exec_ext in '' $ac_executable_extensions; do
20811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20812 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20823 PYTHON=$ac_cv_path_PYTHON
20824 if test -n "$PYTHON"; then
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20826 $as_echo "$PYTHON" >&6; }
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20829 $as_echo "no" >&6; }
20834 am_display_PYTHON=$am_cv_pathless_PYTHON
20838 if test "$PYTHON" = :; then
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20844 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20845 if ${am_cv_python_version+:} false; then :
20846 $as_echo_n "(cached) " >&6
20848 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20851 $as_echo "$am_cv_python_version" >&6; }
20852 PYTHON_VERSION=$am_cv_python_version
20856 PYTHON_PREFIX='${prefix}'
20858 PYTHON_EXEC_PREFIX='${exec_prefix}'
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20863 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20864 if ${am_cv_python_platform+:} false; then :
20865 $as_echo_n "(cached) " >&6
20867 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20870 $as_echo "$am_cv_python_platform" >&6; }
20871 PYTHON_PLATFORM=$am_cv_python_platform
20874 # Just factor out some code duplication.
20875 am_python_setup_sysconfig="\
20877 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20878 # with python 3.x. See automake bug#10227.
20881 except ImportError:
20882 can_use_sysconfig = 0
20884 can_use_sysconfig = 1
20885 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20886 # <https://github.com/pypa/virtualenv/issues/118>
20888 from platform import python_implementation
20889 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20890 can_use_sysconfig = 0
20891 except ImportError:
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20896 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20897 if ${am_cv_python_pythondir+:} false; then :
20898 $as_echo_n "(cached) " >&6
20900 if test "x$prefix" = xNONE
20902 am_py_prefix=$ac_default_prefix
20904 am_py_prefix=$prefix
20906 am_cv_python_pythondir=`$PYTHON -c "
20907 $am_python_setup_sysconfig
20908 if can_use_sysconfig:
20909 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20911 from distutils import sysconfig
20912 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20913 sys.stdout.write(sitedir)"`
20914 case $am_cv_python_pythondir in
20916 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20917 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20920 case $am_py_prefix in
20923 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20931 $as_echo "$am_cv_python_pythondir" >&6; }
20932 pythondir=$am_cv_python_pythondir
20936 pkgpythondir=\${pythondir}/$PACKAGE
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20940 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20941 if ${am_cv_python_pyexecdir+:} false; then :
20942 $as_echo_n "(cached) " >&6
20944 if test "x$exec_prefix" = xNONE
20946 am_py_exec_prefix=$am_py_prefix
20948 am_py_exec_prefix=$exec_prefix
20950 am_cv_python_pyexecdir=`$PYTHON -c "
20951 $am_python_setup_sysconfig
20952 if can_use_sysconfig:
20953 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20955 from distutils import sysconfig
20956 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20957 sys.stdout.write(sitedir)"`
20958 case $am_cv_python_pyexecdir in
20959 $am_py_exec_prefix*)
20960 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20961 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20964 case $am_py_exec_prefix in
20967 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20975 $as_echo "$am_cv_python_pyexecdir" >&6; }
20976 pyexecdir=$am_cv_python_pyexecdir
20980 pkgpyexecdir=\${pyexecdir}/$PACKAGE
20986 # Allow the use of a (user set) custom python version
20990 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20991 set dummy python$PYTHON_VERSION; ac_word=$2
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20993 $as_echo_n "checking for $ac_word... " >&6; }
20994 if ${ac_cv_path_PYTHON+:} false; then :
20995 $as_echo_n "(cached) " >&6
20999 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21003 for as_dir in $PATH
21006 test -z "$as_dir" && as_dir=.
21007 for ac_exec_ext in '' $ac_executable_extensions; do
21008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21009 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21020 PYTHON=$ac_cv_path_PYTHON
21021 if test -n "$PYTHON"; then
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21023 $as_echo "$PYTHON" >&6; }
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 $as_echo "no" >&6; }
21030 if test -z "$PYTHON"; then
21031 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21036 # Check for a version of Python >= 2.1.0
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21039 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21040 ac_supports_python_ver=`$PYTHON -c "import sys; \
21041 ver = sys.version.split ()[0]; \
21042 print (ver >= '2.1.0')"`
21043 if test "$ac_supports_python_ver" != "True"; then
21044 if test -z "$PYTHON_NOVERSIONCHECK"; then
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21046 $as_echo "no" >&6; }
21047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21050 This version of the AC_PYTHON_DEVEL macro
21051 doesn't work properly with versions of Python before
21052 2.1.0. You may need to re-run configure, setting the
21053 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21054 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21055 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21056 to something else than an empty string.
21058 See \`config.log' for more details" "$LINENO" 5; }
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21061 $as_echo "skip at user request" >&6; }
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21065 $as_echo "yes" >&6; }
21069 # if the macro parameter ``version'' is set, honour it
21071 if test -n ""; then
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21073 $as_echo_n "checking for a version of Python ... " >&6; }
21074 ac_supports_python_ver=`$PYTHON -c "import sys; \
21075 ver = sys.version.split ()[0]; \
21077 if test "$ac_supports_python_ver" = "True"; then
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21079 $as_echo "yes" >&6; }
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21082 $as_echo "no" >&6; }
21083 as_fn_error $? "this package requires Python .
21084 If you have it installed, but it isn't the default Python
21085 interpreter in your system path, please pass the PYTHON_VERSION
21086 variable to configure. See \`\`configure --help'' for reference.
21093 # Check if you have distutils, else fail
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21096 $as_echo_n "checking for the distutils Python package... " >&6; }
21097 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21098 if test -z "$ac_distutils_result"; then
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21100 $as_echo "yes" >&6; }
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21103 $as_echo "no" >&6; }
21104 as_fn_error $? "cannot import Python module \"distutils\".
21105 Please check your Python installation. The error was:
21106 $ac_distutils_result" "$LINENO" 5
21111 # Check for Python include path
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21114 $as_echo_n "checking for Python include path... " >&6; }
21115 if test -z "$PYTHON_CPPFLAGS"; then
21116 python_path=`$PYTHON -c "import distutils.sysconfig; \
21117 print (distutils.sysconfig.get_python_inc ());"`
21118 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21119 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21120 if test -n "${python_path}"; then
21121 if test "${plat_python_path}" != "${python_path}"; then
21122 python_path="-I$python_path -I$plat_python_path"
21124 python_path="-I$python_path"
21127 PYTHON_CPPFLAGS=$python_path
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21130 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21134 # Check for Python library path
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21137 $as_echo_n "checking for Python library path... " >&6; }
21138 if test -z "$PYTHON_LDFLAGS"; then
21139 # (makes two attempts to ensure we've got a version number
21140 # from the interpreter)
21141 ac_python_version=`cat<<EOD | $PYTHON -
21143 # join all versioning strings, on some systems
21144 # major/minor numbers could be in different list elements
21145 from distutils.sysconfig import *
21146 e = get_config_var('VERSION')
21151 if test -z "$ac_python_version"; then
21152 if test -n "$PYTHON_VERSION"; then
21153 ac_python_version=$PYTHON_VERSION
21155 ac_python_version=`$PYTHON -c "import sys; \
21156 print (sys.version[:3])"`
21160 # Make the versioning information available to the compiler
21162 # JW: We don't need it and it interferes with the hack
21163 # to detect multiple Pyhton versions
21164 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21165 # [If available, contains the Python version number currently in use.])
21167 # First, the library directory:
21168 ac_python_libdir=`cat<<EOD | $PYTHON -
21170 # There should be only one
21171 import distutils.sysconfig
21172 e = distutils.sysconfig.get_config_var('LIBDIR')
21177 # Now, for the library:
21178 ac_python_library=`cat<<EOD | $PYTHON -
21180 import distutils.sysconfig
21181 c = distutils.sysconfig.get_config_vars()
21182 if 'LDVERSION' in c:
21183 print ('python'+c['LDVERSION'])
21185 print ('python'+c['VERSION'])
21188 # This small piece shamelessly adapted from PostgreSQL python macro;
21189 # credits goes to momjian, I think. I'd like to put the right name
21190 # in the credits, if someone can point me in the right direction... ?
21192 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21194 # use the official shared library
21195 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21196 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21198 # old way: use libpython from python_configdir
21199 ac_python_libdir=`$PYTHON -c \
21200 "from distutils.sysconfig import get_python_lib as f; \
21202 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21203 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21206 if test -z "PYTHON_LDFLAGS"; then
21208 Cannot determine location of your Python DSO. Please check it was installed with
21209 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21214 $as_echo "$PYTHON_LDFLAGS" >&6; }
21218 # Check for site packages
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21221 $as_echo_n "checking for Python site-packages path... " >&6; }
21222 if test -z "$PYTHON_SITE_PKG"; then
21223 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21224 print (distutils.sysconfig.get_python_lib(0,0));"`
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21227 $as_echo "$PYTHON_SITE_PKG" >&6; }
21231 # libraries which must be linked in when embedding
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21234 $as_echo_n "checking python extra libraries... " >&6; }
21235 if test -z "$PYTHON_EXTRA_LIBS"; then
21236 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21237 conf = distutils.sysconfig.get_config_var; \
21238 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21241 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21245 # linking flags needed when embedding
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21248 $as_echo_n "checking python extra linking flags... " >&6; }
21249 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21250 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21251 conf = distutils.sysconfig.get_config_var; \
21252 print (conf('LINKFORSHARED'))"`
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21255 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21259 # final check to see if everything compiles alright
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21262 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21263 # save current global flags
21264 ac_save_LIBS="$LIBS"
21265 ac_save_CPPFLAGS="$CPPFLAGS"
21266 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21267 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21269 ac_cpp='$CPP $CPPFLAGS'
21270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h. */
21277 #include <Python.h>
21287 if ac_fn_c_try_link "$LINENO"; then :
21292 rm -f core conftest.err conftest.$ac_objext \
21293 conftest$ac_exeext conftest.$ac_ext
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21300 # turn back to default flags
21301 CPPFLAGS="$ac_save_CPPFLAGS"
21302 LIBS="$ac_save_LIBS"
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21305 $as_echo "$pythonexists" >&6; }
21307 if test ! "x$pythonexists" = "xyes"; then
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21309 Could not link test program to Python. Maybe the main Python library has been
21310 installed in some non-standard library path. If so, pass it to configure,
21311 via the LDFLAGS environment variable.
21312 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21313 ============================================================================
21314 You probably have to install the development version of the Python package
21315 for your distribution. The exact name of this package varies among them.
21316 ============================================================================
21318 $as_echo "$as_me: WARNING:
21319 Could not link test program to Python. Maybe the main Python library has been
21320 installed in some non-standard library path. If so, pass it to configure,
21321 via the LDFLAGS environment variable.
21322 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21323 ============================================================================
21324 You probably have to install the development version of the Python package
21325 for your distribution. The exact name of this package varies among them.
21326 ============================================================================
21335 if test "$PYTHON_VERSION"; then
21336 PYTHONS="$(echo $PYTHONS $PYTHON)"
21337 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21344 unset PYTHON_VERSION
21345 unset PYTHON_CPPFLAGS
21346 unset PYTHON_LDFLAGS
21347 unset PYTHON_SITE_PKG
21348 unset PYTHON_EXTRA_LIBS
21349 unset PYTHON_EXTRA_LDFLAGS
21350 unset ac_cv_path_PYTHON
21351 unset am_cv_pathless_PYTHON
21352 unset am_cv_python_version
21353 unset am_cv_python_platform
21354 unset am_cv_python_pythondir
21355 unset am_cv_python_pyexecdir
21362 if test -n "$PYTHON"; then
21363 # If the user set $PYTHON, use it and don't search something else.
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
21365 $as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
21367 # split strings by '.' and convert to numeric. Append some zeros
21368 # because we need at least 4 digits for the hex conversion.
21369 # map returns an iterator in Python 3.0 and a list in 2.x
21370 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21372 # xrange is not present in Python 3.0 and range returns an iterator
21373 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21374 sys.exit(sys.hexversion < minverhex)"
21375 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21376 ($PYTHON -c "$prog") >&5 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; then :
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21381 $as_echo "yes" >&6; }
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21384 $as_echo "no" >&6; }
21385 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21387 am_display_PYTHON=$PYTHON
21389 # Otherwise, try each interpreter until we find one that satisfies
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
21392 $as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
21393 if ${am_cv_pathless_PYTHON+:} false; then :
21394 $as_echo_n "(cached) " >&6
21397 for am_cv_pathless_PYTHON in python3.6 none; do
21398 test "$am_cv_pathless_PYTHON" = none && break
21400 # split strings by '.' and convert to numeric. Append some zeros
21401 # because we need at least 4 digits for the hex conversion.
21402 # map returns an iterator in Python 3.0 and a list in 2.x
21403 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21405 # xrange is not present in Python 3.0 and range returns an iterator
21406 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21407 sys.exit(sys.hexversion < minverhex)"
21408 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21409 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; then :
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21418 $as_echo "$am_cv_pathless_PYTHON" >&6; }
21419 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21420 if test "$am_cv_pathless_PYTHON" = none; then
21423 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21424 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21426 $as_echo_n "checking for $ac_word... " >&6; }
21427 if ${ac_cv_path_PYTHON+:} false; then :
21428 $as_echo_n "(cached) " >&6
21432 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21436 for as_dir in $PATH
21439 test -z "$as_dir" && as_dir=.
21440 for ac_exec_ext in '' $ac_executable_extensions; do
21441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21442 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21453 PYTHON=$ac_cv_path_PYTHON
21454 if test -n "$PYTHON"; then
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21456 $as_echo "$PYTHON" >&6; }
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21459 $as_echo "no" >&6; }
21464 am_display_PYTHON=$am_cv_pathless_PYTHON
21468 if test "$PYTHON" = :; then
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21474 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21475 if ${am_cv_python_version+:} false; then :
21476 $as_echo_n "(cached) " >&6
21478 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21481 $as_echo "$am_cv_python_version" >&6; }
21482 PYTHON_VERSION=$am_cv_python_version
21486 PYTHON_PREFIX='${prefix}'
21488 PYTHON_EXEC_PREFIX='${exec_prefix}'
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21493 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21494 if ${am_cv_python_platform+:} false; then :
21495 $as_echo_n "(cached) " >&6
21497 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21500 $as_echo "$am_cv_python_platform" >&6; }
21501 PYTHON_PLATFORM=$am_cv_python_platform
21504 # Just factor out some code duplication.
21505 am_python_setup_sysconfig="\
21507 # Prefer sysconfig over distutils.sysconfig, for better compatibility
21508 # with python 3.x. See automake bug#10227.
21511 except ImportError:
21512 can_use_sysconfig = 0
21514 can_use_sysconfig = 1
21515 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21516 # <https://github.com/pypa/virtualenv/issues/118>
21518 from platform import python_implementation
21519 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21520 can_use_sysconfig = 0
21521 except ImportError:
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21526 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21527 if ${am_cv_python_pythondir+:} false; then :
21528 $as_echo_n "(cached) " >&6
21530 if test "x$prefix" = xNONE
21532 am_py_prefix=$ac_default_prefix
21534 am_py_prefix=$prefix
21536 am_cv_python_pythondir=`$PYTHON -c "
21537 $am_python_setup_sysconfig
21538 if can_use_sysconfig:
21539 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21541 from distutils import sysconfig
21542 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21543 sys.stdout.write(sitedir)"`
21544 case $am_cv_python_pythondir in
21546 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21547 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21550 case $am_py_prefix in
21553 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21561 $as_echo "$am_cv_python_pythondir" >&6; }
21562 pythondir=$am_cv_python_pythondir
21566 pkgpythondir=\${pythondir}/$PACKAGE
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21570 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21571 if ${am_cv_python_pyexecdir+:} false; then :
21572 $as_echo_n "(cached) " >&6
21574 if test "x$exec_prefix" = xNONE
21576 am_py_exec_prefix=$am_py_prefix
21578 am_py_exec_prefix=$exec_prefix
21580 am_cv_python_pyexecdir=`$PYTHON -c "
21581 $am_python_setup_sysconfig
21582 if can_use_sysconfig:
21583 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21585 from distutils import sysconfig
21586 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21587 sys.stdout.write(sitedir)"`
21588 case $am_cv_python_pyexecdir in
21589 $am_py_exec_prefix*)
21590 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21591 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21594 case $am_py_exec_prefix in
21597 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21605 $as_echo "$am_cv_python_pyexecdir" >&6; }
21606 pyexecdir=$am_cv_python_pyexecdir
21610 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21616 # Allow the use of a (user set) custom python version
21620 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21621 set dummy python$PYTHON_VERSION; ac_word=$2
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21623 $as_echo_n "checking for $ac_word... " >&6; }
21624 if ${ac_cv_path_PYTHON+:} false; then :
21625 $as_echo_n "(cached) " >&6
21629 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21633 for as_dir in $PATH
21636 test -z "$as_dir" && as_dir=.
21637 for ac_exec_ext in '' $ac_executable_extensions; do
21638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21639 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21650 PYTHON=$ac_cv_path_PYTHON
21651 if test -n "$PYTHON"; then
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21653 $as_echo "$PYTHON" >&6; }
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21656 $as_echo "no" >&6; }
21660 if test -z "$PYTHON"; then
21661 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21666 # Check for a version of Python >= 2.1.0
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21669 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21670 ac_supports_python_ver=`$PYTHON -c "import sys; \
21671 ver = sys.version.split ()[0]; \
21672 print (ver >= '2.1.0')"`
21673 if test "$ac_supports_python_ver" != "True"; then
21674 if test -z "$PYTHON_NOVERSIONCHECK"; then
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676 $as_echo "no" >&6; }
21677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21680 This version of the AC_PYTHON_DEVEL macro
21681 doesn't work properly with versions of Python before
21682 2.1.0. You may need to re-run configure, setting the
21683 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21684 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21685 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21686 to something else than an empty string.
21688 See \`config.log' for more details" "$LINENO" 5; }
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21691 $as_echo "skip at user request" >&6; }
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21695 $as_echo "yes" >&6; }
21699 # if the macro parameter ``version'' is set, honour it
21701 if test -n ""; then
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21703 $as_echo_n "checking for a version of Python ... " >&6; }
21704 ac_supports_python_ver=`$PYTHON -c "import sys; \
21705 ver = sys.version.split ()[0]; \
21707 if test "$ac_supports_python_ver" = "True"; then
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21709 $as_echo "yes" >&6; }
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21712 $as_echo "no" >&6; }
21713 as_fn_error $? "this package requires Python .
21714 If you have it installed, but it isn't the default Python
21715 interpreter in your system path, please pass the PYTHON_VERSION
21716 variable to configure. See \`\`configure --help'' for reference.
21723 # Check if you have distutils, else fail
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21726 $as_echo_n "checking for the distutils Python package... " >&6; }
21727 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21728 if test -z "$ac_distutils_result"; then
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21730 $as_echo "yes" >&6; }
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21733 $as_echo "no" >&6; }
21734 as_fn_error $? "cannot import Python module \"distutils\".
21735 Please check your Python installation. The error was:
21736 $ac_distutils_result" "$LINENO" 5
21741 # Check for Python include path
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21744 $as_echo_n "checking for Python include path... " >&6; }
21745 if test -z "$PYTHON_CPPFLAGS"; then
21746 python_path=`$PYTHON -c "import distutils.sysconfig; \
21747 print (distutils.sysconfig.get_python_inc ());"`
21748 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21749 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21750 if test -n "${python_path}"; then
21751 if test "${plat_python_path}" != "${python_path}"; then
21752 python_path="-I$python_path -I$plat_python_path"
21754 python_path="-I$python_path"
21757 PYTHON_CPPFLAGS=$python_path
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21760 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21764 # Check for Python library path
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21767 $as_echo_n "checking for Python library path... " >&6; }
21768 if test -z "$PYTHON_LDFLAGS"; then
21769 # (makes two attempts to ensure we've got a version number
21770 # from the interpreter)
21771 ac_python_version=`cat<<EOD | $PYTHON -
21773 # join all versioning strings, on some systems
21774 # major/minor numbers could be in different list elements
21775 from distutils.sysconfig import *
21776 e = get_config_var('VERSION')
21781 if test -z "$ac_python_version"; then
21782 if test -n "$PYTHON_VERSION"; then
21783 ac_python_version=$PYTHON_VERSION
21785 ac_python_version=`$PYTHON -c "import sys; \
21786 print (sys.version[:3])"`
21790 # Make the versioning information available to the compiler
21792 # JW: We don't need it and it interferes with the hack
21793 # to detect multiple Pyhton versions
21794 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21795 # [If available, contains the Python version number currently in use.])
21797 # First, the library directory:
21798 ac_python_libdir=`cat<<EOD | $PYTHON -
21800 # There should be only one
21801 import distutils.sysconfig
21802 e = distutils.sysconfig.get_config_var('LIBDIR')
21807 # Now, for the library:
21808 ac_python_library=`cat<<EOD | $PYTHON -
21810 import distutils.sysconfig
21811 c = distutils.sysconfig.get_config_vars()
21812 if 'LDVERSION' in c:
21813 print ('python'+c['LDVERSION'])
21815 print ('python'+c['VERSION'])
21818 # This small piece shamelessly adapted from PostgreSQL python macro;
21819 # credits goes to momjian, I think. I'd like to put the right name
21820 # in the credits, if someone can point me in the right direction... ?
21822 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21824 # use the official shared library
21825 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21826 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21828 # old way: use libpython from python_configdir
21829 ac_python_libdir=`$PYTHON -c \
21830 "from distutils.sysconfig import get_python_lib as f; \
21832 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21833 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21836 if test -z "PYTHON_LDFLAGS"; then
21838 Cannot determine location of your Python DSO. Please check it was installed with
21839 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21844 $as_echo "$PYTHON_LDFLAGS" >&6; }
21848 # Check for site packages
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21851 $as_echo_n "checking for Python site-packages path... " >&6; }
21852 if test -z "$PYTHON_SITE_PKG"; then
21853 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21854 print (distutils.sysconfig.get_python_lib(0,0));"`
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21857 $as_echo "$PYTHON_SITE_PKG" >&6; }
21861 # libraries which must be linked in when embedding
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21864 $as_echo_n "checking python extra libraries... " >&6; }
21865 if test -z "$PYTHON_EXTRA_LIBS"; then
21866 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21867 conf = distutils.sysconfig.get_config_var; \
21868 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21871 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21875 # linking flags needed when embedding
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21878 $as_echo_n "checking python extra linking flags... " >&6; }
21879 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21880 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21881 conf = distutils.sysconfig.get_config_var; \
21882 print (conf('LINKFORSHARED'))"`
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21885 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21889 # final check to see if everything compiles alright
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21892 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21893 # save current global flags
21894 ac_save_LIBS="$LIBS"
21895 ac_save_CPPFLAGS="$CPPFLAGS"
21896 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21897 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21899 ac_cpp='$CPP $CPPFLAGS'
21900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21905 /* end confdefs.h. */
21907 #include <Python.h>
21917 if ac_fn_c_try_link "$LINENO"; then :
21922 rm -f core conftest.err conftest.$ac_objext \
21923 conftest$ac_exeext conftest.$ac_ext
21925 ac_cpp='$CPP $CPPFLAGS'
21926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21930 # turn back to default flags
21931 CPPFLAGS="$ac_save_CPPFLAGS"
21932 LIBS="$ac_save_LIBS"
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21935 $as_echo "$pythonexists" >&6; }
21937 if test ! "x$pythonexists" = "xyes"; then
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21939 Could not link test program to Python. Maybe the main Python library has been
21940 installed in some non-standard library path. If so, pass it to configure,
21941 via the LDFLAGS environment variable.
21942 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21943 ============================================================================
21944 You probably have to install the development version of the Python package
21945 for your distribution. The exact name of this package varies among them.
21946 ============================================================================
21948 $as_echo "$as_me: WARNING:
21949 Could not link test program to Python. Maybe the main Python library has been
21950 installed in some non-standard library path. If so, pass it to configure,
21951 via the LDFLAGS environment variable.
21952 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21953 ============================================================================
21954 You probably have to install the development version of the Python package
21955 for your distribution. The exact name of this package varies among them.
21956 ============================================================================
21965 if test "$PYTHON_VERSION"; then
21966 PYTHONS="$(echo $PYTHONS $PYTHON)"
21967 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21974 unset PYTHON_VERSION
21975 unset PYTHON_CPPFLAGS
21976 unset PYTHON_LDFLAGS
21977 unset PYTHON_SITE_PKG
21978 unset PYTHON_EXTRA_LIBS
21979 unset PYTHON_EXTRA_LDFLAGS
21980 unset ac_cv_path_PYTHON
21981 unset am_cv_pathless_PYTHON
21982 unset am_cv_python_version
21983 unset am_cv_python_platform
21984 unset am_cv_python_pythondir
21985 unset am_cv_python_pyexecdir
21992 if test -n "$PYTHON"; then
21993 # If the user set $PYTHON, use it and don't search something else.
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.7" >&5
21995 $as_echo_n "checking whether $PYTHON version is >= 3.7... " >&6; }
21997 # split strings by '.' and convert to numeric. Append some zeros
21998 # because we need at least 4 digits for the hex conversion.
21999 # map returns an iterator in Python 3.0 and a list in 2.x
22000 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22002 # xrange is not present in Python 3.0 and range returns an iterator
22003 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22004 sys.exit(sys.hexversion < minverhex)"
22005 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22006 ($PYTHON -c "$prog") >&5 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; then :
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22011 $as_echo "yes" >&6; }
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22015 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22017 am_display_PYTHON=$PYTHON
22019 # Otherwise, try each interpreter until we find one that satisfies
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.7" >&5
22022 $as_echo_n "checking for a Python interpreter with version >= 3.7... " >&6; }
22023 if ${am_cv_pathless_PYTHON+:} false; then :
22024 $as_echo_n "(cached) " >&6
22027 for am_cv_pathless_PYTHON in python3.7 none; do
22028 test "$am_cv_pathless_PYTHON" = none && break
22030 # split strings by '.' and convert to numeric. Append some zeros
22031 # because we need at least 4 digits for the hex conversion.
22032 # map returns an iterator in Python 3.0 and a list in 2.x
22033 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22035 # xrange is not present in Python 3.0 and range returns an iterator
22036 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22037 sys.exit(sys.hexversion < minverhex)"
22038 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22039 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; then :
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22048 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22049 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22050 if test "$am_cv_pathless_PYTHON" = none; then
22053 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22054 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22056 $as_echo_n "checking for $ac_word... " >&6; }
22057 if ${ac_cv_path_PYTHON+:} false; then :
22058 $as_echo_n "(cached) " >&6
22062 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22066 for as_dir in $PATH
22069 test -z "$as_dir" && as_dir=.
22070 for ac_exec_ext in '' $ac_executable_extensions; do
22071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22072 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22083 PYTHON=$ac_cv_path_PYTHON
22084 if test -n "$PYTHON"; then
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22086 $as_echo "$PYTHON" >&6; }
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22089 $as_echo "no" >&6; }
22094 am_display_PYTHON=$am_cv_pathless_PYTHON
22098 if test "$PYTHON" = :; then
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22104 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22105 if ${am_cv_python_version+:} false; then :
22106 $as_echo_n "(cached) " >&6
22108 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22111 $as_echo "$am_cv_python_version" >&6; }
22112 PYTHON_VERSION=$am_cv_python_version
22116 PYTHON_PREFIX='${prefix}'
22118 PYTHON_EXEC_PREFIX='${exec_prefix}'
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22123 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22124 if ${am_cv_python_platform+:} false; then :
22125 $as_echo_n "(cached) " >&6
22127 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22130 $as_echo "$am_cv_python_platform" >&6; }
22131 PYTHON_PLATFORM=$am_cv_python_platform
22134 # Just factor out some code duplication.
22135 am_python_setup_sysconfig="\
22137 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22138 # with python 3.x. See automake bug#10227.
22141 except ImportError:
22142 can_use_sysconfig = 0
22144 can_use_sysconfig = 1
22145 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22146 # <https://github.com/pypa/virtualenv/issues/118>
22148 from platform import python_implementation
22149 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22150 can_use_sysconfig = 0
22151 except ImportError:
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22156 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22157 if ${am_cv_python_pythondir+:} false; then :
22158 $as_echo_n "(cached) " >&6
22160 if test "x$prefix" = xNONE
22162 am_py_prefix=$ac_default_prefix
22164 am_py_prefix=$prefix
22166 am_cv_python_pythondir=`$PYTHON -c "
22167 $am_python_setup_sysconfig
22168 if can_use_sysconfig:
22169 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22171 from distutils import sysconfig
22172 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22173 sys.stdout.write(sitedir)"`
22174 case $am_cv_python_pythondir in
22176 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22177 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22180 case $am_py_prefix in
22183 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22191 $as_echo "$am_cv_python_pythondir" >&6; }
22192 pythondir=$am_cv_python_pythondir
22196 pkgpythondir=\${pythondir}/$PACKAGE
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22200 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22201 if ${am_cv_python_pyexecdir+:} false; then :
22202 $as_echo_n "(cached) " >&6
22204 if test "x$exec_prefix" = xNONE
22206 am_py_exec_prefix=$am_py_prefix
22208 am_py_exec_prefix=$exec_prefix
22210 am_cv_python_pyexecdir=`$PYTHON -c "
22211 $am_python_setup_sysconfig
22212 if can_use_sysconfig:
22213 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22215 from distutils import sysconfig
22216 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22217 sys.stdout.write(sitedir)"`
22218 case $am_cv_python_pyexecdir in
22219 $am_py_exec_prefix*)
22220 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22221 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22224 case $am_py_exec_prefix in
22227 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22235 $as_echo "$am_cv_python_pyexecdir" >&6; }
22236 pyexecdir=$am_cv_python_pyexecdir
22240 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22246 # Allow the use of a (user set) custom python version
22250 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22251 set dummy python$PYTHON_VERSION; ac_word=$2
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22253 $as_echo_n "checking for $ac_word... " >&6; }
22254 if ${ac_cv_path_PYTHON+:} false; then :
22255 $as_echo_n "(cached) " >&6
22259 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22263 for as_dir in $PATH
22266 test -z "$as_dir" && as_dir=.
22267 for ac_exec_ext in '' $ac_executable_extensions; do
22268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22269 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22280 PYTHON=$ac_cv_path_PYTHON
22281 if test -n "$PYTHON"; then
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22283 $as_echo "$PYTHON" >&6; }
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22286 $as_echo "no" >&6; }
22290 if test -z "$PYTHON"; then
22291 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22296 # Check for a version of Python >= 2.1.0
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22299 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22300 ac_supports_python_ver=`$PYTHON -c "import sys; \
22301 ver = sys.version.split ()[0]; \
22302 print (ver >= '2.1.0')"`
22303 if test "$ac_supports_python_ver" != "True"; then
22304 if test -z "$PYTHON_NOVERSIONCHECK"; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22306 $as_echo "no" >&6; }
22307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22310 This version of the AC_PYTHON_DEVEL macro
22311 doesn't work properly with versions of Python before
22312 2.1.0. You may need to re-run configure, setting the
22313 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22314 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22315 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22316 to something else than an empty string.
22318 See \`config.log' for more details" "$LINENO" 5; }
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22321 $as_echo "skip at user request" >&6; }
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22325 $as_echo "yes" >&6; }
22329 # if the macro parameter ``version'' is set, honour it
22331 if test -n ""; then
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22333 $as_echo_n "checking for a version of Python ... " >&6; }
22334 ac_supports_python_ver=`$PYTHON -c "import sys; \
22335 ver = sys.version.split ()[0]; \
22337 if test "$ac_supports_python_ver" = "True"; then
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22339 $as_echo "yes" >&6; }
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22342 $as_echo "no" >&6; }
22343 as_fn_error $? "this package requires Python .
22344 If you have it installed, but it isn't the default Python
22345 interpreter in your system path, please pass the PYTHON_VERSION
22346 variable to configure. See \`\`configure --help'' for reference.
22353 # Check if you have distutils, else fail
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22356 $as_echo_n "checking for the distutils Python package... " >&6; }
22357 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22358 if test -z "$ac_distutils_result"; then
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22360 $as_echo "yes" >&6; }
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22363 $as_echo "no" >&6; }
22364 as_fn_error $? "cannot import Python module \"distutils\".
22365 Please check your Python installation. The error was:
22366 $ac_distutils_result" "$LINENO" 5
22371 # Check for Python include path
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
22374 $as_echo_n "checking for Python include path... " >&6; }
22375 if test -z "$PYTHON_CPPFLAGS"; then
22376 python_path=`$PYTHON -c "import distutils.sysconfig; \
22377 print (distutils.sysconfig.get_python_inc ());"`
22378 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
22379 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
22380 if test -n "${python_path}"; then
22381 if test "${plat_python_path}" != "${python_path}"; then
22382 python_path="-I$python_path -I$plat_python_path"
22384 python_path="-I$python_path"
22387 PYTHON_CPPFLAGS=$python_path
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
22390 $as_echo "$PYTHON_CPPFLAGS" >&6; }
22394 # Check for Python library path
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
22397 $as_echo_n "checking for Python library path... " >&6; }
22398 if test -z "$PYTHON_LDFLAGS"; then
22399 # (makes two attempts to ensure we've got a version number
22400 # from the interpreter)
22401 ac_python_version=`cat<<EOD | $PYTHON -
22403 # join all versioning strings, on some systems
22404 # major/minor numbers could be in different list elements
22405 from distutils.sysconfig import *
22406 e = get_config_var('VERSION')
22411 if test -z "$ac_python_version"; then
22412 if test -n "$PYTHON_VERSION"; then
22413 ac_python_version=$PYTHON_VERSION
22415 ac_python_version=`$PYTHON -c "import sys; \
22416 print (sys.version[:3])"`
22420 # Make the versioning information available to the compiler
22422 # JW: We don't need it and it interferes with the hack
22423 # to detect multiple Pyhton versions
22424 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
22425 # [If available, contains the Python version number currently in use.])
22427 # First, the library directory:
22428 ac_python_libdir=`cat<<EOD | $PYTHON -
22430 # There should be only one
22431 import distutils.sysconfig
22432 e = distutils.sysconfig.get_config_var('LIBDIR')
22437 # Now, for the library:
22438 ac_python_library=`cat<<EOD | $PYTHON -
22440 import distutils.sysconfig
22441 c = distutils.sysconfig.get_config_vars()
22442 if 'LDVERSION' in c:
22443 print ('python'+c['LDVERSION'])
22445 print ('python'+c['VERSION'])
22448 # This small piece shamelessly adapted from PostgreSQL python macro;
22449 # credits goes to momjian, I think. I'd like to put the right name
22450 # in the credits, if someone can point me in the right direction... ?
22452 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
22454 # use the official shared library
22455 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
22456 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
22458 # old way: use libpython from python_configdir
22459 ac_python_libdir=`$PYTHON -c \
22460 "from distutils.sysconfig import get_python_lib as f; \
22462 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
22463 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
22466 if test -z "PYTHON_LDFLAGS"; then
22468 Cannot determine location of your Python DSO. Please check it was installed with
22469 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
22474 $as_echo "$PYTHON_LDFLAGS" >&6; }
22478 # Check for site packages
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22481 $as_echo_n "checking for Python site-packages path... " >&6; }
22482 if test -z "$PYTHON_SITE_PKG"; then
22483 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
22484 print (distutils.sysconfig.get_python_lib(0,0));"`
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
22487 $as_echo "$PYTHON_SITE_PKG" >&6; }
22491 # libraries which must be linked in when embedding
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
22494 $as_echo_n "checking python extra libraries... " >&6; }
22495 if test -z "$PYTHON_EXTRA_LIBS"; then
22496 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
22497 conf = distutils.sysconfig.get_config_var; \
22498 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
22501 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
22505 # linking flags needed when embedding
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
22508 $as_echo_n "checking python extra linking flags... " >&6; }
22509 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
22510 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
22511 conf = distutils.sysconfig.get_config_var; \
22512 print (conf('LINKFORSHARED'))"`
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
22515 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
22519 # final check to see if everything compiles alright
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
22522 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
22523 # save current global flags
22524 ac_save_LIBS="$LIBS"
22525 ac_save_CPPFLAGS="$CPPFLAGS"
22526 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
22527 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
22529 ac_cpp='$CPP $CPPFLAGS'
22530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22537 #include <Python.h>
22547 if ac_fn_c_try_link "$LINENO"; then :
22552 rm -f core conftest.err conftest.$ac_objext \
22553 conftest$ac_exeext conftest.$ac_ext
22555 ac_cpp='$CPP $CPPFLAGS'
22556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22560 # turn back to default flags
22561 CPPFLAGS="$ac_save_CPPFLAGS"
22562 LIBS="$ac_save_LIBS"
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
22565 $as_echo "$pythonexists" >&6; }
22567 if test ! "x$pythonexists" = "xyes"; then
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22569 Could not link test program to Python. Maybe the main Python library has been
22570 installed in some non-standard library path. If so, pass it to configure,
22571 via the LDFLAGS environment variable.
22572 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22573 ============================================================================
22574 You probably have to install the development version of the Python package
22575 for your distribution. The exact name of this package varies among them.
22576 ============================================================================
22578 $as_echo "$as_me: WARNING:
22579 Could not link test program to Python. Maybe the main Python library has been
22580 installed in some non-standard library path. If so, pass it to configure,
22581 via the LDFLAGS environment variable.
22582 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22583 ============================================================================
22584 You probably have to install the development version of the Python package
22585 for your distribution. The exact name of this package varies among them.
22586 ============================================================================
22595 if test "$PYTHON_VERSION"; then
22596 PYTHONS="$(echo $PYTHONS $PYTHON)"
22597 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22604 unset PYTHON_VERSION
22605 unset PYTHON_CPPFLAGS
22606 unset PYTHON_LDFLAGS
22607 unset PYTHON_SITE_PKG
22608 unset PYTHON_EXTRA_LIBS
22609 unset PYTHON_EXTRA_LDFLAGS
22610 unset ac_cv_path_PYTHON
22611 unset am_cv_pathless_PYTHON
22612 unset am_cv_python_version
22613 unset am_cv_python_platform
22614 unset am_cv_python_pythondir
22615 unset am_cv_python_pyexecdir
22622 if test -n "$PYTHON"; then
22623 # If the user set $PYTHON, use it and don't search something else.
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
22625 $as_echo_n "checking whether $PYTHON version is >= 3.8... " >&6; }
22627 # split strings by '.' and convert to numeric. Append some zeros
22628 # because we need at least 4 digits for the hex conversion.
22629 # map returns an iterator in Python 3.0 and a list in 2.x
22630 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22632 # xrange is not present in Python 3.0 and range returns an iterator
22633 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22634 sys.exit(sys.hexversion < minverhex)"
22635 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22636 ($PYTHON -c "$prog") >&5 2>&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; then :
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22641 $as_echo "yes" >&6; }
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644 $as_echo "no" >&6; }
22645 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22647 am_display_PYTHON=$PYTHON
22649 # Otherwise, try each interpreter until we find one that satisfies
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
22652 $as_echo_n "checking for a Python interpreter with version >= 3.8... " >&6; }
22653 if ${am_cv_pathless_PYTHON+:} false; then :
22654 $as_echo_n "(cached) " >&6
22657 for am_cv_pathless_PYTHON in python3.8 none; do
22658 test "$am_cv_pathless_PYTHON" = none && break
22660 # split strings by '.' and convert to numeric. Append some zeros
22661 # because we need at least 4 digits for the hex conversion.
22662 # map returns an iterator in Python 3.0 and a list in 2.x
22663 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22665 # xrange is not present in Python 3.0 and range returns an iterator
22666 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22667 sys.exit(sys.hexversion < minverhex)"
22668 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22669 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; then :
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22678 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22679 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22680 if test "$am_cv_pathless_PYTHON" = none; then
22683 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22684 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22686 $as_echo_n "checking for $ac_word... " >&6; }
22687 if ${ac_cv_path_PYTHON+:} false; then :
22688 $as_echo_n "(cached) " >&6
22692 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22696 for as_dir in $PATH
22699 test -z "$as_dir" && as_dir=.
22700 for ac_exec_ext in '' $ac_executable_extensions; do
22701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22702 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22713 PYTHON=$ac_cv_path_PYTHON
22714 if test -n "$PYTHON"; then
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22716 $as_echo "$PYTHON" >&6; }
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22719 $as_echo "no" >&6; }
22724 am_display_PYTHON=$am_cv_pathless_PYTHON
22728 if test "$PYTHON" = :; then
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22734 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22735 if ${am_cv_python_version+:} false; then :
22736 $as_echo_n "(cached) " >&6
22738 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22741 $as_echo "$am_cv_python_version" >&6; }
22742 PYTHON_VERSION=$am_cv_python_version
22746 PYTHON_PREFIX='${prefix}'
22748 PYTHON_EXEC_PREFIX='${exec_prefix}'
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22753 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22754 if ${am_cv_python_platform+:} false; then :
22755 $as_echo_n "(cached) " >&6
22757 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22760 $as_echo "$am_cv_python_platform" >&6; }
22761 PYTHON_PLATFORM=$am_cv_python_platform
22764 # Just factor out some code duplication.
22765 am_python_setup_sysconfig="\
22767 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22768 # with python 3.x. See automake bug#10227.
22771 except ImportError:
22772 can_use_sysconfig = 0
22774 can_use_sysconfig = 1
22775 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22776 # <https://github.com/pypa/virtualenv/issues/118>
22778 from platform import python_implementation
22779 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22780 can_use_sysconfig = 0
22781 except ImportError:
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22786 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22787 if ${am_cv_python_pythondir+:} false; then :
22788 $as_echo_n "(cached) " >&6
22790 if test "x$prefix" = xNONE
22792 am_py_prefix=$ac_default_prefix
22794 am_py_prefix=$prefix
22796 am_cv_python_pythondir=`$PYTHON -c "
22797 $am_python_setup_sysconfig
22798 if can_use_sysconfig:
22799 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22801 from distutils import sysconfig
22802 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22803 sys.stdout.write(sitedir)"`
22804 case $am_cv_python_pythondir in
22806 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22807 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22810 case $am_py_prefix in
22813 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22821 $as_echo "$am_cv_python_pythondir" >&6; }
22822 pythondir=$am_cv_python_pythondir
22826 pkgpythondir=\${pythondir}/$PACKAGE
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22830 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22831 if ${am_cv_python_pyexecdir+:} false; then :
22832 $as_echo_n "(cached) " >&6
22834 if test "x$exec_prefix" = xNONE
22836 am_py_exec_prefix=$am_py_prefix
22838 am_py_exec_prefix=$exec_prefix
22840 am_cv_python_pyexecdir=`$PYTHON -c "
22841 $am_python_setup_sysconfig
22842 if can_use_sysconfig:
22843 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22845 from distutils import sysconfig
22846 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22847 sys.stdout.write(sitedir)"`
22848 case $am_cv_python_pyexecdir in
22849 $am_py_exec_prefix*)
22850 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22851 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22854 case $am_py_exec_prefix in
22857 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22865 $as_echo "$am_cv_python_pyexecdir" >&6; }
22866 pyexecdir=$am_cv_python_pyexecdir
22870 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22876 # Allow the use of a (user set) custom python version
22880 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22881 set dummy python$PYTHON_VERSION; ac_word=$2
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22883 $as_echo_n "checking for $ac_word... " >&6; }
22884 if ${ac_cv_path_PYTHON+:} false; then :
22885 $as_echo_n "(cached) " >&6
22889 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22893 for as_dir in $PATH
22896 test -z "$as_dir" && as_dir=.
22897 for ac_exec_ext in '' $ac_executable_extensions; do
22898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22899 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22910 PYTHON=$ac_cv_path_PYTHON
22911 if test -n "$PYTHON"; then
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22913 $as_echo "$PYTHON" >&6; }
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22916 $as_echo "no" >&6; }
22920 if test -z "$PYTHON"; then
22921 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22926 # Check for a version of Python >= 2.1.0
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22929 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22930 ac_supports_python_ver=`$PYTHON -c "import sys; \
22931 ver = sys.version.split ()[0]; \
22932 print (ver >= '2.1.0')"`
22933 if test "$ac_supports_python_ver" != "True"; then
22934 if test -z "$PYTHON_NOVERSIONCHECK"; then
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936 $as_echo "no" >&6; }
22937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22940 This version of the AC_PYTHON_DEVEL macro
22941 doesn't work properly with versions of Python before
22942 2.1.0. You may need to re-run configure, setting the
22943 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22944 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22945 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22946 to something else than an empty string.
22948 See \`config.log' for more details" "$LINENO" 5; }
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22951 $as_echo "skip at user request" >&6; }
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22955 $as_echo "yes" >&6; }
22959 # if the macro parameter ``version'' is set, honour it
22961 if test -n ""; then
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22963 $as_echo_n "checking for a version of Python ... " >&6; }
22964 ac_supports_python_ver=`$PYTHON -c "import sys; \
22965 ver = sys.version.split ()[0]; \
22967 if test "$ac_supports_python_ver" = "True"; then
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22969 $as_echo "yes" >&6; }
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22972 $as_echo "no" >&6; }
22973 as_fn_error $? "this package requires Python .
22974 If you have it installed, but it isn't the default Python
22975 interpreter in your system path, please pass the PYTHON_VERSION
22976 variable to configure. See \`\`configure --help'' for reference.
22983 # Check if you have distutils, else fail
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22986 $as_echo_n "checking for the distutils Python package... " >&6; }
22987 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22988 if test -z "$ac_distutils_result"; then
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22990 $as_echo "yes" >&6; }
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22993 $as_echo "no" >&6; }
22994 as_fn_error $? "cannot import Python module \"distutils\".
22995 Please check your Python installation. The error was:
22996 $ac_distutils_result" "$LINENO" 5
23001 # Check for Python include path
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23004 $as_echo_n "checking for Python include path... " >&6; }
23005 if test -z "$PYTHON_CPPFLAGS"; then
23006 python_path=`$PYTHON -c "import distutils.sysconfig; \
23007 print (distutils.sysconfig.get_python_inc ());"`
23008 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23009 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23010 if test -n "${python_path}"; then
23011 if test "${plat_python_path}" != "${python_path}"; then
23012 python_path="-I$python_path -I$plat_python_path"
23014 python_path="-I$python_path"
23017 PYTHON_CPPFLAGS=$python_path
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23020 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23024 # Check for Python library path
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23027 $as_echo_n "checking for Python library path... " >&6; }
23028 if test -z "$PYTHON_LDFLAGS"; then
23029 # (makes two attempts to ensure we've got a version number
23030 # from the interpreter)
23031 ac_python_version=`cat<<EOD | $PYTHON -
23033 # join all versioning strings, on some systems
23034 # major/minor numbers could be in different list elements
23035 from distutils.sysconfig import *
23036 e = get_config_var('VERSION')
23041 if test -z "$ac_python_version"; then
23042 if test -n "$PYTHON_VERSION"; then
23043 ac_python_version=$PYTHON_VERSION
23045 ac_python_version=`$PYTHON -c "import sys; \
23046 print (sys.version[:3])"`
23050 # Make the versioning information available to the compiler
23052 # JW: We don't need it and it interferes with the hack
23053 # to detect multiple Pyhton versions
23054 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23055 # [If available, contains the Python version number currently in use.])
23057 # First, the library directory:
23058 ac_python_libdir=`cat<<EOD | $PYTHON -
23060 # There should be only one
23061 import distutils.sysconfig
23062 e = distutils.sysconfig.get_config_var('LIBDIR')
23067 # Now, for the library:
23068 ac_python_library=`cat<<EOD | $PYTHON -
23070 import distutils.sysconfig
23071 c = distutils.sysconfig.get_config_vars()
23072 if 'LDVERSION' in c:
23073 print ('python'+c['LDVERSION'])
23075 print ('python'+c['VERSION'])
23078 # This small piece shamelessly adapted from PostgreSQL python macro;
23079 # credits goes to momjian, I think. I'd like to put the right name
23080 # in the credits, if someone can point me in the right direction... ?
23082 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23084 # use the official shared library
23085 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23086 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23088 # old way: use libpython from python_configdir
23089 ac_python_libdir=`$PYTHON -c \
23090 "from distutils.sysconfig import get_python_lib as f; \
23092 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23093 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23096 if test -z "PYTHON_LDFLAGS"; then
23098 Cannot determine location of your Python DSO. Please check it was installed with
23099 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23104 $as_echo "$PYTHON_LDFLAGS" >&6; }
23108 # Check for site packages
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23111 $as_echo_n "checking for Python site-packages path... " >&6; }
23112 if test -z "$PYTHON_SITE_PKG"; then
23113 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23114 print (distutils.sysconfig.get_python_lib(0,0));"`
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23117 $as_echo "$PYTHON_SITE_PKG" >&6; }
23121 # libraries which must be linked in when embedding
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23124 $as_echo_n "checking python extra libraries... " >&6; }
23125 if test -z "$PYTHON_EXTRA_LIBS"; then
23126 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23127 conf = distutils.sysconfig.get_config_var; \
23128 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23131 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23135 # linking flags needed when embedding
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23138 $as_echo_n "checking python extra linking flags... " >&6; }
23139 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23140 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23141 conf = distutils.sysconfig.get_config_var; \
23142 print (conf('LINKFORSHARED'))"`
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23145 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23149 # final check to see if everything compiles alright
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23152 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23153 # save current global flags
23154 ac_save_LIBS="$LIBS"
23155 ac_save_CPPFLAGS="$CPPFLAGS"
23156 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23157 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23159 ac_cpp='$CPP $CPPFLAGS'
23160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h. */
23167 #include <Python.h>
23177 if ac_fn_c_try_link "$LINENO"; then :
23182 rm -f core conftest.err conftest.$ac_objext \
23183 conftest$ac_exeext conftest.$ac_ext
23185 ac_cpp='$CPP $CPPFLAGS'
23186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23190 # turn back to default flags
23191 CPPFLAGS="$ac_save_CPPFLAGS"
23192 LIBS="$ac_save_LIBS"
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23195 $as_echo "$pythonexists" >&6; }
23197 if test ! "x$pythonexists" = "xyes"; then
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23199 Could not link test program to Python. Maybe the main Python library has been
23200 installed in some non-standard library path. If so, pass it to configure,
23201 via the LDFLAGS environment variable.
23202 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23203 ============================================================================
23204 You probably have to install the development version of the Python package
23205 for your distribution. The exact name of this package varies among them.
23206 ============================================================================
23208 $as_echo "$as_me: WARNING:
23209 Could not link test program to Python. Maybe the main Python library has been
23210 installed in some non-standard library path. If so, pass it to configure,
23211 via the LDFLAGS environment variable.
23212 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23213 ============================================================================
23214 You probably have to install the development version of the Python package
23215 for your distribution. The exact name of this package varies among them.
23216 ============================================================================
23225 if test "$PYTHON_VERSION"; then
23226 PYTHONS="$(echo $PYTHONS $PYTHON)"
23227 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23234 unset PYTHON_VERSION
23235 unset PYTHON_CPPFLAGS
23236 unset PYTHON_LDFLAGS
23237 unset PYTHON_SITE_PKG
23238 unset PYTHON_EXTRA_LIBS
23239 unset PYTHON_EXTRA_LDFLAGS
23240 unset ac_cv_path_PYTHON
23241 unset am_cv_pathless_PYTHON
23242 unset am_cv_python_version
23243 unset am_cv_python_platform
23244 unset am_cv_python_pythondir
23245 unset am_cv_python_pyexecdir
23252 if test -n "$PYTHON"; then
23253 # If the user set $PYTHON, use it and don't search something else.
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.9" >&5
23255 $as_echo_n "checking whether $PYTHON version is >= 3.9... " >&6; }
23257 # split strings by '.' and convert to numeric. Append some zeros
23258 # because we need at least 4 digits for the hex conversion.
23259 # map returns an iterator in Python 3.0 and a list in 2.x
23260 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23262 # xrange is not present in Python 3.0 and range returns an iterator
23263 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23264 sys.exit(sys.hexversion < minverhex)"
23265 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23266 ($PYTHON -c "$prog") >&5 2>&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; then :
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23271 $as_echo "yes" >&6; }
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23274 $as_echo "no" >&6; }
23275 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23277 am_display_PYTHON=$PYTHON
23279 # Otherwise, try each interpreter until we find one that satisfies
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.9" >&5
23282 $as_echo_n "checking for a Python interpreter with version >= 3.9... " >&6; }
23283 if ${am_cv_pathless_PYTHON+:} false; then :
23284 $as_echo_n "(cached) " >&6
23287 for am_cv_pathless_PYTHON in python3.9 none; do
23288 test "$am_cv_pathless_PYTHON" = none && break
23290 # split strings by '.' and convert to numeric. Append some zeros
23291 # because we need at least 4 digits for the hex conversion.
23292 # map returns an iterator in Python 3.0 and a list in 2.x
23293 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23295 # xrange is not present in Python 3.0 and range returns an iterator
23296 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23297 sys.exit(sys.hexversion < minverhex)"
23298 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23299 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; then :
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23308 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23309 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23310 if test "$am_cv_pathless_PYTHON" = none; then
23313 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23314 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23316 $as_echo_n "checking for $ac_word... " >&6; }
23317 if ${ac_cv_path_PYTHON+:} false; then :
23318 $as_echo_n "(cached) " >&6
23322 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23326 for as_dir in $PATH
23329 test -z "$as_dir" && as_dir=.
23330 for ac_exec_ext in '' $ac_executable_extensions; do
23331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23332 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23343 PYTHON=$ac_cv_path_PYTHON
23344 if test -n "$PYTHON"; then
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23346 $as_echo "$PYTHON" >&6; }
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23349 $as_echo "no" >&6; }
23354 am_display_PYTHON=$am_cv_pathless_PYTHON
23358 if test "$PYTHON" = :; then
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23364 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23365 if ${am_cv_python_version+:} false; then :
23366 $as_echo_n "(cached) " >&6
23368 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23371 $as_echo "$am_cv_python_version" >&6; }
23372 PYTHON_VERSION=$am_cv_python_version
23376 PYTHON_PREFIX='${prefix}'
23378 PYTHON_EXEC_PREFIX='${exec_prefix}'
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23383 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23384 if ${am_cv_python_platform+:} false; then :
23385 $as_echo_n "(cached) " >&6
23387 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23390 $as_echo "$am_cv_python_platform" >&6; }
23391 PYTHON_PLATFORM=$am_cv_python_platform
23394 # Just factor out some code duplication.
23395 am_python_setup_sysconfig="\
23397 # Prefer sysconfig over distutils.sysconfig, for better compatibility
23398 # with python 3.x. See automake bug#10227.
23401 except ImportError:
23402 can_use_sysconfig = 0
23404 can_use_sysconfig = 1
23405 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23406 # <https://github.com/pypa/virtualenv/issues/118>
23408 from platform import python_implementation
23409 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23410 can_use_sysconfig = 0
23411 except ImportError:
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23416 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23417 if ${am_cv_python_pythondir+:} false; then :
23418 $as_echo_n "(cached) " >&6
23420 if test "x$prefix" = xNONE
23422 am_py_prefix=$ac_default_prefix
23424 am_py_prefix=$prefix
23426 am_cv_python_pythondir=`$PYTHON -c "
23427 $am_python_setup_sysconfig
23428 if can_use_sysconfig:
23429 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23431 from distutils import sysconfig
23432 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23433 sys.stdout.write(sitedir)"`
23434 case $am_cv_python_pythondir in
23436 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23437 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23440 case $am_py_prefix in
23443 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23451 $as_echo "$am_cv_python_pythondir" >&6; }
23452 pythondir=$am_cv_python_pythondir
23456 pkgpythondir=\${pythondir}/$PACKAGE
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23460 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23461 if ${am_cv_python_pyexecdir+:} false; then :
23462 $as_echo_n "(cached) " >&6
23464 if test "x$exec_prefix" = xNONE
23466 am_py_exec_prefix=$am_py_prefix
23468 am_py_exec_prefix=$exec_prefix
23470 am_cv_python_pyexecdir=`$PYTHON -c "
23471 $am_python_setup_sysconfig
23472 if can_use_sysconfig:
23473 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23475 from distutils import sysconfig
23476 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23477 sys.stdout.write(sitedir)"`
23478 case $am_cv_python_pyexecdir in
23479 $am_py_exec_prefix*)
23480 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23481 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23484 case $am_py_exec_prefix in
23487 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23495 $as_echo "$am_cv_python_pyexecdir" >&6; }
23496 pyexecdir=$am_cv_python_pyexecdir
23500 pkgpyexecdir=\${pyexecdir}/$PACKAGE
23506 # Allow the use of a (user set) custom python version
23510 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
23511 set dummy python$PYTHON_VERSION; ac_word=$2
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23513 $as_echo_n "checking for $ac_word... " >&6; }
23514 if ${ac_cv_path_PYTHON+:} false; then :
23515 $as_echo_n "(cached) " >&6
23519 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23523 for as_dir in $PATH
23526 test -z "$as_dir" && as_dir=.
23527 for ac_exec_ext in '' $ac_executable_extensions; do
23528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23529 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23540 PYTHON=$ac_cv_path_PYTHON
23541 if test -n "$PYTHON"; then
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23543 $as_echo "$PYTHON" >&6; }
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23546 $as_echo "no" >&6; }
23550 if test -z "$PYTHON"; then
23551 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
23556 # Check for a version of Python >= 2.1.0
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
23559 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
23560 ac_supports_python_ver=`$PYTHON -c "import sys; \
23561 ver = sys.version.split ()[0]; \
23562 print (ver >= '2.1.0')"`
23563 if test "$ac_supports_python_ver" != "True"; then
23564 if test -z "$PYTHON_NOVERSIONCHECK"; then
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23566 $as_echo "no" >&6; }
23567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23570 This version of the AC_PYTHON_DEVEL macro
23571 doesn't work properly with versions of Python before
23572 2.1.0. You may need to re-run configure, setting the
23573 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
23574 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
23575 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
23576 to something else than an empty string.
23578 See \`config.log' for more details" "$LINENO" 5; }
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
23581 $as_echo "skip at user request" >&6; }
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23585 $as_echo "yes" >&6; }
23589 # if the macro parameter ``version'' is set, honour it
23591 if test -n ""; then
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23593 $as_echo_n "checking for a version of Python ... " >&6; }
23594 ac_supports_python_ver=`$PYTHON -c "import sys; \
23595 ver = sys.version.split ()[0]; \
23597 if test "$ac_supports_python_ver" = "True"; then
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23599 $as_echo "yes" >&6; }
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23602 $as_echo "no" >&6; }
23603 as_fn_error $? "this package requires Python .
23604 If you have it installed, but it isn't the default Python
23605 interpreter in your system path, please pass the PYTHON_VERSION
23606 variable to configure. See \`\`configure --help'' for reference.
23613 # Check if you have distutils, else fail
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23616 $as_echo_n "checking for the distutils Python package... " >&6; }
23617 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23618 if test -z "$ac_distutils_result"; then
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23620 $as_echo "yes" >&6; }
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23623 $as_echo "no" >&6; }
23624 as_fn_error $? "cannot import Python module \"distutils\".
23625 Please check your Python installation. The error was:
23626 $ac_distutils_result" "$LINENO" 5
23631 # Check for Python include path
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23634 $as_echo_n "checking for Python include path... " >&6; }
23635 if test -z "$PYTHON_CPPFLAGS"; then
23636 python_path=`$PYTHON -c "import distutils.sysconfig; \
23637 print (distutils.sysconfig.get_python_inc ());"`
23638 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23639 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23640 if test -n "${python_path}"; then
23641 if test "${plat_python_path}" != "${python_path}"; then
23642 python_path="-I$python_path -I$plat_python_path"
23644 python_path="-I$python_path"
23647 PYTHON_CPPFLAGS=$python_path
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23650 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23654 # Check for Python library path
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23657 $as_echo_n "checking for Python library path... " >&6; }
23658 if test -z "$PYTHON_LDFLAGS"; then
23659 # (makes two attempts to ensure we've got a version number
23660 # from the interpreter)
23661 ac_python_version=`cat<<EOD | $PYTHON -
23663 # join all versioning strings, on some systems
23664 # major/minor numbers could be in different list elements
23665 from distutils.sysconfig import *
23666 e = get_config_var('VERSION')
23671 if test -z "$ac_python_version"; then
23672 if test -n "$PYTHON_VERSION"; then
23673 ac_python_version=$PYTHON_VERSION
23675 ac_python_version=`$PYTHON -c "import sys; \
23676 print (sys.version[:3])"`
23680 # Make the versioning information available to the compiler
23682 # JW: We don't need it and it interferes with the hack
23683 # to detect multiple Pyhton versions
23684 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23685 # [If available, contains the Python version number currently in use.])
23687 # First, the library directory:
23688 ac_python_libdir=`cat<<EOD | $PYTHON -
23690 # There should be only one
23691 import distutils.sysconfig
23692 e = distutils.sysconfig.get_config_var('LIBDIR')
23697 # Now, for the library:
23698 ac_python_library=`cat<<EOD | $PYTHON -
23700 import distutils.sysconfig
23701 c = distutils.sysconfig.get_config_vars()
23702 if 'LDVERSION' in c:
23703 print ('python'+c['LDVERSION'])
23705 print ('python'+c['VERSION'])
23708 # This small piece shamelessly adapted from PostgreSQL python macro;
23709 # credits goes to momjian, I think. I'd like to put the right name
23710 # in the credits, if someone can point me in the right direction... ?
23712 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23714 # use the official shared library
23715 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23716 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23718 # old way: use libpython from python_configdir
23719 ac_python_libdir=`$PYTHON -c \
23720 "from distutils.sysconfig import get_python_lib as f; \
23722 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23723 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23726 if test -z "PYTHON_LDFLAGS"; then
23728 Cannot determine location of your Python DSO. Please check it was installed with
23729 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23734 $as_echo "$PYTHON_LDFLAGS" >&6; }
23738 # Check for site packages
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23741 $as_echo_n "checking for Python site-packages path... " >&6; }
23742 if test -z "$PYTHON_SITE_PKG"; then
23743 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23744 print (distutils.sysconfig.get_python_lib(0,0));"`
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23747 $as_echo "$PYTHON_SITE_PKG" >&6; }
23751 # libraries which must be linked in when embedding
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23754 $as_echo_n "checking python extra libraries... " >&6; }
23755 if test -z "$PYTHON_EXTRA_LIBS"; then
23756 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23757 conf = distutils.sysconfig.get_config_var; \
23758 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23761 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23765 # linking flags needed when embedding
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23768 $as_echo_n "checking python extra linking flags... " >&6; }
23769 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23770 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23771 conf = distutils.sysconfig.get_config_var; \
23772 print (conf('LINKFORSHARED'))"`
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23775 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23779 # final check to see if everything compiles alright
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23782 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23783 # save current global flags
23784 ac_save_LIBS="$LIBS"
23785 ac_save_CPPFLAGS="$CPPFLAGS"
23786 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23787 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23789 ac_cpp='$CPP $CPPFLAGS'
23790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23795 /* end confdefs.h. */
23797 #include <Python.h>
23807 if ac_fn_c_try_link "$LINENO"; then :
23812 rm -f core conftest.err conftest.$ac_objext \
23813 conftest$ac_exeext conftest.$ac_ext
23815 ac_cpp='$CPP $CPPFLAGS'
23816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23820 # turn back to default flags
23821 CPPFLAGS="$ac_save_CPPFLAGS"
23822 LIBS="$ac_save_LIBS"
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23825 $as_echo "$pythonexists" >&6; }
23827 if test ! "x$pythonexists" = "xyes"; then
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23829 Could not link test program to Python. Maybe the main Python library has been
23830 installed in some non-standard library path. If so, pass it to configure,
23831 via the LDFLAGS environment variable.
23832 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23833 ============================================================================
23834 You probably have to install the development version of the Python package
23835 for your distribution. The exact name of this package varies among them.
23836 ============================================================================
23838 $as_echo "$as_me: WARNING:
23839 Could not link test program to Python. Maybe the main Python library has been
23840 installed in some non-standard library path. If so, pass it to configure,
23841 via the LDFLAGS environment variable.
23842 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23843 ============================================================================
23844 You probably have to install the development version of the Python package
23845 for your distribution. The exact name of this package varies among them.
23846 ============================================================================
23855 if test "$PYTHON_VERSION"; then
23856 PYTHONS="$(echo $PYTHONS $PYTHON)"
23857 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23864 unset PYTHON_VERSION
23865 unset PYTHON_CPPFLAGS
23866 unset PYTHON_LDFLAGS
23867 unset PYTHON_SITE_PKG
23868 unset PYTHON_EXTRA_LIBS
23869 unset PYTHON_EXTRA_LDFLAGS
23870 unset ac_cv_path_PYTHON
23871 unset am_cv_pathless_PYTHON
23872 unset am_cv_python_version
23873 unset am_cv_python_platform
23874 unset am_cv_python_pythondir
23875 unset am_cv_python_pyexecdir
23882 if test -n "$PYTHON"; then
23883 # If the user set $PYTHON, use it and don't search something else.
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= all" >&5
23885 $as_echo_n "checking whether $PYTHON version is >= all... " >&6; }
23887 # split strings by '.' and convert to numeric. Append some zeros
23888 # because we need at least 4 digits for the hex conversion.
23889 # map returns an iterator in Python 3.0 and a list in 2.x
23890 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23892 # xrange is not present in Python 3.0 and range returns an iterator
23893 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23894 sys.exit(sys.hexversion < minverhex)"
23895 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23896 ($PYTHON -c "$prog") >&5 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; then :
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23901 $as_echo "yes" >&6; }
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23904 $as_echo "no" >&6; }
23905 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23907 am_display_PYTHON=$PYTHON
23909 # Otherwise, try each interpreter until we find one that satisfies
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= all" >&5
23912 $as_echo_n "checking for a Python interpreter with version >= all... " >&6; }
23913 if ${am_cv_pathless_PYTHON+:} false; then :
23914 $as_echo_n "(cached) " >&6
23917 for am_cv_pathless_PYTHON in pythonall none; do
23918 test "$am_cv_pathless_PYTHON" = none && break
23920 # split strings by '.' and convert to numeric. Append some zeros
23921 # because we need at least 4 digits for the hex conversion.
23922 # map returns an iterator in Python 3.0 and a list in 2.x
23923 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23925 # xrange is not present in Python 3.0 and range returns an iterator
23926 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23927 sys.exit(sys.hexversion < minverhex)"
23928 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23929 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; then :
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23938 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23939 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23940 if test "$am_cv_pathless_PYTHON" = none; then
23943 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23944 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23946 $as_echo_n "checking for $ac_word... " >&6; }
23947 if ${ac_cv_path_PYTHON+:} false; then :
23948 $as_echo_n "(cached) " >&6
23952 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23956 for as_dir in $PATH
23959 test -z "$as_dir" && as_dir=.
23960 for ac_exec_ext in '' $ac_executable_extensions; do
23961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23962 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23973 PYTHON=$ac_cv_path_PYTHON
23974 if test -n "$PYTHON"; then
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23976 $as_echo "$PYTHON" >&6; }
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23979 $as_echo "no" >&6; }
23984 am_display_PYTHON=$am_cv_pathless_PYTHON
23988 if test "$PYTHON" = :; then
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23994 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23995 if ${am_cv_python_version+:} false; then :
23996 $as_echo_n "(cached) " >&6
23998 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24001 $as_echo "$am_cv_python_version" >&6; }
24002 PYTHON_VERSION=$am_cv_python_version
24006 PYTHON_PREFIX='${prefix}'
24008 PYTHON_EXEC_PREFIX='${exec_prefix}'
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24013 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24014 if ${am_cv_python_platform+:} false; then :
24015 $as_echo_n "(cached) " >&6
24017 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24020 $as_echo "$am_cv_python_platform" >&6; }
24021 PYTHON_PLATFORM=$am_cv_python_platform
24024 # Just factor out some code duplication.
24025 am_python_setup_sysconfig="\
24027 # Prefer sysconfig over distutils.sysconfig, for better compatibility
24028 # with python 3.x. See automake bug#10227.
24031 except ImportError:
24032 can_use_sysconfig = 0
24034 can_use_sysconfig = 1
24035 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24036 # <https://github.com/pypa/virtualenv/issues/118>
24038 from platform import python_implementation
24039 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24040 can_use_sysconfig = 0
24041 except ImportError:
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24046 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24047 if ${am_cv_python_pythondir+:} false; then :
24048 $as_echo_n "(cached) " >&6
24050 if test "x$prefix" = xNONE
24052 am_py_prefix=$ac_default_prefix
24054 am_py_prefix=$prefix
24056 am_cv_python_pythondir=`$PYTHON -c "
24057 $am_python_setup_sysconfig
24058 if can_use_sysconfig:
24059 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24061 from distutils import sysconfig
24062 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24063 sys.stdout.write(sitedir)"`
24064 case $am_cv_python_pythondir in
24066 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24067 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24070 case $am_py_prefix in
24073 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24081 $as_echo "$am_cv_python_pythondir" >&6; }
24082 pythondir=$am_cv_python_pythondir
24086 pkgpythondir=\${pythondir}/$PACKAGE
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24090 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24091 if ${am_cv_python_pyexecdir+:} false; then :
24092 $as_echo_n "(cached) " >&6
24094 if test "x$exec_prefix" = xNONE
24096 am_py_exec_prefix=$am_py_prefix
24098 am_py_exec_prefix=$exec_prefix
24100 am_cv_python_pyexecdir=`$PYTHON -c "
24101 $am_python_setup_sysconfig
24102 if can_use_sysconfig:
24103 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24105 from distutils import sysconfig
24106 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24107 sys.stdout.write(sitedir)"`
24108 case $am_cv_python_pyexecdir in
24109 $am_py_exec_prefix*)
24110 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24111 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24114 case $am_py_exec_prefix in
24117 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24125 $as_echo "$am_cv_python_pyexecdir" >&6; }
24126 pyexecdir=$am_cv_python_pyexecdir
24130 pkgpyexecdir=\${pyexecdir}/$PACKAGE
24136 # Allow the use of a (user set) custom python version
24140 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
24141 set dummy python$PYTHON_VERSION; ac_word=$2
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24143 $as_echo_n "checking for $ac_word... " >&6; }
24144 if ${ac_cv_path_PYTHON+:} false; then :
24145 $as_echo_n "(cached) " >&6
24149 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24153 for as_dir in $PATH
24156 test -z "$as_dir" && as_dir=.
24157 for ac_exec_ext in '' $ac_executable_extensions; do
24158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24159 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24170 PYTHON=$ac_cv_path_PYTHON
24171 if test -n "$PYTHON"; then
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24173 $as_echo "$PYTHON" >&6; }
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24176 $as_echo "no" >&6; }
24180 if test -z "$PYTHON"; then
24181 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
24186 # Check for a version of Python >= 2.1.0
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
24189 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
24190 ac_supports_python_ver=`$PYTHON -c "import sys; \
24191 ver = sys.version.split ()[0]; \
24192 print (ver >= '2.1.0')"`
24193 if test "$ac_supports_python_ver" != "True"; then
24194 if test -z "$PYTHON_NOVERSIONCHECK"; then
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24196 $as_echo "no" >&6; }
24197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24200 This version of the AC_PYTHON_DEVEL macro
24201 doesn't work properly with versions of Python before
24202 2.1.0. You may need to re-run configure, setting the
24203 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
24204 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
24205 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
24206 to something else than an empty string.
24208 See \`config.log' for more details" "$LINENO" 5; }
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
24211 $as_echo "skip at user request" >&6; }
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24215 $as_echo "yes" >&6; }
24219 # if the macro parameter ``version'' is set, honour it
24221 if test -n ""; then
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
24223 $as_echo_n "checking for a version of Python ... " >&6; }
24224 ac_supports_python_ver=`$PYTHON -c "import sys; \
24225 ver = sys.version.split ()[0]; \
24227 if test "$ac_supports_python_ver" = "True"; then
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24229 $as_echo "yes" >&6; }
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24232 $as_echo "no" >&6; }
24233 as_fn_error $? "this package requires Python .
24234 If you have it installed, but it isn't the default Python
24235 interpreter in your system path, please pass the PYTHON_VERSION
24236 variable to configure. See \`\`configure --help'' for reference.
24243 # Check if you have distutils, else fail
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
24246 $as_echo_n "checking for the distutils Python package... " >&6; }
24247 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
24248 if test -z "$ac_distutils_result"; then
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24250 $as_echo "yes" >&6; }
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24253 $as_echo "no" >&6; }
24254 as_fn_error $? "cannot import Python module \"distutils\".
24255 Please check your Python installation. The error was:
24256 $ac_distutils_result" "$LINENO" 5
24261 # Check for Python include path
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
24264 $as_echo_n "checking for Python include path... " >&6; }
24265 if test -z "$PYTHON_CPPFLAGS"; then
24266 python_path=`$PYTHON -c "import distutils.sysconfig; \
24267 print (distutils.sysconfig.get_python_inc ());"`
24268 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
24269 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
24270 if test -n "${python_path}"; then
24271 if test "${plat_python_path}" != "${python_path}"; then
24272 python_path="-I$python_path -I$plat_python_path"
24274 python_path="-I$python_path"
24277 PYTHON_CPPFLAGS=$python_path
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
24280 $as_echo "$PYTHON_CPPFLAGS" >&6; }
24284 # Check for Python library path
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
24287 $as_echo_n "checking for Python library path... " >&6; }
24288 if test -z "$PYTHON_LDFLAGS"; then
24289 # (makes two attempts to ensure we've got a version number
24290 # from the interpreter)
24291 ac_python_version=`cat<<EOD | $PYTHON -
24293 # join all versioning strings, on some systems
24294 # major/minor numbers could be in different list elements
24295 from distutils.sysconfig import *
24296 e = get_config_var('VERSION')
24301 if test -z "$ac_python_version"; then
24302 if test -n "$PYTHON_VERSION"; then
24303 ac_python_version=$PYTHON_VERSION
24305 ac_python_version=`$PYTHON -c "import sys; \
24306 print (sys.version[:3])"`
24310 # Make the versioning information available to the compiler
24312 # JW: We don't need it and it interferes with the hack
24313 # to detect multiple Pyhton versions
24314 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
24315 # [If available, contains the Python version number currently in use.])
24317 # First, the library directory:
24318 ac_python_libdir=`cat<<EOD | $PYTHON -
24320 # There should be only one
24321 import distutils.sysconfig
24322 e = distutils.sysconfig.get_config_var('LIBDIR')
24327 # Now, for the library:
24328 ac_python_library=`cat<<EOD | $PYTHON -
24330 import distutils.sysconfig
24331 c = distutils.sysconfig.get_config_vars()
24332 if 'LDVERSION' in c:
24333 print ('python'+c['LDVERSION'])
24335 print ('python'+c['VERSION'])
24338 # This small piece shamelessly adapted from PostgreSQL python macro;
24339 # credits goes to momjian, I think. I'd like to put the right name
24340 # in the credits, if someone can point me in the right direction... ?
24342 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
24344 # use the official shared library
24345 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
24346 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
24348 # old way: use libpython from python_configdir
24349 ac_python_libdir=`$PYTHON -c \
24350 "from distutils.sysconfig import get_python_lib as f; \
24352 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
24353 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
24356 if test -z "PYTHON_LDFLAGS"; then
24358 Cannot determine location of your Python DSO. Please check it was installed with
24359 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24364 $as_echo "$PYTHON_LDFLAGS" >&6; }
24368 # Check for site packages
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
24371 $as_echo_n "checking for Python site-packages path... " >&6; }
24372 if test -z "$PYTHON_SITE_PKG"; then
24373 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
24374 print (distutils.sysconfig.get_python_lib(0,0));"`
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
24377 $as_echo "$PYTHON_SITE_PKG" >&6; }
24381 # libraries which must be linked in when embedding
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
24384 $as_echo_n "checking python extra libraries... " >&6; }
24385 if test -z "$PYTHON_EXTRA_LIBS"; then
24386 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
24387 conf = distutils.sysconfig.get_config_var; \
24388 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
24391 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
24395 # linking flags needed when embedding
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
24398 $as_echo_n "checking python extra linking flags... " >&6; }
24399 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
24400 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
24401 conf = distutils.sysconfig.get_config_var; \
24402 print (conf('LINKFORSHARED'))"`
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
24405 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
24409 # final check to see if everything compiles alright
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
24412 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
24413 # save current global flags
24414 ac_save_LIBS="$LIBS"
24415 ac_save_CPPFLAGS="$CPPFLAGS"
24416 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
24417 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
24419 ac_cpp='$CPP $CPPFLAGS'
24420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h. */
24427 #include <Python.h>
24437 if ac_fn_c_try_link "$LINENO"; then :
24442 rm -f core conftest.err conftest.$ac_objext \
24443 conftest$ac_exeext conftest.$ac_ext
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24450 # turn back to default flags
24451 CPPFLAGS="$ac_save_CPPFLAGS"
24452 LIBS="$ac_save_LIBS"
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
24455 $as_echo "$pythonexists" >&6; }
24457 if test ! "x$pythonexists" = "xyes"; then
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24459 Could not link test program to Python. Maybe the main Python library has been
24460 installed in some non-standard library path. If so, pass it to configure,
24461 via the LDFLAGS environment variable.
24462 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24463 ============================================================================
24464 You probably have to install the development version of the Python package
24465 for your distribution. The exact name of this package varies among them.
24466 ============================================================================
24468 $as_echo "$as_me: WARNING:
24469 Could not link test program to Python. Maybe the main Python library has been
24470 installed in some non-standard library path. If so, pass it to configure,
24471 via the LDFLAGS environment variable.
24472 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24473 ============================================================================
24474 You probably have to install the development version of the Python package
24475 for your distribution. The exact name of this package varies among them.
24476 ============================================================================
24485 if test "$PYTHON_VERSION"; then
24486 PYTHONS="$(echo $PYTHONS $PYTHON)"
24487 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
24496 # Recover some values lost in the second attempt to find Python.
24497 PYTHON="$(echo $PYTHONS | cut -d ' ' -f 1)"
24498 PYTHON_VERSION="$(echo $PYTHON_VERSIONS | cut -d ' ' -f 1)"
24500 # Remove duplicates.
24501 PYTHONS="$(echo $PYTHONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24502 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24504 if test "$PYTHON_VERSIONS"; then
24505 enabled_languages_v=$(echo $enabled_languages | sed -Ee "s/python[23]?/python ($PYTHON_VERSIONS)/")
24506 enabled_languages=$(echo $enabled_languages | sed -Ee "s/python[23]?/python/")
24508 if test "$explicit_languages" = "1"; then
24511 *** Please install the python development packages.
24514 enabled_languages=$(echo $enabled_languages | sed 's/python//')
24523 ENABLED_LANGUAGES=$enabled_languages
24527 # Provide information about the build.
24529 BUILD_REVISION="feea38c8"
24532 cat >>confdefs.h <<_ACEOF
24533 #define BUILD_REVISION "$BUILD_REVISION"
24537 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24538 BUILD_VERSION="${BUILD_VERSION}65258"
24539 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24543 # Check whether --enable-build-timestamp was given.
24544 if test "${enable_build_timestamp+set}" = set; then :
24545 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24546 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24548 BUILD_TIMESTAMP="$enableval"
24551 BUILD_TIMESTAMP="<none>"
24556 cat >>confdefs.h <<_ACEOF
24557 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
24563 # Options to disable some regression tests
24565 run_gpgconf_test="yes"
24566 # Check whether --enable-gpgconf-test was given.
24567 if test "${enable_gpgconf_test+set}" = set; then :
24568 enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
24571 if test "$run_gpgconf_test" = "yes"; then
24572 RUN_GPGCONF_TESTS_TRUE=
24573 RUN_GPGCONF_TESTS_FALSE='#'
24575 RUN_GPGCONF_TESTS_TRUE='#'
24576 RUN_GPGCONF_TESTS_FALSE=
24581 # Check whether --enable-gpg-test was given.
24582 if test "${enable_gpg_test+set}" = set; then :
24583 enableval=$enable_gpg_test; run_gpg_test=$enableval
24586 if test "$run_gpg_test" = "yes"; then
24587 RUN_GPG_TESTS_TRUE=
24588 RUN_GPG_TESTS_FALSE='#'
24590 RUN_GPG_TESTS_TRUE='#'
24591 RUN_GPG_TESTS_FALSE=
24595 run_gpgsm_test="yes"
24596 # Check whether --enable-gpgsm-test was given.
24597 if test "${enable_gpgsm_test+set}" = set; then :
24598 enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
24601 if test "$run_gpgsm_test" = "yes"; then
24602 RUN_GPGSM_TESTS_TRUE=
24603 RUN_GPGSM_TESTS_FALSE='#'
24605 RUN_GPGSM_TESTS_TRUE='#'
24606 RUN_GPGSM_TESTS_FALSE=
24611 # Check whether --enable-g13-test was given.
24612 if test "${enable_g13_test+set}" = set; then :
24613 enableval=$enable_g13_test; run_g13_test=$enableval
24616 if test "$run_g13_test" = "yes"; then
24617 RUN_G13_TESTS_TRUE=
24618 RUN_G13_TESTS_FALSE='#'
24620 RUN_G13_TESTS_TRUE='#'
24621 RUN_G13_TESTS_FALSE=
24626 # Checks for header files.
24630 for ac_header in $ac_header_list
24632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24636 cat >>confdefs.h <<_ACEOF
24637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24667 $as_echo_n "checking for inline... " >&6; }
24668 if ${ac_cv_c_inline+:} false; then :
24669 $as_echo_n "(cached) " >&6
24672 for ac_kw in inline __inline__ __inline; do
24673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24674 /* end confdefs.h. */
24675 #ifndef __cplusplus
24677 static $ac_kw foo_t static_foo () {return 0; }
24678 $ac_kw foo_t foo () {return 0; }
24682 if ac_fn_c_try_compile "$LINENO"; then :
24683 ac_cv_c_inline=$ac_kw
24685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686 test "$ac_cv_c_inline" != no && break
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24691 $as_echo "$ac_cv_c_inline" >&6; }
24693 case $ac_cv_c_inline in
24696 case $ac_cv_c_inline in
24698 *) ac_val=$ac_cv_c_inline;;
24700 cat >>confdefs.h <<_ACEOF
24701 #ifndef __cplusplus
24702 #define inline $ac_val
24708 # The cast to long int works around a bug in the HP C Compiler
24709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24711 # This bug is HP SR number 8606223364.
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24713 $as_echo_n "checking size of unsigned int... " >&6; }
24714 if ${ac_cv_sizeof_unsigned_int+:} false; then :
24715 $as_echo_n "(cached) " >&6
24717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
24720 if test "$ac_cv_type_unsigned_int" = yes; then
24721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24723 as_fn_error 77 "cannot compute sizeof (unsigned int)
24724 See \`config.log' for more details" "$LINENO" 5; }
24726 ac_cv_sizeof_unsigned_int=0
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24732 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24736 cat >>confdefs.h <<_ACEOF
24737 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24741 # Check whether --enable-largefile was given.
24742 if test "${enable_largefile+set}" = set; then :
24743 enableval=$enable_largefile;
24746 if test "$enable_largefile" != no; then
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24749 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24750 if ${ac_cv_sys_largefile_CC+:} false; then :
24751 $as_echo_n "(cached) " >&6
24753 ac_cv_sys_largefile_CC=no
24754 if test "$GCC" != yes; then
24757 # IRIX 6.2 and later do not support large files by default,
24758 # so use the C compiler's -n32 option if that helps.
24759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24760 /* end confdefs.h. */
24761 #include <sys/types.h>
24762 /* Check that off_t can represent 2**63 - 1 correctly.
24763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24764 since some C++ compilers masquerading as C compilers
24765 incorrectly reject 9223372036854775807. */
24766 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24768 && LARGE_OFF_T % 2147483647 == 1)
24778 if ac_fn_c_try_compile "$LINENO"; then :
24781 rm -f core conftest.err conftest.$ac_objext
24783 if ac_fn_c_try_compile "$LINENO"; then :
24784 ac_cv_sys_largefile_CC=' -n32'; break
24786 rm -f core conftest.err conftest.$ac_objext
24790 rm -f conftest.$ac_ext
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24794 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
24795 if test "$ac_cv_sys_largefile_CC" != no; then
24796 CC=$CC$ac_cv_sys_largefile_CC
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24800 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24801 if ${ac_cv_sys_file_offset_bits+:} false; then :
24802 $as_echo_n "(cached) " >&6
24805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h. */
24807 #include <sys/types.h>
24808 /* Check that off_t can represent 2**63 - 1 correctly.
24809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24810 since some C++ compilers masquerading as C compilers
24811 incorrectly reject 9223372036854775807. */
24812 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24814 && LARGE_OFF_T % 2147483647 == 1)
24824 if ac_fn_c_try_compile "$LINENO"; then :
24825 ac_cv_sys_file_offset_bits=no; break
24827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24829 /* end confdefs.h. */
24830 #define _FILE_OFFSET_BITS 64
24831 #include <sys/types.h>
24832 /* Check that off_t can represent 2**63 - 1 correctly.
24833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24834 since some C++ compilers masquerading as C compilers
24835 incorrectly reject 9223372036854775807. */
24836 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24838 && LARGE_OFF_T % 2147483647 == 1)
24848 if ac_fn_c_try_compile "$LINENO"; then :
24849 ac_cv_sys_file_offset_bits=64; break
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 ac_cv_sys_file_offset_bits=unknown
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24857 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24858 case $ac_cv_sys_file_offset_bits in #(
24861 cat >>confdefs.h <<_ACEOF
24862 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24867 if test $ac_cv_sys_file_offset_bits = unknown; then
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24869 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24870 if ${ac_cv_sys_large_files+:} false; then :
24871 $as_echo_n "(cached) " >&6
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24876 #include <sys/types.h>
24877 /* Check that off_t can represent 2**63 - 1 correctly.
24878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24879 since some C++ compilers masquerading as C compilers
24880 incorrectly reject 9223372036854775807. */
24881 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24883 && LARGE_OFF_T % 2147483647 == 1)
24893 if ac_fn_c_try_compile "$LINENO"; then :
24894 ac_cv_sys_large_files=no; break
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24898 /* end confdefs.h. */
24899 #define _LARGE_FILES 1
24900 #include <sys/types.h>
24901 /* Check that off_t can represent 2**63 - 1 correctly.
24902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24903 since some C++ compilers masquerading as C compilers
24904 incorrectly reject 9223372036854775807. */
24905 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24907 && LARGE_OFF_T % 2147483647 == 1)
24917 if ac_fn_c_try_compile "$LINENO"; then :
24918 ac_cv_sys_large_files=1; break
24920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 ac_cv_sys_large_files=unknown
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24926 $as_echo "$ac_cv_sys_large_files" >&6; }
24927 case $ac_cv_sys_large_files in #(
24930 cat >>confdefs.h <<_ACEOF
24931 #define _LARGE_FILES $ac_cv_sys_large_files
24941 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24942 if test "x$ac_cv_type_off_t" = xyes; then :
24946 cat >>confdefs.h <<_ACEOF
24947 #define off_t long int
24953 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24954 if test "x$ac_cv_type_uintptr_t" = xyes; then :
24956 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24959 for ac_type in 'unsigned int' 'unsigned long int' \
24960 'unsigned long long int'; do
24961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962 /* end confdefs.h. */
24963 $ac_includes_default
24967 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24968 test_array [0] = 0;
24969 return test_array [0];
24975 if ac_fn_c_try_compile "$LINENO"; then :
24977 cat >>confdefs.h <<_ACEOF
24978 #define uintptr_t $ac_type
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984 test -z "$ac_type" && break
24990 # We require uint64_t
24991 if test "$ac_cv_header_stdint_h" != yes; then
24994 *** No stdint.h and thus no uint64_t type. Can't build this library.
24999 # A simple compile time check in gpgme.h for GNU/Linux systems that
25000 # prevents a file offset bits mismatch between gpgme and the application.
25001 NEED__FILE_OFFSET_BITS=0
25002 if test "$have_w32_system" != yes; then
25003 case "$ac_cv_sys_file_offset_bits" in
25004 "" | no | unknown) ;;
25006 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
25012 # Figure out platform dependent typedefs for gpgme.h
25013 if test "$have_w32_system" = yes; then
25014 INSERT__TYPEDEFS_FOR_GPGME_H="
25016 # include <stdint.h>
25017 typedef int64_t gpgme_off_t;
25018 typedef int64_t gpgme_ssize_t;
25020 typedef long gpgme_off_t;
25021 typedef long gpgme_ssize_t;
25022 #endif /* _WIN32 */"
25023 API__OFF_T="gpgme_off_t"
25024 API__SSIZE_T="gpgme_ssize_t"
25026 INSERT__TYPEDEFS_FOR_GPGME_H="
25027 #include <sys/types.h>
25028 typedef off_t gpgme_off_t;
25029 typedef ssize_t gpgme_ssize_t;"
25031 API__SSIZE_T="ssize_t"
25040 # Checks for compiler features.
25041 if test "$GCC" = yes; then
25042 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25043 CFLAGS="$CFLAGS -Wno-format-y2k"
25045 # If -Wno-missing-field-initializers is supported we can expect a
25046 # a larger set of warning options.
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
25048 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
25049 _gcc_cflags_save=$CFLAGS
25050 CFLAGS="-Wno-missing-field-initializers"
25051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052 /* end confdefs.h. */
25062 if ac_fn_c_try_compile "$LINENO"; then :
25067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25069 $as_echo "$_gcc_wopt" >&6; }
25070 CFLAGS=$_gcc_cflags_save;
25071 if test x"$_gcc_wopt" = xyes ; then
25072 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
25073 CFLAGS="$CFLAGS -Wno-sign-compare"
25074 CFLAGS="$CFLAGS -Wno-format-zero-length"
25075 CFLAGS="$CFLAGS -Wno-format-truncation"
25076 CFLAGS="$CFLAGS -Wno-sizeof-pointer-div"
25078 if test "$USE_MAINTAINER_MODE" = "yes"; then
25079 if test x"$_gcc_wopt" = xyes ; then
25080 CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
25081 CFLAGS="$CFLAGS -Wwrite-strings"
25082 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25084 CFLAGS="$CFLAGS -Wformat -Wformat-security"
25085 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
25088 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
25089 _gcc_cflags_save=$CFLAGS
25090 CFLAGS="-Wpointer-arith"
25091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h. */
25102 if ac_fn_c_try_compile "$LINENO"; then :
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25109 $as_echo "$_gcc_wopt" >&6; }
25110 CFLAGS=$_gcc_cflags_save;
25111 if test x"$_gcc_wopt" = xyes ; then
25112 CFLAGS="$CFLAGS -Wpointer-arith"
25115 if test "$have_w32_system" = yes; then
25116 CFLAGS="$CFLAGS -mms-bitfields"
25120 # Only used for debugging, so no serious test needed (for actual
25121 # functionality you have to test libc as well, this only tests the
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
25124 $as_echo_n "checking for __thread... " >&6; }
25125 if ${gpgme_cv_tls_works+:} false; then :
25126 $as_echo_n "(cached) " >&6
25128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25129 /* end confdefs.h. */
25139 if ac_fn_c_try_compile "$LINENO"; then :
25140 gpgme_cv_tls_works=yes
25142 gpgme_cv_tls_works=no
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
25147 $as_echo "$gpgme_cv_tls_works" >&6; }
25148 if test "$gpgme_cv_tls_works" = yes; then
25150 $as_echo "#define HAVE_TLS 1" >>confdefs.h
25155 # Checks for library functions.
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
25157 $as_echo "$as_me: checking for libraries" >&6;}
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25160 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25161 if ${ac_cv_sys_largefile_source+:} false; then :
25162 $as_echo_n "(cached) " >&6
25165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166 /* end confdefs.h. */
25167 #include <sys/types.h> /* for off_t */
25172 int (*fp) (FILE *, off_t, int) = fseeko;
25173 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25178 if ac_fn_c_try_link "$LINENO"; then :
25179 ac_cv_sys_largefile_source=no; break
25181 rm -f core conftest.err conftest.$ac_objext \
25182 conftest$ac_exeext conftest.$ac_ext
25183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184 /* end confdefs.h. */
25185 #define _LARGEFILE_SOURCE 1
25186 #include <sys/types.h> /* for off_t */
25191 int (*fp) (FILE *, off_t, int) = fseeko;
25192 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25197 if ac_fn_c_try_link "$LINENO"; then :
25198 ac_cv_sys_largefile_source=1; break
25200 rm -f core conftest.err conftest.$ac_objext \
25201 conftest$ac_exeext conftest.$ac_ext
25202 ac_cv_sys_largefile_source=unknown
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25207 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25208 case $ac_cv_sys_largefile_source in #(
25211 cat >>confdefs.h <<_ACEOF
25212 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25218 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25219 # in glibc 2.1.3, but that breaks too many other things.
25220 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25221 if test $ac_cv_sys_largefile_source != unknown; then
25223 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
25228 # Try to find a thread-safe version of ttyname().
25229 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
25230 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
25236 cat >>confdefs.h <<_ACEOF
25237 #define HAVE_DECL_TTYNAME_R $ac_have_decl
25241 for ac_header in unistd.h
25243 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25244 if test "x$ac_cv_header_unistd_h" = xyes; then :
25245 cat >>confdefs.h <<_ACEOF
25246 #define HAVE_UNISTD_H 1
25255 if test $ac_cv_have_decl_ttyname_r = no; then
25256 HAVE_DECL_TTYNAME_R=0
25259 for ac_func in ttyname_r
25261 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
25262 if test "x$ac_cv_func_ttyname_r" = xyes; then :
25263 cat >>confdefs.h <<_ACEOF
25264 #define HAVE_TTYNAME_R 1
25270 if test $ac_cv_func_ttyname_r = no; then
25272 case " $LIBOBJS " in
25273 *" ttyname_r.$ac_objext "* ) ;;
25274 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25279 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
25284 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
25285 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
25286 $as_echo_n "(cached) " >&6
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25290 #include <stddef.h>
25291 #include <unistd.h>
25295 *ttyname_r (0, NULL, 0);
25301 if ac_fn_c_try_compile "$LINENO"; then :
25302 gnupg_cv_func_ttyname_r_posix=no
25304 gnupg_cv_func_ttyname_r_posix=yes
25306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
25310 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
25311 if test $gnupg_cv_func_ttyname_r_posix = no; then
25312 case " $LIBOBJS " in
25313 *" ttyname_r.$ac_objext "* ) ;;
25314 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25318 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25320 elif test "$have_android_system" = yes; then
25321 # Android has ttyname and ttyname_r but they are only stubs and
25322 # print an annoying warning message. Thus we need to replace
25323 # ttyname_r with our own dummy function.
25324 case " $LIBOBJS " in
25325 *" ttyname_r.$ac_objext "* ) ;;
25326 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25330 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25334 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
25338 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
25339 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
25340 $as_echo_n "(cached) " >&6
25344 # Guess no on Solaris.
25345 solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25346 # Guess no on OSF/1.
25347 osf*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25348 # Guess yes otherwise.
25349 *) gnupg_cv_func_ttyname_r_works="guessing yes" ;;
25351 if test "$cross_compiling" = yes; then :
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25358 #include <unistd.h>
25364 char buf[31]; /* use any size < 128 here */
25366 fd = open ("/dev/tty", O_RDONLY);
25369 else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
25371 else if (ttyname_r (fd, buf, 1) == 0)
25376 if ac_fn_c_try_run "$LINENO"; then :
25377 gnupg_cv_func_ttyname_r_works=yes
25380 17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
25383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25384 conftest.$ac_objext conftest.beam conftest.$ac_ext
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
25390 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
25391 case "$gnupg_cv_func_ttyname_r_works" in
25393 *) case " $LIBOBJS " in
25394 *" ttyname_r.$ac_objext "* ) ;;
25395 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25399 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25402 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
25409 if test "$ac_cv_func_ttyname_r" != yes; then
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25412 *** ttyname() is not thread-safe and ttyname_r() does not exist
25414 $as_echo "$as_me: WARNING:
25416 *** ttyname() is not thread-safe and ttyname_r() does not exist
25420 # Try to find a thread-safe version of getenv().
25421 have_thread_safe_getenv=no
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
25424 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25425 if ${ac_cv_gnu_library_2_1+:} false; then :
25426 $as_echo_n "(cached) " >&6
25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h. */
25431 #include <features.h>
25432 #ifdef __GNU_LIBRARY__
25433 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25440 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
25441 ac_cv_gnu_library_2_1=yes
25443 ac_cv_gnu_library_2_1=no
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
25451 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
25453 GLIBC21="$ac_cv_gnu_library_2_1"
25456 if test $GLIBC21 = yes -o $have_w32_system = yes; then
25457 have_thread_safe_getenv=yes
25459 if test $have_thread_safe_getenv = yes; then
25461 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
25465 for ac_func in getenv_r
25467 ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
25468 if test "x$ac_cv_func_getenv_r" = xyes; then :
25469 cat >>confdefs.h <<_ACEOF
25470 #define HAVE_GETENV_R 1
25476 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25479 *** getenv() is not thread-safe and getenv_r() does not exist
25481 $as_echo "$as_me: WARNING:
25483 *** getenv() is not thread-safe and getenv_r() does not exist
25487 # For converting time strings to seconds since Epoch, we need the timegm
25489 for ac_func in timegm
25491 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25492 if test "x$ac_cv_func_timegm" = xyes; then :
25493 cat >>confdefs.h <<_ACEOF
25494 #define HAVE_TIMEGM 1
25500 if test "$ac_cv_func_timegm" != yes; then
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25503 *** timegm() not available - a non-thread-safe kludge will be used
25504 *** and the TZ variable might be changed at runtime.
25506 $as_echo "$as_me: WARNING:
25508 *** timegm() not available - a non-thread-safe kludge will be used
25509 *** and the TZ variable might be changed at runtime.
25513 for ac_func in setlocale
25515 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25516 if test "x$ac_cv_func_setlocale" = xyes; then :
25517 cat >>confdefs.h <<_ACEOF
25518 #define HAVE_SETLOCALE 1
25525 # Checking for libgpg-error.
25528 gpg_error_config_prefix=""
25530 # Check whether --with-libgpg-error-prefix was given.
25531 if test "${with_libgpg_error_prefix+set}" = set; then :
25532 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
25537 # Check whether --with-gpg-error-prefix was given.
25538 if test "${with_gpg_error_prefix+set}" = set; then :
25539 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
25543 if test x"${GPG_ERROR_CONFIG}" = x ; then
25544 if test x"${gpg_error_config_prefix}" != x ; then
25545 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
25547 case "${SYSROOT}" in
25549 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
25550 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
25557 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
25563 # Extract the first word of "gpg-error-config", so it can be a program name with args.
25564 set dummy gpg-error-config; ac_word=$2
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25566 $as_echo_n "checking for $ac_word... " >&6; }
25567 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
25568 $as_echo_n "(cached) " >&6
25570 case $GPG_ERROR_CONFIG in
25572 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
25575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25576 for as_dir in $PATH
25579 test -z "$as_dir" && as_dir=.
25580 for ac_exec_ext in '' $ac_executable_extensions; do
25581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25582 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25590 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
25594 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
25595 if test -n "$GPG_ERROR_CONFIG"; then
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
25597 $as_echo "$GPG_ERROR_CONFIG" >&6; }
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25604 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
25607 if test "$prefix" = NONE ; then
25608 prefix_option_expanded=/usr/local
25610 prefix_option_expanded="$prefix"
25612 if test "$exec_prefix" = NONE ; then
25613 exec_prefix_option_expanded=$prefix_option_expanded
25615 exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix)
25617 libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir)
25619 if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then
25620 gpgrt_libdir=$libdir_option_expanded
25622 if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then
25623 if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then
25624 if test -f $possible_libdir/pkgconfig/gpg-error.pc; then
25625 gpgrt_libdir=$possible_libdir
25631 if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then
25632 # Extract the first word of "gpgrt-config", so it can be a program name with args.
25633 set dummy gpgrt-config; ac_word=$2
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25635 $as_echo_n "checking for $ac_word... " >&6; }
25636 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25637 $as_echo_n "(cached) " >&6
25639 case $GPGRT_CONFIG in
25641 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645 for as_dir in $PATH
25648 test -z "$as_dir" && as_dir=.
25649 for ac_exec_ext in '' $ac_executable_extensions; do
25650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25651 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25659 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25663 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25664 if test -n "$GPGRT_CONFIG"; then
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25666 $as_echo "$GPGRT_CONFIG" >&6; }
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25669 $as_echo "no" >&6; }
25673 if test "$GPGRT_CONFIG" = "no"; then
25676 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25677 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25678 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25680 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25681 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
25687 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
25689 if test "$GPG_ERROR_CONFIG" != "no"; then
25690 req_major=`echo $min_gpg_error_version | \
25691 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
25692 req_minor=`echo $min_gpg_error_version | \
25693 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
25694 major=`echo $gpg_error_config_version | \
25695 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
25696 minor=`echo $gpg_error_config_version | \
25697 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
25698 if test "$major" -gt "$req_major"; then
25701 if test "$major" -eq "$req_major"; then
25702 if test "$minor" -ge "$req_minor"; then
25707 if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
25708 if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
25709 # Extract the first word of "gpgrt-config", so it can be a program name with args.
25710 set dummy gpgrt-config; ac_word=$2
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25712 $as_echo_n "checking for $ac_word... " >&6; }
25713 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25714 $as_echo_n "(cached) " >&6
25716 case $GPGRT_CONFIG in
25718 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25722 for as_dir in $PATH
25725 test -z "$as_dir" && as_dir=.
25726 for ac_exec_ext in '' $ac_executable_extensions; do
25727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25728 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25736 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25740 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25741 if test -n "$GPGRT_CONFIG"; then
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25743 $as_echo "$GPGRT_CONFIG" >&6; }
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25746 $as_echo "no" >&6; }
25750 if test "$GPGRT_CONFIG" = "no"; then
25753 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25754 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25755 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25757 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
25766 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
25767 if test $ok = yes; then
25768 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
25769 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
25770 if test -z "$GPGRT_CONFIG"; then
25771 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
25772 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
25774 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
25775 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
25776 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
25777 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
25780 $as_echo "yes ($gpg_error_config_version)" >&6; }
25782 if test -z "$GPGRT_CONFIG"; then
25783 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
25785 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
25787 if test x"$gpg_error_config_host" != xnone ; then
25788 if test x"$gpg_error_config_host" != x"$host" ; then
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25791 *** The config script \"$GPG_ERROR_CONFIG\" was
25792 *** built for $gpg_error_config_host and thus may not match the
25793 *** used host $host.
25794 *** You may want to use the configure option --with-libgpg-error-prefix
25795 *** to specify a matching config script or use \$SYSROOT.
25797 $as_echo "$as_me: WARNING:
25799 *** The config script \"$GPG_ERROR_CONFIG\" was
25800 *** built for $gpg_error_config_host and thus may not match the
25801 *** used host $host.
25802 *** You may want to use the configure option --with-libgpg-error-prefix
25803 *** to specify a matching config script or use \$SYSROOT.
25805 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
25809 GPG_ERROR_CFLAGS=""
25811 GPG_ERROR_MT_CFLAGS=""
25812 GPG_ERROR_MT_LIBS=""
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25814 $as_echo "no" >&6; }
25823 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
25826 # And for libassuan.
25830 # Check whether --with-libassuan-prefix was given.
25831 if test "${with_libassuan_prefix+set}" = set; then :
25832 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
25834 libassuan_config_prefix=""
25837 if test x$libassuan_config_prefix != x ; then
25838 if test x${LIBASSUAN_CONFIG+set} != xset ; then
25839 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
25843 use_gpgrt_config=""
25844 if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
25845 if $GPGRT_CONFIG libassuan --exists; then
25846 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
25848 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
25849 use_gpgrt_config=yes
25852 if test -z "$use_gpgrt_config"; then
25853 # Extract the first word of "libassuan-config", so it can be a program name with args.
25854 set dummy libassuan-config; ac_word=$2
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25856 $as_echo_n "checking for $ac_word... " >&6; }
25857 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
25858 $as_echo_n "(cached) " >&6
25860 case $LIBASSUAN_CONFIG in
25862 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
25865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866 for as_dir in $PATH
25869 test -z "$as_dir" && as_dir=.
25870 for ac_exec_ext in '' $ac_executable_extensions; do
25871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25872 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25880 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
25884 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
25885 if test -n "$LIBASSUAN_CONFIG"; then
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
25887 $as_echo "$LIBASSUAN_CONFIG" >&6; }
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25890 $as_echo "no" >&6; }
25896 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
25897 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
25898 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
25899 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
25901 req_libassuan_api=0
25902 min_libassuan_version="$tmp"
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
25906 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
25908 if test "$LIBASSUAN_CONFIG" != "no"; then
25909 req_major=`echo $min_libassuan_version | \
25910 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25911 req_minor=`echo $min_libassuan_version | \
25912 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25913 req_micro=`echo $min_libassuan_version | \
25914 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25916 if test -z "$use_gpgrt_config"; then
25917 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
25919 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
25921 major=`echo $libassuan_config_version | \
25922 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
25923 minor=`echo $libassuan_config_version | \
25924 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
25925 micro=`echo $libassuan_config_version | \
25926 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
25928 if test "$major" -gt "$req_major"; then
25931 if test "$major" -eq "$req_major"; then
25932 if test "$minor" -gt "$req_minor"; then
25935 if test "$minor" -eq "$req_minor"; then
25936 if test "$micro" -ge "$req_micro"; then
25945 if test $ok = yes; then
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
25947 $as_echo "yes ($libassuan_config_version)" >&6; }
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25950 $as_echo "no" >&6; }
25953 if test $ok = yes; then
25954 if test "$req_libassuan_api" -gt 0 ; then
25955 if test -z "$use_gpgrt_config"; then
25956 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
25958 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
25960 if test "$tmp" -gt 0 ; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
25962 $as_echo_n "checking LIBASSUAN API version... " >&6; }
25963 if test "$req_libassuan_api" -eq "$tmp" ; then
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
25965 $as_echo "okay" >&6; }
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
25969 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
25975 if test $ok = yes; then
25976 if test x"$host" != x ; then
25977 if test -z "$use_gpgrt_config"; then
25978 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
25980 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
25982 if test x"$libassuan_config_host" != xnone ; then
25983 if test x"$libassuan_config_host" != x"$host" ; then
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25986 *** The config script \"$LIBASSUAN_CONFIG\" was
25987 *** built for $libassuan_config_host and thus may not match the
25988 *** used host $host.
25989 *** You may want to use the configure option --with-libassuan-prefix
25990 *** to specify a matching config script.
25992 $as_echo "$as_me: WARNING:
25994 *** The config script \"$LIBASSUAN_CONFIG\" was
25995 *** built for $libassuan_config_host and thus may not match the
25996 *** used host $host.
25997 *** You may want to use the configure option --with-libassuan-prefix
25998 *** to specify a matching config script.
26005 if test $ok = yes; then
26006 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
26007 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
26010 LIBASSUAN_CFLAGS=""
26017 if test "$have_libassuan" = "yes"; then
26019 cat >>confdefs.h <<_ACEOF
26020 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
26030 # Check for getgid etc
26031 for ac_func in getgid getegid closefrom
26033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26035 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26036 cat >>confdefs.h <<_ACEOF
26037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26045 # Replacement functions.
26046 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
26047 if test "x$ac_cv_func_stpcpy" = xyes; then :
26048 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
26051 case " $LIBOBJS " in
26052 *" stpcpy.$ac_objext "* ) ;;
26053 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
26060 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26061 if test "x$ac_cv_func_setenv" = xyes; then :
26062 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
26065 case " $LIBOBJS " in
26066 *" setenv.$ac_objext "* ) ;;
26067 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
26075 # Assuan check for descriptor passing.
26076 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
26077 #include <stdlib.h>
26078 #include <stddef.h>
26080 #include <sys/types.h>
26081 #include <sys/socket.h>
26082 #include <sys/un.h>
26084 #include <sys/uio.h>
26086 #include <unistd.h>
26089 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
26090 supports_descriptor_passing=yes
26092 supports_descriptor_passing=no
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26095 *** Data structure for sending ancillary data missing.
26096 *** Descriptor passing won't work.
26098 $as_echo "$as_me: WARNING:
26100 *** Data structure for sending ancillary data missing.
26101 *** Descriptor passing won't work.
26106 use_descriptor_passing=yes
26107 # Check whether --enable-fd-passing was given.
26108 if test "${enable_fd_passing+set}" = set; then :
26109 enableval=$enable_fd_passing; use_descriptor_passing=$enableval
26113 if test "$supports_descriptor_passing" != "yes"; then
26114 use_descriptor_passing=no
26117 if test "$use_descriptor_passing" = "yes"; then
26119 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
26123 if test "$use_descriptor_passing" = "yes"; then
26124 USE_DESCRIPTOR_PASSING_TRUE=
26125 USE_DESCRIPTOR_PASSING_FALSE='#'
26127 USE_DESCRIPTOR_PASSING_TRUE='#'
26128 USE_DESCRIPTOR_PASSING_FALSE=
26134 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
26137 if test "$uiserver" != "no"; then
26139 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
26142 if test "$uiserver" != "no"; then
26143 HAVE_UISERVER_TRUE=
26144 HAVE_UISERVER_FALSE='#'
26146 HAVE_UISERVER_TRUE='#'
26147 HAVE_UISERVER_FALSE=
26152 # Option --disable-linux-getdents
26154 # By default we use SYS_getdents on Linux to optimize fd closing
26155 # before an exec. This option allows to switch this optimization off.
26156 use_linux_getdents=yes
26157 # Check whether --enable-linux-getdents was given.
26158 if test "${enable_linux_getdents+set}" = set; then :
26159 enableval=$enable_linux_getdents; use_linux_getdents=$enableval
26162 if test "$use_linux_getdents" = "yes"; then
26166 $as_echo "#define USE_LINUX_GETDENTS 1" >>confdefs.h
26174 # Add a few constants to help porting to W32
26181 # Substitution used for gpgme-config
26182 GPGME_CONFIG_LIBS="-lgpgme"
26183 GPGME_CONFIG_CFLAGS=""
26184 GPGME_CONFIG_HOST="$host"
26185 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
26192 # Frob'da Variables
26193 LTLIBOBJS=`echo "$LIBOBJS" |
26194 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
26197 # Some checks for gpgme-tool
26198 # Done at top: AC_CHECK_HEADER([argp.h])
26199 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
26201 if test "x$ac_cv_type_error_t" = xyes; then :
26203 cat >>confdefs.h <<_ACEOF
26204 #define HAVE_ERROR_T 1
26210 $as_echo "#define error_t int" >>confdefs.h
26216 # A substitution to set generated files in a Emacs buffer to read-only.
26217 emacs_local_vars_begin='Local Variables:'
26219 emacs_local_vars_read_only='buffer-read-only: t'
26221 emacs_local_vars_end='End:'
26226 if test "$have_gpg_error" = "no"; then
26228 { $as_echo "$as_me:${as_lineno-$LINENO}:
26230 *** You need libgpg-error to build this program.
26231 ** This library is for example available at
26232 *** https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26233 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26237 *** You need libgpg-error to build this program.
26238 ** This library is for example available at
26239 *** https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26240 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26243 if test "$have_libassuan" = "no"; then
26245 { $as_echo "$as_me:${as_lineno-$LINENO}:
26247 *** You need libassuan to build this program.
26248 *** This library is for example available at
26249 *** https://www.gnupg.org/ftp/gcrypt/libassuan/
26250 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26254 *** You need libassuan to build this program.
26255 *** This library is for example available at
26256 *** https://www.gnupg.org/ftp/gcrypt/libassuan/
26257 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26261 if test "$die" = "yes"; then
26264 *** Required libraries not found. Please consult the above messages
26265 *** and install them before running configure again.
26271 # Create config files
26273 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile tests/json/Makefile doc/Makefile src/versioninfo.rc src/gpgme.pc src/gpgme-glib.pc src/gpgme.h"
26275 ac_config_files="$ac_config_files src/gpgme-config"
26277 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
26279 ac_config_files="$ac_config_files lang/cpp/tests/Makefile"
26281 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
26283 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
26285 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
26287 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
26289 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
26291 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
26293 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
26295 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
26297 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
26299 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
26301 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
26303 if test -z "$HAVE_DOXYGEN_TRUE"; then :
26304 ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
26307 ac_config_files="$ac_config_files lang/js/Makefile lang/js/src/Makefile lang/js/BrowserTestExtension/Makefile lang/js/DemoExtension/Makefile"
26309 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
26311 ac_config_files="$ac_config_files lang/python/Makefile lang/python/version.py lang/python/tests/Makefile lang/python/src/Makefile lang/python/examples/Makefile lang/python/doc/Makefile"
26313 ac_config_files="$ac_config_files lang/python/setup.py"
26315 cat >confcache <<\_ACEOF
26316 # This file is a shell script that caches the results of configure
26317 # tests run on this system so they can be shared between configure
26318 # scripts and configure runs, see configure's option --config-cache.
26319 # It is not useful on other systems. If it contains results you don't
26320 # want to keep, you may remove or edit it.
26322 # config.status only pays attention to the cache file if you give it
26323 # the --recheck option to rerun configure.
26325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26327 # following values.
26331 # The following way of writing the cache mishandles newlines in values,
26332 # but we know of no workaround that is simple, portable, and efficient.
26333 # So, we kill variables containing newlines.
26334 # Ultrix sh set writes to stderr and can't be redirected directly,
26335 # and sets the high bit in the cache file unless we assign to the vars.
26337 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26338 eval ac_val=\$$ac_var
26342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26346 _ | IFS | as_nl) ;; #(
26347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26348 *) { eval $ac_var=; unset $ac_var;} ;;
26354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26355 *${as_nl}ac_space=\ *)
26356 # `set' does not quote correctly, so add quotes: double-quote
26357 # substitution turns \\\\ into \\, and sed turns \\ into \.
26360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26363 # `set' quotes correctly as required by POSIX, so do not add quotes.
26364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26378 if test -w "$cache_file"; then
26379 if test "x$cache_file" != "x/dev/null"; then
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26381 $as_echo "$as_me: updating cache $cache_file" >&6;}
26382 if test ! -f "$cache_file" || test -h "$cache_file"; then
26383 cat confcache >"$cache_file"
26385 case $cache_file in #(
26387 mv -f confcache "$cache_file"$$ &&
26388 mv -f "$cache_file"$$ "$cache_file" ;; #(
26390 mv -f confcache "$cache_file" ;;
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26396 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26402 # Let make expand exec_prefix.
26403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26405 DEFS=-DHAVE_CONFIG_H
26410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26411 # 1. Remove the extension, and $U if already installed.
26412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26413 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26415 # will be set to the directory where LIBOBJS objects are built.
26416 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26417 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26419 LIBOBJS=$ac_libobjs
26421 LTLIBOBJS=$ac_ltlibobjs
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26425 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26426 if test -n "$am_sleep_pid"; then
26427 # Hide warnings about reused PIDs.
26428 wait $am_sleep_pid 2>/dev/null
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26431 $as_echo "done" >&6; }
26432 if test -n "$EXEEXT"; then
26434 am__EXEEXT_FALSE='#'
26436 am__EXEEXT_TRUE='#'
26440 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26441 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26444 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26445 as_fn_error $? "conditional \"AMDEP\" was never defined.
26446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26448 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26449 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26452 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26453 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26456 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26457 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26460 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
26461 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26464 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
26465 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
26466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26468 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26469 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
26470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26472 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
26473 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
26474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26476 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
26477 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
26478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26480 if test -z "${HAVE_MACOS_SYSTEM_TRUE}" && test -z "${HAVE_MACOS_SYSTEM_FALSE}"; then
26481 as_fn_error $? "conditional \"HAVE_MACOS_SYSTEM\" was never defined.
26482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26484 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
26485 as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
26486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26488 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26489 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26492 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
26493 as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
26494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26496 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
26497 as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
26498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26500 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
26501 as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
26502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26504 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
26505 as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
26506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26508 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
26509 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
26510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26512 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
26513 as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
26514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26517 : "${CONFIG_STATUS=./config.status}"
26519 ac_clean_files_save=$ac_clean_files
26520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26522 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26524 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26526 # Generated by $as_me.
26527 # Run this file to recreate the current configuration.
26528 # Compiler output produced by configure, useful for debugging
26529 # configure, is in config.log if it exists.
26532 ac_cs_recheck=false
26535 SHELL=\${CONFIG_SHELL-$SHELL}
26538 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26539 ## -------------------- ##
26540 ## M4sh Initialization. ##
26541 ## -------------------- ##
26543 # Be more Bourne compatible
26544 DUALCASE=1; export DUALCASE # for MKS sh
26545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26549 # is contrary to our usage. Disable this feature.
26550 alias -g '${1+"$@"}'='"$@"'
26551 setopt NO_GLOB_SUBST
26553 case `(set -o) 2>/dev/null` in #(
26565 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26566 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26568 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26569 # Prefer a ksh shell builtin over an external printf program on Solaris,
26570 # but without wasting forks for bash or zsh.
26571 if test -z "$BASH_VERSION$ZSH_VERSION" \
26572 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26573 as_echo='print -r --'
26574 as_echo_n='print -rn --'
26575 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26576 as_echo='printf %s\n'
26577 as_echo_n='printf %s'
26579 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26580 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26581 as_echo_n='/usr/ucb/echo -n'
26583 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26584 as_echo_n_body='eval
26588 expr "X$arg" : "X\\(.*\\)$as_nl";
26589 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26591 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26593 export as_echo_n_body
26594 as_echo_n='sh -c $as_echo_n_body as_echo'
26596 export as_echo_body
26597 as_echo='sh -c $as_echo_body as_echo'
26600 # The user is always right.
26601 if test "${PATH_SEPARATOR+set}" != set; then
26603 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26604 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26611 # We need space, tab and new line, in precisely that order. Quoting is
26612 # there to prevent editors from complaining about space-tab.
26613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26614 # splitting by setting IFS to empty value.)
26617 # Find who we are. Look in the path if we contain no directory separator.
26620 *[\\/]* ) as_myself=$0 ;;
26621 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26622 for as_dir in $PATH
26625 test -z "$as_dir" && as_dir=.
26626 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26632 # We did not find ourselves, most probably we were run as `sh COMMAND'
26633 # in which case we are not to be found in the path.
26634 if test "x$as_myself" = x; then
26637 if test ! -f "$as_myself"; then
26638 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26642 # Unset variables that we do not need and which cause bugs (e.g. in
26643 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26644 # suppresses any "Segmentation fault" message there. '((' could
26645 # trigger a bug in pdksh 5.2.14.
26646 for as_var in BASH_ENV ENV MAIL MAILPATH
26647 do eval test x\${$as_var+set} = xset \
26648 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26661 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26664 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26665 # ----------------------------------------
26666 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26667 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26668 # script with STATUS, using 1 if that was 0.
26671 as_status=$1; test $as_status -eq 0 && as_status=1
26673 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26674 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26676 $as_echo "$as_me: error: $2" >&2
26677 as_fn_exit $as_status
26681 # as_fn_set_status STATUS
26682 # -----------------------
26683 # Set $? to STATUS, without forking.
26684 as_fn_set_status ()
26687 } # as_fn_set_status
26689 # as_fn_exit STATUS
26690 # -----------------
26691 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26695 as_fn_set_status $1
26701 # Portably unset VAR.
26704 { eval $1=; unset $1;}
26706 as_unset=as_fn_unset
26707 # as_fn_append VAR VALUE
26708 # ----------------------
26709 # Append the text in VALUE to the end of the definition contained in VAR. Take
26710 # advantage of any shell optimizations that allow amortized linear growth over
26711 # repeated appends, instead of the typical quadratic growth present in naive
26713 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26714 eval 'as_fn_append ()
26725 # as_fn_arith ARG...
26726 # ------------------
26727 # Perform arithmetic evaluation on the ARGs, and store the result in the
26728 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26729 # must be portable across $(()) and expr.
26730 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26731 eval 'as_fn_arith ()
26738 as_val=`expr "$@" || test $? -eq 1`
26743 if expr a : '\(a\)' >/dev/null 2>&1 &&
26744 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26750 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26751 as_basename=basename
26756 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26762 as_me=`$as_basename -- "$0" ||
26763 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26764 X"$0" : 'X\(//\)$' \| \
26765 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26767 sed '/^.*\/\([^/][^/]*\)\/*$/{
26781 # Avoid depending upon Character Ranges.
26782 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26783 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26784 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26785 as_cr_digits='0123456789'
26786 as_cr_alnum=$as_cr_Letters$as_cr_digits
26788 ECHO_C= ECHO_N= ECHO_T=
26789 case `echo -n x` in #(((((
26791 case `echo 'xy\c'` in
26792 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26794 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26801 rm -f conf$$ conf$$.exe conf$$.file
26802 if test -d conf$$.dir; then
26803 rm -f conf$$.dir/conf$$.file
26806 mkdir conf$$.dir 2>/dev/null
26808 if (echo >conf$$.file) 2>/dev/null; then
26809 if ln -s conf$$.file conf$$ 2>/dev/null; then
26811 # ... but there are two gotchas:
26812 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26813 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26814 # In both cases, we have to default to `cp -pR'.
26815 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26817 elif ln conf$$.file conf$$ 2>/dev/null; then
26825 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26826 rmdir conf$$.dir 2>/dev/null
26831 # Create "$as_dir" as a directory, including parents if necessary.
26836 -*) as_dir=./$as_dir;;
26838 test -d "$as_dir" || eval $as_mkdir_p || {
26842 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26843 *) as_qdir=$as_dir;;
26845 as_dirs="'$as_qdir' $as_dirs"
26846 as_dir=`$as_dirname -- "$as_dir" ||
26847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26848 X"$as_dir" : 'X\(//\)[^/]' \| \
26849 X"$as_dir" : 'X\(//\)$' \| \
26850 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26851 $as_echo X"$as_dir" |
26852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26856 /^X\(\/\/\)[^/].*/{
26869 test -d "$as_dir" && break
26871 test -z "$as_dirs" || eval "mkdir $as_dirs"
26872 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26876 if mkdir -p . 2>/dev/null; then
26877 as_mkdir_p='mkdir -p "$as_dir"'
26879 test -d ./-p && rmdir ./-p
26884 # as_fn_executable_p FILE
26885 # -----------------------
26886 # Test if FILE is an executable regular file.
26887 as_fn_executable_p ()
26889 test -f "$1" && test -x "$1"
26890 } # as_fn_executable_p
26891 as_test_x='test -x'
26892 as_executable_p=as_fn_executable_p
26894 # Sed expression to map a string onto a valid CPP name.
26895 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26897 # Sed expression to map a string onto a valid variable name.
26898 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26902 ## ----------------------------------- ##
26903 ## Main body of $CONFIG_STATUS script. ##
26904 ## ----------------------------------- ##
26906 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26909 # Save the log message, to keep $0 and so on meaningful, and to
26910 # report actual input values of CONFIG_FILES etc. instead of their
26911 # values after options handling.
26913 This file was extended by gpgme $as_me 1.15.0, which was
26914 generated by GNU Autoconf 2.69. Invocation command line was
26916 CONFIG_FILES = $CONFIG_FILES
26917 CONFIG_HEADERS = $CONFIG_HEADERS
26918 CONFIG_LINKS = $CONFIG_LINKS
26919 CONFIG_COMMANDS = $CONFIG_COMMANDS
26922 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26927 case $ac_config_files in *"
26928 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26931 case $ac_config_headers in *"
26932 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26937 # Files that config.status was made for.
26938 config_files="$ac_config_files"
26939 config_headers="$ac_config_headers"
26940 config_commands="$ac_config_commands"
26944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26946 \`$as_me' instantiates files and other configuration actions
26947 from templates according to the current configuration. Unless the files
26948 and actions are specified as TAGs, all are instantiated by default.
26950 Usage: $0 [OPTION]... [TAG]...
26952 -h, --help print this help, then exit
26953 -V, --version print version number and configuration settings, then exit
26954 --config print configuration, then exit
26955 -q, --quiet, --silent
26956 do not print progress messages
26957 -d, --debug don't remove temporary files
26958 --recheck update $as_me by reconfiguring in the same conditions
26959 --file=FILE[:TEMPLATE]
26960 instantiate the configuration file FILE
26961 --header=FILE[:TEMPLATE]
26962 instantiate the configuration header FILE
26964 Configuration files:
26967 Configuration headers:
26970 Configuration commands:
26973 Report bugs to <https://bugs.gnupg.org>."
26976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26977 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26979 gpgme config.status 1.15.0
26980 configured by $0, generated by GNU Autoconf 2.69,
26981 with options \\"\$ac_cs_config\\"
26983 Copyright (C) 2012 Free Software Foundation, Inc.
26984 This config.status script is free software; the Free Software Foundation
26985 gives unlimited permission to copy, distribute and modify it."
26992 test -n "\$AWK" || AWK=awk
26995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26996 # The default lists apply if the user does not specify any file.
27002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27019 # Handling of the options.
27020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27022 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27023 $as_echo "$ac_cs_version"; exit ;;
27024 --config | --confi | --conf | --con | --co | --c )
27025 $as_echo "$ac_cs_config"; exit ;;
27026 --debug | --debu | --deb | --de | --d | -d )
27028 --file | --fil | --fi | --f )
27031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27032 '') as_fn_error $? "missing file argument" ;;
27034 as_fn_append CONFIG_FILES " '$ac_optarg'"
27035 ac_need_defaults=false;;
27036 --header | --heade | --head | --hea )
27039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27041 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27042 ac_need_defaults=false;;
27044 # Conflict between --help and --header
27045 as_fn_error $? "ambiguous option: \`$1'
27046 Try \`$0 --help' for more information.";;
27047 --help | --hel | -h )
27048 $as_echo "$ac_cs_usage"; exit ;;
27049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27053 # This is an error.
27054 -*) as_fn_error $? "unrecognized option: \`$1'
27055 Try \`$0 --help' for more information." ;;
27057 *) as_fn_append ac_config_targets " $1"
27058 ac_need_defaults=false ;;
27064 ac_configure_extra_args=
27066 if $ac_cs_silent; then
27068 ac_configure_extra_args="$ac_configure_extra_args --silent"
27072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27073 if \$ac_cs_recheck; then
27074 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27076 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27077 CONFIG_SHELL='$SHELL'
27078 export CONFIG_SHELL
27083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27088 ## Running $as_me. ##
27094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27098 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27101 # The HP-UX ksh and POSIX shell print the target directory to stdout
27102 # if CDPATH is set.
27103 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27105 sed_quote_subst='$sed_quote_subst'
27106 double_quote_subst='$double_quote_subst'
27107 delay_variable_subst='$delay_variable_subst'
27108 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27109 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27110 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27111 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27112 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27113 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27114 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27115 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27116 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27117 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27118 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27119 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27120 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27121 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27122 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27123 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27124 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27125 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27126 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27127 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27128 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27129 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27130 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27131 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27132 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27133 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27134 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27135 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27136 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27137 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27138 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27139 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27140 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27141 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27142 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27143 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27144 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27145 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27146 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27147 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27148 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27149 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27150 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27151 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27152 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27153 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27154 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27155 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27156 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27157 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27158 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27159 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27160 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27161 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27162 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27163 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27164 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27165 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"`'
27166 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27167 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27168 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27169 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27170 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27171 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27172 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27173 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27174 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27175 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27176 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27177 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27178 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27179 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27180 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27181 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27182 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27183 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27184 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27185 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27186 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27187 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27188 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27189 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27190 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27191 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27192 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27193 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27194 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27195 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27196 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27197 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27198 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27199 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27200 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27201 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27202 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27203 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27204 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27205 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27206 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27207 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27208 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27209 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27210 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27211 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27212 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27213 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27214 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27215 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27216 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27217 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27218 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27219 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27220 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27221 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27222 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27223 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27224 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27225 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27226 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27227 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27228 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27229 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27230 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27231 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27232 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27233 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27234 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27235 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27236 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27237 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27238 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27239 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27240 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27241 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27242 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27243 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27244 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27245 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27246 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27247 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27248 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27249 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27250 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27251 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27252 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27253 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27254 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27255 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27256 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27257 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27258 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27259 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27260 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27261 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27262 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27263 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27264 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27265 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27266 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27267 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27268 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27269 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27270 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27271 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27272 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27273 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27274 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27275 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27276 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27277 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27278 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27279 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27280 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27281 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27282 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27283 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27284 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27285 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27286 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27287 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27288 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27289 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27290 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27291 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27292 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27293 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27294 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27295 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27296 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27297 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27298 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27299 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27300 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27301 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27302 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27303 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27304 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27305 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27306 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27307 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27308 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27309 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27310 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27311 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27312 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27313 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27314 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27315 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27316 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27317 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27318 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27319 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27320 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27321 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27322 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27323 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27324 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27325 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27326 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27327 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27328 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27329 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27330 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27331 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27332 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27333 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27334 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27335 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27336 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27337 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27338 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27339 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27340 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27343 LTCFLAGS='$LTCFLAGS'
27344 compiler='$compiler_DEFAULT'
27346 # A function that is used when there is no print builtin or printf.
27347 func_fallback_echo ()
27349 eval 'cat <<_LTECHO_EOF
27354 # Quote evaled strings.
27371 deplibs_check_method \
27375 sharedlib_from_linklib_cmd \
27378 archiver_list_spec \
27384 lt_cv_sys_global_symbol_pipe \
27385 lt_cv_sys_global_symbol_to_cdecl \
27386 lt_cv_sys_global_symbol_to_c_name_address \
27387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27388 nm_file_list_spec \
27389 lt_prog_compiler_no_builtin_flag \
27390 lt_prog_compiler_pic \
27391 lt_prog_compiler_wl \
27392 lt_prog_compiler_static \
27393 lt_cv_prog_compiler_c_o \
27402 export_dynamic_flag_spec \
27403 whole_archive_flag_spec \
27404 compiler_needs_object \
27406 allow_undefined_flag \
27407 no_undefined_flag \
27408 hardcode_libdir_flag_spec \
27409 hardcode_libdir_separator \
27413 variables_saved_for_relink \
27415 library_names_spec \
27417 install_override_mode \
27421 compiler_lib_search_dirs \
27426 compiler_lib_search_path \
27433 lt_prog_compiler_no_builtin_flag_CXX \
27434 lt_prog_compiler_no_builtin_flag_RC \
27435 lt_prog_compiler_pic_CXX \
27436 lt_prog_compiler_pic_RC \
27437 lt_prog_compiler_wl_CXX \
27438 lt_prog_compiler_wl_RC \
27439 lt_prog_compiler_static_CXX \
27440 lt_prog_compiler_static_RC \
27441 lt_cv_prog_compiler_c_o_CXX \
27442 lt_cv_prog_compiler_c_o_RC \
27443 export_dynamic_flag_spec_CXX \
27444 export_dynamic_flag_spec_RC \
27445 whole_archive_flag_spec_CXX \
27446 whole_archive_flag_spec_RC \
27447 compiler_needs_object_CXX \
27448 compiler_needs_object_RC \
27451 allow_undefined_flag_CXX \
27452 allow_undefined_flag_RC \
27453 no_undefined_flag_CXX \
27454 no_undefined_flag_RC \
27455 hardcode_libdir_flag_spec_CXX \
27456 hardcode_libdir_flag_spec_RC \
27457 hardcode_libdir_separator_CXX \
27458 hardcode_libdir_separator_RC \
27459 exclude_expsyms_CXX \
27460 exclude_expsyms_RC \
27461 include_expsyms_CXX \
27462 include_expsyms_RC \
27463 file_list_spec_CXX \
27464 file_list_spec_RC \
27465 compiler_lib_search_dirs_CXX \
27466 compiler_lib_search_dirs_RC \
27467 predep_objects_CXX \
27468 predep_objects_RC \
27469 postdep_objects_CXX \
27470 postdep_objects_RC \
27475 compiler_lib_search_path_CXX \
27476 compiler_lib_search_path_RC; do
27477 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27478 *[\\\\\\\`\\"\\\$]*)
27479 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27482 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27487 # Double-quote double-evaled strings.
27488 for var in reload_cmds \
27489 old_postinstall_cmds \
27490 old_postuninstall_cmds \
27492 extract_expsyms_cmds \
27493 old_archive_from_new_cmds \
27494 old_archive_from_expsyms_cmds \
27496 archive_expsym_cmds \
27498 module_expsym_cmds \
27499 export_symbols_cmds \
27503 postuninstall_cmds \
27505 sys_lib_search_path_spec \
27506 sys_lib_dlsearch_path_spec \
27509 old_archive_cmds_CXX \
27510 old_archive_cmds_RC \
27511 old_archive_from_new_cmds_CXX \
27512 old_archive_from_new_cmds_RC \
27513 old_archive_from_expsyms_cmds_CXX \
27514 old_archive_from_expsyms_cmds_RC \
27517 archive_expsym_cmds_CXX \
27518 archive_expsym_cmds_RC \
27521 module_expsym_cmds_CXX \
27522 module_expsym_cmds_RC \
27523 export_symbols_cmds_CXX \
27524 export_symbols_cmds_RC \
27527 postlink_cmds_CXX \
27528 postlink_cmds_RC; do
27529 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27530 *[\\\\\\\`\\"\\\$]*)
27531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27539 ac_aux_dir='$ac_aux_dir'
27540 xsi_shell='$xsi_shell'
27541 lt_shell_append='$lt_shell_append'
27543 # See if we are running on zsh, and set the options which allow our
27544 # commands through without removal of \ escapes INIT.
27545 if test -n "\${ZSH_VERSION+set}" ; then
27546 setopt NO_GLOB_SUBST
27552 TIMESTAMP='$TIMESTAMP'
27565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27567 # Handling of arguments.
27568 for ac_config_target in $ac_config_targets
27570 case $ac_config_target in
27571 "conf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS conf/config.h" ;;
27572 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27573 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27574 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27575 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27576 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27577 "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
27578 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
27579 "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
27580 "tests/json/Makefile") CONFIG_FILES="$CONFIG_FILES tests/json/Makefile" ;;
27581 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27582 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
27583 "src/gpgme.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme.pc" ;;
27584 "src/gpgme-glib.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme-glib.pc" ;;
27585 "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
27586 "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
27587 "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
27588 "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
27589 "lang/cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/tests/Makefile" ;;
27590 "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
27591 "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
27592 "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
27593 "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
27594 "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
27595 "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
27596 "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
27597 "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
27598 "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
27599 "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
27600 "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
27601 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
27602 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
27603 "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
27604 "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
27605 "lang/js/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/Makefile" ;;
27606 "lang/js/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/src/Makefile" ;;
27607 "lang/js/BrowserTestExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/BrowserTestExtension/Makefile" ;;
27608 "lang/js/DemoExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/DemoExtension/Makefile" ;;
27609 "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
27610 "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
27611 "lang/python/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/version.py" ;;
27612 "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
27613 "lang/python/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/src/Makefile" ;;
27614 "lang/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/examples/Makefile" ;;
27615 "lang/python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/doc/Makefile" ;;
27616 "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
27618 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27623 # If the user did not use the arguments to specify the items to instantiate,
27624 # then the envvar interface is used. Set only those that are not.
27625 # We use the long form for the default assignment because of an extremely
27626 # bizarre bug on SunOS 4.1.3.
27627 if $ac_need_defaults; then
27628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27629 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27633 # Have a temporary directory for convenience. Make it in the build tree
27634 # simply because there is no reason against having it here, and in addition,
27635 # creating and moving files from /tmp can sometimes cause problems.
27636 # Hook for its removal unless debugging.
27637 # Note that there is a small window in which the directory will not be cleaned:
27638 # after its creation but before its name has been assigned to `$tmp'.
27642 trap 'exit_status=$?
27643 : "${ac_tmp:=$tmp}"
27644 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27646 trap 'as_fn_exit 1' 1 2 13 15
27648 # Create a (secure) tmp directory for tmp files.
27651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27655 tmp=./conf$$-$RANDOM
27656 (umask 077 && mkdir "$tmp")
27657 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27660 # Set up the scripts for CONFIG_FILES section.
27661 # No need to generate them if there are no CONFIG_FILES.
27662 # This happens for instance with `./config.status config.h'.
27663 if test -n "$CONFIG_FILES"; then
27666 ac_cr=`echo X | tr X '\015'`
27667 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27668 # But we know of no other shell where ac_cr would be empty at this
27669 # point, so we can use a bashism as a fallback.
27670 if test "x$ac_cr" = x; then
27671 eval ac_cr=\$\'\\r\'
27673 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27674 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27677 ac_cs_awk_cr=$ac_cr
27680 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27685 echo "cat >conf$$subs.awk <<_ACEOF" &&
27686 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27688 } >conf$$subs.sh ||
27689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27690 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27692 for ac_last_try in false false false false false :; do
27693 . ./conf$$subs.sh ||
27694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27696 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27697 if test $ac_delim_n = $ac_delim_num; then
27699 elif $ac_last_try; then
27700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27705 rm -f conf$$subs.sh
27707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27708 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27712 s/^/S["/; s/!.*/"]=/
27722 s/\(.\{148\}\)..*/\1/
27724 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27736 s/\(.\{148\}\)..*/\1/
27738 s/["\\]/\\&/g; s/^/"/; s/$/"/
27742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27747 ' <conf$$subs.awk | sed '
27752 ' >>$CONFIG_STATUS || ac_write_fail=1
27753 rm -f conf$$subs.awk
27754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27756 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27757 for (key in S) S_is_set[key] = 1
27763 nfields = split(line, field, "@")
27765 len = length(field[1])
27766 for (i = 2; i < nfields; i++) {
27768 keylen = length(key)
27769 if (S_is_set[key]) {
27771 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27772 len += length(value) + length(field[++i])
27783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27784 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27785 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27788 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27789 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27792 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27793 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27794 # trailing colons and then remove the whole line if VPATH becomes empty
27795 # (actually we leave an empty line to preserve line numbers).
27796 if test "x$srcdir" = x.; then
27797 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27816 fi # test -n "$CONFIG_FILES"
27818 # Set up the scripts for CONFIG_HEADERS section.
27819 # No need to generate them if there are no CONFIG_HEADERS.
27820 # This happens for instance with `./config.status Makefile'.
27821 if test -n "$CONFIG_HEADERS"; then
27822 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27826 # Transform confdefs.h into an awk script `defines.awk', embedded as
27827 # here-document in config.status, that substitutes the proper values into
27828 # config.h.in to produce config.h.
27830 # Create a delimiter string that does not exist in confdefs.h, to ease
27831 # handling of long lines.
27833 for ac_last_try in false false :; do
27834 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27835 if test -z "$ac_tt"; then
27837 elif $ac_last_try; then
27838 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27844 # For the awk script, D is an array of macro values keyed by name,
27845 # likewise P contains macro parameters if any. Preserve backslash
27846 # newline sequences.
27848 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27850 s/.\{148\}/&'"$ac_delim"'/g
27853 s/^[ ]*#[ ]*define[ ][ ]*/ /
27860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27866 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27867 D["\1"]=" \3\\\\\\n"\\/p
27869 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27874 s/.\{148\}/&'"$ac_delim"'/g
27879 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27882 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27884 ' <confdefs.h | sed '
27885 s/'"$ac_delim"'/"\\\
27886 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27889 for (key in D) D_is_set[key] = 1
27892 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27894 split(line, arg, " ")
27895 if (arg[1] == "#") {
27899 defundef = substr(arg[1], 2)
27902 split(mac1, mac2, "(") #)
27904 prefix = substr(line, 1, index(line, defundef) - 1)
27905 if (D_is_set[macro]) {
27906 # Preserve the white space surrounding the "#".
27907 print prefix "define", macro P[macro] D[macro]
27910 # Replace #undef with comments. This is necessary, for example,
27911 # in the case of _POSIX_SOURCE, which is predefined and required
27912 # on some systems where configure will not decide to define it.
27913 if (defundef == "undef") {
27914 print "/*", prefix defundef, macro, "*/"
27922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27923 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27924 fi # test -n "$CONFIG_HEADERS"
27927 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27932 :[FHLC]) ac_mode=$ac_tag; continue;;
27934 case $ac_mode$ac_tag in
27936 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27937 :[FH]-) ac_tag=-:-;;
27938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27955 -) ac_f="$ac_tmp/stdin";;
27956 *) # Look for the file first in the build tree, then in the source tree
27957 # (if the path is not absolute). The absolute path cannot be DOS-style,
27958 # because $ac_f cannot contain `:'.
27962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27964 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27967 as_fn_append ac_file_inputs " '$ac_f'"
27970 # Let's still pretend it is `configure' which instantiates (i.e., don't
27971 # use $as_me), people would be surprised to read:
27972 # /* config.h. Generated by config.status. */
27973 configure_input='Generated from '`
27974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27976 if test x"$ac_file" != x-; then
27977 configure_input="$ac_file. $configure_input"
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27979 $as_echo "$as_me: creating $ac_file" >&6;}
27981 # Neutralize special characters interpreted by sed in replacement strings.
27982 case $configure_input in #(
27983 *\&* | *\|* | *\\* )
27984 ac_sed_conf_input=`$as_echo "$configure_input" |
27985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27986 *) ac_sed_conf_input=$configure_input;;
27990 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27996 ac_dir=`$as_dirname -- "$ac_file" ||
27997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27998 X"$ac_file" : 'X\(//\)[^/]' \| \
27999 X"$ac_file" : 'X\(//\)$' \| \
28000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28001 $as_echo X"$ac_file" |
28002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28006 /^X\(\/\/\)[^/].*/{
28019 as_dir="$ac_dir"; as_fn_mkdir_p
28023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28026 # A ".." for each directory in $ac_dir_suffix.
28027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28028 case $ac_top_builddir_sub in
28029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28033 ac_abs_top_builddir=$ac_pwd
28034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28035 # for backward compatibility:
28036 ac_top_builddir=$ac_top_build_prefix
28039 .) # We are building in place.
28041 ac_top_srcdir=$ac_top_builddir_sub
28042 ac_abs_top_srcdir=$ac_pwd ;;
28043 [\\/]* | ?:[\\/]* ) # Absolute name.
28044 ac_srcdir=$srcdir$ac_dir_suffix;
28045 ac_top_srcdir=$srcdir
28046 ac_abs_top_srcdir=$srcdir ;;
28047 *) # Relative name.
28048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28049 ac_top_srcdir=$ac_top_build_prefix$srcdir
28050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28065 ac_MKDIR_P=$MKDIR_P
28067 [\\/$]* | ?:[\\/]* ) ;;
28068 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28073 # If the template does not know about datarootdir, expand it.
28074 # FIXME: This hack should be removed a few years after 2.60.
28075 ac_datarootdir_hack=; ac_datarootdir_seen=
28086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28087 *datarootdir*) ac_datarootdir_seen=yes;;
28088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28093 ac_datarootdir_hack='
28094 s&@datadir@&$datadir&g
28095 s&@docdir@&$docdir&g
28096 s&@infodir@&$infodir&g
28097 s&@localedir@&$localedir&g
28098 s&@mandir@&$mandir&g
28099 s&\\\${datarootdir}&$datarootdir&g' ;;
28103 # Neutralize VPATH when `$srcdir' = `.'.
28104 # Shell code in configure.ac might set extrasub.
28105 # FIXME: do we really want to maintain this feature?
28106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28107 ac_sed_extra="$ac_vpsub
28110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28113 s|@configure_input@|$ac_sed_conf_input|;t t
28114 s&@top_builddir@&$ac_top_builddir_sub&;t t
28115 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28116 s&@srcdir@&$ac_srcdir&;t t
28117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28118 s&@top_srcdir@&$ac_top_srcdir&;t t
28119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28120 s&@builddir@&$ac_builddir&;t t
28121 s&@abs_builddir@&$ac_abs_builddir&;t t
28122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28123 s&@INSTALL@&$ac_INSTALL&;t t
28124 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28125 $ac_datarootdir_hack
28127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28128 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28131 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28133 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28135 which seems to be undefined. Please make sure it is defined" >&5
28136 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28137 which seems to be undefined. Please make sure it is defined" >&2;}
28139 rm -f "$ac_tmp/stdin"
28141 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28142 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28150 if test x"$ac_file" != x-; then
28152 $as_echo "/* $configure_input */" \
28153 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28154 } >"$ac_tmp/config.h" \
28155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28156 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28158 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28161 mv "$ac_tmp/config.h" "$ac_file" \
28162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28165 $as_echo "/* $configure_input */" \
28166 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28167 || as_fn_error $? "could not create -" "$LINENO" 5
28169 # Compute "$ac_file"'s index in $config_headers.
28172 for _am_header in $config_headers :; do
28173 case $_am_header in
28174 $_am_arg | $_am_arg:* )
28177 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28180 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28181 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28182 X"$_am_arg" : 'X\(//\)[^/]' \| \
28183 X"$_am_arg" : 'X\(//\)$' \| \
28184 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28185 $as_echo X"$_am_arg" |
28186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28190 /^X\(\/\/\)[^/].*/{
28202 s/.*/./; q'`/stamp-h$_am_stamp_count
28205 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28206 $as_echo "$as_me: executing $ac_file commands" >&6;}
28211 case $ac_file$ac_mode in
28212 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28213 # Older Autoconf quotes --file arguments for eval, but not when files
28214 # are listed without --file. Let's play safe and only enable the eval
28215 # if we detect the quoting.
28216 # TODO: see whether this extra hack can be removed once we start
28217 # requiring Autoconf 2.70 or later.
28218 case $CONFIG_FILES in #(
28220 eval set x "$CONFIG_FILES" ;; #(
28222 set x $CONFIG_FILES ;; #(
28227 # Used to flag and report bootstrapping failures.
28231 # Strip MF so we end up with the name of the file.
28232 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28233 # Check whether this is an Automake generated Makefile which includes
28234 # dependency-tracking related rules and includes.
28235 # Grep'ing the whole file directly is not great: AIX grep has a line
28236 # limit of 2048, but all sed's we know have understand at least 4000.
28237 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28239 am_dirpart=`$as_dirname -- "$am_mf" ||
28240 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28241 X"$am_mf" : 'X\(//\)[^/]' \| \
28242 X"$am_mf" : 'X\(//\)$' \| \
28243 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28244 $as_echo X"$am_mf" |
28245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28249 /^X\(\/\/\)[^/].*/{
28262 am_filepart=`$as_basename -- "$am_mf" ||
28263 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28264 X"$am_mf" : 'X\(//\)$' \| \
28265 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28266 $as_echo X/"$am_mf" |
28267 sed '/^.*\/\([^/][^/]*\)\/*$/{
28280 { echo "$as_me:$LINENO: cd "$am_dirpart" \
28281 && sed -e '/# am--include-marker/d' "$am_filepart" \
28282 | $MAKE -f - am--depfiles" >&5
28283 (cd "$am_dirpart" \
28284 && sed -e '/# am--include-marker/d' "$am_filepart" \
28285 | $MAKE -f - am--depfiles) >&5 2>&5
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); } || am_rc=$?
28290 if test $am_rc -ne 0; then
28291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28293 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28294 for automatic dependency tracking. Try re-running configure with the
28295 '--disable-dependency-tracking' option to at least be able to build
28296 the package (albeit without support for automatic dependency tracking).
28297 See \`config.log' for more details" "$LINENO" 5; }
28299 { am_dirpart=; unset am_dirpart;}
28300 { am_filepart=; unset am_filepart;}
28301 { am_mf=; unset am_mf;}
28302 { am_rc=; unset am_rc;}
28303 rm -f conftest-deps.mk
28308 # See if we are running on zsh, and set the options which allow our
28309 # commands through without removal of \ escapes.
28310 if test -n "${ZSH_VERSION+set}" ; then
28311 setopt NO_GLOB_SUBST
28314 cfgfile="${ofile}T"
28315 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28318 cat <<_LT_EOF >> "$cfgfile"
28321 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28322 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28324 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28326 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28327 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28329 # Written by Gordon Matzigkeit, 1996
28331 # This file is part of GNU Libtool.
28333 # GNU Libtool is free software; you can redistribute it and/or
28334 # modify it under the terms of the GNU General Public License as
28335 # published by the Free Software Foundation; either version 2 of
28336 # the License, or (at your option) any later version.
28338 # As a special exception to the GNU General Public License,
28339 # if you distribute this file as part of a program or library that
28340 # is built using GNU Libtool, you may include this file under the
28341 # same distribution terms that you use for the rest of that program.
28343 # GNU Libtool is distributed in the hope that it will be useful,
28344 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28345 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28346 # GNU General Public License for more details.
28348 # You should have received a copy of the GNU General Public License
28349 # along with GNU Libtool; see the file COPYING. If not, a copy
28350 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
28351 # obtained by writing to the Free Software Foundation, Inc.,
28352 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28355 # The names of the tagged configurations supported by this script.
28356 available_tags="CXX RC "
28358 # ### BEGIN LIBTOOL CONFIG
28360 # Which release of libtool.m4 was used?
28361 macro_version=$macro_version
28362 macro_revision=$macro_revision
28364 # Assembler program.
28367 # DLL creation program.
28368 DLLTOOL=$lt_DLLTOOL
28370 # Object dumper program.
28371 OBJDUMP=$lt_OBJDUMP
28373 # Whether or not to build static libraries.
28374 build_old_libs=$enable_static
28376 # Whether or not to build shared libraries.
28377 build_libtool_libs=$enable_shared
28379 # What type of objects to build.
28382 # Whether or not to optimize for fast installation.
28383 fast_install=$enable_fast_install
28385 # Shell to use when invoking shell scripts.
28388 # An echo program that protects backslashes.
28391 # The PATH separator for the build system.
28392 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28395 host_alias=$host_alias
28399 # The build system.
28400 build_alias=$build_alias
28404 # A sed program that does not truncate output.
28407 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28408 Xsed="\$SED -e 1s/^X//"
28410 # A grep program that handles long lines.
28416 # A literal string matcher.
28419 # A BSD- or MS-compatible name lister.
28422 # Whether we need soft or hard links.
28425 # What is the maximum length of a command?
28426 max_cmd_len=$max_cmd_len
28428 # Object file suffix (normally "o").
28431 # Executable file suffix (normally "").
28434 # whether the shell understands "unset".
28437 # turn spaces into newlines.
28440 # turn newlines into spaces.
28443 # convert \$build file names to \$host format.
28444 to_host_file_cmd=$lt_cv_to_host_file_cmd
28446 # convert \$build files to toolchain format.
28447 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28449 # Method to check whether dependent libraries are shared objects.
28450 deplibs_check_method=$lt_deplibs_check_method
28452 # Command to use when deplibs_check_method = "file_magic".
28453 file_magic_cmd=$lt_file_magic_cmd
28455 # How to find potential files when deplibs_check_method = "file_magic".
28456 file_magic_glob=$lt_file_magic_glob
28458 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28459 want_nocaseglob=$lt_want_nocaseglob
28461 # Command to associate shared and link libraries.
28462 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28467 # Flags to create an archive.
28468 AR_FLAGS=$lt_AR_FLAGS
28470 # How to feed a file listing to the archiver.
28471 archiver_list_spec=$lt_archiver_list_spec
28473 # A symbol stripping program.
28476 # Commands used to install an old-style archive.
28478 old_postinstall_cmds=$lt_old_postinstall_cmds
28479 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28481 # Whether to use a lock for old archive extraction.
28482 lock_old_archive_extraction=$lock_old_archive_extraction
28487 # LTCC compiler flags.
28488 LTCFLAGS=$lt_CFLAGS
28490 # Take the output of nm and produce a listing of raw symbols and C names.
28491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28493 # Transform the output of nm in a proper C declaration.
28494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28496 # Transform the output of nm in a C name address pair.
28497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28499 # Transform the output of nm in a C name address pair when lib prefix is needed.
28500 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28502 # Specify filename containing input files for \$NM.
28503 nm_file_list_spec=$lt_nm_file_list_spec
28505 # The root where to search for dependent libraries,and in which our libraries should be installed.
28506 lt_sysroot=$lt_sysroot
28508 # The name of the directory that contains temporary libtool files.
28511 # Used to examine libraries when file_magic_cmd begins with "file".
28512 MAGIC_CMD=$MAGIC_CMD
28514 # Must we lock files when doing compilation?
28515 need_locks=$lt_need_locks
28518 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28520 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28521 DSYMUTIL=$lt_DSYMUTIL
28523 # Tool to change global to local symbols on Mac OS X.
28526 # Tool to manipulate fat objects and archives on Mac OS X.
28529 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28532 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28533 OTOOL64=$lt_OTOOL64
28535 # Old archive suffix (normally "a").
28538 # Shared library suffix (normally ".so").
28539 shrext_cmds=$lt_shrext_cmds
28541 # The commands to extract the exported symbol list from a shared archive.
28542 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28544 # Variables whose values should be saved in libtool wrapper scripts and
28545 # restored at link time.
28546 variables_saved_for_relink=$lt_variables_saved_for_relink
28548 # Do we need the "lib" prefix for modules?
28549 need_lib_prefix=$need_lib_prefix
28551 # Do we need a version for libraries?
28552 need_version=$need_version
28554 # Library versioning type.
28555 version_type=$version_type
28557 # Shared library runtime path variable.
28558 runpath_var=$runpath_var
28560 # Shared library path variable.
28561 shlibpath_var=$shlibpath_var
28563 # Is shlibpath searched before the hard-coded library search path?
28564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28566 # Format of library name prefix.
28567 libname_spec=$lt_libname_spec
28569 # List of archive names. First name is the real one, the rest are links.
28570 # The last name is the one that the linker finds with -lNAME
28571 library_names_spec=$lt_library_names_spec
28573 # The coded name of the library, if different from the real name.
28574 soname_spec=$lt_soname_spec
28576 # Permission mode override for installation of shared libraries.
28577 install_override_mode=$lt_install_override_mode
28579 # Command to use after installation of a shared archive.
28580 postinstall_cmds=$lt_postinstall_cmds
28582 # Command to use after uninstallation of a shared archive.
28583 postuninstall_cmds=$lt_postuninstall_cmds
28585 # Commands used to finish a libtool library installation in a directory.
28586 finish_cmds=$lt_finish_cmds
28588 # As "finish_cmds", except a single script fragment to be evaled but
28590 finish_eval=$lt_finish_eval
28592 # Whether we should hardcode library paths into libraries.
28593 hardcode_into_libs=$hardcode_into_libs
28595 # Compile-time system search path for libraries.
28596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28598 # Run-time system search path for libraries.
28599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28601 # Whether dlopen is supported.
28602 dlopen_support=$enable_dlopen
28604 # Whether dlopen of programs is supported.
28605 dlopen_self=$enable_dlopen_self
28607 # Whether dlopen of statically linked programs is supported.
28608 dlopen_self_static=$enable_dlopen_self_static
28610 # Commands to strip libraries.
28611 old_striplib=$lt_old_striplib
28612 striplib=$lt_striplib
28615 # The linker used to build libraries.
28618 # How to create reloadable object files.
28619 reload_flag=$lt_reload_flag
28620 reload_cmds=$lt_reload_cmds
28622 # Commands used to build an old-style archive.
28623 old_archive_cmds=$lt_old_archive_cmds
28625 # A language specific compiler.
28628 # Is the compiler the GNU compiler?
28631 # Compiler flag to turn off builtin functions.
28632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28634 # Additional compiler flags for building library objects.
28635 pic_flag=$lt_lt_prog_compiler_pic
28637 # How to pass a linker flag through the compiler.
28638 wl=$lt_lt_prog_compiler_wl
28640 # Compiler flag to prevent dynamic linking.
28641 link_static_flag=$lt_lt_prog_compiler_static
28643 # Does compiler simultaneously support -c and -o options?
28644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28646 # Whether or not to add -lc for building shared libraries.
28647 build_libtool_need_lc=$archive_cmds_need_lc
28649 # Whether or not to disallow shared libs when runtime libs are static.
28650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28652 # Compiler flag to allow reflexive dlopens.
28653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28655 # Compiler flag to generate shared objects directly from archives.
28656 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28658 # Whether the compiler copes with passing no objects directly.
28659 compiler_needs_object=$lt_compiler_needs_object
28661 # Create an old-style archive from a shared archive.
28662 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28664 # Create a temporary old-style archive to link instead of a shared archive.
28665 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28667 # Commands used to build a shared archive.
28668 archive_cmds=$lt_archive_cmds
28669 archive_expsym_cmds=$lt_archive_expsym_cmds
28671 # Commands used to build a loadable module if different from building
28672 # a shared archive.
28673 module_cmds=$lt_module_cmds
28674 module_expsym_cmds=$lt_module_expsym_cmds
28676 # Whether we are building with GNU ld or not.
28677 with_gnu_ld=$lt_with_gnu_ld
28679 # Flag that allows shared libraries with undefined symbols to be built.
28680 allow_undefined_flag=$lt_allow_undefined_flag
28682 # Flag that enforces no undefined symbols.
28683 no_undefined_flag=$lt_no_undefined_flag
28685 # Flag to hardcode \$libdir into a binary during linking.
28686 # This must work even if \$libdir does not exist
28687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28689 # Whether we need a single "-rpath" flag with a separated argument.
28690 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28693 # DIR into the resulting binary.
28694 hardcode_direct=$hardcode_direct
28696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28697 # DIR into the resulting binary and the resulting library dependency is
28698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28699 # library is relocated.
28700 hardcode_direct_absolute=$hardcode_direct_absolute
28702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28703 # into the resulting binary.
28704 hardcode_minus_L=$hardcode_minus_L
28706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28707 # into the resulting binary.
28708 hardcode_shlibpath_var=$hardcode_shlibpath_var
28710 # Set to "yes" if building a shared library automatically hardcodes DIR
28711 # into the library and all subsequent libraries and executables linked
28713 hardcode_automatic=$hardcode_automatic
28715 # Set to yes if linker adds runtime paths of dependent libraries
28716 # to runtime path list.
28717 inherit_rpath=$inherit_rpath
28719 # Whether libtool must link a program against all its dependency libraries.
28720 link_all_deplibs=$link_all_deplibs
28722 # Set to "yes" if exported symbols are required.
28723 always_export_symbols=$always_export_symbols
28725 # The commands to list exported symbols.
28726 export_symbols_cmds=$lt_export_symbols_cmds
28728 # Symbols that should not be listed in the preloaded symbols.
28729 exclude_expsyms=$lt_exclude_expsyms
28731 # Symbols that must always be exported.
28732 include_expsyms=$lt_include_expsyms
28734 # Commands necessary for linking programs (against libraries) with templates.
28735 prelink_cmds=$lt_prelink_cmds
28737 # Commands necessary for finishing linking programs.
28738 postlink_cmds=$lt_postlink_cmds
28740 # Specify filename containing input files.
28741 file_list_spec=$lt_file_list_spec
28743 # How to hardcode a shared library path into an executable.
28744 hardcode_action=$hardcode_action
28746 # The directories searched by this compiler when creating a shared library.
28747 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28749 # Dependencies to place before and after the objects being linked to
28750 # create a shared library.
28751 predep_objects=$lt_predep_objects
28752 postdep_objects=$lt_postdep_objects
28753 predeps=$lt_predeps
28754 postdeps=$lt_postdeps
28756 # The library search path used internally by the compiler when linking
28757 # a shared library.
28758 compiler_lib_search_path=$lt_compiler_lib_search_path
28760 # ### END LIBTOOL CONFIG
28766 cat <<\_LT_EOF >> "$cfgfile"
28767 # AIX sometimes has problems with the GCC collect2 program. For some
28768 # reason, if we set the COLLECT_NAMES environment variable, the problems
28769 # vanish in a puff of smoke.
28770 if test "X${COLLECT_NAMES+set}" != Xset; then
28772 export COLLECT_NAMES
28779 ltmain="$ac_aux_dir/ltmain.sh"
28782 # We use sed instead of cat because bash on DJGPP gets confused if
28783 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28784 # text mode, it properly converts lines to CR/LF. This bash problem
28785 # is reportedly fixed, but why not run on old versions too?
28786 sed '$q' "$ltmain" >> "$cfgfile" \
28787 || (rm -f "$cfgfile"; exit 1)
28789 if test x"$xsi_shell" = xyes; then
28790 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28794 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28795 \ * ) func_dirname_result="${3}" ;;\
28797 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28798 && mv -f "$cfgfile.tmp" "$cfgfile" \
28799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28800 test 0 -eq $? || _lt_function_replace_fail=:
28803 sed -e '/^func_basename ()$/,/^} # func_basename /c\
28806 \ func_basename_result="${1##*/}"\
28807 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28808 && mv -f "$cfgfile.tmp" "$cfgfile" \
28809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28810 test 0 -eq $? || _lt_function_replace_fail=:
28813 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28814 func_dirname_and_basename ()\
28817 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28818 \ * ) func_dirname_result="${3}" ;;\
28820 \ func_basename_result="${1##*/}"\
28821 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28822 && mv -f "$cfgfile.tmp" "$cfgfile" \
28823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28824 test 0 -eq $? || _lt_function_replace_fail=:
28827 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28830 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28831 \ # positional parameters, so assign one to ordinary parameter first.\
28832 \ func_stripname_result=${3}\
28833 \ func_stripname_result=${func_stripname_result#"${1}"}\
28834 \ func_stripname_result=${func_stripname_result%"${2}"}\
28835 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28836 && mv -f "$cfgfile.tmp" "$cfgfile" \
28837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28838 test 0 -eq $? || _lt_function_replace_fail=:
28841 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28842 func_split_long_opt ()\
28844 \ func_split_long_opt_name=${1%%=*}\
28845 \ func_split_long_opt_arg=${1#*=}\
28846 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28847 && mv -f "$cfgfile.tmp" "$cfgfile" \
28848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28849 test 0 -eq $? || _lt_function_replace_fail=:
28852 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28853 func_split_short_opt ()\
28855 \ func_split_short_opt_arg=${1#??}\
28856 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28857 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28858 && mv -f "$cfgfile.tmp" "$cfgfile" \
28859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28860 test 0 -eq $? || _lt_function_replace_fail=:
28863 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28867 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28868 \ *) func_lo2o_result=${1} ;;\
28870 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28871 && mv -f "$cfgfile.tmp" "$cfgfile" \
28872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28873 test 0 -eq $? || _lt_function_replace_fail=:
28876 sed -e '/^func_xform ()$/,/^} # func_xform /c\
28879 func_xform_result=${1%.*}.lo\
28880 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28881 && mv -f "$cfgfile.tmp" "$cfgfile" \
28882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28883 test 0 -eq $? || _lt_function_replace_fail=:
28886 sed -e '/^func_arith ()$/,/^} # func_arith /c\
28889 func_arith_result=$(( $* ))\
28890 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28891 && mv -f "$cfgfile.tmp" "$cfgfile" \
28892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28893 test 0 -eq $? || _lt_function_replace_fail=:
28896 sed -e '/^func_len ()$/,/^} # func_len /c\
28899 func_len_result=${#1}\
28900 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28901 && mv -f "$cfgfile.tmp" "$cfgfile" \
28902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28903 test 0 -eq $? || _lt_function_replace_fail=:
28907 if test x"$lt_shell_append" = xyes; then
28908 sed -e '/^func_append ()$/,/^} # func_append /c\
28911 eval "${1}+=\\${2}"\
28912 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28913 && mv -f "$cfgfile.tmp" "$cfgfile" \
28914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28915 test 0 -eq $? || _lt_function_replace_fail=:
28918 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28919 func_append_quoted ()\
28921 \ func_quote_for_eval "${2}"\
28922 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28923 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28924 && mv -f "$cfgfile.tmp" "$cfgfile" \
28925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28926 test 0 -eq $? || _lt_function_replace_fail=:
28929 # Save a `func_append' function call where possible by direct use of '+='
28930 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28931 && mv -f "$cfgfile.tmp" "$cfgfile" \
28932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28933 test 0 -eq $? || _lt_function_replace_fail=:
28935 # Save a `func_append' function call even when '+=' is not available
28936 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28937 && mv -f "$cfgfile.tmp" "$cfgfile" \
28938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28939 test 0 -eq $? || _lt_function_replace_fail=:
28942 if test x"$_lt_function_replace_fail" = x":"; then
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28944 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28948 mv -f "$cfgfile" "$ofile" ||
28949 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28953 cat <<_LT_EOF >> "$ofile"
28955 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28957 # The linker used to build libraries.
28960 # How to create reloadable object files.
28961 reload_flag=$lt_reload_flag_CXX
28962 reload_cmds=$lt_reload_cmds_CXX
28964 # Commands used to build an old-style archive.
28965 old_archive_cmds=$lt_old_archive_cmds_CXX
28967 # A language specific compiler.
28968 CC=$lt_compiler_CXX
28970 # Is the compiler the GNU compiler?
28973 # Compiler flag to turn off builtin functions.
28974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28976 # Additional compiler flags for building library objects.
28977 pic_flag=$lt_lt_prog_compiler_pic_CXX
28979 # How to pass a linker flag through the compiler.
28980 wl=$lt_lt_prog_compiler_wl_CXX
28982 # Compiler flag to prevent dynamic linking.
28983 link_static_flag=$lt_lt_prog_compiler_static_CXX
28985 # Does compiler simultaneously support -c and -o options?
28986 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28988 # Whether or not to add -lc for building shared libraries.
28989 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28991 # Whether or not to disallow shared libs when runtime libs are static.
28992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28994 # Compiler flag to allow reflexive dlopens.
28995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28997 # Compiler flag to generate shared objects directly from archives.
28998 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29000 # Whether the compiler copes with passing no objects directly.
29001 compiler_needs_object=$lt_compiler_needs_object_CXX
29003 # Create an old-style archive from a shared archive.
29004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29006 # Create a temporary old-style archive to link instead of a shared archive.
29007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29009 # Commands used to build a shared archive.
29010 archive_cmds=$lt_archive_cmds_CXX
29011 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29013 # Commands used to build a loadable module if different from building
29014 # a shared archive.
29015 module_cmds=$lt_module_cmds_CXX
29016 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29018 # Whether we are building with GNU ld or not.
29019 with_gnu_ld=$lt_with_gnu_ld_CXX
29021 # Flag that allows shared libraries with undefined symbols to be built.
29022 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29024 # Flag that enforces no undefined symbols.
29025 no_undefined_flag=$lt_no_undefined_flag_CXX
29027 # Flag to hardcode \$libdir into a binary during linking.
29028 # This must work even if \$libdir does not exist
29029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29031 # Whether we need a single "-rpath" flag with a separated argument.
29032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29035 # DIR into the resulting binary.
29036 hardcode_direct=$hardcode_direct_CXX
29038 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29039 # DIR into the resulting binary and the resulting library dependency is
29040 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29041 # library is relocated.
29042 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29044 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29045 # into the resulting binary.
29046 hardcode_minus_L=$hardcode_minus_L_CXX
29048 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29049 # into the resulting binary.
29050 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29052 # Set to "yes" if building a shared library automatically hardcodes DIR
29053 # into the library and all subsequent libraries and executables linked
29055 hardcode_automatic=$hardcode_automatic_CXX
29057 # Set to yes if linker adds runtime paths of dependent libraries
29058 # to runtime path list.
29059 inherit_rpath=$inherit_rpath_CXX
29061 # Whether libtool must link a program against all its dependency libraries.
29062 link_all_deplibs=$link_all_deplibs_CXX
29064 # Set to "yes" if exported symbols are required.
29065 always_export_symbols=$always_export_symbols_CXX
29067 # The commands to list exported symbols.
29068 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29070 # Symbols that should not be listed in the preloaded symbols.
29071 exclude_expsyms=$lt_exclude_expsyms_CXX
29073 # Symbols that must always be exported.
29074 include_expsyms=$lt_include_expsyms_CXX
29076 # Commands necessary for linking programs (against libraries) with templates.
29077 prelink_cmds=$lt_prelink_cmds_CXX
29079 # Commands necessary for finishing linking programs.
29080 postlink_cmds=$lt_postlink_cmds_CXX
29082 # Specify filename containing input files.
29083 file_list_spec=$lt_file_list_spec_CXX
29085 # How to hardcode a shared library path into an executable.
29086 hardcode_action=$hardcode_action_CXX
29088 # The directories searched by this compiler when creating a shared library.
29089 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29091 # Dependencies to place before and after the objects being linked to
29092 # create a shared library.
29093 predep_objects=$lt_predep_objects_CXX
29094 postdep_objects=$lt_postdep_objects_CXX
29095 predeps=$lt_predeps_CXX
29096 postdeps=$lt_postdeps_CXX
29098 # The library search path used internally by the compiler when linking
29099 # a shared library.
29100 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29102 # ### END LIBTOOL TAG CONFIG: CXX
29106 cat <<_LT_EOF >> "$ofile"
29108 # ### BEGIN LIBTOOL TAG CONFIG: RC
29110 # The linker used to build libraries.
29113 # How to create reloadable object files.
29114 reload_flag=$lt_reload_flag_RC
29115 reload_cmds=$lt_reload_cmds_RC
29117 # Commands used to build an old-style archive.
29118 old_archive_cmds=$lt_old_archive_cmds_RC
29120 # A language specific compiler.
29123 # Is the compiler the GNU compiler?
29126 # Compiler flag to turn off builtin functions.
29127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29129 # Additional compiler flags for building library objects.
29130 pic_flag=$lt_lt_prog_compiler_pic_RC
29132 # How to pass a linker flag through the compiler.
29133 wl=$lt_lt_prog_compiler_wl_RC
29135 # Compiler flag to prevent dynamic linking.
29136 link_static_flag=$lt_lt_prog_compiler_static_RC
29138 # Does compiler simultaneously support -c and -o options?
29139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29141 # Whether or not to add -lc for building shared libraries.
29142 build_libtool_need_lc=$archive_cmds_need_lc_RC
29144 # Whether or not to disallow shared libs when runtime libs are static.
29145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29147 # Compiler flag to allow reflexive dlopens.
29148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29150 # Compiler flag to generate shared objects directly from archives.
29151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29153 # Whether the compiler copes with passing no objects directly.
29154 compiler_needs_object=$lt_compiler_needs_object_RC
29156 # Create an old-style archive from a shared archive.
29157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29159 # Create a temporary old-style archive to link instead of a shared archive.
29160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29162 # Commands used to build a shared archive.
29163 archive_cmds=$lt_archive_cmds_RC
29164 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29166 # Commands used to build a loadable module if different from building
29167 # a shared archive.
29168 module_cmds=$lt_module_cmds_RC
29169 module_expsym_cmds=$lt_module_expsym_cmds_RC
29171 # Whether we are building with GNU ld or not.
29172 with_gnu_ld=$lt_with_gnu_ld_RC
29174 # Flag that allows shared libraries with undefined symbols to be built.
29175 allow_undefined_flag=$lt_allow_undefined_flag_RC
29177 # Flag that enforces no undefined symbols.
29178 no_undefined_flag=$lt_no_undefined_flag_RC
29180 # Flag to hardcode \$libdir into a binary during linking.
29181 # This must work even if \$libdir does not exist
29182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29184 # Whether we need a single "-rpath" flag with a separated argument.
29185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29188 # DIR into the resulting binary.
29189 hardcode_direct=$hardcode_direct_RC
29191 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29192 # DIR into the resulting binary and the resulting library dependency is
29193 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29194 # library is relocated.
29195 hardcode_direct_absolute=$hardcode_direct_absolute_RC
29197 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29198 # into the resulting binary.
29199 hardcode_minus_L=$hardcode_minus_L_RC
29201 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29202 # into the resulting binary.
29203 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29205 # Set to "yes" if building a shared library automatically hardcodes DIR
29206 # into the library and all subsequent libraries and executables linked
29208 hardcode_automatic=$hardcode_automatic_RC
29210 # Set to yes if linker adds runtime paths of dependent libraries
29211 # to runtime path list.
29212 inherit_rpath=$inherit_rpath_RC
29214 # Whether libtool must link a program against all its dependency libraries.
29215 link_all_deplibs=$link_all_deplibs_RC
29217 # Set to "yes" if exported symbols are required.
29218 always_export_symbols=$always_export_symbols_RC
29220 # The commands to list exported symbols.
29221 export_symbols_cmds=$lt_export_symbols_cmds_RC
29223 # Symbols that should not be listed in the preloaded symbols.
29224 exclude_expsyms=$lt_exclude_expsyms_RC
29226 # Symbols that must always be exported.
29227 include_expsyms=$lt_include_expsyms_RC
29229 # Commands necessary for linking programs (against libraries) with templates.
29230 prelink_cmds=$lt_prelink_cmds_RC
29232 # Commands necessary for finishing linking programs.
29233 postlink_cmds=$lt_postlink_cmds_RC
29235 # Specify filename containing input files.
29236 file_list_spec=$lt_file_list_spec_RC
29238 # How to hardcode a shared library path into an executable.
29239 hardcode_action=$hardcode_action_RC
29241 # The directories searched by this compiler when creating a shared library.
29242 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29244 # Dependencies to place before and after the objects being linked to
29245 # create a shared library.
29246 predep_objects=$lt_predep_objects_RC
29247 postdep_objects=$lt_postdep_objects_RC
29248 predeps=$lt_predeps_RC
29249 postdeps=$lt_postdeps_RC
29251 # The library search path used internally by the compiler when linking
29252 # a shared library.
29253 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29255 # ### END LIBTOOL TAG CONFIG: RC
29259 "src/gpgme-config":F) chmod +x src/gpgme-config ;;
29260 "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
29268 ac_clean_files=$ac_clean_files_save
29270 test $ac_write_fail = 0 ||
29271 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29274 # configure is writing to config.log, and then calls config.status.
29275 # config.status does its own redirection, appending to config.log.
29276 # Unfortunately, on DOS this fails, as config.log is still kept open
29277 # by configure, so config.status won't be able to write to it; its
29278 # output is simply discarded. So we exec the FD to /dev/null,
29279 # effectively closing config.log, so it can be properly (re)opened and
29280 # appended to by config.status. When coming back to configure, we
29281 # need to make the FD available again.
29282 if test "$no_create" != yes; then
29284 ac_config_status_args=
29285 test "$silent" = yes &&
29286 ac_config_status_args="$ac_config_status_args --quiet"
29288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29291 # would make configure fail if this is the last instruction.
29292 $ac_cs_success || as_fn_exit 1
29294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29296 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29301 GPGME v${VERSION} has been configured as follows:
29303 Revision: feea38c8 (65258)
29306 UI Server: $uiserver
29307 FD Passing: $use_descriptor_passing
29309 Language bindings: ${enabled_languages_v:-$enabled_languages}
29311 if test "x${gpg_config_script_warn}" != x; then
29313 Mismatches between the target platform and the to
29314 be used libraries have been been detected for:
29315 ${gpg_config_script_warn}
29316 Please check above for warning messages.